@owlmeans/web-panel 0.1.18-rc.9 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +510 -143
- package/THIRD-PARTY-NOTICES.txt +24 -0
- package/agent-meta/manifest.json +163 -4
- package/agent-meta/skills/web-panel/SKILL.md +136 -83
- package/agent-meta/skills/web-panel/parts/consent.md +114 -0
- package/agent-meta/skills/web-panel/parts/editor.md +47 -0
- package/agent-meta/skills/web-panel/parts/forms.md +85 -0
- package/agent-meta/skills/web-panel/parts/navigation.md +203 -0
- package/agent-meta/skills/web-panel/parts/picker.md +164 -0
- package/agent-meta/skills/web-panel/parts/reload.md +46 -0
- package/agent-meta/skills/web-panel/parts/sign-in.md +65 -0
- package/agent-meta/skills/web-panel/parts/theme.md +74 -0
- package/build/@/components/ui/alert-dialog.d.ts +15 -0
- package/build/@/components/ui/alert-dialog.d.ts.map +1 -0
- package/build/@/components/ui/alert-dialog.js +39 -0
- package/build/@/components/ui/alert-dialog.js.map +1 -0
- package/build/@/components/ui/alert.js +1 -1
- package/build/@/components/ui/alert.js.map +1 -1
- package/build/@/components/ui/button.js +1 -1
- package/build/@/components/ui/button.js.map +1 -1
- package/build/@/components/ui/card.js +1 -1
- package/build/@/components/ui/card.js.map +1 -1
- package/build/@/components/ui/input.js +1 -1
- package/build/@/components/ui/input.js.map +1 -1
- package/build/@/components/ui/label.js +1 -1
- package/build/@/components/ui/label.js.map +1 -1
- package/build/@/components/ui/navigation-menu.js +1 -1
- package/build/@/components/ui/navigation-menu.js.map +1 -1
- package/build/@/components/ui/popover.d.ts +8 -0
- package/build/@/components/ui/popover.d.ts.map +1 -0
- package/build/@/components/ui/popover.js +17 -0
- package/build/@/components/ui/popover.js.map +1 -0
- package/build/@/components/ui/progress.js +1 -1
- package/build/@/components/ui/progress.js.map +1 -1
- package/build/@/components/ui/separator.js +1 -1
- package/build/@/components/ui/separator.js.map +1 -1
- package/build/@/components/ui/sheet.d.ts +15 -0
- package/build/@/components/ui/sheet.d.ts.map +1 -0
- package/build/@/components/ui/sheet.js +40 -0
- package/build/@/components/ui/sheet.js.map +1 -0
- package/build/auth/context.d.ts.map +1 -1
- package/build/auth/context.js +0 -1
- package/build/auth/context.js.map +1 -1
- package/build/auth/entrypoints.d.ts +10 -0
- package/build/auth/entrypoints.d.ts.map +1 -0
- package/build/auth/entrypoints.js +4 -0
- package/build/auth/entrypoints.js.map +1 -0
- package/build/auth/exports.d.ts +4 -4
- package/build/auth/exports.d.ts.map +1 -1
- package/build/auth/exports.js +3 -3
- package/build/auth/exports.js.map +1 -1
- package/build/auth/modules.d.ts +1 -1
- package/build/auth/modules.d.ts.map +1 -1
- package/build/auth/plugins/basic-ed25519.js +4 -4
- package/build/auth/plugins/basic-ed25519.js.map +1 -1
- package/build/auth/plugins/re-captcha.js +3 -3
- package/build/auth/plugins/re-captcha.js.map +1 -1
- package/build/auth/plugins/tunnel-consumer.js +1 -1
- package/build/auth/plugins/tunnel-consumer.js.map +1 -1
- package/build/components/block.js +2 -2
- package/build/components/block.js.map +1 -1
- package/build/components/consts.local.d.ts +14 -0
- package/build/components/consts.local.d.ts.map +1 -0
- package/build/components/consts.local.js +26 -0
- package/build/components/consts.local.js.map +1 -0
- package/build/components/footer/component.d.ts +19 -1
- package/build/components/footer/component.d.ts.map +1 -1
- package/build/components/footer/component.js +38 -11
- package/build/components/footer/component.js.map +1 -1
- package/build/components/footer/credit.d.ts +27 -0
- package/build/components/footer/credit.d.ts.map +1 -0
- package/build/components/footer/credit.js +42 -0
- package/build/components/footer/credit.js.map +1 -0
- package/build/components/footer/index.d.ts +1 -0
- package/build/components/footer/index.d.ts.map +1 -1
- package/build/components/footer/index.js +1 -0
- package/build/components/footer/index.js.map +1 -1
- package/build/components/footer/types.d.ts +22 -1
- package/build/components/footer/types.d.ts.map +1 -1
- package/build/components/form/button/component.d.ts.map +1 -1
- package/build/components/form/button/component.js +5 -3
- package/build/components/form/button/component.js.map +1 -1
- package/build/components/form/component.js +2 -2
- package/build/components/form/component.js.map +1 -1
- package/build/components/form/text/component.js +2 -2
- package/build/components/form/text/component.js.map +1 -1
- package/build/components/helper.d.ts.map +1 -1
- package/build/components/helper.js +1 -12
- package/build/components/helper.js.map +1 -1
- package/build/components/index.d.ts +4 -0
- package/build/components/index.d.ts.map +1 -1
- package/build/components/index.js +4 -0
- package/build/components/index.js.map +1 -1
- package/build/components/link.js +3 -3
- package/build/components/link.js.map +1 -1
- package/build/components/login/append.d.ts +15 -0
- package/build/components/login/append.d.ts.map +1 -0
- package/build/components/login/append.js +26 -0
- package/build/components/login/append.js.map +1 -0
- package/build/components/login/consts.d.ts +3 -0
- package/build/components/login/consts.d.ts.map +1 -0
- package/build/components/login/consts.js +3 -0
- package/build/components/login/consts.js.map +1 -0
- package/build/components/login/consts.local.d.ts +4 -0
- package/build/components/login/consts.local.d.ts.map +1 -0
- package/build/components/login/consts.local.js +8 -0
- package/build/components/login/consts.local.js.map +1 -0
- package/build/components/login/credit.d.ts +12 -0
- package/build/components/login/credit.d.ts.map +1 -0
- package/build/components/login/credit.js +18 -0
- package/build/components/login/credit.js.map +1 -0
- package/build/components/login/i18n/be.json +10 -0
- package/build/components/login/i18n/de.json +10 -0
- package/build/components/login/i18n/en.json +10 -0
- package/build/components/login/i18n/es.json +10 -0
- package/build/components/login/i18n/fr.json +10 -0
- package/build/components/login/i18n/pl.json +10 -0
- package/build/components/login/i18n/ru.json +10 -0
- package/build/components/login/i18n/uk.json +10 -0
- package/build/components/login/i18n.d.ts +2 -0
- package/build/components/login/i18n.d.ts.map +1 -0
- package/build/components/login/i18n.js +28 -0
- package/build/components/login/i18n.js.map +1 -0
- package/build/components/login/icons.d.ts +14 -0
- package/build/components/login/icons.d.ts.map +1 -0
- package/build/components/login/icons.js +29 -0
- package/build/components/login/icons.js.map +1 -0
- package/build/components/login/index.d.ts +11 -0
- package/build/components/login/index.d.ts.map +1 -0
- package/build/components/login/index.js +10 -0
- package/build/components/login/index.js.map +1 -0
- package/build/components/login/notify.d.ts +18 -0
- package/build/components/login/notify.d.ts.map +1 -0
- package/build/components/login/notify.js +41 -0
- package/build/components/login/notify.js.map +1 -0
- package/build/components/login/provider.d.ts +20 -0
- package/build/components/login/provider.d.ts.map +1 -0
- package/build/components/login/provider.js +31 -0
- package/build/components/login/provider.js.map +1 -0
- package/build/components/login/screen.d.ts +24 -0
- package/build/components/login/screen.d.ts.map +1 -0
- package/build/components/login/screen.js +92 -0
- package/build/components/login/screen.js.map +1 -0
- package/build/components/login/terms.d.ts +19 -0
- package/build/components/login/terms.d.ts.map +1 -0
- package/build/components/login/terms.js +32 -0
- package/build/components/login/terms.js.map +1 -0
- package/build/components/login/types.d.ts +28 -0
- package/build/components/login/types.d.ts.map +1 -0
- package/build/components/login/types.js +2 -0
- package/build/components/login/types.js.map +1 -0
- package/build/components/nav/consts.local.d.ts +41 -0
- package/build/components/nav/consts.local.d.ts.map +1 -0
- package/build/components/nav/consts.local.js +60 -0
- package/build/components/nav/consts.local.js.map +1 -0
- package/build/components/nav/index.d.ts +1 -0
- package/build/components/nav/index.d.ts.map +1 -1
- package/build/components/nav/index.js +1 -0
- package/build/components/nav/index.js.map +1 -1
- package/build/components/nav/layout.d.ts +9 -2
- package/build/components/nav/layout.d.ts.map +1 -1
- package/build/components/nav/layout.js +48 -7
- package/build/components/nav/layout.js.map +1 -1
- package/build/components/nav/mobile.d.ts +21 -0
- package/build/components/nav/mobile.d.ts.map +1 -0
- package/build/components/nav/mobile.js +55 -0
- package/build/components/nav/mobile.js.map +1 -0
- package/build/components/nav/side.d.ts.map +1 -1
- package/build/components/nav/side.js +10 -10
- package/build/components/nav/side.js.map +1 -1
- package/build/components/nav/top.d.ts.map +1 -1
- package/build/components/nav/top.js +12 -8
- package/build/components/nav/top.js.map +1 -1
- package/build/components/nav/types.d.ts +64 -1
- package/build/components/nav/types.d.ts.map +1 -1
- package/build/components/nav/viewport.d.ts +3 -0
- package/build/components/nav/viewport.d.ts.map +1 -0
- package/build/components/nav/viewport.js +14 -0
- package/build/components/nav/viewport.js.map +1 -0
- package/build/components/panel-app/component.d.ts.map +1 -1
- package/build/components/panel-app/component.js +4 -3
- package/build/components/panel-app/component.js.map +1 -1
- package/build/components/picker/color-picker.d.ts +9 -0
- package/build/components/picker/color-picker.d.ts.map +1 -0
- package/build/components/picker/color-picker.js +9 -0
- package/build/components/picker/color-picker.js.map +1 -0
- package/build/components/picker/consts.local.d.ts +76 -0
- package/build/components/picker/consts.local.d.ts.map +1 -0
- package/build/components/picker/consts.local.js +214 -0
- package/build/components/picker/consts.local.js.map +1 -0
- package/build/components/picker/dot.d.ts +8 -0
- package/build/components/picker/dot.d.ts.map +1 -0
- package/build/components/picker/dot.js +10 -0
- package/build/components/picker/dot.js.map +1 -0
- package/build/components/picker/grid.d.ts +17 -0
- package/build/components/picker/grid.d.ts.map +1 -0
- package/build/components/picker/grid.js +73 -0
- package/build/components/picker/grid.js.map +1 -0
- package/build/components/picker/i18n/be.json +60 -0
- package/build/components/picker/i18n/de.json +60 -0
- package/build/components/picker/i18n/en.json +60 -0
- package/build/components/picker/i18n/es.json +60 -0
- package/build/components/picker/i18n/fr.json +60 -0
- package/build/components/picker/i18n/pl.json +60 -0
- package/build/components/picker/i18n/ru.json +60 -0
- package/build/components/picker/i18n/uk.json +60 -0
- package/build/components/picker/i18n.d.ts +2 -0
- package/build/components/picker/i18n.d.ts.map +1 -0
- package/build/components/picker/i18n.js +18 -0
- package/build/components/picker/i18n.js.map +1 -0
- package/build/components/picker/icon-color-picker.d.ts +14 -0
- package/build/components/picker/icon-color-picker.d.ts.map +1 -0
- package/build/components/picker/icon-color-picker.js +15 -0
- package/build/components/picker/icon-color-picker.js.map +1 -0
- package/build/components/picker/icon-picker.d.ts +8 -0
- package/build/components/picker/icon-picker.d.ts.map +1 -0
- package/build/components/picker/icon-picker.js +8 -0
- package/build/components/picker/icon-picker.js.map +1 -0
- package/build/components/picker/index.d.ts +11 -0
- package/build/components/picker/index.d.ts.map +1 -0
- package/build/components/picker/index.js +10 -0
- package/build/components/picker/index.js.map +1 -0
- package/build/components/picker/panel.d.ts +9 -0
- package/build/components/picker/panel.d.ts.map +1 -0
- package/build/components/picker/panel.js +23 -0
- package/build/components/picker/panel.js.map +1 -0
- package/build/components/picker/root.d.ts +13 -0
- package/build/components/picker/root.d.ts.map +1 -0
- package/build/components/picker/root.js +55 -0
- package/build/components/picker/root.js.map +1 -0
- package/build/components/picker/roving.d.ts +8 -0
- package/build/components/picker/roving.d.ts.map +1 -0
- package/build/components/picker/roving.js +62 -0
- package/build/components/picker/roving.js.map +1 -0
- package/build/components/picker/surface.d.ts +18 -0
- package/build/components/picker/surface.d.ts.map +1 -0
- package/build/components/picker/surface.js +36 -0
- package/build/components/picker/surface.js.map +1 -0
- package/build/components/picker/swatches/custom.d.ts +10 -0
- package/build/components/picker/swatches/custom.d.ts.map +1 -0
- package/build/components/picker/swatches/custom.js +65 -0
- package/build/components/picker/swatches/custom.js.map +1 -0
- package/build/components/picker/swatches.d.ts +16 -0
- package/build/components/picker/swatches.d.ts.map +1 -0
- package/build/components/picker/swatches.js +35 -0
- package/build/components/picker/swatches.js.map +1 -0
- package/build/components/picker/text.d.ts +5 -0
- package/build/components/picker/text.d.ts.map +1 -0
- package/build/components/picker/text.js +29 -0
- package/build/components/picker/text.js.map +1 -0
- package/build/components/picker/tile.d.ts +11 -0
- package/build/components/picker/tile.d.ts.map +1 -0
- package/build/components/picker/tile.js +19 -0
- package/build/components/picker/tile.js.map +1 -0
- package/build/components/picker/translate.d.ts +9 -0
- package/build/components/picker/translate.d.ts.map +1 -0
- package/build/components/picker/translate.js +13 -0
- package/build/components/picker/translate.js.map +1 -0
- package/build/components/picker/trigger.d.ts +12 -0
- package/build/components/picker/trigger.d.ts.map +1 -0
- package/build/components/picker/trigger.js +29 -0
- package/build/components/picker/trigger.js.map +1 -0
- package/build/components/picker/types.d.ts +114 -0
- package/build/components/picker/types.d.ts.map +1 -0
- package/build/components/picker/types.js +2 -0
- package/build/components/picker/types.js.map +1 -0
- package/build/components/picker/types.local.d.ts +143 -0
- package/build/components/picker/types.local.d.ts.map +1 -0
- package/build/components/picker/types.local.js +2 -0
- package/build/components/picker/types.local.js.map +1 -0
- package/build/components/scheme/consts.local.d.ts +8 -0
- package/build/components/scheme/consts.local.d.ts.map +1 -0
- package/build/components/scheme/consts.local.js +13 -0
- package/build/components/scheme/consts.local.js.map +1 -0
- package/build/components/scheme/hook.d.ts +16 -0
- package/build/components/scheme/hook.d.ts.map +1 -0
- package/build/components/scheme/hook.js +52 -0
- package/build/components/scheme/hook.js.map +1 -0
- package/build/components/scheme/index.d.ts +4 -0
- package/build/components/scheme/index.d.ts.map +1 -0
- package/build/components/scheme/index.js +3 -0
- package/build/components/scheme/index.js.map +1 -0
- package/build/components/scheme/toggle.d.ts +14 -0
- package/build/components/scheme/toggle.d.ts.map +1 -0
- package/build/components/scheme/toggle.js +24 -0
- package/build/components/scheme/toggle.js.map +1 -0
- package/build/components/scheme/types.d.ts +21 -0
- package/build/components/scheme/types.d.ts.map +1 -0
- package/build/components/scheme/types.js +2 -0
- package/build/components/scheme/types.js.map +1 -0
- package/build/components/socket/i18n/be.json +9 -0
- package/build/components/socket/i18n/de.json +9 -0
- package/build/components/socket/i18n/en.json +9 -0
- package/build/components/socket/i18n/es.json +9 -0
- package/build/components/socket/i18n/fr.json +9 -0
- package/build/components/socket/i18n/pl.json +9 -0
- package/build/components/socket/i18n/ru.json +9 -0
- package/build/components/socket/i18n/uk.json +9 -0
- package/build/components/socket/i18n.d.ts +2 -0
- package/build/components/socket/i18n.d.ts.map +1 -0
- package/build/components/socket/i18n.js +18 -0
- package/build/components/socket/i18n.js.map +1 -0
- package/build/components/socket/index.d.ts +3 -0
- package/build/components/socket/index.d.ts.map +1 -0
- package/build/components/socket/index.js +3 -0
- package/build/components/socket/index.js.map +1 -0
- package/build/components/socket/reload-dialog.d.ts +22 -0
- package/build/components/socket/reload-dialog.d.ts.map +1 -0
- package/build/components/socket/reload-dialog.js +34 -0
- package/build/components/socket/reload-dialog.js.map +1 -0
- package/build/components/status.js +1 -1
- package/build/components/status.js.map +1 -1
- package/build/components/text.d.ts.map +1 -1
- package/build/components/text.js +2 -13
- package/build/components/text.js.map +1 -1
- package/build/components/toaster.d.ts +16 -0
- package/build/components/toaster.d.ts.map +1 -0
- package/build/components/toaster.js +52 -0
- package/build/components/toaster.js.map +1 -0
- package/build/components/uploader/consts.local.d.ts +4 -0
- package/build/components/uploader/consts.local.d.ts.map +1 -0
- package/build/components/uploader/consts.local.js +6 -0
- package/build/components/uploader/consts.local.js.map +1 -0
- package/build/components/uploader/image.d.ts.map +1 -1
- package/build/components/uploader/image.js +2 -6
- package/build/components/uploader/image.js.map +1 -1
- package/build/consent/component.d.ts +27 -0
- package/build/consent/component.d.ts.map +1 -0
- package/build/consent/component.js +60 -0
- package/build/consent/component.js.map +1 -0
- package/build/consent/consts.d.ts +2 -0
- package/build/consent/consts.d.ts.map +1 -0
- package/build/consent/consts.js +2 -0
- package/build/consent/consts.js.map +1 -0
- package/build/consent/consts.local.d.ts +9 -0
- package/build/consent/consts.local.d.ts.map +1 -0
- package/build/consent/consts.local.js +9 -0
- package/build/consent/consts.local.js.map +1 -0
- package/build/consent/geo.d.ts +17 -0
- package/build/consent/geo.d.ts.map +1 -0
- package/build/consent/geo.js +19 -0
- package/build/consent/geo.js.map +1 -0
- package/build/consent/index.d.ts +11 -0
- package/build/consent/index.d.ts.map +1 -0
- package/build/consent/index.js +9 -0
- package/build/consent/index.js.map +1 -0
- package/build/consent/language.d.ts +12 -0
- package/build/consent/language.d.ts.map +1 -0
- package/build/consent/language.js +11 -0
- package/build/consent/language.js.map +1 -0
- package/build/consent/menu-widget.d.ts +13 -0
- package/build/consent/menu-widget.d.ts.map +1 -0
- package/build/consent/menu-widget.js +20 -0
- package/build/consent/menu-widget.js.map +1 -0
- package/build/consent/presence.d.ts +30 -0
- package/build/consent/presence.d.ts.map +1 -0
- package/build/consent/presence.js +40 -0
- package/build/consent/presence.js.map +1 -0
- package/build/consent/service.d.ts +18 -0
- package/build/consent/service.d.ts.map +1 -0
- package/build/consent/service.js +53 -0
- package/build/consent/service.js.map +1 -0
- package/build/consent/translate.d.ts +14 -0
- package/build/consent/translate.d.ts.map +1 -0
- package/build/consent/translate.js +28 -0
- package/build/consent/translate.js.map +1 -0
- package/build/consent/types.d.ts +39 -0
- package/build/consent/types.d.ts.map +1 -0
- package/build/consent/types.js +2 -0
- package/build/consent/types.js.map +1 -0
- package/build/consent/types.local.d.ts +6 -0
- package/build/consent/types.local.d.ts.map +1 -0
- package/build/consent/types.local.js +2 -0
- package/build/consent/types.local.js.map +1 -0
- package/build/context.d.ts.map +1 -1
- package/build/context.js +10 -0
- package/build/context.js.map +1 -1
- package/build/editor/component.d.ts +4 -0
- package/build/editor/component.d.ts.map +1 -0
- package/build/editor/component.js +103 -0
- package/build/editor/component.js.map +1 -0
- package/build/editor/consts.local.d.ts +6 -0
- package/build/editor/consts.local.d.ts.map +1 -0
- package/build/editor/consts.local.js +58 -0
- package/build/editor/consts.local.js.map +1 -0
- package/build/editor/index.d.ts +3 -0
- package/build/editor/index.d.ts.map +1 -0
- package/build/editor/index.js +2 -0
- package/build/editor/index.js.map +1 -0
- package/build/editor/types.d.ts +24 -0
- package/build/editor/types.d.ts.map +1 -0
- package/build/editor/types.js +2 -0
- package/build/editor/types.js.map +1 -0
- package/build/entrypoints.d.ts +8 -0
- package/build/entrypoints.d.ts.map +1 -0
- package/build/entrypoints.js +4 -0
- package/build/entrypoints.js.map +1 -0
- package/build/exports.d.ts +6 -5
- package/build/exports.d.ts.map +1 -1
- package/build/exports.js +5 -5
- package/build/exports.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/main.d.ts +1 -4
- package/build/main.d.ts.map +1 -1
- package/build/main.js.map +1 -1
- package/build/modules.d.ts +1 -1
- package/build/modules.d.ts.map +1 -1
- package/build/permission/i18n/be.json +13 -0
- package/build/permission/i18n/de.json +13 -0
- package/build/permission/i18n/en.json +13 -0
- package/build/permission/i18n/es.json +13 -0
- package/build/permission/i18n/fr.json +13 -0
- package/build/permission/i18n/pl.json +13 -0
- package/build/permission/i18n/ru.json +13 -0
- package/build/permission/i18n/uk.json +13 -0
- package/build/permission/i18n.d.ts +2 -0
- package/build/permission/i18n.d.ts.map +1 -0
- package/build/permission/i18n.js +13 -0
- package/build/permission/i18n.js.map +1 -0
- package/build/permission/index.d.ts +6 -0
- package/build/permission/index.d.ts.map +1 -0
- package/build/permission/index.js +27 -0
- package/build/permission/index.js.map +1 -0
- package/build/permission/toast.d.ts +5 -0
- package/build/permission/toast.d.ts.map +1 -0
- package/build/permission/toast.js +8 -0
- package/build/permission/toast.js.map +1 -0
- package/build/permission/types.d.ts +6 -0
- package/build/permission/types.d.ts.map +1 -0
- package/build/permission/types.js +2 -0
- package/build/permission/types.js.map +1 -0
- package/build/picker/icons/consts.d.ts +9 -0
- package/build/picker/icons/consts.d.ts.map +1 -0
- package/build/picker/icons/consts.js +264 -0
- package/build/picker/icons/consts.js.map +1 -0
- package/build/picker/icons/types.d.ts +18 -0
- package/build/picker/icons/types.d.ts.map +1 -0
- package/build/picker/icons/types.js +2 -0
- package/build/picker/icons/types.js.map +1 -0
- package/build/picker/icons.d.ts +4 -0
- package/build/picker/icons.d.ts.map +1 -0
- package/build/picker/icons.js +54 -0
- package/build/picker/icons.js.map +1 -0
- package/build/picker/index.d.ts +11 -0
- package/build/picker/index.d.ts.map +1 -0
- package/build/picker/index.js +10 -0
- package/build/picker/index.js.map +1 -0
- package/build/picker/utils/color/types.d.ts +35 -0
- package/build/picker/utils/color/types.d.ts.map +1 -0
- package/build/picker/utils/color/types.js +2 -0
- package/build/picker/utils/color/types.js.map +1 -0
- package/build/picker/utils/color.d.ts +4 -0
- package/build/picker/utils/color.d.ts.map +1 -0
- package/build/picker/utils/color.js +96 -0
- package/build/picker/utils/color.js.map +1 -0
- package/build/picker/vocabulary/consts.d.ts +26 -0
- package/build/picker/vocabulary/consts.d.ts.map +1 -0
- package/build/picker/vocabulary/consts.js +336 -0
- package/build/picker/vocabulary/consts.js.map +1 -0
- package/build/picker/vocabulary/types.d.ts +67 -0
- package/build/picker/vocabulary/types.d.ts.map +1 -0
- package/build/picker/vocabulary/types.js +2 -0
- package/build/picker/vocabulary/types.js.map +1 -0
- package/build/picker/vocabulary.d.ts +11 -0
- package/build/picker/vocabulary.d.ts.map +1 -0
- package/build/picker/vocabulary.js +83 -0
- package/build/picker/vocabulary.js.map +1 -0
- package/build/scheme/consts.d.ts +8 -0
- package/build/scheme/consts.d.ts.map +1 -0
- package/build/scheme/consts.js +8 -0
- package/build/scheme/consts.js.map +1 -0
- package/build/scheme/index.d.ts +4 -0
- package/build/scheme/index.d.ts.map +1 -0
- package/build/scheme/index.js +3 -0
- package/build/scheme/index.js.map +1 -0
- package/build/scheme/scheme.d.ts +16 -0
- package/build/scheme/scheme.d.ts.map +1 -0
- package/build/scheme/scheme.js +58 -0
- package/build/scheme/scheme.js.map +1 -0
- package/build/scheme/types.d.ts +30 -0
- package/build/scheme/types.d.ts.map +1 -0
- package/build/scheme/types.js +2 -0
- package/build/scheme/types.js.map +1 -0
- package/build/types.d.ts +18 -2
- package/build/types.d.ts.map +1 -1
- package/package.json +107 -52
- package/src/@/components/ui/alert-dialog.tsx +156 -0
- package/src/@/components/ui/alert.tsx +1 -1
- package/src/@/components/ui/button.tsx +1 -1
- package/src/@/components/ui/card.tsx +1 -1
- package/src/@/components/ui/input.tsx +1 -1
- package/src/@/components/ui/label.tsx +1 -1
- package/src/@/components/ui/navigation-menu.tsx +1 -1
- package/src/@/components/ui/popover.tsx +47 -0
- package/src/@/components/ui/progress.tsx +1 -1
- package/src/@/components/ui/separator.tsx +1 -1
- package/src/@/components/ui/sheet.tsx +142 -0
- package/src/auth/context.ts +0 -2
- package/src/auth/entrypoints.ts +5 -0
- package/src/auth/exports.ts +4 -4
- package/src/auth/plugins/basic-ed25519.tsx +4 -4
- package/src/auth/plugins/re-captcha.tsx +3 -3
- package/src/auth/plugins/tunnel-consumer.tsx +1 -1
- package/src/components/block.tsx +2 -2
- package/src/components/consts.local.ts +29 -0
- package/src/components/footer/component.tsx +58 -16
- package/src/components/footer/credit.tsx +61 -0
- package/src/components/footer/index.ts +1 -0
- package/src/components/footer/types.ts +22 -1
- package/src/components/form/button/component.tsx +7 -4
- package/src/components/form/component.tsx +2 -2
- package/src/components/form/text/component.tsx +2 -2
- package/src/components/helper.ts +1 -13
- package/src/components/index.ts +4 -0
- package/src/components/link.tsx +3 -3
- package/src/components/login/append.ts +34 -0
- package/src/components/login/consts.local.ts +10 -0
- package/src/components/login/consts.ts +2 -0
- package/src/components/login/credit.tsx +33 -0
- package/src/components/login/i18n/be.json +10 -0
- package/src/components/login/i18n/de.json +10 -0
- package/src/components/login/i18n/en.json +10 -0
- package/src/components/login/i18n/es.json +10 -0
- package/src/components/login/i18n/fr.json +10 -0
- package/src/components/login/i18n/pl.json +10 -0
- package/src/components/login/i18n/ru.json +10 -0
- package/src/components/login/i18n/uk.json +10 -0
- package/src/components/login/i18n.ts +29 -0
- package/src/components/login/icons.tsx +39 -0
- package/src/components/login/index.ts +11 -0
- package/src/components/login/notify.ts +48 -0
- package/src/components/login/provider.tsx +57 -0
- package/src/components/login/screen.tsx +178 -0
- package/src/components/login/terms.tsx +75 -0
- package/src/components/login/types.ts +30 -0
- package/src/components/nav/consts.local.ts +64 -0
- package/src/components/nav/index.ts +1 -0
- package/src/components/nav/layout.tsx +184 -26
- package/src/components/nav/mobile.tsx +165 -0
- package/src/components/nav/side.tsx +43 -27
- package/src/components/nav/top.tsx +44 -22
- package/src/components/nav/types.ts +65 -2
- package/src/components/nav/viewport.ts +16 -0
- package/src/components/panel-app/component.tsx +9 -1
- package/src/components/picker/color-picker.tsx +15 -0
- package/src/components/picker/consts.local.ts +267 -0
- package/src/components/picker/dot.tsx +21 -0
- package/src/components/picker/grid.tsx +138 -0
- package/src/components/picker/i18n/be.json +60 -0
- package/src/components/picker/i18n/de.json +60 -0
- package/src/components/picker/i18n/en.json +60 -0
- package/src/components/picker/i18n/es.json +60 -0
- package/src/components/picker/i18n/fr.json +60 -0
- package/src/components/picker/i18n/pl.json +60 -0
- package/src/components/picker/i18n/ru.json +60 -0
- package/src/components/picker/i18n/uk.json +60 -0
- package/src/components/picker/i18n.ts +19 -0
- package/src/components/picker/icon-color-picker.tsx +25 -0
- package/src/components/picker/icon-picker.tsx +13 -0
- package/src/components/picker/index.ts +11 -0
- package/src/components/picker/panel.tsx +61 -0
- package/src/components/picker/root.tsx +81 -0
- package/src/components/picker/roving.ts +70 -0
- package/src/components/picker/surface.tsx +62 -0
- package/src/components/picker/swatches/custom.tsx +110 -0
- package/src/components/picker/swatches.tsx +67 -0
- package/src/components/picker/text.ts +46 -0
- package/src/components/picker/tile.tsx +35 -0
- package/src/components/picker/translate.ts +15 -0
- package/src/components/picker/trigger.tsx +54 -0
- package/src/components/picker/types.local.ts +154 -0
- package/src/components/picker/types.ts +125 -0
- package/src/components/scheme/consts.local.ts +13 -0
- package/src/components/scheme/hook.ts +62 -0
- package/src/components/scheme/index.ts +4 -0
- package/src/components/scheme/toggle.tsx +32 -0
- package/src/components/scheme/types.ts +23 -0
- package/src/components/socket/i18n/be.json +9 -0
- package/src/components/socket/i18n/de.json +9 -0
- package/src/components/socket/i18n/en.json +9 -0
- package/src/components/socket/i18n/es.json +9 -0
- package/src/components/socket/i18n/fr.json +9 -0
- package/src/components/socket/i18n/pl.json +9 -0
- package/src/components/socket/i18n/ru.json +9 -0
- package/src/components/socket/i18n/uk.json +9 -0
- package/src/components/socket/i18n.ts +19 -0
- package/src/components/socket/index.ts +2 -0
- package/src/components/socket/reload-dialog.tsx +61 -0
- package/src/components/status.tsx +1 -1
- package/src/components/text.tsx +2 -14
- package/src/components/toaster.tsx +65 -0
- package/src/components/uploader/consts.local.ts +7 -0
- package/src/components/uploader/image.tsx +2 -6
- package/src/consent/component.tsx +84 -0
- package/src/consent/consts.local.ts +10 -0
- package/src/consent/consts.ts +1 -0
- package/src/consent/geo.ts +26 -0
- package/src/consent/index.ts +24 -0
- package/src/consent/language.ts +12 -0
- package/src/consent/menu-widget.tsx +22 -0
- package/src/consent/presence.ts +45 -0
- package/src/consent/service.ts +75 -0
- package/src/consent/translate.ts +31 -0
- package/src/consent/types.local.ts +6 -0
- package/src/consent/types.ts +43 -0
- package/src/context.ts +12 -0
- package/src/editor/component.tsx +172 -0
- package/src/editor/consts.local.ts +62 -0
- package/src/editor/index.ts +2 -0
- package/src/editor/types.ts +24 -0
- package/src/entrypoints.ts +5 -0
- package/src/exports.ts +6 -5
- package/src/index.ts +1 -1
- package/src/main.tsx +2 -6
- package/src/permission/i18n/be.json +13 -0
- package/src/permission/i18n/de.json +13 -0
- package/src/permission/i18n/en.json +13 -0
- package/src/permission/i18n/es.json +13 -0
- package/src/permission/i18n/fr.json +13 -0
- package/src/permission/i18n/pl.json +13 -0
- package/src/permission/i18n/ru.json +13 -0
- package/src/permission/i18n/uk.json +13 -0
- package/src/permission/i18n.ts +13 -0
- package/src/permission/index.ts +27 -0
- package/src/permission/toast.tsx +20 -0
- package/src/permission/types.ts +5 -0
- package/src/picker/icons/consts.ts +309 -0
- package/src/picker/icons/types.ts +18 -0
- package/src/picker/icons.ts +70 -0
- package/src/picker/index.ts +11 -0
- package/src/picker/utils/color/types.ts +37 -0
- package/src/picker/utils/color.ts +119 -0
- package/src/picker/vocabulary/consts.ts +347 -0
- package/src/picker/vocabulary/types.ts +72 -0
- package/src/picker/vocabulary.ts +111 -0
- package/src/scheme/consts.ts +8 -0
- package/src/scheme/index.ts +3 -0
- package/src/scheme/scheme.ts +66 -0
- package/src/scheme/types.ts +30 -0
- package/src/types.ts +19 -2
- package/tests/consent-language.spec.ts +31 -0
- package/tests/consent.spec.ts +112 -0
- package/tests/context.ts +4 -0
- package/tests/editor.spec.ts +58 -0
- package/tests/harness/editor.tsx +32 -0
- package/tests/harness/index.html +1 -0
- package/tests/harness/lazy-screen.tsx +9 -0
- package/tests/harness/mount.tsx +370 -29
- package/tests/harness/picker.tsx +110 -0
- package/tests/lazy.spec.ts +104 -0
- package/tests/login-provider.spec.ts +114 -0
- package/tests/login.spec.ts +447 -0
- package/tests/nav.spec.ts +449 -3
- package/tests/package-boundary.spec.ts +19 -0
- package/tests/picker-shots.spec.ts +174 -0
- package/tests/picker-vocabulary.spec.ts +217 -0
- package/tests/picker.spec.ts +333 -0
- package/tests/scheme.spec.ts +149 -0
- package/tests/smoke.spec.ts +2 -2
- package/tests/socket-dialog.spec.ts +154 -0
- package/tests/toaster.spec.ts +59 -0
- package/zz-tw.d.mts +2 -0
- package/zz-tw.d.mts.map +1 -0
- package/build/.gitkeep +0 -0
- package/src/auth/modules.ts +0 -5
- package/src/modules.ts +0 -5
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { consentPluginHelper } from '@owlmeans/web-consent';
|
|
2
|
+
/**
|
|
3
|
+
* Add the application's own country locator while its context is configured — beside
|
|
4
|
+
* `appendConsentWidgetService`, before anything renders.
|
|
5
|
+
*
|
|
6
|
+
* A locator is one async method that resolves the visitor's country or throws
|
|
7
|
+
* (`ConsentGeoPlugin`). It is registered into `@owlmeans/consent`'s plugin registry, ahead of the
|
|
8
|
+
* built-in Cloudflare one, and `PanelCookieConsent` turns the geo gate on for it even where
|
|
9
|
+
* `cfg.cookieConsent.geo` says nothing — appending a locator IS asking for the gate. Its result
|
|
10
|
+
* decides as Cloudflare's would: a visitor in a consent country is asked, anyone else is decided for
|
|
11
|
+
* automatically, and a throw hands over to the next locator — with none left, the visitor is asked.
|
|
12
|
+
*/
|
|
13
|
+
export const appendConsentGeoPlugin = (ctx, plugin) => {
|
|
14
|
+
const _ctx = ctx;
|
|
15
|
+
consentPluginHelper.registerConsentPlugin(plugin);
|
|
16
|
+
_ctx.consentGeo = () => plugin;
|
|
17
|
+
return _ctx;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=geo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo.js","sourceRoot":"","sources":["../../src/consent/geo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAyB,MAAM,uBAAuB,CAAA;AAKlF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,GAAM,EAAE,MAAwB,EACJ,EAAE;IAC9B,MAAM,IAAI,GAAG,GAAiC,CAAA;IAE9C,mBAAmB,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACjD,IAAI,CAAC,UAAU,GAAG,GAAG,EAAE,CAAC,MAAM,CAAA;IAE9B,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './component.js';
|
|
2
|
+
export * from './menu-widget.js';
|
|
3
|
+
export * from './presence.js';
|
|
4
|
+
export { installConsentLanguage } from './language.js';
|
|
5
|
+
export { createConsentWidgetService, appendConsentWidgetService, CONSENT_WIDGET_STATE } from './service.js';
|
|
6
|
+
export { appendConsentGeoPlugin } from './geo.js';
|
|
7
|
+
export { CONSENT_WIDGET_SERVICE } from './consts.js';
|
|
8
|
+
export type { ConsentWidgetPresenceRecord, ConsentWidgetService, ConsentWidgetServiceAppend, PanelCookieConsentConfig, ConsentGeoPluginAppend, } from './types.js';
|
|
9
|
+
export { useConsent, useConsentCategory, consentStore, openConsent, isConsented, readConsent, writeConsent, clearConsent, DEFAULT_CONSENT_CATEGORIES, CONSENT_KEY, CONSENT_ESSENTIAL, CONSENT_ANALYTICS, CONSENT_MARKETING, CONSENT_EVENT, consentBootstrapScript, CONSENT_REQUIRED_COUNTRIES, } from '@owlmeans/web-consent';
|
|
10
|
+
export type { ConsentCategory, ConsentMenuWidgetProps, ConsentOptions, ConsentRecord, ConsentSignal, ConsentState, CookieConsentProps, CookiePolicyProps, ConsentDisplayMode, ConsentGeoOptions, ConsentGeoPlugin, ConsentGeoLocation, } from '@owlmeans/web-consent';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAC3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,YAAY,EACV,2BAA2B,EAAE,oBAAoB,EAAE,0BAA0B,EAC7E,wBAAwB,EAAE,sBAAsB,GACjD,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EACtE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,0BAA0B,EACnE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EACpE,aAAa,EACb,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,eAAe,EAAE,sBAAsB,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EACrF,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAC1F,gBAAgB,EAAE,kBAAkB,GACrC,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './component.js';
|
|
2
|
+
export * from './menu-widget.js';
|
|
3
|
+
export * from './presence.js';
|
|
4
|
+
export { installConsentLanguage } from './language.js';
|
|
5
|
+
export { createConsentWidgetService, appendConsentWidgetService, CONSENT_WIDGET_STATE } from './service.js';
|
|
6
|
+
export { appendConsentGeoPlugin } from './geo.js';
|
|
7
|
+
export { CONSENT_WIDGET_SERVICE } from './consts.js';
|
|
8
|
+
export { useConsent, useConsentCategory, consentStore, openConsent, isConsented, readConsent, writeConsent, clearConsent, DEFAULT_CONSENT_CATEGORIES, CONSENT_KEY, CONSENT_ESSENTIAL, CONSENT_ANALYTICS, CONSENT_MARKETING, CONSENT_EVENT, consentBootstrapScript, CONSENT_REQUIRED_COUNTRIES, } from '@owlmeans/web-consent';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/consent/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAC3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAKpD,OAAO,EACL,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EACtE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,0BAA0B,EACnE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EACpE,aAAa,EACb,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ConsentOptions } from '@owlmeans/web-consent';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated The interface language is strictly necessary storage: `@owlmeans/client-i18n` writes
|
|
4
|
+
* it on every switch and reads it at every start, and `@owlmeans/consent` stores a language that
|
|
5
|
+
* arrives with a link — none of it waits for a cookie decision, so there is nothing left to bind.
|
|
6
|
+
*
|
|
7
|
+
* Kept as a no-op (returning a no-op cleanup) only so an application written against the earlier,
|
|
8
|
+
* consent-gated API — a generated target that floats to a newer release — still builds. Remove the
|
|
9
|
+
* call.
|
|
10
|
+
*/
|
|
11
|
+
export declare const installConsentLanguage: (_opts?: ConsentOptions) => (() => void);
|
|
12
|
+
//# sourceMappingURL=language.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../src/consent/language.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,WAAY,cAAc,KAAG,CAAC,MAAM,IAAI,CAAoB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated The interface language is strictly necessary storage: `@owlmeans/client-i18n` writes
|
|
3
|
+
* it on every switch and reads it at every start, and `@owlmeans/consent` stores a language that
|
|
4
|
+
* arrives with a link — none of it waits for a cookie decision, so there is nothing left to bind.
|
|
5
|
+
*
|
|
6
|
+
* Kept as a no-op (returning a no-op cleanup) only so an application written against the earlier,
|
|
7
|
+
* consent-gated API — a generated target that floats to a newer release — still builds. Remove the
|
|
8
|
+
* call.
|
|
9
|
+
*/
|
|
10
|
+
export const installConsentLanguage = (_opts) => () => undefined;
|
|
11
|
+
//# sourceMappingURL=language.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../src/consent/language.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAsB,EAAgB,EAAE,CAAC,GAAG,EAAE,CAAC,SAAS,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { ConsentMenuWidgetProps } from '@owlmeans/web-consent';
|
|
3
|
+
/**
|
|
4
|
+
* The cookie-preferences row for a host's own dropdown/menu, bound to this app's language.
|
|
5
|
+
*
|
|
6
|
+
* Purely the visual row — it carries no presence signalling of its own, since it is typically
|
|
7
|
+
* rendered inside a dropdown's lazily-mounted content (only present while the menu is actually
|
|
8
|
+
* open). A host that wants `PanelCookieConsent`'s floating button hidden for the whole time this
|
|
9
|
+
* row is REACHABLE (not just while the dropdown happens to be open) calls
|
|
10
|
+
* `useConsentMenuPresence()` from its own always-mounted menu shell instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PanelConsentMenuWidget: FC<ConsentMenuWidgetProps>;
|
|
13
|
+
//# sourceMappingURL=menu-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-widget.d.ts","sourceRoot":"","sources":["../../src/consent/menu-widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAInE;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,sBAAsB,CAM7D,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ConsentMenuWidget } from '@owlmeans/web-consent';
|
|
3
|
+
import { useLanguage } from '@owlmeans/client-i18n';
|
|
4
|
+
import { useConsentTranslate } from './translate.js';
|
|
5
|
+
/**
|
|
6
|
+
* The cookie-preferences row for a host's own dropdown/menu, bound to this app's language.
|
|
7
|
+
*
|
|
8
|
+
* Purely the visual row — it carries no presence signalling of its own, since it is typically
|
|
9
|
+
* rendered inside a dropdown's lazily-mounted content (only present while the menu is actually
|
|
10
|
+
* open). A host that wants `PanelCookieConsent`'s floating button hidden for the whole time this
|
|
11
|
+
* row is REACHABLE (not just while the dropdown happens to be open) calls
|
|
12
|
+
* `useConsentMenuPresence()` from its own always-mounted menu shell instead.
|
|
13
|
+
*/
|
|
14
|
+
export const PanelConsentMenuWidget = props => {
|
|
15
|
+
const [lng] = useLanguage();
|
|
16
|
+
const locale = props.locale ?? lng;
|
|
17
|
+
const translate = useConsentTranslate(locale, props.translate);
|
|
18
|
+
return _jsx(ConsentMenuWidget, { ...props, locale: locale, translate: translate });
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=menu-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-widget.js","sourceRoot":"","sources":["../../src/consent/menu-widget.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAA+B,KAAK,CAAC,EAAE;IACxE,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,EAAE,CAAA;IAC3B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,GAAG,CAAA;IAClC,MAAM,SAAS,GAAG,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IAE9D,OAAO,KAAC,iBAAiB,OAAK,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CAAA;AAC/E,CAAC,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a cookie-preferences action is currently reachable elsewhere in this app — what
|
|
3
|
+
* `PanelCookieConsent` reads to hide its own floating button while it is.
|
|
4
|
+
*
|
|
5
|
+
* Reads the state resource directly, never `useConsent()` — that hook's own mount triggers
|
|
6
|
+
* `consentStore.init()` as a side effect, which this must not do. The resource exists only once
|
|
7
|
+
* `appendConsentWidgetService(context)` has run; `PanelCookieConsent` checks for the service before
|
|
8
|
+
* calling this, and so must any other caller.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useConsentWidgetPresent: () => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Declares that a cookie-preferences action is reachable for as long as the CALLING component
|
|
13
|
+
* stays mounted.
|
|
14
|
+
*
|
|
15
|
+
* Call this from a component that is mounted for the whole time the action is reachable — a
|
|
16
|
+
* dropdown/menu's own shell, not the menu's lazily-rendered content. Radix's `DropdownMenuContent`
|
|
17
|
+
* (and most headless menu content primitives) only mount their children while the menu is actually
|
|
18
|
+
* OPEN, so a `PanelConsentMenuWidget` row placed there is present for a fraction of the time the
|
|
19
|
+
* menu itself is on screen — calling this hook from inside that row hid the floating button only
|
|
20
|
+
* while the dropdown happened to be open, and showed it again the instant it closed.
|
|
21
|
+
*
|
|
22
|
+
* A layout effect, not a plain one: an ordinary effect runs after paint, so the floating button
|
|
23
|
+
* would flash for one frame before a fresh mount reports presence.
|
|
24
|
+
*
|
|
25
|
+
* Without `appendConsentWidgetService(context)` there is nothing to claim and this does nothing:
|
|
26
|
+
* `PanelCookieConsent` then keeps its floating button, which is visible on screen, rather than a
|
|
27
|
+
* throw from a layout effect, which takes the whole application down.
|
|
28
|
+
*/
|
|
29
|
+
export declare const useConsentMenuPresence: () => void;
|
|
30
|
+
//# sourceMappingURL=presence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../src/consent/presence.ts"],"names":[],"mappings":"AAOA;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAI1C,CAAA;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,QAAO,IAIzC,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useLayoutEffect } from 'react';
|
|
2
|
+
import { useStoreModel } from '@owlmeans/client';
|
|
3
|
+
import { useContext } from '../context.js';
|
|
4
|
+
import { CONSENT_WIDGET_STATE } from './service.js';
|
|
5
|
+
/**
|
|
6
|
+
* Whether a cookie-preferences action is currently reachable elsewhere in this app — what
|
|
7
|
+
* `PanelCookieConsent` reads to hide its own floating button while it is.
|
|
8
|
+
*
|
|
9
|
+
* Reads the state resource directly, never `useConsent()` — that hook's own mount triggers
|
|
10
|
+
* `consentStore.init()` as a side effect, which this must not do. The resource exists only once
|
|
11
|
+
* `appendConsentWidgetService(context)` has run; `PanelCookieConsent` checks for the service before
|
|
12
|
+
* calling this, and so must any other caller.
|
|
13
|
+
*/
|
|
14
|
+
export const useConsentWidgetPresent = () => {
|
|
15
|
+
const model = useStoreModel(undefined, CONSENT_WIDGET_STATE);
|
|
16
|
+
return model.record.present === true;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Declares that a cookie-preferences action is reachable for as long as the CALLING component
|
|
20
|
+
* stays mounted.
|
|
21
|
+
*
|
|
22
|
+
* Call this from a component that is mounted for the whole time the action is reachable — a
|
|
23
|
+
* dropdown/menu's own shell, not the menu's lazily-rendered content. Radix's `DropdownMenuContent`
|
|
24
|
+
* (and most headless menu content primitives) only mount their children while the menu is actually
|
|
25
|
+
* OPEN, so a `PanelConsentMenuWidget` row placed there is present for a fraction of the time the
|
|
26
|
+
* menu itself is on screen — calling this hook from inside that row hid the floating button only
|
|
27
|
+
* while the dropdown happened to be open, and showed it again the instant it closed.
|
|
28
|
+
*
|
|
29
|
+
* A layout effect, not a plain one: an ordinary effect runs after paint, so the floating button
|
|
30
|
+
* would flash for one frame before a fresh mount reports presence.
|
|
31
|
+
*
|
|
32
|
+
* Without `appendConsentWidgetService(context)` there is nothing to claim and this does nothing:
|
|
33
|
+
* `PanelCookieConsent` then keeps its floating button, which is visible on screen, rather than a
|
|
34
|
+
* throw from a layout effect, which takes the whole application down.
|
|
35
|
+
*/
|
|
36
|
+
export const useConsentMenuPresence = () => {
|
|
37
|
+
const context = useContext();
|
|
38
|
+
useLayoutEffect(() => context.consentWidget?.().claim(), [context]);
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=presence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presence.js","sourceRoot":"","sources":["../../src/consent/presence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAInD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAY,EAAE;IACnD,MAAM,KAAK,GAAG,aAAa,CAA8B,SAAS,EAAE,oBAAoB,CAAC,CAAA;IAEzF,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,KAAK,IAAI,CAAA;AACtC,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAS,EAAE;IAC/C,MAAM,OAAO,GAAG,UAAU,EAA0E,CAAA;IAEpG,eAAe,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;AACrE,CAAC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ClientConfig } from '@owlmeans/client-context';
|
|
2
|
+
import type { ClientContext } from '@owlmeans/client';
|
|
3
|
+
import type { ConsentWidgetPresenceRecord, ConsentWidgetService, ConsentWidgetServiceAppend } from './types.js';
|
|
4
|
+
/** The presence flag's state-resource alias — `single: true`, no id. */
|
|
5
|
+
export declare const CONSENT_WIDGET_STATE: import("@owlmeans/state").StateAlias<ConsentWidgetPresenceRecord>;
|
|
6
|
+
/**
|
|
7
|
+
* Tracks how many cookie-preferences menu rows are currently mounted, and publishes a plain
|
|
8
|
+
* present/absent flag into a state resource for `PanelCookieConsent` to read.
|
|
9
|
+
*
|
|
10
|
+
* Ref-counted rather than a boolean latch: a nav-mode transition can mount a new menu row before
|
|
11
|
+
* the old one unmounts (confirmed reachable in manager-web's own nav — a stale header still
|
|
12
|
+
* rendering its own dropdown for one commit while a project screen's dropdown has already
|
|
13
|
+
* mounted), and React 18 StrictMode double-invokes mount/cleanup in dev. Counting means the
|
|
14
|
+
* published flag only ever flips on a genuine 0-to-1 or 1-to-0 transition.
|
|
15
|
+
*/
|
|
16
|
+
export declare const createConsentWidgetService: (alias?: string) => ConsentWidgetService;
|
|
17
|
+
export declare const appendConsentWidgetService: <C extends ClientConfig, T extends ClientContext<C>>(ctx: T, alias?: string) => T & ConsentWidgetServiceAppend;
|
|
18
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/consent/service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,KAAK,EACV,2BAA2B,EAAE,oBAAoB,EAAE,0BAA0B,EAC9E,MAAM,YAAY,CAAA;AAEnB,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,mEAAqE,CAAA;AAEtG;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,WAC9B,MAAM,KACZ,oBAgCF,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,CAAC,SAAS,YAAY,EAAE,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,OACtF,CAAC,UAAS,MAAM,KACpB,CAAC,GAAG,0BAcN,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createService } from '@owlmeans/context';
|
|
2
|
+
import { appendStateResource, stateAlias } from '@owlmeans/state';
|
|
3
|
+
import { CONSENT_WIDGET_SERVICE } from './consts.js';
|
|
4
|
+
/** The presence flag's state-resource alias — `single: true`, no id. */
|
|
5
|
+
export const CONSENT_WIDGET_STATE = stateAlias('consent-widget-presence');
|
|
6
|
+
/**
|
|
7
|
+
* Tracks how many cookie-preferences menu rows are currently mounted, and publishes a plain
|
|
8
|
+
* present/absent flag into a state resource for `PanelCookieConsent` to read.
|
|
9
|
+
*
|
|
10
|
+
* Ref-counted rather than a boolean latch: a nav-mode transition can mount a new menu row before
|
|
11
|
+
* the old one unmounts (confirmed reachable in manager-web's own nav — a stale header still
|
|
12
|
+
* rendering its own dropdown for one commit while a project screen's dropdown has already
|
|
13
|
+
* mounted), and React 18 StrictMode double-invokes mount/cleanup in dev. Counting means the
|
|
14
|
+
* published flag only ever flips on a genuine 0-to-1 or 1-to-0 transition.
|
|
15
|
+
*/
|
|
16
|
+
export const createConsentWidgetService = (alias = CONSENT_WIDGET_SERVICE) => {
|
|
17
|
+
let count = 0;
|
|
18
|
+
const publish = (present) => {
|
|
19
|
+
const ctx = service.assertCtx();
|
|
20
|
+
void ctx.getStateResource(CONSENT_WIDGET_STATE).save({ present });
|
|
21
|
+
};
|
|
22
|
+
const service = createService(alias, {
|
|
23
|
+
claim: () => {
|
|
24
|
+
count += 1;
|
|
25
|
+
if (count === 1) {
|
|
26
|
+
publish(true);
|
|
27
|
+
}
|
|
28
|
+
let released = false;
|
|
29
|
+
return () => {
|
|
30
|
+
if (released) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
released = true;
|
|
34
|
+
count = Math.max(0, count - 1);
|
|
35
|
+
if (count === 0) {
|
|
36
|
+
publish(false);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
present: () => count > 0,
|
|
41
|
+
});
|
|
42
|
+
return service;
|
|
43
|
+
};
|
|
44
|
+
export const appendConsentWidgetService = (ctx, alias = CONSENT_WIDGET_SERVICE) => {
|
|
45
|
+
const _ctx = ctx;
|
|
46
|
+
appendStateResource(ctx, CONSENT_WIDGET_STATE, { single: true, default: () => ({ present: false }) });
|
|
47
|
+
if (!_ctx.hasService(alias)) {
|
|
48
|
+
_ctx.registerService(createConsentWidgetService(alias));
|
|
49
|
+
}
|
|
50
|
+
_ctx.consentWidget = () => _ctx.service(alias);
|
|
51
|
+
return _ctx;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/consent/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAGjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAKpD,wEAAwE;AACxE,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAA8B,yBAAyB,CAAC,CAAA;AAEtG;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,KAAK,GAAW,sBAAsB,EAChB,EAAE;IACxB,IAAI,KAAK,GAAG,CAAC,CAAA;IAEb,MAAM,OAAO,GAAG,CAAC,OAAgB,EAAQ,EAAE;QACzC,MAAM,GAAG,GAAG,OAAO,CAAC,SAAS,EAA6C,CAAA;QAC1E,KAAK,GAAG,CAAC,gBAAgB,CAA8B,oBAAoB,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IAChG,CAAC,CAAA;IAED,MAAM,OAAO,GAAyB,aAAa,CAAuB,KAAK,EAAE;QAC/E,KAAK,EAAE,GAAG,EAAE;YACV,KAAK,IAAI,CAAC,CAAA;YACV,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBAChB,OAAO,CAAC,IAAI,CAAC,CAAA;YACf,CAAC;YAED,IAAI,QAAQ,GAAG,KAAK,CAAA;YACpB,OAAO,GAAG,EAAE;gBACV,IAAI,QAAQ,EAAE,CAAC;oBACb,OAAM;gBACR,CAAC;gBACD,QAAQ,GAAG,IAAI,CAAA;gBACf,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAA;gBAC9B,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;oBAChB,OAAO,CAAC,KAAK,CAAC,CAAA;gBAChB,CAAC;YACH,CAAC,CAAA;QACH,CAAC;QAED,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC;KACzB,CAAC,CAAA;IAEF,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,GAAM,EAAE,KAAK,GAAW,sBAAsB,EACd,EAAE;IAClC,MAAM,IAAI,GAAG,GAAqC,CAAA;IAElD,mBAAmB,CACjB,GAAG,EAAE,oBAAoB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CACjF,CAAA;IAED,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,CAAA;IACzD,CAAC;IAED,IAAI,CAAC,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAE9C,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve consent copy through the application first, and the packaged bundle second.
|
|
3
|
+
*
|
|
4
|
+
* The chain matters. `@owlmeans/web-consent` takes `translate` as a prop and, once given one,
|
|
5
|
+
* stops consulting its own translations — so a wrapper that forwarded the framework resolver
|
|
6
|
+
* alone would render the ENGLISH default for every key the application had not overridden, in
|
|
7
|
+
* every language. Falling through to the packaged bundle for the current locale means an
|
|
8
|
+
* application overrides what it wants to and inherits the packaged languages for the rest.
|
|
9
|
+
*
|
|
10
|
+
* Shared by `PanelCookieConsent`/`PanelCookiePolicy` and `PanelConsentMenuWidget` — every
|
|
11
|
+
* `web-panel/consent` surface resolves copy through this one chain.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useConsentTranslate: (locale: string, override?: (key: string, defaultValue: string) => string) => ((key: string, defaultValue: string) => string);
|
|
14
|
+
//# sourceMappingURL=translate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../src/consent/translate.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,WACtB,MAAM,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,KACvE,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,CAYhD,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
import { useI18nLib } from '@owlmeans/client-i18n';
|
|
3
|
+
import { consentI18nHelper } from '@owlmeans/web-consent';
|
|
4
|
+
/**
|
|
5
|
+
* Resolve consent copy through the application first, and the packaged bundle second.
|
|
6
|
+
*
|
|
7
|
+
* The chain matters. `@owlmeans/web-consent` takes `translate` as a prop and, once given one,
|
|
8
|
+
* stops consulting its own translations — so a wrapper that forwarded the framework resolver
|
|
9
|
+
* alone would render the ENGLISH default for every key the application had not overridden, in
|
|
10
|
+
* every language. Falling through to the packaged bundle for the current locale means an
|
|
11
|
+
* application overrides what it wants to and inherits the packaged languages for the rest.
|
|
12
|
+
*
|
|
13
|
+
* Shared by `PanelCookieConsent`/`PanelCookiePolicy` and `PanelConsentMenuWidget` — every
|
|
14
|
+
* `web-panel/consent` surface resolves copy through this one chain.
|
|
15
|
+
*/
|
|
16
|
+
export const useConsentTranslate = (locale, override) => {
|
|
17
|
+
const t = useI18nLib('consent');
|
|
18
|
+
return useCallback((key, defaultValue) => {
|
|
19
|
+
if (override != null) {
|
|
20
|
+
return override(key, defaultValue);
|
|
21
|
+
}
|
|
22
|
+
const packaged = consentI18nHelper.defaultConsentTranslate(locale)(key, defaultValue);
|
|
23
|
+
// `t` answers with whatever it is given when the key is unknown, so the packaged string is
|
|
24
|
+
// what it is given — an application's override wins, and everything else stays translated.
|
|
25
|
+
return t(key, { defaultValue: packaged });
|
|
26
|
+
}, [t, locale, override]);
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=translate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../../src/consent/translate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,MAAc,EAAE,QAAwD,EACvB,EAAE;IACnD,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;IAE/B,OAAO,WAAW,CAAC,CAAC,GAAW,EAAE,YAAoB,EAAE,EAAE;QACvD,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YACrB,OAAO,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC,CAAA;QACpC,CAAC;QACD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,YAAY,CAAC,CAAA;QACrF,2FAA2F;QAC3F,2FAA2F;QAC3F,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAA;IAC3C,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;AAC3B,CAAC,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ResourceRecord } from '@owlmeans/resource';
|
|
2
|
+
import type { InitializedService } from '@owlmeans/context';
|
|
3
|
+
import type { ConsentDisplayMode, ConsentGeoOptions, ConsentGeoPlugin } from '@owlmeans/web-consent';
|
|
4
|
+
/**
|
|
5
|
+
* `cfg.cookieConsent` — how the application's cookie consent asks, set where the rest of its
|
|
6
|
+
* configuration is. A prop on `PanelCookieConsent` / `PanelCookiePolicy` always wins.
|
|
7
|
+
*/
|
|
8
|
+
export interface PanelCookieConsentConfig {
|
|
9
|
+
/** `bar` (the default) or `window` — see `ConsentDisplayMode`. */
|
|
10
|
+
mode?: ConsentDisplayMode;
|
|
11
|
+
/**
|
|
12
|
+
* Ask only where the law requires it. `{ cloudflare: true }` locates the visitor through the
|
|
13
|
+
* Cloudflare edge the application is served from; a locator of the application's own is added in
|
|
14
|
+
* code with `appendConsentGeoPlugin`. See `ConsentGeoOptions`.
|
|
15
|
+
*/
|
|
16
|
+
geo?: ConsentGeoOptions;
|
|
17
|
+
}
|
|
18
|
+
/** What `appendConsentGeoPlugin` adds to the context. */
|
|
19
|
+
export interface ConsentGeoPluginAppend {
|
|
20
|
+
/** The application's own locator, registered while the context was configured. */
|
|
21
|
+
consentGeo: () => ConsentGeoPlugin;
|
|
22
|
+
}
|
|
23
|
+
/** A `single`-store presence flag: one record, no id needed. */
|
|
24
|
+
export interface ConsentWidgetPresenceRecord extends ResourceRecord {
|
|
25
|
+
present: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ConsentWidgetService extends InitializedService {
|
|
28
|
+
/**
|
|
29
|
+
* Register one mounted cookie-preferences menu row. Returns its release — call it exactly
|
|
30
|
+
* once, on that instance's unmount.
|
|
31
|
+
*/
|
|
32
|
+
claim: () => () => void;
|
|
33
|
+
/** Whether at least one row is currently mounted anywhere in the app. */
|
|
34
|
+
present: () => boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface ConsentWidgetServiceAppend {
|
|
37
|
+
consentWidget: () => ConsentWidgetService;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/consent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAEpG;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,kEAAkE;IAClE,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB;;;;OAIG;IACH,GAAG,CAAC,EAAE,iBAAiB,CAAA;CACxB;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,kFAAkF;IAClF,UAAU,EAAE,MAAM,gBAAgB,CAAA;CACnC;AAED,gEAAgE;AAChE,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IACjE,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D;;;OAGG;IACH,KAAK,EAAE,MAAM,MAAM,IAAI,CAAA;IACvB,yEAAyE;IACzE,OAAO,EAAE,MAAM,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,oBAAoB,CAAA;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/consent/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CookieConsentProps } from '@owlmeans/web-consent';
|
|
2
|
+
export interface BoundCookieConsentProps extends CookieConsentProps {
|
|
3
|
+
/** Whether a host menu currently offers the preferences row — see `useConsentMenuPresence`. */
|
|
4
|
+
menuPresent?: boolean;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=types.local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.local.d.ts","sourceRoot":"","sources":["../../src/consent/types.local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,+FAA+F;IAC/F,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.local.js","sourceRoot":"","sources":["../../src/consent/types.local.ts"],"names":[],"mappings":""}
|
package/build/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAG,UAAU,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAG,UAAU,EAAE,MAAM,YAAY,CAAA;AAMxD,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,KAAG,CAmBlF,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,SAAS,GAAG,SAAS,EAAC,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,QACnF,CAAA"}
|
package/build/context.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { appendFlowService } from '@owlmeans/web-flow';
|
|
2
2
|
import { makeContext as makeClientContext, useContext as useCtx } from '@owlmeans/web-client';
|
|
3
3
|
import { apiConfigMiddleware } from '@owlmeans/api-config-client';
|
|
4
|
+
import { appendLoginScreen } from './components/login/append.js';
|
|
5
|
+
import { appendSocketStatus } from '@owlmeans/client-socket';
|
|
4
6
|
export const makeContext = (cfg) => {
|
|
5
7
|
const context = makeClientContext(cfg);
|
|
6
8
|
context.registerMiddleware(apiConfigMiddleware);
|
|
7
9
|
appendFlowService(context);
|
|
8
10
|
context.flow = () => context.service('flow');
|
|
11
|
+
// Registered unconditionally — cheap, and it is what lets `SocketReloadDialog` and
|
|
12
|
+
// `useSocketStatus()` work at all. It stays inert for an app that never opts into
|
|
13
|
+
// `cfg.socket.reloadDialog`: nothing renders, and every `ws()`/`useWs()` connection reporting
|
|
14
|
+
// into it costs one map write per state change.
|
|
15
|
+
appendSocketStatus(context);
|
|
16
|
+
// Every app on this package gets the shadcn sign-in screen with no wiring of its own; one that
|
|
17
|
+
// wants its logo on it calls `appendLoginScreen` again, which is idempotent.
|
|
18
|
+
appendLoginScreen(context);
|
|
9
19
|
return context;
|
|
10
20
|
};
|
|
11
21
|
export const useContext = () => useCtx();
|
package/build/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAG,CAA+C,GAAM,EAAK,EAAE;IACrF,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAM,CAAA;IAE3C,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE/C,iBAAiB,CAAO,OAAO,CAAC,CAAA;IAChC,OAAO,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IAE5C,mFAAmF;IACnF,kFAAkF;IAClF,8FAA8F;IAC9F,gDAAgD;IAChD,kBAAkB,CAAO,OAAO,CAAC,CAAA;IAEjC,+FAA+F;IAC/F,6EAA6E;IAC7E,iBAAiB,CAAO,OAAO,CAAC,CAAA;IAEhC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,GAA4E,EAAE,CACtG,MAAM,EAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/editor/component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAW/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6J1C,CAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
3
|
+
import { basicSetup } from 'codemirror';
|
|
4
|
+
import { Compartment, EditorState } from '@codemirror/state';
|
|
5
|
+
import { EditorView } from '@codemirror/view';
|
|
6
|
+
import { syntaxHighlighting } from '@codemirror/language';
|
|
7
|
+
import { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
8
|
+
import { linter } from '@codemirror/lint';
|
|
9
|
+
import { Braces, Check, Copy, LockKeyhole, WrapText } from 'lucide-react';
|
|
10
|
+
import { Button } from '../@/components/ui/button.js';
|
|
11
|
+
import { cn } from '../@/lib/utils.js';
|
|
12
|
+
import { EDITOR_THEME, JSON_HIGHLIGHT, LABELS } from './consts.local.js';
|
|
13
|
+
export const JsonEditor = ({ value, onChange, onValidityChange, readOnly = false, id, ariaLabel = 'JSON', testId, className, minHeight = 120, maxHeight = 560, labels }) => {
|
|
14
|
+
const copy = { ...LABELS, ...labels };
|
|
15
|
+
const errorId = useId();
|
|
16
|
+
const mount = useRef(null);
|
|
17
|
+
const editor = useRef(null);
|
|
18
|
+
const callback = useRef(onChange);
|
|
19
|
+
const external = useRef(false);
|
|
20
|
+
const [access] = useState(() => new Compartment());
|
|
21
|
+
const [attributes] = useState(() => new Compartment());
|
|
22
|
+
const [copied, setCopied] = useState(false);
|
|
23
|
+
const [copyFailed, setCopyFailed] = useState(false);
|
|
24
|
+
const error = useMemo(() => {
|
|
25
|
+
try {
|
|
26
|
+
JSON.parse(value);
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
catch (cause) {
|
|
30
|
+
return cause instanceof Error ? cause.message : String(cause);
|
|
31
|
+
}
|
|
32
|
+
}, [value]);
|
|
33
|
+
callback.current = onChange;
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (mount.current == null)
|
|
36
|
+
return;
|
|
37
|
+
const view = new EditorView({
|
|
38
|
+
parent: mount.current,
|
|
39
|
+
doc: value,
|
|
40
|
+
extensions: [
|
|
41
|
+
basicSetup,
|
|
42
|
+
json(),
|
|
43
|
+
linter(jsonParseLinter()),
|
|
44
|
+
EDITOR_THEME,
|
|
45
|
+
syntaxHighlighting(JSON_HIGHLIGHT),
|
|
46
|
+
EditorView.lineWrapping,
|
|
47
|
+
access.of([EditorState.readOnly.of(readOnly), EditorView.editable.of(!readOnly)]),
|
|
48
|
+
attributes.of(EditorView.contentAttributes.of({ 'aria-label': ariaLabel })),
|
|
49
|
+
EditorView.updateListener.of((update) => {
|
|
50
|
+
if (update.docChanged && !external.current)
|
|
51
|
+
callback.current?.(update.state.doc.toString());
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
editor.current = view;
|
|
56
|
+
return () => {
|
|
57
|
+
view.destroy();
|
|
58
|
+
editor.current = null;
|
|
59
|
+
};
|
|
60
|
+
}, []);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
const view = editor.current;
|
|
63
|
+
if (view == null || view.state.doc.toString() === value)
|
|
64
|
+
return;
|
|
65
|
+
external.current = true;
|
|
66
|
+
view.dispatch({ changes: { from: 0, to: view.state.doc.length, insert: value } });
|
|
67
|
+
external.current = false;
|
|
68
|
+
}, [value]);
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
editor.current?.dispatch({
|
|
71
|
+
effects: [
|
|
72
|
+
access.reconfigure([EditorState.readOnly.of(readOnly), EditorView.editable.of(!readOnly)]),
|
|
73
|
+
attributes.reconfigure(EditorView.contentAttributes.of({
|
|
74
|
+
...(id != null ? { id } : {}),
|
|
75
|
+
...(testId != null ? { 'data-testid': testId } : {}),
|
|
76
|
+
'aria-label': ariaLabel,
|
|
77
|
+
'aria-readonly': String(readOnly),
|
|
78
|
+
'aria-invalid': String(error != null),
|
|
79
|
+
...(error != null ? { 'aria-describedby': errorId } : {})
|
|
80
|
+
}))
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
}, [readOnly, id, testId, ariaLabel, error]);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
onValidityChange?.(error == null);
|
|
86
|
+
}, [error, onValidityChange]);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
setCopied(false);
|
|
89
|
+
setCopyFailed(false);
|
|
90
|
+
}, [value]);
|
|
91
|
+
const copyText = async () => {
|
|
92
|
+
try {
|
|
93
|
+
await navigator.clipboard.writeText(value);
|
|
94
|
+
setCopied(true);
|
|
95
|
+
setCopyFailed(false);
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
setCopyFailed(true);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
return (_jsxs("div", { "data-json-editor": true, "data-valid": error == null, className: cn('min-w-0 overflow-hidden rounded-lg border bg-background text-foreground shadow-xs focus-within:ring-2 focus-within:ring-ring/40', error != null && 'border-destructive', className), children: [_jsxs("div", { className: "flex min-h-10 flex-wrap items-center justify-between gap-2 border-b bg-muted/50 px-3 py-1", children: [_jsxs("span", { className: "inline-flex items-center gap-2 font-mono text-xs text-muted-foreground", children: [_jsx(Braces, { className: "size-3.5", "aria-hidden": "true" }), "JSON", readOnly && (_jsxs("span", { className: "inline-flex items-center gap-1 font-sans", children: [_jsx(LockKeyhole, { className: "size-3" }), copy.readOnly] }))] }), _jsxs("div", { className: "flex items-center gap-1", children: [!readOnly && (_jsxs(Button, { type: "button", size: "sm", variant: "ghost", disabled: error != null, onClick: () => onChange?.(JSON.stringify(JSON.parse(value), null, 2)), children: [_jsx(WrapText, { className: "size-3.5" }), copy.format] })), _jsxs(Button, { type: "button", size: "sm", variant: "ghost", onClick: () => void copyText(), children: [copied ? _jsx(Check, { className: "size-3.5" }) : _jsx(Copy, { className: "size-3.5" }), copied ? copy.copied : copyFailed ? copy.copyFailed : copy.copy] })] })] }), _jsx("div", { ref: mount, className: "[&_.cm-scroller]:max-h-[var(--json-max-height)] [&_.cm-scroller]:min-h-[var(--json-min-height)]", style: { '--json-min-height': `${minHeight}px`, '--json-max-height': `${maxHeight}px` } }), _jsx("div", { className: cn('border-t px-3 py-1.5 text-xs', error != null ? 'text-destructive' : 'text-muted-foreground'), "aria-live": "polite", id: errorId, children: error != null ? `${copy.invalid}: ${error}` : copy.valid })] }));
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=component.js.map
|
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,GAAG,EAAE,CAAC,KAAK,QAAQ,EAAE,aAC3E,MAAM,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,SAAS,EAAC,UAAU,GAAG,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,SAAS,EAAC,UAAU,GAAG,EACvE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IACzD,IACL,IACF,EACN,cACE,GAAG,EAAE,KAAK,EACV,SAAS,EAAC,iGAAiG,EAC3G,KAAK,EAAE,EAAE,mBAAmB,EAAE,GAAG,SAAS,IAAI,EAAE,mBAAmB,EAAE,GAAG,SAAS,IAAI,EAAyB,GAC9G,EACF,cACE,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,uBAAuB,CAAC,eACjG,QAAQ,EAClB,EAAE,EAAE,OAAO,YAEV,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GACrD,IACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HighlightStyle } from '@codemirror/language';
|
|
2
|
+
import type { JsonEditorLabels } from './types.js';
|
|
3
|
+
export declare const LABELS: JsonEditorLabels;
|
|
4
|
+
export declare const EDITOR_THEME: import("@codemirror/state").Extension;
|
|
5
|
+
export declare const JSON_HIGHLIGHT: HighlightStyle;
|
|
6
|
+
//# sourceMappingURL=consts.local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../src/editor/consts.local.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,eAAO,MAAM,MAAM,EAAE,gBAQpB,CAAA;AAED,eAAO,MAAM,YAAY,uCA6BvB,CAAA;AAEF,eAAO,MAAM,cAAc,gBAezB,CAAA"}
|