diff --git a/apps/content/package.json b/apps/content/package.json index 40d4942..5e21431 100644 --- a/apps/content/package.json +++ b/apps/content/package.json @@ -26,7 +26,7 @@ "svelte-preprocess": "^5.1.3", "svelte-sequential-preprocessor": "^2.0.1", "ts-loader": "^9.5.1", - "typescript": "^5.3.3", + "typescript": "^5.4.5", "webpack": "^5.89.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1", diff --git a/apps/content/src/browser/browserImports.js b/apps/content/src/browser/browserImports.js index b18962a..97843a6 100644 --- a/apps/content/src/browser/browserImports.js +++ b/apps/content/src/browser/browserImports.js @@ -7,6 +7,7 @@ import { lazyESModuleGetters } from '../shared/lazy.js' export const browserImports = lazyESModuleGetters({ AppConstants: 'resource://gre/modules/AppConstants.sys.mjs', E10SUtils: 'resource://gre/modules/E10SUtils.sys.mjs', + EBrowserActions: 'resource://app/modules/EBrowserActions.sys.mjs', EPageActions: 'resource://app/modules/EPageActions.sys.mjs', NetUtil: 'resource://gre/modules/NetUtil.sys.mjs', PageThumbs: 'resource://gre/modules/PageThumbs.sys.mjs', diff --git a/apps/content/src/browser/components/BrowserAction.svelte b/apps/content/src/browser/components/BrowserAction.svelte new file mode 100644 index 0000000..7f1465f --- /dev/null +++ b/apps/content/src/browser/components/BrowserAction.svelte @@ -0,0 +1,62 @@ + + + + + { + open = true + const { clickModifiersFromEvent } = await import('./browserAction.js') + action.getEmiter().emit('click', { + tabId: browserView.browserId, + clickData: clickModifiersFromEvent(e), + }) + }} +> + + + +{#if $url} + {#await actionPanel then ap} + (open = false)} + class="popup" + id={`page-action-panel__${action.getExtensionId()}--${ + browserView.browserId + }`} + > + {/await} +{/if} + + diff --git a/apps/content/src/browser/components/ToolbarButton.svelte b/apps/content/src/browser/components/ToolbarButton.svelte index aa8aa81..dd4b4cb 100644 --- a/apps/content/src/browser/components/ToolbarButton.svelte +++ b/apps/content/src/browser/components/ToolbarButton.svelte @@ -4,9 +4,11 @@ - diff --git a/apps/content/src/browser/components/WebsiteView.svelte b/apps/content/src/browser/components/WebsiteView.svelte index 51f013b..cae4afe 100644 --- a/apps/content/src/browser/components/WebsiteView.svelte +++ b/apps/content/src/browser/components/WebsiteView.svelte @@ -5,6 +5,7 @@