@pontive/pontkit-core 1.40.0 → 1.42.0
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 +129 -195
- package/catalog.json +31 -2378
- package/dist/{pont2/core → core}/controllers/action.d.ts +10 -10
- package/dist/{pont2/core → core}/controllers/copy.d.ts +3 -3
- package/dist/{pont2/core → core}/design-mode.d.ts +3 -3
- package/dist/{pont2/core → core}/events.d.ts +4 -4
- package/dist/core/format.d.ts +46 -0
- package/dist/{pont2/core → core}/host-element.d.ts +8 -8
- package/dist/{pont2/core → core}/icons.d.ts +5 -0
- package/dist/{pont2/core → core}/ids.d.ts +1 -1
- package/dist/{pont2/core → core}/index.d.ts +1 -0
- package/dist/core/messages.d.ts +197 -0
- package/dist/{pont2/core → core}/names.d.ts +23 -23
- package/dist/{pont2/core → core}/popup/anchored.d.ts +6 -6
- package/dist/{pont2/core → core}/popup/popup-content.d.ts +2 -2
- package/dist/{pont2/core → core}/popup/popup-root.d.ts +5 -5
- package/dist/{pont2/core → core}/url.d.ts +2 -2
- package/dist/{pont2/custom-elements.json → custom-elements.json} +24665 -18922
- package/dist/{pont2/globals.css → globals.css} +14 -14
- package/dist/index.d.ts +51 -12
- package/dist/index.mjs +11138 -40562
- package/dist/index.mjs.map +1 -1
- package/dist/kit/account-menu/account-menu.d.ts +115 -0
- package/dist/kit/account-settings/account-settings.d.ts +157 -0
- package/dist/kit/account-settings/profile.d.ts +74 -0
- package/dist/{pont2/kit → kit}/alert/alert.d.ts +12 -12
- package/dist/kit/aliases.d.ts +33 -0
- package/dist/{pont2/kit → kit}/auth-button/auth-button.d.ts +23 -23
- package/dist/{pont2/kit → kit}/auth-button/providers.d.ts +2 -2
- package/dist/{pont2/kit → kit}/auth-field/auth-field.d.ts +24 -24
- package/dist/{pont2/kit → kit}/auth-field/password-field.d.ts +15 -15
- package/dist/{pont2/kit → kit}/avatar/avatar.d.ts +9 -9
- package/dist/{pont2/kit → kit}/badge-selector/badge-selector.d.ts +5 -5
- package/dist/{pont2/kit → kit}/block/block.d.ts +15 -15
- package/dist/{pont2/kit → kit}/block/branding.d.ts +5 -5
- package/dist/{pont2/kit → kit}/consent/consent.d.ts +7 -7
- package/dist/{pont2/kit → kit}/container/container.d.ts +6 -6
- package/dist/{pont2/kit → kit}/countdown/countdown.d.ts +10 -10
- package/dist/{pont2/kit → kit}/data-table/data-table.d.ts +11 -11
- package/dist/{pont2/kit → kit}/divider/divider.d.ts +4 -4
- package/dist/{pont2/kit → kit}/edit-identifier/edit-identifier.d.ts +8 -8
- package/dist/{pont2/kit → kit}/flow-widget/flow-widget.d.ts +27 -27
- package/dist/kit/flow-widget/preview.d.ts +46 -0
- package/dist/{pont2/kit → kit}/flow-widget/specimens.d.ts +2 -2
- package/dist/{pont2/kit → kit}/gap/gap.d.ts +6 -6
- package/dist/{pont2/kit → kit}/header/header.d.ts +9 -9
- package/dist/{pont2/kit → kit}/index.d.ts +4 -0
- package/dist/{pont2/kit → kit}/input-otp/input-otp.d.ts +14 -14
- package/dist/{pont2/kit → kit}/layout/flow-error.d.ts +1 -1
- package/dist/{pont2/kit → kit}/layout/layout.d.ts +24 -24
- package/dist/{pont2/kit → kit}/link/link.d.ts +15 -15
- package/dist/{pont2/kit → kit}/logo/logo.d.ts +7 -7
- package/dist/kit/member-management/errors.d.ts +60 -0
- package/dist/kit/member-management/member-management.d.ts +237 -0
- package/dist/kit/member-management/roles.d.ts +42 -0
- package/dist/{pont2/kit → kit}/multi-email-input/multi-email-input.d.ts +6 -6
- package/dist/{pont2/kit → kit}/multi-select-filter/multi-select-filter.d.ts +5 -5
- package/dist/kit/organization-switcher/organization-switcher.d.ts +111 -0
- package/dist/{pont2/kit → kit}/otp-field/otp-field.d.ts +17 -17
- package/dist/{pont2/kit → kit}/otp-field/otp-resend.d.ts +10 -10
- package/dist/{pont2/kit → kit}/pagination/pagination.d.ts +7 -7
- package/dist/kit/provider/account-client.d.ts +355 -0
- package/dist/kit/provider/account-controller.d.ts +47 -0
- package/dist/kit/provider/account-user.d.ts +16 -0
- package/dist/{pont2/kit → kit}/provider/contexts.d.ts +7 -7
- package/dist/{pont2/kit → kit}/provider/provider.d.ts +70 -38
- package/dist/{pont2/kit → kit}/provider/redirect.d.ts +3 -3
- package/dist/{pont2/kit → kit}/provider/runtime-config.d.ts +1 -1
- package/dist/{pont2/kit → kit}/provider/sdk.d.ts +16 -2
- package/dist/{pont2/kit → kit}/provider/signed-in.d.ts +15 -15
- package/dist/{pont2/kit → kit}/provider/widget-messages.d.ts +1 -1
- package/dist/{pont2/kit → kit}/provider-field/provider-field.d.ts +13 -13
- package/dist/{pont2/kit → kit}/qr-code/qr-code.d.ts +13 -13
- package/dist/{pont2/kit → kit}/recovery-codes/recovery-codes.d.ts +13 -13
- package/dist/{pont2/kit → kit}/scope-list/scope-list.d.ts +8 -8
- package/dist/{pont2/kit → kit}/secret/secret.d.ts +11 -11
- package/dist/{pont2/kit → kit}/typography/typography.d.ts +15 -15
- package/dist/{pont2/kit → kit}/watermark/watermark.d.ts +8 -8
- package/dist/{pont2/primitives → primitives}/alert/alert.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/alert-dialog/alert-dialog.d.ts +40 -40
- package/dist/{pont2/primitives → primitives}/avatar/avatar.d.ts +16 -16
- package/dist/{pont2/primitives → primitives}/badge/badge.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/button/button.d.ts +10 -10
- package/dist/{pont2/primitives → primitives}/button-group/button-group.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/card/card.d.ts +17 -17
- package/dist/{pont2/primitives → primitives}/checkbox/checkbox.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/combobox/combobox.d.ts +35 -35
- package/dist/{pont2/primitives → primitives}/dialog/dialog.d.ts +37 -37
- package/dist/{pont2/primitives → primitives}/drawer/drawer.d.ts +31 -31
- package/dist/{pont2/primitives → primitives}/dropdown-menu/dropdown-menu.d.ts +47 -47
- package/dist/{pont2/primitives → primitives}/empty/empty.d.ts +12 -12
- package/dist/{pont2/primitives → primitives}/field/field.d.ts +31 -31
- package/dist/{pont2/primitives → primitives}/hover-card/hover-card.d.ts +13 -13
- package/dist/{pont2/primitives → primitives}/input/input.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/input-group/input-group.d.ts +20 -20
- package/dist/{pont2/primitives → primitives}/input-otp/input-otp.d.ts +11 -11
- package/dist/{pont2/primitives → primitives}/item/item.d.ts +22 -22
- package/dist/{pont2/primitives → primitives}/kbd/kbd.d.ts +6 -6
- package/dist/{pont2/primitives → primitives}/label/label.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/native-select/native-select.d.ts +7 -7
- package/dist/{pont2/primitives → primitives}/pagination/pagination.d.ts +25 -25
- package/dist/{pont2/primitives → primitives}/popover/popover.d.ts +25 -25
- package/dist/{pont2/primitives → primitives}/progress/progress.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/radio-group/radio-group.d.ts +7 -7
- package/dist/{pont2/primitives → primitives}/select/select.d.ts +26 -26
- package/dist/{pont2/primitives → primitives}/separator/separator.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/sheet/sheet.d.ts +31 -31
- package/dist/{pont2/primitives → primitives}/skeleton/skeleton.d.ts +2 -2
- package/dist/{pont2/primitives → primitives}/slider/slider-math.d.ts +1 -1
- package/dist/{pont2/primitives → primitives}/slider/slider.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/sonner/sonner.d.ts +7 -7
- package/dist/{pont2/primitives → primitives}/sonner/toast-store.d.ts +1 -1
- package/dist/{pont2/primitives → primitives}/spinner/spinner.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/switch/switch.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/table/table.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/tabs/tabs.d.ts +13 -13
- package/dist/{pont2/primitives → primitives}/textarea/textarea.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/tooltip/tooltip.d.ts +13 -13
- package/dist/styles.css +5928 -29700
- package/dist/{pont2/theme → theme}/fonts.d.ts +6 -4
- package/dist/{pont2/theme → theme}/golden.d.ts +1 -1
- package/dist/{pont2/theme → theme}/index.d.ts +3 -3
- package/dist/theme/scopes.d.ts +21 -0
- package/dist/{pont2/theme → theme}/shadcn.d.ts +1 -1
- package/dist/{pont2/theme → theme}/types.d.ts +21 -10
- package/dist/{pont2/theme → theme}/value.d.ts +1 -1
- package/dist/{pont2/theme → theme}/vocabulary.d.ts +5 -5
- package/dist/theme-golden.json +1493 -0
- package/dist/theme.mjs +552 -0
- package/dist/theme.mjs.map +1 -0
- package/dist/{pont2/tokens.json → tokens.json} +3633 -2311
- package/package.json +28 -65
- package/custom-elements.json +0 -1
- package/dist/assets/icons/account.icon.d.ts +0 -1
- package/dist/assets/icons/badge-check-icon.d.ts +0 -1
- package/dist/assets/icons/burger-menu.icon.d.ts +0 -1
- package/dist/assets/icons/check.d.ts +0 -1
- package/dist/assets/icons/clock-icon.d.ts +0 -1
- package/dist/assets/icons/close.icon.d.ts +0 -1
- package/dist/assets/icons/copy.icon.d.ts +0 -1
- package/dist/assets/icons/edit.icon.d.ts +0 -1
- package/dist/assets/icons/email.d.ts +0 -1
- package/dist/assets/icons/image-icon.d.ts +0 -1
- package/dist/assets/icons/index.d.ts +0 -20
- package/dist/assets/icons/link-icon.d.ts +0 -1
- package/dist/assets/icons/location.icon.d.ts +0 -1
- package/dist/assets/icons/members-icon.d.ts +0 -1
- package/dist/assets/icons/personal-info.icon.d.ts +0 -1
- package/dist/assets/icons/plusIcon.d.ts +0 -1
- package/dist/assets/icons/refresh-cw-icon.d.ts +0 -1
- package/dist/assets/icons/search-icon.d.ts +0 -1
- package/dist/assets/icons/triangle-alert.d.ts +0 -1
- package/dist/assets/icons/url.icon.d.ts +0 -1
- package/dist/assets/icons/user-round-check-icon.d.ts +0 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/renderers/auth/button/_passkey-button.d.ts +0 -81
- package/dist/components/renderers/auth/button/_provider-button.d.ts +0 -103
- package/dist/components/renderers/auth/button/_submit-button.d.ts +0 -71
- package/dist/components/renderers/auth/button/button.defs.d.ts +0 -21
- package/dist/components/renderers/auth/button/button.stories/passkey-button.stories.d.ts +0 -12
- package/dist/components/renderers/auth/button/button.stories/provider-button.stories.d.ts +0 -24
- package/dist/components/renderers/auth/button/button.stories/submit-button.stories.d.ts +0 -12
- package/dist/components/renderers/auth/button/button.types.d.ts +0 -54
- package/dist/components/renderers/auth/button/index.d.ts +0 -11
- package/dist/components/renderers/auth/edit-identifier/_edit-identifier.d.ts +0 -33
- package/dist/components/renderers/auth/edit-identifier/edit-identifier.defs.d.ts +0 -2
- package/dist/components/renderers/auth/edit-identifier/edit-identifier.types.d.ts +0 -7
- package/dist/components/renderers/auth/edit-identifier/index.d.ts +0 -7
- package/dist/components/renderers/auth/field/_confirm-field.d.ts +0 -168
- package/dist/components/renderers/auth/field/_email-field.d.ts +0 -160
- package/dist/components/renderers/auth/field/_identifier-field.d.ts +0 -171
- package/dist/components/renderers/auth/field/_name-field.d.ts +0 -186
- package/dist/components/renderers/auth/field/_password-field.d.ts +0 -230
- package/dist/components/renderers/auth/field/_phone-field.d.ts +0 -160
- package/dist/components/renderers/auth/field/_username-field.d.ts +0 -186
- package/dist/components/renderers/auth/field/field.defs.d.ts +0 -24
- package/dist/components/renderers/auth/field/field.stories/confirm-field.stories.d.ts +0 -14
- package/dist/components/renderers/auth/field/field.stories/email-field.stories.d.ts +0 -13
- package/dist/components/renderers/auth/field/field.stories/helpers.d.ts +0 -2
- package/dist/components/renderers/auth/field/field.stories/identifier-field.stories.d.ts +0 -25
- package/dist/components/renderers/auth/field/field.stories/name-field.stories.d.ts +0 -14
- package/dist/components/renderers/auth/field/field.stories/password-field.stories.d.ts +0 -15
- package/dist/components/renderers/auth/field/field.stories/phone-field.stories.d.ts +0 -13
- package/dist/components/renderers/auth/field/field.stories/username-field.stories.d.ts +0 -13
- package/dist/components/renderers/auth/field/field.types.d.ts +0 -120
- package/dist/components/renderers/auth/field/index.d.ts +0 -19
- package/dist/components/renderers/auth/form/_form.d.ts +0 -76
- package/dist/components/renderers/auth/form/form.defs.d.ts +0 -7
- package/dist/components/renderers/auth/form/form.stories.d.ts +0 -7
- package/dist/components/renderers/auth/form/form.types.d.ts +0 -19
- package/dist/components/renderers/auth/form/index.d.ts +0 -7
- package/dist/components/renderers/auth/index.d.ts +0 -10
- package/dist/components/renderers/auth/otp/_otp-resend.d.ts +0 -46
- package/dist/components/renderers/auth/otp/_otp.d.ts +0 -58
- package/dist/components/renderers/auth/otp/index.d.ts +0 -9
- package/dist/components/renderers/auth/otp/otp.defs.d.ts +0 -2
- package/dist/components/renderers/auth/otp/otp.stories.d.ts +0 -5
- package/dist/components/renderers/auth/otp/otp.types.d.ts +0 -25
- package/dist/components/renderers/auth/provider-field/_provider-field.d.ts +0 -124
- package/dist/components/renderers/auth/provider-field/index.d.ts +0 -7
- package/dist/components/renderers/auth/provider-field/provider-field.stories.d.ts +0 -25
- package/dist/components/renderers/auth/provider-field/provider-field.types.d.ts +0 -17
- package/dist/components/renderers/auth/qr-code/_qr-code.d.ts +0 -36
- package/dist/components/renderers/auth/qr-code/index.d.ts +0 -7
- package/dist/components/renderers/auth/qr-code/qr-code.defs.d.ts +0 -2
- package/dist/components/renderers/auth/qr-code/qr-code.stories.d.ts +0 -5
- package/dist/components/renderers/auth/qr-code/qr-code.types.d.ts +0 -11
- package/dist/components/renderers/auth/recovery-codes/_recovery-codes.d.ts +0 -31
- package/dist/components/renderers/auth/recovery-codes/index.d.ts +0 -1
- package/dist/components/renderers/auth/recovery-codes/recovery-codes.defs.d.ts +0 -2
- package/dist/components/renderers/auth/recovery-codes/recovery-codes.stories.d.ts +0 -5
- package/dist/components/renderers/auth/recovery-codes/recovery-codes.types.d.ts +0 -11
- package/dist/components/renderers/auth/scope-list/_scope-list.d.ts +0 -44
- package/dist/components/renderers/auth/scope-list/index.d.ts +0 -7
- package/dist/components/renderers/auth/scope-list/scope-list.defs.d.ts +0 -2
- package/dist/components/renderers/auth/scope-list/scope-list.stories.d.ts +0 -8
- package/dist/components/renderers/auth/scope-list/scope-list.types.d.ts +0 -20
- package/dist/components/renderers/auth/scope-list/scope-list.value.d.ts +0 -14
- package/dist/components/renderers/auth/secret/_secret.d.ts +0 -30
- package/dist/components/renderers/auth/secret/index.d.ts +0 -7
- package/dist/components/renderers/auth/secret/secret.defs.d.ts +0 -2
- package/dist/components/renderers/auth/secret/secret.stories.d.ts +0 -5
- package/dist/components/renderers/auth/secret/secret.types.d.ts +0 -12
- package/dist/components/renderers/feedback/alert/_alert.d.ts +0 -61
- package/dist/components/renderers/feedback/alert/alert.defs.d.ts +0 -7
- package/dist/components/renderers/feedback/alert/alert.stories.d.ts +0 -11
- package/dist/components/renderers/feedback/alert/alert.types.d.ts +0 -14
- package/dist/components/renderers/feedback/alert/index.d.ts +0 -7
- package/dist/components/renderers/feedback/countdown/_countdown.d.ts +0 -45
- package/dist/components/renderers/feedback/countdown/countdown.defs.d.ts +0 -9
- package/dist/components/renderers/feedback/countdown/countdown.stories.d.ts +0 -7
- package/dist/components/renderers/feedback/countdown/index.d.ts +0 -1
- package/dist/components/renderers/feedback/index.d.ts +0 -2
- package/dist/components/renderers/index.d.ts +0 -6
- package/dist/components/renderers/layout/block/_block.d.ts +0 -41
- package/dist/components/renderers/layout/block/block.stories.d.ts +0 -8
- package/dist/components/renderers/layout/block/block.types.d.ts +0 -10
- package/dist/components/renderers/layout/block/index.d.ts +0 -7
- package/dist/components/renderers/layout/container/_container.d.ts +0 -24
- package/dist/components/renderers/layout/container/container.stories.d.ts +0 -19
- package/dist/components/renderers/layout/container/container.types.d.ts +0 -7
- package/dist/components/renderers/layout/container/index.d.ts +0 -7
- package/dist/components/renderers/layout/divider/_divider.d.ts +0 -27
- package/dist/components/renderers/layout/divider/divider.stories.d.ts +0 -6
- package/dist/components/renderers/layout/divider/divider.types.d.ts +0 -6
- package/dist/components/renderers/layout/divider/index.d.ts +0 -7
- package/dist/components/renderers/layout/gap/_gap.d.ts +0 -9
- package/dist/components/renderers/layout/gap/gap.stories.d.ts +0 -7
- package/dist/components/renderers/layout/gap/gap.types.d.ts +0 -6
- package/dist/components/renderers/layout/gap/index.d.ts +0 -7
- package/dist/components/renderers/layout/header/_header.d.ts +0 -28
- package/dist/components/renderers/layout/header/header.stories.d.ts +0 -7
- package/dist/components/renderers/layout/header/header.types.d.ts +0 -9
- package/dist/components/renderers/layout/header/index.d.ts +0 -7
- package/dist/components/renderers/layout/index.d.ts +0 -5
- package/dist/components/renderers/navigation/external-link/_external-link.d.ts +0 -26
- package/dist/components/renderers/navigation/external-link/external-link.defs.d.ts +0 -2
- package/dist/components/renderers/navigation/external-link/external-link.href.d.ts +0 -9
- package/dist/components/renderers/navigation/external-link/external-link.stories.d.ts +0 -7
- package/dist/components/renderers/navigation/external-link/external-link.types.d.ts +0 -5
- package/dist/components/renderers/navigation/external-link/index.d.ts +0 -7
- package/dist/components/renderers/navigation/index.d.ts +0 -2
- package/dist/components/renderers/navigation/link/_link.d.ts +0 -76
- package/dist/components/renderers/navigation/link/index.d.ts +0 -7
- package/dist/components/renderers/navigation/link/link.defs.d.ts +0 -3
- package/dist/components/renderers/navigation/link/link.stories.d.ts +0 -9
- package/dist/components/renderers/navigation/link/link.types.d.ts +0 -12
- package/dist/components/renderers/typography/index.d.ts +0 -2
- package/dist/components/renderers/typography/subtitle/_subtitle.d.ts +0 -23
- package/dist/components/renderers/typography/subtitle/index.d.ts +0 -1
- package/dist/components/renderers/typography/subtitle/subtitle.defs.d.ts +0 -7
- package/dist/components/renderers/typography/subtitle/subtitle.stories.d.ts +0 -9
- package/dist/components/renderers/typography/title/_title.d.ts +0 -28
- package/dist/components/renderers/typography/title/index.d.ts +0 -1
- package/dist/components/renderers/typography/title/title.defs.d.ts +0 -10
- package/dist/components/renderers/typography/title/title.stories.d.ts +0 -10
- package/dist/components/renderers/visuals/index.d.ts +0 -2
- package/dist/components/renderers/visuals/logo/_logo.d.ts +0 -27
- package/dist/components/renderers/visuals/logo/index.d.ts +0 -7
- package/dist/components/renderers/visuals/logo/logo.stories.d.ts +0 -17
- package/dist/components/renderers/visuals/logo/logo.types.d.ts +0 -6
- package/dist/components/renderers/visuals/watermark/_watermark.d.ts +0 -68
- package/dist/components/renderers/visuals/watermark/index.d.ts +0 -7
- package/dist/components/renderers/visuals/watermark/watermark.defs.d.ts +0 -4
- package/dist/components/renderers/visuals/watermark/watermark.stories.d.ts +0 -8
- package/dist/components/renderers/visuals/watermark/watermark.types.d.ts +0 -11
- package/dist/components/ui/badge-selector/badge-selector.d.ts +0 -49
- package/dist/components/ui/hint/index.d.ts +0 -6
- package/dist/components/ui/index.d.ts +0 -7
- package/dist/components/ui/modal/index.d.ts +0 -12
- package/dist/components/ui/multi-email-input/multi-email-input.d.ts +0 -32
- package/dist/components/ui/multi-select-filter/pont-multi-select-filter.d.ts +0 -18
- package/dist/components/ui/paginator/paginator.d.ts +0 -16
- package/dist/components/ui/pont-sidedrawer/pont-sidedrawer.d.ts +0 -23
- package/dist/components/widgets/flow-widget.d.ts +0 -32
- package/dist/components/widgets/index.d.ts +0 -9
- package/dist/components/widgets/pont-account-menu/index.d.ts +0 -1
- package/dist/components/widgets/pont-account-menu/pont-account-menu.d.ts +0 -95
- package/dist/components/widgets/pont-account-settings/index.d.ts +0 -3
- package/dist/components/widgets/pont-account-settings/pont-account-settings.d.ts +0 -76
- package/dist/components/widgets/pont-account-settings/profile/classes.d.ts +0 -18
- package/dist/components/widgets/pont-account-settings/profile/components/account-info.d.ts +0 -116
- package/dist/components/widgets/pont-account-settings/profile/components/index.d.ts +0 -4
- package/dist/components/widgets/pont-account-settings/profile/components/location-info.d.ts +0 -45
- package/dist/components/widgets/pont-account-settings/profile/components/personal-info.d.ts +0 -57
- package/dist/components/widgets/pont-account-settings/profile/components/urls-info.d.ts +0 -38
- package/dist/components/widgets/pont-account-settings/profile/index.d.ts +0 -2
- package/dist/components/widgets/pont-account-settings/profile/pont-profile.d.ts +0 -24
- package/dist/components/widgets/pont-account-settings/security-settings/index.d.ts +0 -1
- package/dist/components/widgets/pont-account-settings/security-settings/security-settings.d.ts +0 -12
- package/dist/components/widgets/pont-account-settings/sidebar/classes.d.ts +0 -8
- package/dist/components/widgets/pont-account-settings/sidebar/sidebar.d.ts +0 -27
- package/dist/components/widgets/pont-consent/consent-api.d.ts +0 -56
- package/dist/components/widgets/pont-consent/pont-consent.d.ts +0 -50
- package/dist/components/widgets/pont-invitation/pont-invitation.d.ts +0 -23
- package/dist/components/widgets/pont-member-management/components/action-modal.d.ts +0 -35
- package/dist/components/widgets/pont-member-management/components/index.d.ts +0 -5
- package/dist/components/widgets/pont-member-management/components/invitations-panel.d.ts +0 -44
- package/dist/components/widgets/pont-member-management/components/invite-members-form.d.ts +0 -32
- package/dist/components/widgets/pont-member-management/components/manage-roles-form.d.ts +0 -36
- package/dist/components/widgets/pont-member-management/components/members-panel.d.ts +0 -51
- package/dist/components/widgets/pont-member-management/components/page-range.d.ts +0 -5
- package/dist/components/widgets/pont-member-management/components/role-badges.d.ts +0 -5
- package/dist/components/widgets/pont-member-management/components/role-options.d.ts +0 -20
- package/dist/components/widgets/pont-member-management/errors.d.ts +0 -32
- package/dist/components/widgets/pont-member-management/index.d.ts +0 -1
- package/dist/components/widgets/pont-member-management/pont-member-management.d.ts +0 -125
- package/dist/components/widgets/pont-member-management/types.d.ts +0 -5
- package/dist/components/widgets/pont-organization-switcher/index.d.ts +0 -1
- package/dist/components/widgets/pont-organization-switcher/pont-organization-switcher.d.ts +0 -64
- package/dist/components/widgets/pont-preview/pont-preview.d.ts +0 -19
- package/dist/components/widgets/pont-signin/pont-signin.d.ts +0 -4
- package/dist/components/widgets/pont-signup/pont-signup.d.ts +0 -4
- package/dist/components/wrappers/base-element/base-element.d.ts +0 -19
- package/dist/components/wrappers/index.d.ts +0 -7
- package/dist/components/wrappers/layout/layout.d.ts +0 -93
- package/dist/components/wrappers/pont-auth-state/pont-auth-state.d.ts +0 -12
- package/dist/components/wrappers/pont-authenticated/pont-authenticated.d.ts +0 -27
- package/dist/components/wrappers/pont-provider/pont-provider.d.ts +0 -113
- package/dist/components/wrappers/pont-signed-in/pont-signed-in.d.ts +0 -11
- package/dist/components/wrappers/pont-signed-out/pont-signed-out.d.ts +0 -11
- package/dist/constants/classes.d.ts +0 -9
- package/dist/constants/components.d.ts +0 -6
- package/dist/constants/index.d.ts +0 -4
- package/dist/constants/regex.d.ts +0 -4
- package/dist/constants/styles.d.ts +0 -1
- package/dist/context/auth-context.d.ts +0 -17
- package/dist/context/branding-context.d.ts +0 -52
- package/dist/context/customization-context.d.ts +0 -4
- package/dist/context/design-context.d.ts +0 -47
- package/dist/context/env-context.d.ts +0 -4
- package/dist/context/index.d.ts +0 -8
- package/dist/context/locale-context.d.ts +0 -3
- package/dist/context/render-spec.d.ts +0 -3
- package/dist/context/user-context.d.ts +0 -8
- package/dist/context-root.d.ts +0 -1
- package/dist/element-tag-map.d.ts +0 -106
- package/dist/events/account-settings.d.ts +0 -10
- package/dist/events/index.d.ts +0 -15
- package/dist/events/locales.d.ts +0 -6
- package/dist/events/member-management.d.ts +0 -10
- package/dist/funcs/env.d.ts +0 -3
- package/dist/funcs/index.d.ts +0 -1
- package/dist/i18n/messages.d.ts +0 -60
- package/dist/index.js +0 -6417
- package/dist/index.js.map +0 -1
- package/dist/legacy.css +0 -25448
- package/dist/pont2/core/messages.d.ts +0 -92
- package/dist/pont2/index.d.ts +0 -51
- package/dist/pont2/index.mjs +0 -8269
- package/dist/pont2/index.mjs.map +0 -1
- package/dist/pont2/kit/aliases.d.ts +0 -33
- package/dist/pont2/kit/flow-widget/preview.d.ts +0 -46
- package/dist/pont2/kit/provider/coexistence.d.ts +0 -19
- package/dist/pont2/migration/catalog.d.ts +0 -29
- package/dist/pont2/migration/legacy-markup.d.ts +0 -36
- package/dist/pont2/styles.css +0 -7793
- package/dist/pont2/theme/scopes.d.ts +0 -13
- package/dist/pont2/theme/tokens.json.d.ts +0 -8515
- package/dist/pont2/theme-golden.json +0 -1240
- package/dist/pont2/theme.mjs +0 -425
- package/dist/pont2/theme.mjs.map +0 -1
- package/dist/pont2/with-legacy.css +0 -8
- package/dist/primitives/assets/icons/anchor.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/app-window.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrow-right.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrow-up-circle.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/arrow-up-right.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrow-up.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrows.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/asterisk.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-alert.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-check.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-info.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-x.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/bell.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/bookmark.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/brand-javascript.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/captions.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/carousel-arrow-left.d.ts +0 -1
- package/dist/primitives/assets/icons/carousel-arrow-right.d.ts +0 -1
- package/dist/primitives/assets/icons/chart.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/check.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/chevron-right.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/chorven-down.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/circle-alert.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/circle-check.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/circle-fading-arrow-up.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/circle-x.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/circle.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/close.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/cloud.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/code.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/copy.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/corner-down-left.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/credit-card.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/decrease.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/dot.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/down.d.ts +0 -1
- package/dist/primitives/assets/icons/external-link.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/eye-off.d.ts +0 -1
- package/dist/primitives/assets/icons/eye-off.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/eye-on.d.ts +0 -1
- package/dist/primitives/assets/icons/file-code.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/folder-code.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/git-branch-minus.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/git-branch-plus.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/help-circle.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/house.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/inbox.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/index.d.ts +0 -67
- package/dist/primitives/assets/icons/info.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/loader-circle.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/mail-warning.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/mail.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/minus.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/plus.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/rabbit.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/radio-group.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/radio.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/refresh-ccw.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/refresh-cw.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/search.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/settings.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/shield-alert.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/shopping-bag.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/star.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/tick.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/up-down.d.ts +0 -1
- package/dist/primitives/assets/icons/up.d.ts +0 -1
- package/dist/primitives/assets/icons/wand.icon.d.ts +0 -2
- package/dist/primitives/components/index.d.ts +0 -1
- package/dist/primitives/components/ui/accordion/accordion-content.d.ts +0 -20
- package/dist/primitives/components/ui/accordion/accordion-item.d.ts +0 -21
- package/dist/primitives/components/ui/accordion/accordion-trigger.d.ts +0 -17
- package/dist/primitives/components/ui/accordion/accordion.d.ts +0 -25
- package/dist/primitives/components/ui/accordion/accordion.defs.d.ts +0 -10
- package/dist/primitives/components/ui/accordion/accordion.stories.d.ts +0 -10
- package/dist/primitives/components/ui/accordion/accordion.styles.d.ts +0 -4
- package/dist/primitives/components/ui/alert/_alert-action.d.ts +0 -21
- package/dist/primitives/components/ui/alert/_alert-description.d.ts +0 -21
- package/dist/primitives/components/ui/alert/_alert-title.d.ts +0 -20
- package/dist/primitives/components/ui/alert/_alert.d.ts +0 -25
- package/dist/primitives/components/ui/alert/alert.d.ts +0 -16
- package/dist/primitives/components/ui/alert/alert.defs.d.ts +0 -4
- package/dist/primitives/components/ui/alert/alert.stories.d.ts +0 -12
- package/dist/primitives/components/ui/aspect-ratio/aspect-ratio.d.ts +0 -16
- package/dist/primitives/components/ui/aspect-ratio/aspect-ratio.stories.d.ts +0 -4
- package/dist/primitives/components/ui/aspect-ratio/aspect-ratio.styles.d.ts +0 -4
- package/dist/primitives/components/ui/avatar/_avatar-badge.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-fallback.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-group-count.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-group.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-image.d.ts +0 -28
- package/dist/primitives/components/ui/avatar/_avatar.d.ts +0 -65
- package/dist/primitives/components/ui/avatar/avatar.d.ts +0 -20
- package/dist/primitives/components/ui/avatar/avatar.defs.d.ts +0 -8
- package/dist/primitives/components/ui/avatar/avatar.stories.d.ts +0 -13
- package/dist/primitives/components/ui/badge/_badge.d.ts +0 -43
- package/dist/primitives/components/ui/badge/badge.d.ts +0 -10
- package/dist/primitives/components/ui/badge/badge.defs.d.ts +0 -8
- package/dist/primitives/components/ui/badge/badge.stories.d.ts +0 -10
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-ellipsis.d.ts +0 -11
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-item.d.ts +0 -14
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-link.d.ts +0 -15
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-list.d.ts +0 -14
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-separator.d.ts +0 -11
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-text.d.ts +0 -14
- package/dist/primitives/components/ui/breadcrumb/breadcrumb.d.ts +0 -21
- package/dist/primitives/components/ui/breadcrumb/breadcrumb.stories.d.ts +0 -4
- package/dist/primitives/components/ui/breadcrumb/breadcrumb.styles.d.ts +0 -4
- package/dist/primitives/components/ui/button/_button.d.ts +0 -62
- package/dist/primitives/components/ui/button/button.d.ts +0 -10
- package/dist/primitives/components/ui/button/button.defs.d.ts +0 -14
- package/dist/primitives/components/ui/button/button.stories.d.ts +0 -13
- package/dist/primitives/components/ui/calendar/calendar.d.ts +0 -24
- package/dist/primitives/components/ui/calendar/calendar.helpers.d.ts +0 -3
- package/dist/primitives/components/ui/calendar/calendar.stories.d.ts +0 -4
- package/dist/primitives/components/ui/calendar/calendar.style.d.ts +0 -38
- package/dist/primitives/components/ui/card/_card-action.d.ts +0 -21
- package/dist/primitives/components/ui/card/_card-content.d.ts +0 -20
- package/dist/primitives/components/ui/card/_card-description.d.ts +0 -21
- package/dist/primitives/components/ui/card/_card-footer.d.ts +0 -26
- package/dist/primitives/components/ui/card/_card-header.d.ts +0 -26
- package/dist/primitives/components/ui/card/_card-title.d.ts +0 -20
- package/dist/primitives/components/ui/card/_card.d.ts +0 -25
- package/dist/primitives/components/ui/card/card.d.ts +0 -22
- package/dist/primitives/components/ui/card/card.defs.d.ts +0 -10
- package/dist/primitives/components/ui/card/card.stories.d.ts +0 -11
- package/dist/primitives/components/ui/carousel/carousel.d.ts +0 -24
- package/dist/primitives/components/ui/carousel/carousel.stories.d.ts +0 -6
- package/dist/primitives/components/ui/carousel/carousel.styles.d.ts +0 -32
- package/dist/primitives/components/ui/checkbox/_checkbox.d.ts +0 -92
- package/dist/primitives/components/ui/checkbox/checkbox.d.ts +0 -10
- package/dist/primitives/components/ui/checkbox/checkbox.defs.d.ts +0 -11
- package/dist/primitives/components/ui/checkbox/checkbox.stories.d.ts +0 -13
- package/dist/primitives/components/ui/collapsible/collapsible-content.d.ts +0 -17
- package/dist/primitives/components/ui/collapsible/collapsible-trigger.d.ts +0 -17
- package/dist/primitives/components/ui/collapsible/collapsible.d.ts +0 -23
- package/dist/primitives/components/ui/collapsible/collapsible.stories.d.ts +0 -5
- package/dist/primitives/components/ui/combobox/combo-box-empty.d.ts +0 -14
- package/dist/primitives/components/ui/combobox/combo-box-group.d.ts +0 -37
- package/dist/primitives/components/ui/combobox/combo-box-input.d.ts +0 -17
- package/dist/primitives/components/ui/combobox/combo-box-item.d.ts +0 -25
- package/dist/primitives/components/ui/combobox/combo-box-trigger.d.ts +0 -18
- package/dist/primitives/components/ui/combobox/combo-box-value.d.ts +0 -18
- package/dist/primitives/components/ui/combobox/combo-box.d.ts +0 -35
- package/dist/primitives/components/ui/combobox/combo-box.stories.d.ts +0 -10
- package/dist/primitives/components/ui/combobox/combo-box.styles.d.ts +0 -14
- package/dist/primitives/components/ui/command/command-empty.atom.d.ts +0 -18
- package/dist/primitives/components/ui/command/command-group.atom.d.ts +0 -19
- package/dist/primitives/components/ui/command/command-input.atom.d.ts +0 -15
- package/dist/primitives/components/ui/command/command-item.atom.d.ts +0 -24
- package/dist/primitives/components/ui/command/command-list.atom.d.ts +0 -15
- package/dist/primitives/components/ui/command/command-separator.atom.d.ts +0 -14
- package/dist/primitives/components/ui/command/command.d.ts +0 -22
- package/dist/primitives/components/ui/command/command.helpers.d.ts +0 -6
- package/dist/primitives/components/ui/command/command.stories.d.ts +0 -6
- package/dist/primitives/components/ui/command/command.styles.d.ts +0 -15
- package/dist/primitives/components/ui/context-menu/context-menu-checkbox-Item.d.ts +0 -16
- package/dist/primitives/components/ui/context-menu/context-menu-content.d.ts +0 -14
- package/dist/primitives/components/ui/context-menu/context-menu-group.d.ts +0 -10
- package/dist/primitives/components/ui/context-menu/context-menu-item.d.ts +0 -13
- package/dist/primitives/components/ui/context-menu/context-menu-radio-item.d.ts +0 -16
- package/dist/primitives/components/ui/context-menu/context-menu-seperator.d.ts +0 -6
- package/dist/primitives/components/ui/context-menu/context-menu-shortcut.d.ts +0 -9
- package/dist/primitives/components/ui/context-menu/context-menu-trigger.d.ts +0 -5
- package/dist/primitives/components/ui/context-menu/context-menu.d.ts +0 -40
- package/dist/primitives/components/ui/context-menu/context-menu.helpers.d.ts +0 -1
- package/dist/primitives/components/ui/context-menu/context-menu.styles.d.ts +0 -20
- package/dist/primitives/components/ui/context-menu/contextMenu.stories.d.ts +0 -4
- package/dist/primitives/components/ui/data-table/data-table.d.ts +0 -102
- package/dist/primitives/components/ui/data-table/data-table.stories.d.ts +0 -6
- package/dist/primitives/components/ui/data-table/index.d.ts +0 -7
- package/dist/primitives/components/ui/date-picker/date-picker.d.ts +0 -12
- package/dist/primitives/components/ui/date-picker/date-picker.stories.d.ts +0 -4
- package/dist/primitives/components/ui/date-picker/date-picker.styles.d.ts +0 -5
- package/dist/primitives/components/ui/dialog/dialog-close.d.ts +0 -15
- package/dist/primitives/components/ui/dialog/dialog-content.d.ts +0 -15
- package/dist/primitives/components/ui/dialog/dialog-footer.d.ts +0 -9
- package/dist/primitives/components/ui/dialog/dialog-header.d.ts +0 -7
- package/dist/primitives/components/ui/dialog/dialog-overly.d.ts +0 -5
- package/dist/primitives/components/ui/dialog/dialog-trigger.d.ts +0 -11
- package/dist/primitives/components/ui/dialog/dialog.d.ts +0 -30
- package/dist/primitives/components/ui/dialog/dialog.stories.d.ts +0 -6
- package/dist/primitives/components/ui/dialog/dialog.styles.d.ts +0 -17
- package/dist/primitives/components/ui/drawer/drawer-close.d.ts +0 -15
- package/dist/primitives/components/ui/drawer/drawer-content.d.ts +0 -14
- package/dist/primitives/components/ui/drawer/drawer-description.d.ts +0 -9
- package/dist/primitives/components/ui/drawer/drawer-footer.d.ts +0 -9
- package/dist/primitives/components/ui/drawer/drawer-header.d.ts +0 -8
- package/dist/primitives/components/ui/drawer/drawer-overlay.d.ts +0 -5
- package/dist/primitives/components/ui/drawer/drawer-title.d.ts +0 -9
- package/dist/primitives/components/ui/drawer/drawer-trigger.d.ts +0 -11
- package/dist/primitives/components/ui/drawer/drawer.d.ts +0 -40
- package/dist/primitives/components/ui/drawer/drawer.helpers.d.ts +0 -2
- package/dist/primitives/components/ui/drawer/drawer.stories.d.ts +0 -4
- package/dist/primitives/components/ui/drawer/drawer.styles.d.ts +0 -14
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +0 -17
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-content.d.ts +0 -18
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-group.d.ts +0 -11
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-item.d.ts +0 -17
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -16
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +0 -8
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +0 -8
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -40
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu.helpers.d.ts +0 -3
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +0 -20
- package/dist/primitives/components/ui/dropdown-menu/dropdownMenu.stories.d.ts +0 -8
- package/dist/primitives/components/ui/empty/_empty-content.d.ts +0 -23
- package/dist/primitives/components/ui/empty/_empty-description.d.ts +0 -23
- package/dist/primitives/components/ui/empty/_empty-header.d.ts +0 -23
- package/dist/primitives/components/ui/empty/_empty-media.d.ts +0 -29
- package/dist/primitives/components/ui/empty/_empty-title.d.ts +0 -22
- package/dist/primitives/components/ui/empty/_empty.d.ts +0 -28
- package/dist/primitives/components/ui/empty/empty.d.ts +0 -20
- package/dist/primitives/components/ui/empty/empty.defs.d.ts +0 -7
- package/dist/primitives/components/ui/empty/empty.stories.d.ts +0 -10
- package/dist/primitives/components/ui/field/_field-content.d.ts +0 -23
- package/dist/primitives/components/ui/field/_field-description.d.ts +0 -23
- package/dist/primitives/components/ui/field/_field-error.d.ts +0 -25
- package/dist/primitives/components/ui/field/_field-group.d.ts +0 -28
- package/dist/primitives/components/ui/field/_field-label.d.ts +0 -27
- package/dist/primitives/components/ui/field/_field-legend.d.ts +0 -30
- package/dist/primitives/components/ui/field/_field-separator.d.ts +0 -42
- package/dist/primitives/components/ui/field/_field-set.d.ts +0 -22
- package/dist/primitives/components/ui/field/_field-title.d.ts +0 -22
- package/dist/primitives/components/ui/field/_field.d.ts +0 -36
- package/dist/primitives/components/ui/field/field.d.ts +0 -29
- package/dist/primitives/components/ui/field/field.defs.d.ts +0 -23
- package/dist/primitives/components/ui/field/field.stories.d.ts +0 -16
- package/dist/primitives/components/ui/form/form-context.d.ts +0 -4
- package/dist/primitives/components/ui/form/form-controller.d.ts +0 -28
- package/dist/primitives/components/ui/form/form-field-context.d.ts +0 -3
- package/dist/primitives/components/ui/form/form-item-context.d.ts +0 -7
- package/dist/primitives/components/ui/form/form.stories.d.ts +0 -5
- package/dist/primitives/components/ui/form/form.styles.d.ts +0 -7
- package/dist/primitives/components/ui/form/pont-form-controller.d.ts +0 -16
- package/dist/primitives/components/ui/form/pont-form-description.d.ts +0 -13
- package/dist/primitives/components/ui/form/pont-form-field.d.ts +0 -19
- package/dist/primitives/components/ui/form/pont-form-item.d.ts +0 -16
- package/dist/primitives/components/ui/form/pont-form-label.d.ts +0 -19
- package/dist/primitives/components/ui/form/pont-form-message.d.ts +0 -17
- package/dist/primitives/components/ui/form/pont-form.d.ts +0 -23
- package/dist/primitives/components/ui/hoverCard/hover-card-content.d.ts +0 -15
- package/dist/primitives/components/ui/hoverCard/hover-card-trigger.d.ts +0 -9
- package/dist/primitives/components/ui/hoverCard/hover-card.d.ts +0 -28
- package/dist/primitives/components/ui/hoverCard/hover-card.stories.d.ts +0 -4
- package/dist/primitives/components/ui/hoverCard/hover-card.styles.d.ts +0 -5
- package/dist/primitives/components/ui/index.d.ts +0 -50
- package/dist/primitives/components/ui/input/_input.d.ts +0 -163
- package/dist/primitives/components/ui/input/input.d.ts +0 -11
- package/dist/primitives/components/ui/input/input.defs.d.ts +0 -28
- package/dist/primitives/components/ui/input/input.stories.d.ts +0 -16
- package/dist/primitives/components/ui/input-group/_input-group-addon.d.ts +0 -32
- package/dist/primitives/components/ui/input-group/_input-group-button.d.ts +0 -59
- package/dist/primitives/components/ui/input-group/_input-group-input.d.ts +0 -140
- package/dist/primitives/components/ui/input-group/_input-group-text.d.ts +0 -22
- package/dist/primitives/components/ui/input-group/_input-group-textarea.d.ts +0 -114
- package/dist/primitives/components/ui/input-group/_input-group.d.ts +0 -22
- package/dist/primitives/components/ui/input-group/input-group.d.ts +0 -20
- package/dist/primitives/components/ui/input-group/input-group.defs.d.ts +0 -16
- package/dist/primitives/components/ui/input-group/input-group.stories.d.ts +0 -15
- package/dist/primitives/components/ui/input-otp/_input-otp-group.d.ts +0 -15
- package/dist/primitives/components/ui/input-otp/_input-otp-separator.d.ts +0 -15
- package/dist/primitives/components/ui/input-otp/_input-otp-slot.d.ts +0 -29
- package/dist/primitives/components/ui/input-otp/_input-otp.d.ts +0 -192
- package/dist/primitives/components/ui/input-otp/input-otp.d.ts +0 -16
- package/dist/primitives/components/ui/input-otp/input-otp.defs.d.ts +0 -28
- package/dist/primitives/components/ui/input-otp/input-otp.stories.d.ts +0 -12
- package/dist/primitives/components/ui/item/_item-actions.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-content.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-description.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-footer.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-group.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-header.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-media.d.ts +0 -28
- package/dist/primitives/components/ui/item/_item-separator.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-title.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item.d.ts +0 -42
- package/dist/primitives/components/ui/item/item.d.ts +0 -29
- package/dist/primitives/components/ui/item/item.defs.d.ts +0 -13
- package/dist/primitives/components/ui/item/item.stories.d.ts +0 -13
- package/dist/primitives/components/ui/kbd/_kbd-group.d.ts +0 -22
- package/dist/primitives/components/ui/kbd/_kbd.d.ts +0 -22
- package/dist/primitives/components/ui/kbd/kbd.d.ts +0 -12
- package/dist/primitives/components/ui/kbd/kbd.stories.d.ts +0 -8
- package/dist/primitives/components/ui/label/_label.d.ts +0 -26
- package/dist/primitives/components/ui/label/label.d.ts +0 -10
- package/dist/primitives/components/ui/label/label.defs.d.ts +0 -3
- package/dist/primitives/components/ui/label/label.stories.d.ts +0 -10
- package/dist/primitives/components/ui/menubar/menubar-checkbox.item.d.ts +0 -19
- package/dist/primitives/components/ui/menubar/menubar-content.d.ts +0 -19
- package/dist/primitives/components/ui/menubar/menubar-group.d.ts +0 -14
- package/dist/primitives/components/ui/menubar/menubar-item.d.ts +0 -17
- package/dist/primitives/components/ui/menubar/menubar-menu.d.ts +0 -30
- package/dist/primitives/components/ui/menubar/menubar-radio-item.d.ts +0 -19
- package/dist/primitives/components/ui/menubar/menubar-separator.d.ts +0 -13
- package/dist/primitives/components/ui/menubar/menubar-shortcut.d.ts +0 -9
- package/dist/primitives/components/ui/menubar/menubar-trigger.d.ts +0 -9
- package/dist/primitives/components/ui/menubar/menubar.d.ts +0 -33
- package/dist/primitives/components/ui/menubar/menubar.helpers.d.ts +0 -3
- package/dist/primitives/components/ui/menubar/menubar.stories.d.ts +0 -4
- package/dist/primitives/components/ui/menubar/menubar.styles.d.ts +0 -21
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-content.d.ts +0 -19
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-item.d.ts +0 -23
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-link.d.ts +0 -9
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-list.d.ts +0 -8
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-trigger.d.ts +0 -9
- package/dist/primitives/components/ui/navigation-menu/navigation-menu.d.ts +0 -24
- package/dist/primitives/components/ui/navigation-menu/navigation-menu.stories.d.ts +0 -4
- package/dist/primitives/components/ui/navigation-menu/navigation-menu.styles.d.ts +0 -9
- package/dist/primitives/components/ui/pagination/pagination-content.d.ts +0 -8
- package/dist/primitives/components/ui/pagination/pagination-ellipsis.d.ts +0 -8
- package/dist/primitives/components/ui/pagination/pagination-item.d.ts +0 -14
- package/dist/primitives/components/ui/pagination/pagination-link.d.ts +0 -14
- package/dist/primitives/components/ui/pagination/pagination-next.d.ts +0 -9
- package/dist/primitives/components/ui/pagination/pagination-previous.d.ts +0 -9
- package/dist/primitives/components/ui/pagination/pagination.d.ts +0 -26
- package/dist/primitives/components/ui/pagination/pagination.stories.d.ts +0 -4
- package/dist/primitives/components/ui/pagination/pagination.styles.d.ts +0 -18
- package/dist/primitives/components/ui/pagination/pagination.type.d.ts +0 -2
- package/dist/primitives/components/ui/password-input/_password-input.d.ts +0 -122
- package/dist/primitives/components/ui/password-input/password-input.d.ts +0 -10
- package/dist/primitives/components/ui/password-input/password-input.defs.d.ts +0 -3
- package/dist/primitives/components/ui/password-input/password-input.stories.d.ts +0 -8
- package/dist/primitives/components/ui/popover/popover-content.d.ts +0 -18
- package/dist/primitives/components/ui/popover/popover-trigger.d.ts +0 -12
- package/dist/primitives/components/ui/popover/popover.d.ts +0 -21
- package/dist/primitives/components/ui/popover/popover.stories.d.ts +0 -4
- package/dist/primitives/components/ui/popover/popover.style.d.ts +0 -5
- package/dist/primitives/components/ui/popover/popover.types.d.ts +0 -2
- package/dist/primitives/components/ui/progress/progress.d.ts +0 -11
- package/dist/primitives/components/ui/progress/progress.stories.d.ts +0 -4
- package/dist/primitives/components/ui/progress/progress.styles.d.ts +0 -4
- package/dist/primitives/components/ui/radio-group/_radio-group-item.d.ts +0 -98
- package/dist/primitives/components/ui/radio-group/_radio-group.d.ts +0 -184
- package/dist/primitives/components/ui/radio-group/radio-group.d.ts +0 -13
- package/dist/primitives/components/ui/radio-group/radio-group.defs.d.ts +0 -18
- package/dist/primitives/components/ui/radio-group/radio-group.stories.d.ts +0 -13
- package/dist/primitives/components/ui/scroll-area/scroll-area.d.ts +0 -12
- package/dist/primitives/components/ui/scroll-area/scroll-area.stories.d.ts +0 -4
- package/dist/primitives/components/ui/scroll-area/scroll-area.style.d.ts +0 -1
- package/dist/primitives/components/ui/select/index.d.ts +0 -25
- package/dist/primitives/components/ui/select/select-controller.d.ts +0 -16
- package/dist/primitives/components/ui/select/select-group.d.ts +0 -26
- package/dist/primitives/components/ui/select/select-item.d.ts +0 -26
- package/dist/primitives/components/ui/select/select-label.d.ts +0 -13
- package/dist/primitives/components/ui/select/select-list.d.ts +0 -10
- package/dist/primitives/components/ui/select/select-seperator.d.ts +0 -8
- package/dist/primitives/components/ui/select/select-trigger.d.ts +0 -35
- package/dist/primitives/components/ui/select/select-value.d.ts +0 -13
- package/dist/primitives/components/ui/select/select.d.ts +0 -18
- package/dist/primitives/components/ui/select/select.stories.d.ts +0 -10
- package/dist/primitives/components/ui/select/select.styles.d.ts +0 -20
- package/dist/primitives/components/ui/separator/_separator.d.ts +0 -21
- package/dist/primitives/components/ui/separator/separator.d.ts +0 -10
- package/dist/primitives/components/ui/separator/separator.defs.d.ts +0 -5
- package/dist/primitives/components/ui/separator/separator.stories.d.ts +0 -9
- package/dist/primitives/components/ui/skeleton/skeleton.d.ts +0 -10
- package/dist/primitives/components/ui/skeleton/skeleton.stories.d.ts +0 -4
- package/dist/primitives/components/ui/skeleton/skeleton.style.d.ts +0 -1
- package/dist/primitives/components/ui/spinner/_spinner.d.ts +0 -18
- package/dist/primitives/components/ui/spinner/spinner.d.ts +0 -10
- package/dist/primitives/components/ui/spinner/spinner.defs.d.ts +0 -15
- package/dist/primitives/components/ui/spinner/spinner.stories.d.ts +0 -11
- package/dist/primitives/components/ui/switch/_switch.d.ts +0 -146
- package/dist/primitives/components/ui/switch/switch.d.ts +0 -10
- package/dist/primitives/components/ui/switch/switch.defs.d.ts +0 -13
- package/dist/primitives/components/ui/switch/switch.stories.d.ts +0 -12
- package/dist/primitives/components/ui/table/table.d.ts +0 -17
- package/dist/primitives/components/ui/table/table.stories.d.ts +0 -4
- package/dist/primitives/components/ui/table/table.styles.d.ts +0 -39
- package/dist/primitives/components/ui/tabs/_tabs-content.d.ts +0 -29
- package/dist/primitives/components/ui/tabs/_tabs-list.d.ts +0 -29
- package/dist/primitives/components/ui/tabs/_tabs-trigger.d.ts +0 -46
- package/dist/primitives/components/ui/tabs/_tabs.d.ts +0 -28
- package/dist/primitives/components/ui/tabs/tabs.d.ts +0 -17
- package/dist/primitives/components/ui/tabs/tabs.defs.d.ts +0 -22
- package/dist/primitives/components/ui/tabs/tabs.helpers.d.ts +0 -24
- package/dist/primitives/components/ui/tabs/tabs.stories.d.ts +0 -13
- package/dist/primitives/components/ui/textarea/_textarea.d.ts +0 -131
- package/dist/primitives/components/ui/textarea/textarea.d.ts +0 -10
- package/dist/primitives/components/ui/textarea/textarea.defs.d.ts +0 -23
- package/dist/primitives/components/ui/textarea/textarea.stories.d.ts +0 -9
- package/dist/primitives/components/ui/toast/toast-action.d.ts +0 -26
- package/dist/primitives/components/ui/toast/toast-description.d.ts +0 -13
- package/dist/primitives/components/ui/toast/toast-title.d.ts +0 -13
- package/dist/primitives/components/ui/toast/toast-trigger.d.ts +0 -17
- package/dist/primitives/components/ui/toast/toast-view-port.d.ts +0 -23
- package/dist/primitives/components/ui/toast/toast.d.ts +0 -24
- package/dist/primitives/components/ui/toast/toast.stories.d.ts +0 -9
- package/dist/primitives/components/ui/toast/toast.style.d.ts +0 -19
- package/dist/primitives/components/ui/toast/toast.type.d.ts +0 -1
- package/dist/primitives/components/ui/toggle/toggle.d.ts +0 -28
- package/dist/primitives/components/ui/toggle/toggle.defs.d.ts +0 -27
- package/dist/primitives/components/ui/toggle/toggle.stories.d.ts +0 -5
- package/dist/primitives/components/ui/toggle/toggle.style.d.ts +0 -4
- package/dist/primitives/components/ui/toggle-group/toggle-group-item.d.ts +0 -42
- package/dist/primitives/components/ui/toggle-group/toggle-group.d.ts +0 -24
- package/dist/primitives/components/ui/toggle-group/toggle-group.defs.d.ts +0 -37
- package/dist/primitives/components/ui/toggle-group/toggle-group.stories.d.ts +0 -4
- package/dist/primitives/components/ui/toggle-group/toggle-group.style.d.ts +0 -5
- package/dist/primitives/components/ui/typography/_typography-blockquote.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-code.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-h.d.ts +0 -27
- package/dist/primitives/components/ui/typography/_typography-large.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-lead.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-list.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-muted.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-p.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-small.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-table.d.ts +0 -13
- package/dist/primitives/components/ui/typography/typography.d.ts +0 -28
- package/dist/primitives/components/ui/typography/typography.defs.d.ts +0 -4
- package/dist/primitives/components/ui/typography/typography.stories.d.ts +0 -18
- package/dist/primitives/helpers/base-element.d.ts +0 -20
- package/dist/primitives/helpers/country-codes.d.ts +0 -5
- package/dist/primitives/helpers/genrate-uuid.helper.d.ts +0 -1
- package/dist/primitives/helpers/index.d.ts +0 -7
- package/dist/primitives/helpers/mouse-conroller.helper.d.ts +0 -14
- package/dist/primitives/helpers/shadow-wrapper.d.ts +0 -7
- package/dist/primitives/helpers/style.helpers.d.ts +0 -2
- package/dist/primitives/helpers/widget-controller.d.ts +0 -12
- package/dist/primitives/index.d.ts +0 -1
- package/dist/primitives/interfaces/atomic.interface.d.ts +0 -6
- package/dist/primitives/interfaces/child-support-atomic.interface.d.ts +0 -4
- package/dist/primitives/interfaces/index.d.ts +0 -4
- package/dist/primitives/interfaces/intractable.interface.d.ts +0 -6
- package/dist/primitives/interfaces/variant.interface.d.ts +0 -3
- package/dist/service/http/fetch.d.ts +0 -21
- package/dist/service/http/index.d.ts +0 -3
- package/dist/service/http/organization/assignable-roles.d.ts +0 -8
- package/dist/service/http/organization/index.d.ts +0 -4
- package/dist/service/http/organization/invitations.d.ts +0 -5
- package/dist/service/http/organization/management-token.d.ts +0 -13
- package/dist/service/http/organization/members.d.ts +0 -6
- package/dist/service/http/user/index.d.ts +0 -9
- package/dist/service/http/user/organizations.d.ts +0 -16
- package/dist/service/index.d.ts +0 -1
- package/dist/stories/preview.stories.d.ts +0 -5
- package/dist/tokens/tailwind/animation.d.ts +0 -7
- package/dist/tokens/tailwind/border-radius.d.ts +0 -45
- package/dist/tokens/tailwind/border-width.d.ts +0 -22
- package/dist/tokens/tailwind/box-shadow.d.ts +0 -12
- package/dist/tokens/tailwind/color.d.ts +0 -193
- package/dist/tokens/tailwind/font-size.d.ts +0 -89
- package/dist/tokens/tailwind/font-weight.d.ts +0 -26
- package/dist/tokens/tailwind/index.d.ts +0 -760
- package/dist/tokens/tailwind/keyframes.d.ts +0 -41
- package/dist/tokens/tailwind/opacity.d.ts +0 -28
- package/dist/tokens/tailwind/ring-offset-width.d.ts +0 -6
- package/dist/tokens/tailwind/ring-width.d.ts +0 -11
- package/dist/tokens/tailwind/spacing.d.ts +0 -264
- package/dist/tokens/tailwind/transition-duration.d.ts +0 -5
- package/dist/tokens/tailwind/transition-timing-function.d.ts +0 -4
- package/dist/tokens/tailwind/translate.d.ts +0 -5
- package/dist/types/auth.d.ts +0 -2
- package/dist/types/common/index.d.ts +0 -15
- package/dist/types/components/index.d.ts +0 -3
- package/dist/types/components/pont-primitives.d.ts +0 -7
- package/dist/types/components/pont-widgets.d.ts +0 -1
- package/dist/types/components/user-profile.d.ts +0 -33
- package/dist/types/core/index.d.ts +0 -61
- package/dist/types/index.d.ts +0 -7
- package/dist/types/layout/index.d.ts +0 -256
- package/dist/types/service/http/common/index.d.ts +0 -6
- package/dist/types/service/http/index.d.ts +0 -5
- package/dist/types/service/http/invitation/index.d.ts +0 -47
- package/dist/types/service/http/member/index.d.ts +0 -43
- package/dist/types/service/http/roles/index.d.ts +0 -19
- package/dist/types/service/http/user/index.d.ts +0 -40
- package/dist/types/service/index.d.ts +0 -1
- package/dist/types/styles/index.d.ts +0 -72
- package/dist/utils/components.d.ts +0 -24
- package/dist/utils/flow-error.d.ts +0 -25
- package/dist/utils/format.d.ts +0 -52
- package/dist/utils/html-base64.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/instance-unavailable.d.ts +0 -19
- package/dist/utils/login-hint.d.ts +0 -12
- package/dist/utils/post-auth-destination.d.ts +0 -26
- package/dist/utils/storybook.d.ts +0 -1
- package/dist/utils/styles.d.ts +0 -21
- package/dist/utils/svg-base64.d.ts +0 -2
- package/dist/utils/tailwind.d.ts +0 -7
- package/dist/utils/tokens.d.ts +0 -1
- /package/dist/{pont2/core → core}/attrs.d.ts +0 -0
- /package/dist/{pont2/core → core}/context-root.d.ts +0 -0
- /package/dist/{pont2/core → core}/controllers/roving-focus.d.ts +0 -0
- /package/dist/{pont2/core → core}/form-control.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/index.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/list.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/modal.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/position.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/story-helpers.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/consent/consent-api.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/data-table/rows.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/multi-email-input/emails.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/pagination/range.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/scope-list/scope-value.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/story-helpers.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/watermark/pontive-logo.d.ts +0 -0
- /package/dist/{pont2/primitives → primitives}/input-otp/otp.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/apply.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/compile.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/manifest.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/validate.d.ts +0 -0
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import { PropertyDeclarations, PropertyValues } from 'lit';
|
|
2
2
|
import { HostElement } from '../../core/host-element';
|
|
3
|
+
import { AccountClient } from './account-client';
|
|
3
4
|
import { AuthState } from './contexts';
|
|
4
5
|
import { AppSdkConfig, ProviderSdk } from './sdk';
|
|
6
|
+
export * from './account-client';
|
|
7
|
+
export * from './account-controller';
|
|
8
|
+
export * from './account-user';
|
|
5
9
|
export * from './contexts';
|
|
6
|
-
export * from './coexistence';
|
|
7
10
|
export * from './redirect';
|
|
8
11
|
export * from './sdk';
|
|
9
12
|
export * from './widget-messages';
|
|
10
|
-
/** Detail of `
|
|
13
|
+
/** Detail of `pont-set-locales` (on `document`) and `pont-locale-changed`. */
|
|
11
14
|
export interface LocalesDetail {
|
|
12
15
|
locales: string;
|
|
13
16
|
}
|
|
14
|
-
/** Detail of `
|
|
17
|
+
/** Detail of `pont-redirect`. Cancel it to navigate yourself (a client-side router). */
|
|
15
18
|
export interface RedirectDetail {
|
|
16
19
|
url: string;
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
|
-
* # `<
|
|
22
|
+
* # `<pont-provider>`: configures the auth SDK and provides it to the page
|
|
20
23
|
*
|
|
21
24
|
* ```html
|
|
22
|
-
* <
|
|
23
|
-
* <
|
|
24
|
-
* <
|
|
25
|
-
* </
|
|
25
|
+
* <pont-provider app-id="app_123" domain="auth.acme.com" signin-url="/sign-in" signup-url="/sign-up">
|
|
26
|
+
* <pont-signed-out><pont-signin></pont-signin></pont-signed-out>
|
|
27
|
+
* <pont-signed-in>…the app…</pont-signed-in>
|
|
28
|
+
* </pont-provider>
|
|
26
29
|
* <script type="module">
|
|
27
30
|
* import { Auth } from "@pontive/oidc-client";
|
|
28
|
-
* document.querySelector("
|
|
31
|
+
* document.querySelector("pont-provider").sdk = Auth; // the one line pont can't do for you
|
|
29
32
|
* </script>
|
|
30
33
|
* ```
|
|
31
34
|
*
|
|
32
|
-
*
|
|
35
|
+
* pont's version of the legacy `pont-provider` (docs/13-provider.md; migration
|
|
33
36
|
* tracker W-1). The SDK is **injected**, never imported. Once it has `sdk`,
|
|
34
37
|
* `domain` and `app-id`, it:
|
|
35
38
|
*
|
|
@@ -38,34 +41,37 @@ export interface RedirectDetail {
|
|
|
38
41
|
* options and callbacks go in `config` and are **chained** after the
|
|
39
42
|
* provider's (W-14);
|
|
40
43
|
* - **provides the SDK** to every flow widget inside it as their `client`
|
|
41
|
-
* (`
|
|
42
|
-
* entitlements (`
|
|
43
|
-
* (`
|
|
44
|
+
* (`pont:client`; an explicit `widget.client` wins), with the branding
|
|
45
|
+
* entitlements (`pont:branding`) and the URL's `login_hint`
|
|
46
|
+
* (`pont:login-hint`, F-11);
|
|
44
47
|
* - **resolves the auth state**: `restoreSession()`, then `isAuthenticated()`,
|
|
45
|
-
* provided as `
|
|
46
|
-
* `.auth`, and announced as `
|
|
48
|
+
* provided as `pont:auth` (read by `pont-signed-in` / `-out`), readable as
|
|
49
|
+
* `.auth`, and announced as `pont-auth-changed`. A page opened to answer an
|
|
47
50
|
* invitation drops the existing session first;
|
|
48
51
|
* - **redirects** a signed-in user away from the sign-in, sign-up or invitation
|
|
49
52
|
* page (`auto-redirect`, on by default), with the legacy destination rules
|
|
50
53
|
* and redirect-loop protection (`redirect.ts`);
|
|
51
|
-
* - **follows the locale**: `locales`, `setLocale()` or a `
|
|
52
|
-
* event on `document` reconfigure the SDK, fire `
|
|
54
|
+
* - **follows the locale**: `locales`, `setLocale()` or a `pont-set-locales`
|
|
55
|
+
* event on `document` reconfigure the SDK, fire `pont-locale-changed` and
|
|
53
56
|
* `restart()` every flow widget it provides for (F-19);
|
|
54
57
|
* - **loads the widgets' own text** (`/auth/v1/widget-messages`, one request
|
|
55
58
|
* per language per page, I-2) and the published **theme**
|
|
56
59
|
* (`/auth/v1/theme.css`; `theme="none"` opts out);
|
|
60
|
+
* - **provides the account widgets' client** (`pont:account-client`, W-12):
|
|
61
|
+
* `accountClient` when the app gives one, else one built from the SDK and
|
|
62
|
+
* `api-base-url` (`createAccountClient`) once the SDK is configured;
|
|
57
63
|
* - **reads the branding entitlements** from `/auth/v1/runtime-config`, the
|
|
58
64
|
* server's answer from the workspace's plan. There is deliberately no
|
|
59
65
|
* property for them: an app cannot switch the watermark off, and anything
|
|
60
66
|
* but the server saying so keeps it (docs/branding-entitlements.md, T-5).
|
|
61
67
|
*
|
|
62
|
-
* The host adds no box (`display: contents`). Mount **one** provider per page
|
|
63
|
-
* and never beside the legacy `pont-provider`: both drive the one `Auth` (W-15).
|
|
68
|
+
* The host adds no box (`display: contents`). Mount **one** provider per page.
|
|
64
69
|
*
|
|
65
|
-
* @tag
|
|
70
|
+
* @tag pont-provider
|
|
66
71
|
* @prop sdk - the auth SDK (`Auth` from `@pontive/oidc-client`), injected
|
|
67
72
|
* @prop config - the app's own SDK options and callbacks (`onFlowStateChange`, `onAuthenticated`), chained after the provider's
|
|
68
|
-
* @prop headers - extra request headers for the SDK
|
|
73
|
+
* @prop headers - extra request headers for the SDK (and the account client's management requests)
|
|
74
|
+
* @prop accountClient - the app's own `AccountClient` for the account widgets (default: one built from `sdk` and `api-base-url`)
|
|
69
75
|
* @prop auth - `AuthState` (read-only): `{ isAuthenticated, resolved }`
|
|
70
76
|
* @attr app-id - the app's id
|
|
71
77
|
* @attr domain - where the auth endpoints answer: a hostname, `/path` on this origin, or a base URL
|
|
@@ -77,13 +83,14 @@ export interface RedirectDetail {
|
|
|
77
83
|
* @attr continue-here-url - where "Continue here instead" goes (default: `signin-redirect-url`)
|
|
78
84
|
* @attr scope - OAuth scopes every flow asks for (space-separated; replaces the server's default)
|
|
79
85
|
* @attr organization-id - the organization a sign-in starts in
|
|
80
|
-
* @attr api-base-url - the management gateway,
|
|
86
|
+
* @attr api-base-url - the management gateway (`https://api.us.pontive.com`), which the account client calls (not an SDK option)
|
|
81
87
|
* @attr login-hint - the identifier to pre-fill (default: the URL's `login_hint`)
|
|
82
88
|
* @attr auto-redirect - `"false"` turns the post-sign-in redirect off (default on)
|
|
83
89
|
* @attr theme - `"none"` opts out of linking the published theme (default: link it)
|
|
84
|
-
* @fires
|
|
85
|
-
* @fires
|
|
86
|
-
* @fires
|
|
90
|
+
* @fires pont-auth-changed - `AuthState` (a copy), whenever it changes
|
|
91
|
+
* @fires pont-locale-changed - `{ locales }`, whenever the configured locales change
|
|
92
|
+
* @fires pont-session-changed - `{ reason, source, isAuthenticated, organizationId }`, on every SDK session change, here or in another tab (no tokens)
|
|
93
|
+
* @fires pont-redirect - `{ url }`, cancelable, before a post-sign-in navigation
|
|
87
94
|
*/
|
|
88
95
|
export declare class Provider extends HostElement {
|
|
89
96
|
static identity: string;
|
|
@@ -93,6 +100,8 @@ export declare class Provider extends HostElement {
|
|
|
93
100
|
sdk: ProviderSdk | undefined;
|
|
94
101
|
config: AppSdkConfig;
|
|
95
102
|
headers: Record<string, string> | undefined;
|
|
103
|
+
/** The app's own account client; wins over the default one. */
|
|
104
|
+
accountClient: AccountClient | undefined;
|
|
96
105
|
appId: string;
|
|
97
106
|
domain: string;
|
|
98
107
|
locales: string;
|
|
@@ -113,10 +122,16 @@ export declare class Provider extends HostElement {
|
|
|
113
122
|
private clientProvider;
|
|
114
123
|
private brandingProvider;
|
|
115
124
|
private hintProvider;
|
|
125
|
+
private accountProvider;
|
|
126
|
+
/** The default account client, built once the SDK is configured (undefined before, or without account methods). */
|
|
127
|
+
private defaultAccountClient;
|
|
128
|
+
private accountInputs;
|
|
116
129
|
/** The SDK the auth state was last resolved for: a new one resolves again. */
|
|
117
130
|
private resolvedFor;
|
|
118
131
|
/** The locales of the last configuration (`undefined`: not configured yet). */
|
|
119
132
|
private configuredLocales;
|
|
133
|
+
/** Ends the SDK session subscription, while there is one. */
|
|
134
|
+
private unsubscribeSession;
|
|
120
135
|
/** The auth base the branding entitlements were last asked for. */
|
|
121
136
|
private brandingBase;
|
|
122
137
|
/** Bumped per resolution, so only the latest answer is published. */
|
|
@@ -125,10 +140,10 @@ export declare class Provider extends HostElement {
|
|
|
125
140
|
/** Changes the language: reconfigures the SDK and restarts the flow widgets it provides for. */
|
|
126
141
|
setLocale(locales: string): void;
|
|
127
142
|
/**
|
|
128
|
-
* Reads the auth state from the SDK again (a local check).
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
143
|
+
* Reads the auth state from the SDK again (a local check). With
|
|
144
|
+
* `@pontive/oidc-client` 1.7.0 or later the provider follows every session
|
|
145
|
+
* change by itself (`onSessionChange`, W-14), so this is only needed with an
|
|
146
|
+
* SDK that can't tell it.
|
|
132
147
|
*/
|
|
133
148
|
refresh(): void;
|
|
134
149
|
/** The base the auth endpoints hang off, or `null` while `domain` is unset or invalid. */
|
|
@@ -138,6 +153,14 @@ export declare class Provider extends HostElement {
|
|
|
138
153
|
protected willUpdate(changed: PropertyValues): void;
|
|
139
154
|
protected updated(changed: PropertyValues): void;
|
|
140
155
|
private inputs;
|
|
156
|
+
/** The account client the widgets get: the app's, else the default one over the configured SDK. */
|
|
157
|
+
get effectiveAccountClient(): AccountClient | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Builds the default account client (W-12) once the SDK is configured, and again when the
|
|
160
|
+
* SDK, `api-base-url`, `app-id` or `headers` change. Before configuration it stays undefined,
|
|
161
|
+
* so no widget asks an unconfigured SDK who is signed in.
|
|
162
|
+
*/
|
|
163
|
+
private provideAccountClient;
|
|
141
164
|
private configureSdk;
|
|
142
165
|
/** Every flow widget inside that runs on the provided client (an explicit `client` is the app's). */
|
|
143
166
|
private restartWidgets;
|
|
@@ -156,30 +179,39 @@ export declare class Provider extends HostElement {
|
|
|
156
179
|
private resolveAuth;
|
|
157
180
|
private publishAuth;
|
|
158
181
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
182
|
+
* Follows the SDK's session changes (W-14): a sign-in, refresh, organization
|
|
183
|
+
* switch, sign-out or expiry, here or in another tab of the app, republishes
|
|
184
|
+
* the auth state and is re-announced as `pont-session-changed` (with the
|
|
185
|
+
* SDK's `reason`, `source` and `organizationId`; no tokens), so the app can,
|
|
186
|
+
* for example, reload its data after an organization switch made elsewhere.
|
|
187
|
+
*/
|
|
188
|
+
private subscribeToSession;
|
|
189
|
+
/**
|
|
190
|
+
* The fallback for an SDK without `onSessionChange` (before
|
|
191
|
+
* `@pontive/oidc-client` 1.7.0): when the tab comes back and the local answer
|
|
192
|
+
* has turned to "signed out", ask the server again (a refresh cookie may
|
|
193
|
+
* still hold) before publishing it.
|
|
162
194
|
*/
|
|
163
195
|
private onVisible;
|
|
164
196
|
private redirectIfDone;
|
|
165
197
|
/**
|
|
166
198
|
* Links the instance's published theme (`GET {auth}/auth/v1/theme.css`: the
|
|
167
199
|
* host names the instance; an empty 200 when nothing is published;
|
|
168
|
-
* docs/12-theming-integration.md). The same `<link data-
|
|
200
|
+
* docs/12-theming-integration.md). The same `<link data-pont-theme="brand">`
|
|
169
201
|
* that `linkTheme()` writes, so the two never stack.
|
|
170
202
|
*/
|
|
171
203
|
private linkTheme;
|
|
172
204
|
}
|
|
173
205
|
declare global {
|
|
174
206
|
interface HTMLElementTagNameMap {
|
|
175
|
-
"
|
|
207
|
+
"pont-provider": Provider;
|
|
176
208
|
}
|
|
177
209
|
interface HTMLElementEventMap {
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
210
|
+
"pont-auth-changed": CustomEvent<AuthState>;
|
|
211
|
+
"pont-locale-changed": CustomEvent<LocalesDetail>;
|
|
212
|
+
"pont-redirect": CustomEvent<RedirectDetail>;
|
|
181
213
|
}
|
|
182
214
|
interface DocumentEventMap {
|
|
183
|
-
"
|
|
215
|
+
"pont-set-locales": CustomEvent<LocalesDetail>;
|
|
184
216
|
}
|
|
185
217
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Where `<
|
|
2
|
+
* Where `<pont-provider>` sends the browser once someone is signed in, and how
|
|
3
3
|
* it notices that the destination sent them straight back.
|
|
4
4
|
*
|
|
5
5
|
* A port of the legacy rules (`src/utils/post-auth-destination.ts` and the
|
|
6
6
|
* provider's `wasBouncedBackFrom`), as pure functions with injected browser
|
|
7
|
-
* state so they are unit-tested in Node.
|
|
7
|
+
* state so they are unit-tested in Node. pont may not import `src/`
|
|
8
8
|
* (guardrail), so the code is copied, with its tests (docs/13-provider.md §3).
|
|
9
9
|
*
|
|
10
10
|
* **One change from the legacy kit (a security fix).** The legacy provider
|
|
@@ -72,7 +72,7 @@ export interface RedirectGuardEnv {
|
|
|
72
72
|
navigationType: () => string;
|
|
73
73
|
}
|
|
74
74
|
/** The marker's key. Not the legacy kit's: the two providers never share a page (W-15). */
|
|
75
|
-
export declare const REDIRECT_ATTEMPT_KEY = "
|
|
75
|
+
export declare const REDIRECT_ATTEMPT_KEY = "pont_auth_redirect_attempt";
|
|
76
76
|
/**
|
|
77
77
|
* How recently a redirect must have been attempted for a return to count as a
|
|
78
78
|
* bounce. A bounce is two server round trips, so seconds at most; minutes later
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BrandingEntitlements } from '../block/branding';
|
|
2
2
|
/**
|
|
3
|
-
* The instance's branding entitlements, read by `<
|
|
3
|
+
* The instance's branding entitlements, read by `<pont-provider>` from
|
|
4
4
|
* `GET {auth}/auth/v1/runtime-config` (`branding: { show_watermark }`, pontive-spec
|
|
5
5
|
* 21 §9.1, 18 "Branding entitlement"; migration tracker T-5).
|
|
6
6
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FlowStateEvent, WidgetClient } from '../flow-widget/flow-widget';
|
|
2
2
|
/**
|
|
3
|
-
* What `<
|
|
3
|
+
* What `<pont-provider>` needs from the auth SDK, structurally. The SDK's
|
|
4
4
|
* `Auth` (`@pontive/oidc-client`) satisfies it as-is, which
|
|
5
|
-
* `flow-widget/sdk-compat.test.ts` pins against the real types.
|
|
5
|
+
* `flow-widget/sdk-compat.test.ts` pins against the real types. pont never
|
|
6
6
|
* imports the SDK: the app injects it (`provider.sdk = Auth`, docs/13-provider.md).
|
|
7
7
|
*
|
|
8
8
|
* No index signatures, on purpose: they are what made `Auth` fail to type-check
|
|
@@ -17,6 +17,20 @@ export interface ProviderSdk extends WidgetClient {
|
|
|
17
17
|
isAuthenticated(): boolean;
|
|
18
18
|
/** Drops the stored session without reloading or tearing the flow machinery down. */
|
|
19
19
|
invalidateSession(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Tells the listener about every session change, in this tab or another
|
|
22
|
+
* (`@pontive/oidc-client` 1.7.0); returns the unsubscribe. Optional, so an
|
|
23
|
+
* older SDK or a fake without it still works: the provider then falls back
|
|
24
|
+
* to re-checking when the tab becomes visible (W-14).
|
|
25
|
+
*/
|
|
26
|
+
onSessionChange?(listener: (event: SessionChange) => void): () => void;
|
|
27
|
+
}
|
|
28
|
+
/** The part of the SDK's `SessionChangeEvent` the provider reads and re-announces. */
|
|
29
|
+
export interface SessionChange {
|
|
30
|
+
reason: "signed-in" | "restored" | "refreshed" | "organization-changed" | "signed-out" | "expired";
|
|
31
|
+
source: "local" | "other-tab";
|
|
32
|
+
isAuthenticated: boolean;
|
|
33
|
+
organizationId: string | null;
|
|
20
34
|
}
|
|
21
35
|
/** The parts of the SDK's `ConfigOptions` the provider writes. */
|
|
22
36
|
export interface ProviderSdkConfig {
|
|
@@ -2,19 +2,19 @@ import { PropertyValues } from 'lit';
|
|
|
2
2
|
import { HostElement } from '../../core/host-element';
|
|
3
3
|
import { AuthState } from './contexts';
|
|
4
4
|
/**
|
|
5
|
-
* # AuthGate: the base of `<
|
|
5
|
+
* # AuthGate: the base of `<pont-signed-in>` / `<pont-signed-out>`
|
|
6
6
|
*
|
|
7
7
|
* ```html
|
|
8
|
-
* <
|
|
9
|
-
* <
|
|
10
|
-
* <
|
|
11
|
-
* </
|
|
8
|
+
* <pont-provider …>
|
|
9
|
+
* <pont-signed-out><pont-signin></pont-signin></pont-signed-out>
|
|
10
|
+
* <pont-signed-in><a href="/account">Your account</a></pont-signed-in>
|
|
11
|
+
* </pont-provider>
|
|
12
12
|
* ```
|
|
13
13
|
*
|
|
14
14
|
* Shows its children for one answer of the provider's auth state
|
|
15
|
-
* (`
|
|
16
|
-
* the branch that doesn't apply never connects: a `
|
|
17
|
-
* `
|
|
15
|
+
* (`pont:auth`), and holds them **detached** otherwise, so that a widget inside
|
|
16
|
+
* the branch that doesn't apply never connects: a `pont-signin` in
|
|
17
|
+
* `pont-signed-out` never starts a flow for a signed-in user (migration tracker
|
|
18
18
|
* W-2).
|
|
19
19
|
*
|
|
20
20
|
* - **Nothing until the provider has asked** (`resolved`): its interim answer is
|
|
@@ -28,7 +28,7 @@ import { AuthState } from './contexts';
|
|
|
28
28
|
* - `data-state`: `pending`, `open` or `closed`.
|
|
29
29
|
*
|
|
30
30
|
* **Framework hosts** (React) should branch on the provider's
|
|
31
|
-
* `
|
|
31
|
+
* `pont-auth-changed` event instead, as the pontkit bindings do: an element
|
|
32
32
|
* that detaches children takes them away from a framework that still thinks it
|
|
33
33
|
* owns them.
|
|
34
34
|
*/
|
|
@@ -54,9 +54,9 @@ export declare abstract class AuthGate extends HostElement {
|
|
|
54
54
|
private hold;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* # `<
|
|
57
|
+
* # `<pont-signed-in>`: shown once the provider knows someone is signed in
|
|
58
58
|
*
|
|
59
|
-
* @tag
|
|
59
|
+
* @tag pont-signed-in
|
|
60
60
|
*/
|
|
61
61
|
export declare class SignedIn extends AuthGate {
|
|
62
62
|
static identity: string;
|
|
@@ -64,9 +64,9 @@ export declare class SignedIn extends AuthGate {
|
|
|
64
64
|
protected opensFor(auth: AuthState): boolean;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* # `<
|
|
67
|
+
* # `<pont-signed-out>`: shown once the provider knows nobody is signed in
|
|
68
68
|
*
|
|
69
|
-
* @tag
|
|
69
|
+
* @tag pont-signed-out
|
|
70
70
|
*/
|
|
71
71
|
export declare class SignedOut extends AuthGate {
|
|
72
72
|
static identity: string;
|
|
@@ -75,7 +75,7 @@ export declare class SignedOut extends AuthGate {
|
|
|
75
75
|
}
|
|
76
76
|
declare global {
|
|
77
77
|
interface HTMLElementTagNameMap {
|
|
78
|
-
"
|
|
79
|
-
"
|
|
78
|
+
"pont-signed-in": SignedIn;
|
|
79
|
+
"pont-signed-out": SignedOut;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The signed-in widgets' own text (account menu, account settings, organization
|
|
3
|
-
* switcher, member management), which no flow response carries: `<
|
|
3
|
+
* switcher, member management), which no flow response carries: `<pont-provider>`
|
|
4
4
|
* reads it from `GET {auth}/auth/v1/widget-messages?locales=…` and hands it to
|
|
5
5
|
* the page's message table (`setMessages`, core/messages.ts). A port of the
|
|
6
6
|
* legacy `loadWidgetMessages` (carry-over §3, migration tracker I-2).
|
|
@@ -24,25 +24,25 @@ export declare function providerColumns(count: number): ProviderColumns;
|
|
|
24
24
|
/** The legacy default event per provider: the platform's OAuth sign-in action. */
|
|
25
25
|
export declare const providerEvent: (p: AuthProvider) => string;
|
|
26
26
|
/**
|
|
27
|
-
* # `<
|
|
27
|
+
* # `<pont-provider-field>`: the "continue with…" button grid
|
|
28
28
|
*
|
|
29
29
|
* ```html
|
|
30
|
-
* <
|
|
31
|
-
* <
|
|
30
|
+
* <pont-provider-field providers="apple google meta"></pont-provider-field>
|
|
31
|
+
* <pont-provider-field providers='["google","github"]'></pont-provider-field> (the form the platform injects)
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
34
|
* **Is a Field** (`extends Field`), as in shadcn's login blocks (`<Field
|
|
35
35
|
* className="grid grid-cols-3 gap-4">` holding the buttons), laid out on the
|
|
36
36
|
* legacy kit's 12-column grid (`data-columns`, see `providerColumns`). It
|
|
37
|
-
* renders one **`<
|
|
37
|
+
* renders one **`<pont-provider-button>` element** per provider:
|
|
38
38
|
*
|
|
39
39
|
* ```html
|
|
40
|
-
* <
|
|
41
|
-
* <
|
|
42
|
-
* <button data-
|
|
43
|
-
* </
|
|
40
|
+
* <pont-provider-field data-pont-field data-slot="field" role="group" data-columns="three">
|
|
41
|
+
* <pont-provider-button provider="apple" content="icon" event="signin_with_oauth(apple)" data-pont-shell>
|
|
42
|
+
* <button data-pont-button data-variant="outline" data-provider="apple" aria-label="Continue with Apple">…</button>
|
|
43
|
+
* </pont-provider-button>
|
|
44
44
|
* …
|
|
45
|
-
* </
|
|
45
|
+
* </pont-provider-field>
|
|
46
46
|
* ```
|
|
47
47
|
*
|
|
48
48
|
* Nesting kit elements is normally forbidden in kit templates. This is the
|
|
@@ -55,7 +55,7 @@ export declare const providerEvent: (p: AuthProvider) => string;
|
|
|
55
55
|
* array property) replaces them for one provider. With more than two
|
|
56
56
|
* providers the buttons default to icon-only (legacy).
|
|
57
57
|
*
|
|
58
|
-
* @tag
|
|
58
|
+
* @tag pont-provider-field
|
|
59
59
|
* @attr providers - e.g. "apple google github" (duplicates and unknown names are dropped)
|
|
60
60
|
* @attr event - one event for every button (default: `signin_with_oauth(<provider>)` each)
|
|
61
61
|
* @attr variant, size, content, icon-align, prompt, label, disabled, loading - passed to every button
|
|
@@ -84,13 +84,13 @@ export declare class ProviderField extends Field {
|
|
|
84
84
|
* real screens end up with (the legacy samples).
|
|
85
85
|
*/
|
|
86
86
|
get list(): AuthProvider[];
|
|
87
|
-
/** The rendered `<
|
|
88
|
-
get buttons(): HTMLElementTagNameMap["
|
|
87
|
+
/** The rendered `<pont-provider-button>` elements. */
|
|
88
|
+
get buttons(): HTMLElementTagNameMap["pont-provider-button"][];
|
|
89
89
|
protected willUpdate(changed: PropertyValues): void;
|
|
90
90
|
render(): unknown;
|
|
91
91
|
}
|
|
92
92
|
declare global {
|
|
93
93
|
interface HTMLElementTagNameMap {
|
|
94
|
-
"
|
|
94
|
+
"pont-provider-field": ProviderField;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -14,21 +14,21 @@ export interface QrDetail {
|
|
|
14
14
|
url: string;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* # `<
|
|
17
|
+
* # `<pont-qr-code>`: the authenticator-app enrolment QR code
|
|
18
18
|
*
|
|
19
19
|
* ```html
|
|
20
|
-
* <
|
|
20
|
+
* <pont-qr-code url="otpauth://totp/Acme:ada@example.com?secret=…&issuer=Acme" timeout="30"></pont-qr-code>
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* ```html
|
|
24
|
-
* <
|
|
24
|
+
* <pont-qr-code data-pont-qr-code data-slot="qr-code" [data-obscured]>
|
|
25
25
|
* <svg data-slot="qr-code-image" role="img" aria-label="QR code" viewBox="0 0 37 37">
|
|
26
26
|
* <rect …white…/><path d="M4 4h1v1h-1z…"/>
|
|
27
27
|
* </svg>
|
|
28
28
|
* <div data-slot="qr-code-overlay"> (when obscured)
|
|
29
|
-
* <button data-
|
|
29
|
+
* <button data-pont-button type="button">Show QR code</button>
|
|
30
30
|
* </div>
|
|
31
|
-
* </
|
|
31
|
+
* </pont-qr-code>
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
34
|
* **An SVG built from the code's modules** (`qrcode`'s `create()` matrix →
|
|
@@ -41,16 +41,16 @@ export interface QrDetail {
|
|
|
41
41
|
* code fades and a "Show QR code" button brings it back for another
|
|
42
42
|
* `timeout`. `timeout="0"` never obscures.
|
|
43
43
|
*
|
|
44
|
-
* @tag
|
|
44
|
+
* @tag pont-qr-code
|
|
45
45
|
* @attr url - the text to encode (an `otpauth://` URI)
|
|
46
46
|
* @attr timeout - seconds before obscuring (default 10)
|
|
47
47
|
* @attr error-correction - L | M (default) | Q | H
|
|
48
48
|
* @attr label - accessible name of the image (default "QR code")
|
|
49
49
|
* @attr reveal-label - the button text (default "Show QR code")
|
|
50
50
|
* @attr disabled - never obscures, and disables the button
|
|
51
|
-
* @cssprop --
|
|
52
|
-
* @fires
|
|
53
|
-
* @fires
|
|
51
|
+
* @cssprop --pont-qr-code-width - the image width (default 12rem)
|
|
52
|
+
* @fires pont-qr-obscured, pont-qr-revealed - `{ url }`
|
|
53
|
+
* @fires pont-qr-error - `{ url }` when the text cannot be encoded
|
|
54
54
|
*/
|
|
55
55
|
export declare class QrCode extends HostElement {
|
|
56
56
|
static identity: string;
|
|
@@ -78,11 +78,11 @@ export declare class QrCode extends HostElement {
|
|
|
78
78
|
}
|
|
79
79
|
declare global {
|
|
80
80
|
interface HTMLElementTagNameMap {
|
|
81
|
-
"
|
|
81
|
+
"pont-qr-code": QrCode;
|
|
82
82
|
}
|
|
83
83
|
interface HTMLElementEventMap {
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
84
|
+
"pont-qr-obscured": CustomEvent<QrDetail>;
|
|
85
|
+
"pont-qr-revealed": CustomEvent<QrDetail>;
|
|
86
|
+
"pont-qr-error": CustomEvent<QrDetail>;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -2,37 +2,37 @@ import { PropertyDeclarations } from 'lit';
|
|
|
2
2
|
import { CopyController } from '../../core/controllers/copy';
|
|
3
3
|
import { HostElement } from '../../core/host-element';
|
|
4
4
|
/**
|
|
5
|
-
* # `<
|
|
5
|
+
* # `<pont-recovery-codes>`: one-time recovery codes after MFA enrolment
|
|
6
6
|
*
|
|
7
7
|
* ```html
|
|
8
|
-
* <
|
|
8
|
+
* <pont-recovery-codes codes='["a1b2-c3d4","e5f6-g7h8"]'></pont-recovery-codes>
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
11
|
* ```html
|
|
12
|
-
* <
|
|
12
|
+
* <pont-recovery-codes data-pont-recovery-codes data-slot="recovery-codes">
|
|
13
13
|
* <p data-slot="recovery-codes-title">Recovery codes</p>
|
|
14
14
|
* <p data-slot="recovery-codes-description">Use these codes if you lose access…</p>
|
|
15
15
|
* <ul data-slot="recovery-codes-list"><li>a1b2-c3d4</li>…</ul>
|
|
16
16
|
* <div data-slot="recovery-codes-actions">
|
|
17
|
-
* <button data-
|
|
18
|
-
* <button data-
|
|
17
|
+
* <button data-pont-button data-variant="outline">Copy codes</button>
|
|
18
|
+
* <button data-pont-button data-variant="outline">Download codes</button>
|
|
19
19
|
* </div>
|
|
20
20
|
* <span data-slot="recovery-codes-copied" role="status">Copied!</span>
|
|
21
|
-
* </
|
|
21
|
+
* </pont-recovery-codes>
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
* Buttons are the button primitive's parts, the list is a monospace grid,
|
|
25
25
|
* "Copied!" is announced (`role="status"`). Events carry **no codes**
|
|
26
|
-
* (`
|
|
27
|
-
* `
|
|
26
|
+
* (`pont-copied` / `pont-copy-error` with `{ kind: "recovery-codes" }`,
|
|
27
|
+
* `pont-recovery-codes-downloaded`); the legacy events included them.
|
|
28
28
|
*
|
|
29
|
-
* @tag
|
|
29
|
+
* @tag pont-recovery-codes
|
|
30
30
|
* @attr codes - JSON array or whitespace-separated list; `.codes` is an array
|
|
31
31
|
* @attr title-text, description, empty-text, copy-label, download-label, copied-text - copy
|
|
32
32
|
* @attr filename - download file name (default "recovery-codes.txt")
|
|
33
33
|
* @attr disabled
|
|
34
|
-
* @cssprop --
|
|
35
|
-
* @fires
|
|
34
|
+
* @cssprop --pont-recovery-codes-list-bg, --pont-recovery-codes-list-radius - the code list's surface (default muted, radius-md)
|
|
35
|
+
* @fires pont-copied, pont-copy-error, pont-recovery-codes-downloaded
|
|
36
36
|
*/
|
|
37
37
|
export declare class RecoveryCodes extends HostElement {
|
|
38
38
|
static identity: string;
|
|
@@ -57,9 +57,9 @@ export declare class RecoveryCodes extends HostElement {
|
|
|
57
57
|
}
|
|
58
58
|
declare global {
|
|
59
59
|
interface HTMLElementTagNameMap {
|
|
60
|
-
"
|
|
60
|
+
"pont-recovery-codes": RecoveryCodes;
|
|
61
61
|
}
|
|
62
62
|
interface HTMLElementEventMap {
|
|
63
|
-
"
|
|
63
|
+
"pont-recovery-codes-downloaded": CustomEvent<Record<string, never>>;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -3,27 +3,27 @@ import { FormControlElement } from '../../core/form-control';
|
|
|
3
3
|
import { ConsentScope } from './scope-value';
|
|
4
4
|
export { isScopeChecked, normalizeScopes, scopeListValue, type ConsentScope } from './scope-value';
|
|
5
5
|
/**
|
|
6
|
-
* # `<
|
|
6
|
+
* # `<pont-scope-list>`: OAuth consent scopes
|
|
7
7
|
*
|
|
8
8
|
* ```html
|
|
9
9
|
* <form>
|
|
10
|
-
* <
|
|
10
|
+
* <pont-scope-list name="scope"
|
|
11
11
|
* scopes='[{"scope":"openid","label":"Sign you in","required":true},{"scope":"email","label":"See your email"}]'>
|
|
12
|
-
* </
|
|
12
|
+
* </pont-scope-list>
|
|
13
13
|
* </form>
|
|
14
14
|
* → FormData: scope=openid email
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
17
|
* ```html
|
|
18
|
-
* <
|
|
18
|
+
* <pont-scope-list data-pont-scope-list data-slot="scope-list" role="list">
|
|
19
19
|
* <div role="listitem" data-slot="scope-list-item" data-scope="openid" data-required>
|
|
20
20
|
* <label data-slot="scope-list-label">
|
|
21
|
-
* <
|
|
21
|
+
* <pont-prim-checkbox checked disabled required></pont-prim-checkbox>
|
|
22
22
|
* <span data-slot="scope-list-text">Sign you in</span>
|
|
23
23
|
* </label>
|
|
24
24
|
* </div>
|
|
25
25
|
* …
|
|
26
|
-
* </
|
|
26
|
+
* </pont-scope-list>
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
29
|
* **Form-associated** (`extends FormControlElement`): it submits the ticked
|
|
@@ -36,7 +36,7 @@ export { isScopeChecked, normalizeScopes, scopeListValue, type ConsentScope } fr
|
|
|
36
36
|
* Required scopes are always ticked and disabled. Scopes default to ticked;
|
|
37
37
|
* the user unticks what they do not grant.
|
|
38
38
|
*
|
|
39
|
-
* @tag
|
|
39
|
+
* @tag pont-scope-list
|
|
40
40
|
* @attr scopes - JSON array of `{ scope, label?, required?, granted? }`; `.scopes` is an array
|
|
41
41
|
* @attr name - default "scope"
|
|
42
42
|
* @attr disabled
|
|
@@ -64,6 +64,6 @@ export declare class ScopeList extends FormControlElement {
|
|
|
64
64
|
}
|
|
65
65
|
declare global {
|
|
66
66
|
interface HTMLElementTagNameMap {
|
|
67
|
-
"
|
|
67
|
+
"pont-scope-list": ScopeList;
|
|
68
68
|
}
|
|
69
69
|
}
|