Fix clipboard, permissions in Chrome; enable in Firefox

Repository details (talkie)
Project page
talkie
Project log category
(708 entries)
Repository
@joelpurra/talkie
Owner
@joelpurra
Contributors
Contributors on Github
Project status
⏲️ This project has had recent commits.
📂 This project is open.
🌠 This project is popular.
Repository activity period
🗓
Commits
751 commits
Stars
71 stars
Commit details (6f73b7e8)
Author
Authored at
Committer
Joel Purra
Committed at

Commit message

Fix clipboard, permissions in Chrome; enable in Firefox

  • Reimplemented permissions to work with MV3.
    • Requires manually allowing Talkie access to the clipboard.
    • Also implemented removing the clipboard permissions at will.
    • Added permission and test buttons to the options page.
  • Enabled clipboard use in Firefox.
    • This was previously not possible.
    • Firefox might not support global hotkeys, reducing the usefulness for cross-program use.
Raw text
Fix clipboard, permissions in Chrome; enable in Firefox

- Reimplemented permissions to work with MV3.
  - Requires manually allowing Talkie access to the clipboard.
  - Also implemented removing the clipboard permissions at will.
  - Added permission and test buttons to the options page.
- Enabled clipboard use in Firefox.
  - This was previously not possible.
  - Firefox might not support global hotkeys, reducing the usefulness for cross-program use.

Changed files (86)

Path Additions Deletions
code/manifest.json +2 -2
code/packages/browser-bricks/src/context-menu-manager.mts +3 -4
code/packages/browser-bricks/src/{read-clipboard-manager.mts => speak-clipboard-manager.mts} +39 -17
code/packages/browser-groundwork/src/create-and-start-permission-listeners.mts +42 -0
code/packages/browser-groundwork/src/create-message-bus-listeners.mts +8 -0
code/packages/browser-groundwork/src/get-command-map.mts +4 -5
code/packages/browser-groundwork/src/get-dependencies.mts +9 -5
code/packages/browser-groundwork/src/groundwork.mts +5 -0
code/packages/browser-mason/src/mason.mts +3 -14
code/packages/browser-shared/src/clipboard-manager.mts +0 -140
code/packages/browser-shared/src/get-clipboard-text.mts +103 -0
code/packages/browser-shared/src/hydrate/get-dependencies.mts +12 -3
code/packages/browser-shared/src/permission-manager.mts +129 -0
code/packages/browser-shared/src/permissions-manager.mts +0 -121
code/packages/browser-shared/src/permissions-provider.mts +139 -0
code/packages/browser-shared/src/read-clipboard-permission-manager.mts +39 -0
code/packages/options-application/src/app/main.tsx +3 -1
code/packages/options-application/src/app/sections/features.tsx +3 -13
code/packages/options-application/src/app/sections/settings.tsx +55 -18
code/packages/options-application/src/app/sections/settings/read-clipboard-permission.tsx +291 -0
code/packages/options-application/src/app/sections/status.tsx +17 -12
code/packages/options-application/src/app/sections/usage.tsx +50 -103
code/packages/options-application/src/containers/features-container.tsx +0 -7
code/packages/options-application/src/containers/settings-container.tsx +47 -11
code/packages/options-application/src/slices/welcome.mts +5 -5
code/packages/output-webext-webextension/package.json +1 -1
code/packages/shared-interfaces/src/ipermission-manager.mts +37 -0
code/packages/shared-locales/src/data/_locales/ar/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/bg/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/bn/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/cs/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/da/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/de/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/el/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/en/base.json +12 -12
code/packages/shared-locales/src/data/_locales/es/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/fa/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/fi/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/fr/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/gu/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/ha/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/he/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/hi/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/hu/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/id/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/it/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/ja/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/jv/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/ko/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/mr/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/nb/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/nl/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/pa/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/pl/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/pt/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/ro/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/ru/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/sk/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/sv/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/sv/override.json +0 -15
code/packages/shared-locales/src/data/_locales/sv/override.outdated.json +15 -0
code/packages/shared-locales/src/data/_locales/sw/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/ta/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/te/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/th/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/tr/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/ur/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/vi/automatic.json +0 -12
code/packages/shared-locales/src/data/_locales/zh/automatic.json +0 -12
code/packages/shared-ui/src/slices/clipboard.mts +113 -0
code/packages/shared-ui/src/slices/index.mts +4 -0
code/packages/shared-ui/src/slices/languages.mts +2 -2
code/packages/shared-ui/src/slices/metadata.mts +4 -4
code/packages/shared-ui/src/styled/layout/layout-base.tsx +3 -0
code/packages/split-environment-interfaces/src/iapi/iapi-coating-clipboard.mts +21 -0
code/packages/split-environment-interfaces/src/iapi/iapi-coating.mts +6 -4
code/packages/split-environment-interfaces/src/iapi/iapi-groundwork-clipboard.mts +20 -0
code/packages/split-environment-interfaces/src/iapi/iapi-groundwork-speaking.mts +1 -0
code/packages/split-environment-interfaces/src/iapi/iapi-groundwork.mts +2 -0
code/packages/split-environment-interfaces/src/imessage-bus.mts +1 -0
code/packages/split-environment-node/src/server-specific/rendering-coating.mts +2 -2
code/packages/split-environment-webextension/src/browser-specific/api/browser-coating-clipboard.mts +39 -0
code/packages/split-environment-webextension/src/browser-specific/api/browser-coating.mts +2 -0
code/packages/split-environment-webextension/src/browser-specific/api/message-bus-groundwork-clipboard.mts +35 -0
code/packages/split-environment-webextension/src/browser-specific/api/message-bus-groundwork-speaking.mts +4 -0
code/packages/split-environment-webextension/src/browser-specific/api/message-bus-groundwork.mts +2 -0

Commit categories (3)