From 5296d86c051a2ca8d5468c946daf6f6913ab3cfd Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 13:44:41 +0300 Subject: [PATCH 1/8] Some formatting changes --- lib/main.d.ts | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/lib/main.d.ts b/lib/main.d.ts index 032fbb8..fadae73 100644 --- a/lib/main.d.ts +++ b/lib/main.d.ts @@ -1,4 +1,3 @@ - export interface IZenPlugin { name: string; version: string; @@ -37,23 +36,31 @@ export interface ISandboxedTab { readonly isSelected: boolean; } -export type IPluginEventKey = "onInit" | "onUnload" | "onTabChange" | "onTabClose" - | "onTabOpen" | "onWorkspaceChange" | "onWorkspaceClose" - | "onWorkspaceOpen" | "onPreferencesChange"; +export type IPluginEventKey = + | "onInit" + | "onUnload" + | "onTabChange" + | "onTabClose" + | "onTabOpen" + | "onWorkspaceChange" + | "onWorkspaceClose" + | "onWorkspaceOpen" + | "onPreferencesChange"; -export type IPluginEventProps = - T extends "onInit" ? { } - : T extends "onUnload" ? { } - : T extends "onTabChange" ? { tabId: string } - : T extends "onTabClose" ? { tabId: string } - : T extends "onTabOpen" ? { tabId: string } - : T extends "onWorkspaceChange" ? { workspace: IWorkspace } - : T extends "onWorkspaceClose" ? { workspace: IWorkspace } - : T extends "onWorkspaceOpen" ? { workspace: IWorkspace } - : T extends "onPreferencesChange" ? { settings: IPluginSettings } - : never; +export type IPluginEventProps = + T extends "onInit" ? {} : + T extends "onUnload" ? {} : + T extends "onTabChange" ? { tabId: string } : + T extends "onTabClose" ? { tabId: string } : + T extends "onTabOpen" ? { tabId: string } : + T extends "onWorkspaceChange" ? { workspace: IWorkspace } : + T extends "onWorkspaceClose" ? { workspace: IWorkspace } : + T extends "onWorkspaceOpen" ? { workspace: IWorkspace } : + T extends "onPreferencesChange" ? { settings: IPluginSettings } : + never; export type IPluginEvent = (props: IPluginEventProps) => void; + export type IPluginEvents = { [K in IPluginEventKey]?: IPluginEvent; }; @@ -69,6 +76,7 @@ export type IPluginContextMenu = { }; export type IPluginSettings = IPluginSetting[]; + export default IZenPlugin; // API From 186138c19c3f8fad18681f8f2e2f1bfe275745f8 Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 13:45:17 +0300 Subject: [PATCH 2/8] Update .gitignore From 2c3680e2170122b79af34b473ea32c437474bce0 Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 13:45:33 +0300 Subject: [PATCH 3/8] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index c028d70..5d84ec8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Zen Browser +Copyright (c) 2025 Zen Browser Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 3237f165c07d5f0d739cbadfa4ff7fbdb6357ca4 Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 13:46:00 +0300 Subject: [PATCH 4/8] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e7b7c4..6c9dac5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# plugin -📦 A plugin library interface for typescript projects +# Plugin Library Interface + +📦 A plugin library interface for TypeScript projects. From 6a1d1199724ed45cb0bea300306c9b48fcec84ea Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 13:46:27 +0300 Subject: [PATCH 5/8] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec8461a..7bc9caa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "plugin", "version": "1.0.0", - "description": "📦 A plugin library interface for typescript projects", + "description": "📦 A plugin library interface for TypeScript projects", "types": "./lib/main.d.ts", "repository": { "type": "git", From f4949c020e32425ee236ea3c16987a6097ad1df4 Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 13:46:57 +0300 Subject: [PATCH 6/8] Setup Dependabot --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d1f0d08 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" From 50903622f3c6886fc576bba9c0d7bf8a8c76fb97 Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 14:28:03 +0300 Subject: [PATCH 7/8] Update .gitignore From 62defc15ee7cb209af9829dd5636c71d5f14eba4 Mon Sep 17 00:00:00 2001 From: blu3 Date: Wed, 5 Feb 2025 14:37:44 +0300 Subject: [PATCH 8/8] Create FUNDING.yml --- .github/FUNDING.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..625daa5 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +patreon: zen_browser +ko_fi: zen_browser