@cirkay-eng/cirkay-components 0.9.22-beta.1 → 0.9.22-beta.11
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 +34 -8
- package/dist/components/connected/connected.d.ts +1 -2
- package/dist/components/connected/connected.d.ts.map +1 -1
- package/dist/components/connected/connected.js +5 -49
- package/dist/components/connected/connected.js.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.d.ts +6 -0
- package/dist/components/fan-pass-claim/fan-pass-claim.d.ts.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.js +121 -20
- package/dist/components/fan-pass-claim/fan-pass-claim.js.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.styles.d.ts.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.styles.js +13 -0
- package/dist/components/fan-pass-claim/fan-pass-claim.styles.js.map +1 -1
- package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts +2 -0
- package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts.map +1 -1
- package/dist/components/fan-pass-unlock/fan-pass-unlock.js +78 -20
- package/dist/components/fan-pass-unlock/fan-pass-unlock.js.map +1 -1
- package/dist/controllers/LoginController.d.ts +4 -30
- package/dist/controllers/LoginController.d.ts.map +1 -1
- package/dist/controllers/LoginController.js +1 -1
- package/dist/controllers/LoginController.js.map +1 -1
- package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts.map +1 -1
- package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts.map +1 -1
- package/dist/events/login.d.ts +8 -1
- package/dist/events/login.d.ts.map +1 -1
- package/dist/events/login.js +1 -0
- package/dist/events/login.js.map +1 -1
- package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +3 -3
- package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3 → @rollup_plugin-typescript@12.1.2_rollup@4.32.1_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/.pnpm/magic-sdk@28.21.0/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@28.21.0/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/package.json +4 -4
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js +0 -9
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js.map +0 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/base.js.map +0 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js +0 -10
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js.map +0 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/query.js +0 -10
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/query.js.map +0 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js +0 -10
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js.map +0 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +0 -11
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js.map +0 -1
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +0 -10
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.1.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +0 -10
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.1.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.1_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +0 -10
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.1_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.2_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +0 -10
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.2_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js +0 -4
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.19.0/node_modules/@magic-sdk/types/dist/es/index.js +0 -4
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.19.0/node_modules/@magic-sdk/types/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.21.0/node_modules/@magic-sdk/types/dist/es/index.js +0 -4
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.21.0/node_modules/@magic-sdk/types/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/box.js +0 -299
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/box.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/button.js +0 -297
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/button.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-main.js +0 -112
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-main.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-outline.js +0 -47
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-outline.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-plain.js +0 -69
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-plain.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.js +0 -154
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.styles.js +0 -96
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/disclosure/disclosure.js +0 -456
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/disclosure/disclosure.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/header-drawer.js +0 -306
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/header-drawer.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.js +0 -87
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.styles.js +0 -64
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.js +0 -74
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.styles.js +0 -31
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/image/image.js +0 -132
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/image/image.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.js +0 -260
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.styles.js +0 -118
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.js +0 -53
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.styles.js +0 -39
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/link-group.js +0 -188
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/link-group.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/logo.js +0 -157
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/logo.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/menu-drawer/menu-drawer.js +0 -195
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/menu-drawer/menu-drawer.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/overlay.js +0 -117
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/overlay.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/text.js +0 -319
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/text.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/index.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.js +0 -93
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.styles.js +0 -51
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/constructedStyleSheet.js +0 -12
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/constructedStyleSheet.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/depracated-element-prop.js +0 -12
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/depracated-element-prop.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/form-controller.js +0 -271
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/form-controller.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/mergeStyles.js +0 -13
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/mergeStyles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/paddingTransformations.js +0 -76
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/paddingTransformations.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/push-element.js +0 -52
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/push-element.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/settings.js +0 -6
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/settings.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slot.js +0 -46
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slot.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slotInitialised.js +0 -16
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slotInitialised.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/watch.js +0 -28
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/watch.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/button.js +0 -83
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/button.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/component.styles.js +0 -36
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/component.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/flex.js +0 -157
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/flex.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/form-control.styles.js +0 -150
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/form-control.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/global.js +0 -48
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/global.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/icon-size.js +0 -25
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/icon-size.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/placeholder-media.js +0 -34
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/placeholder-media.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/text.styles.js +0 -240
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/text.styles.js.map +0 -1
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/utilities/base-path.js +0 -7
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/utilities/base-path.js.map +0 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.44.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.44.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.3_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.3_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directive.js +0 -9
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directive.js.map +0 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +0 -11
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js.map +0 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js +0 -10
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js.map +0 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/style-map.js +0 -11
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/style-map.js.map +0 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js +0 -11
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js.map +0 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +0 -9
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js.map +0 -1
- package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js +0 -9
- package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js +0 -9
- package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/magic-sdk@29.1.0/node_modules/magic-sdk/dist/es/index.js +0 -9
- package/dist/node_modules/.pnpm/magic-sdk@29.1.0/node_modules/magic-sdk/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/magic-sdk@29.4.1/node_modules/magic-sdk/dist/es/index.js +0 -9
- package/dist/node_modules/.pnpm/magic-sdk@29.4.1/node_modules/magic-sdk/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/magic-sdk@29.4.2/node_modules/magic-sdk/dist/es/index.js +0 -9
- package/dist/node_modules/.pnpm/magic-sdk@29.4.2/node_modules/magic-sdk/dist/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js +0 -169
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js.map +0 -1
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js +0 -161
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js.map +0 -1
- /package/dist/node_modules/.pnpm/{@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3 → @rollup_plugin-typescript@12.1.2_rollup@4.32.1_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js +0 -0
package/README.md
CHANGED
|
@@ -15,18 +15,30 @@ Using via Cirkay Fan Pass CDN
|
|
|
15
15
|
The UMD bundle includes all components and dependencies in a single file. Add the following script tag to your HTML:
|
|
16
16
|
|
|
17
17
|
```html
|
|
18
|
-
<!--
|
|
19
|
-
<script src="https://cdn.n3xus.services/fan-pass-cdn/cirkay-fan-pass-standalone-umd.
|
|
18
|
+
<!-- Latest -->
|
|
19
|
+
<script src="https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-standalone-umd.umd.js"></script>
|
|
20
|
+
|
|
21
|
+
<!-- Pinned (replace <version>) -->
|
|
22
|
+
<script src="https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-standalone-umd.<version>.umd.js"></script>
|
|
20
23
|
```
|
|
21
24
|
|
|
22
|
-
###
|
|
25
|
+
### ES Modules (Standalone or Modular)
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
Use ES Modules if you prefer `import` (or if your app already provides shared dependencies like Lit).
|
|
25
28
|
|
|
26
29
|
```html
|
|
27
30
|
<script type="module">
|
|
28
|
-
//
|
|
29
|
-
import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-fan-pass-standalone-es.
|
|
31
|
+
// Standalone ES module (includes dependencies)
|
|
32
|
+
import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-standalone-es.esm.js';
|
|
33
|
+
|
|
34
|
+
// Or pinned (replace <version>)
|
|
35
|
+
// import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-standalone-es.<version>.esm.js';
|
|
36
|
+
|
|
37
|
+
// Modular ES module (excludes dependencies like lit / push-web-components)
|
|
38
|
+
// import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-modular-es.esm.js';
|
|
39
|
+
//
|
|
40
|
+
// Or pinned (replace <version>)
|
|
41
|
+
// import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-modular-es.<version>.esm.js';
|
|
30
42
|
</script>
|
|
31
43
|
```
|
|
32
44
|
|
|
@@ -184,6 +196,14 @@ document.querySelector('fp-claim').addEventListener('fp-claim-claimed', (event)
|
|
|
184
196
|
|
|
185
197
|
## Bundle Types
|
|
186
198
|
|
|
199
|
+
The CDN publishes multiple bundles. Choose the one that matches your setup:
|
|
200
|
+
|
|
201
|
+
| Bundle | Format | Includes dependencies | Latest | Pinned (replace `<version>`) |
|
|
202
|
+
|---|---|---|---|---|
|
|
203
|
+
| Standalone UMD | `<script>` | Yes | `https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-standalone-umd.umd.js` | `https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-standalone-umd.<version>.umd.js` |
|
|
204
|
+
| Standalone ES | `import` | Yes | `https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-standalone-es.esm.js` | `https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-standalone-es.<version>.esm.js` |
|
|
205
|
+
| Modular ES | `import` | No | `https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-modular-es.esm.js` | `https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-modular-es.<version>.esm.js` |
|
|
206
|
+
|
|
187
207
|
|
|
188
208
|
## Production
|
|
189
209
|
|
|
@@ -192,12 +212,18 @@ For production, use the minified versions:
|
|
|
192
212
|
|
|
193
213
|
```html
|
|
194
214
|
<!-- UMD -->
|
|
195
|
-
<script src="https://cdn.n3xus.services/fan-pass-cdn/cirkay-fan-pass-standalone-umd.
|
|
215
|
+
<script src="https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-standalone-umd.umd.js"></script>
|
|
216
|
+
|
|
217
|
+
<!-- UMD (Pinned - replace <version>) -->
|
|
218
|
+
<script src="https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-standalone-umd.<version>.umd.js"></script>
|
|
196
219
|
|
|
197
220
|
<!-- ES Modules -->
|
|
198
221
|
<script type="module">
|
|
199
222
|
// Load main bundle
|
|
200
|
-
import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-fan-pass-standalone-es.
|
|
223
|
+
import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/latest/cirkay-fan-pass-standalone-es.esm.js';
|
|
224
|
+
|
|
225
|
+
// Or pinned (replace <version>)
|
|
226
|
+
// import { FanPassClaim, FanPassUnlock, MobilePass } from 'https://cdn.n3xus.services/fan-pass-cdn/cirkay-components/<version>/cirkay-fan-pass-standalone-es.<version>.esm.js';
|
|
201
227
|
</script>
|
|
202
228
|
```
|
|
203
229
|
|
|
@@ -3,8 +3,6 @@ import '@pushengineering/push-web-components/text';
|
|
|
3
3
|
import '@pushengineering/push-web-components/button';
|
|
4
4
|
import '@pushengineering/push-web-components/vertical-stack';
|
|
5
5
|
import '@pushengineering/push-web-components/header-drawer';
|
|
6
|
-
import '@pushengineering/push-web-components/link';
|
|
7
|
-
import '@pushengineering/push-web-components/logo';
|
|
8
6
|
import CirkayElement from '../../internal/CirkayElement';
|
|
9
7
|
import { FpSession } from '../../utils/helpers';
|
|
10
8
|
import { Environment } from '../../base/n3xus/types';
|
|
@@ -25,6 +23,7 @@ export declare class Connected extends CirkayElement {
|
|
|
25
23
|
private handleLogout;
|
|
26
24
|
private _popoverFocusOut;
|
|
27
25
|
private _toggleSuccessPopover;
|
|
26
|
+
closePopover(): void;
|
|
28
27
|
private parseDisplayText;
|
|
29
28
|
private _setupFormListener;
|
|
30
29
|
private _handleFormChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected.d.ts","sourceRoot":"","sources":["../../../src/components/connected/connected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAA;AAE/C,OAAO,2CAA2C,CAAA;AAClD,OAAO,6CAA6C,CAAA;AACpD,OAAO,qDAAqD,CAAA;AAC5D,OAAO,oDAAoD,CAAA;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"connected.d.ts","sourceRoot":"","sources":["../../../src/components/connected/connected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAA;AAE/C,OAAO,2CAA2C,CAAA;AAClD,OAAO,6CAA6C,CAAA;AACpD,OAAO,qDAAqD,CAAA;AAC5D,OAAO,oDAAoD,CAAA;AAC3D,OAAO,aAAa,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAoB,MAAM,qBAAqB,CAAA;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAcpD,qBAAa,SAAU,SAAQ,aAAa;IACxC,OAAO,CAAC,eAAe,CAA+B;IAE1B,WAAW,EAAE,WAAW,CAAyB;IACjD,MAAM,SAAK;IACX,YAAY,SAAS;IACrC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAChB,YAAY,UAAQ;IACpB,qBAAqB,UAAQ;IAG1D,YAAY,UAAQ;IAGpB,UAAU,EAAE,SAAS,GAAG,IAAI,CAAO;;IAOnC,iBAAiB;IAuBjB,oBAAoB;IAKpB,OAAO,CAAC,mBAAmB;YAkBb,YAAY;IAiB1B,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,qBAAqB;IAItB,YAAY;IAQnB,OAAO,CAAC,gBAAgB;IA6BxB,OAAO,CAAC,kBAAkB;IAmB1B,OAAO,CAAC,iBAAiB,CAqCxB;IAED,OAAO,CAAC,iBAAiB;IAsElB,MAAM,IAAI,cAAc;IA6K/B,OAAgB,MAAM,0BAmOrB;CACJ"}
|
|
@@ -5,8 +5,6 @@ import '@pushengineering/push-web-components/text';
|
|
|
5
5
|
import '@pushengineering/push-web-components/button';
|
|
6
6
|
import '@pushengineering/push-web-components/vertical-stack';
|
|
7
7
|
import '@pushengineering/push-web-components/header-drawer';
|
|
8
|
-
import '@pushengineering/push-web-components/link';
|
|
9
|
-
import '@pushengineering/push-web-components/logo';
|
|
10
8
|
import CirkayElement from '../../internal/CirkayElement.js';
|
|
11
9
|
import { getLatestSession } from '../../utils/helpers.js';
|
|
12
10
|
import { LoginController } from '../../controllers/LoginController.js';
|
|
@@ -108,6 +106,9 @@ class Connected extends CirkayElement {
|
|
|
108
106
|
_toggleSuccessPopover() {
|
|
109
107
|
this._popoverOpen = !this._popoverOpen ? true : false;
|
|
110
108
|
}
|
|
109
|
+
closePopover() {
|
|
110
|
+
this._popoverOpen = false;
|
|
111
|
+
}
|
|
111
112
|
parseDisplayText(text) {
|
|
112
113
|
const parts = text.split('\n\n');
|
|
113
114
|
if (parts.length >= 3) {
|
|
@@ -183,6 +184,7 @@ class Connected extends CirkayElement {
|
|
|
183
184
|
part="popover-content"
|
|
184
185
|
class="popover__content-inner"
|
|
185
186
|
>
|
|
187
|
+
<slot name="popover-actions"></slot>
|
|
186
188
|
<pu-button
|
|
187
189
|
exportparts="button:button-link,button:disconnect-link"
|
|
188
190
|
part="base-button-link base-disconnect-link"
|
|
@@ -221,7 +223,7 @@ class Connected extends CirkayElement {
|
|
|
221
223
|
}
|
|
222
224
|
const displayText = this.displayText
|
|
223
225
|
? this.displayText
|
|
224
|
-
: '
|
|
226
|
+
: 'Connected';
|
|
225
227
|
const parsedText = this.parseDisplayText(displayText.toString());
|
|
226
228
|
return html `
|
|
227
229
|
<pu-box
|
|
@@ -283,7 +285,6 @@ class Connected extends CirkayElement {
|
|
|
283
285
|
fontWeight="regular"
|
|
284
286
|
withoutMargin
|
|
285
287
|
>
|
|
286
|
-
connected as:
|
|
287
288
|
${this.loginController?.user?.email}
|
|
288
289
|
</pu-text>
|
|
289
290
|
`
|
|
@@ -322,44 +323,6 @@ class Connected extends CirkayElement {
|
|
|
322
323
|
`
|
|
323
324
|
: null}
|
|
324
325
|
|
|
325
|
-
<pu-horizontal-stack
|
|
326
|
-
part="base-powered-by-layout"
|
|
327
|
-
exportparts="base:powered-by-layout"
|
|
328
|
-
spacing="4"
|
|
329
|
-
align="center"
|
|
330
|
-
alignNarrow="center"
|
|
331
|
-
justify="center"
|
|
332
|
-
justifyNarrow="center"
|
|
333
|
-
>
|
|
334
|
-
<pu-text
|
|
335
|
-
exportparts="base:powered-by-text"
|
|
336
|
-
part="base-powered-by-text base-text base-body"
|
|
337
|
-
class="powered-by-text"
|
|
338
|
-
as="span"
|
|
339
|
-
variant="bodyXs"
|
|
340
|
-
withoutMargin
|
|
341
|
-
>
|
|
342
|
-
Powered by
|
|
343
|
-
<pu-link target="_blank" url="http://cirkay.com">Cirkay®</pu-link>
|
|
344
|
-
</pu-text>
|
|
345
|
-
<pu-logo
|
|
346
|
-
class="cirkay-logo"
|
|
347
|
-
url="https://cirkay.com/"
|
|
348
|
-
target="_blank"
|
|
349
|
-
alt="Cirkay Logo"
|
|
350
|
-
height="12"
|
|
351
|
-
imgsrc="https://n3xus-store.s3.eu-west-2.amazonaws.com/staging/assets/cirkay-logo-transparent-no-padding.webp"
|
|
352
|
-
imgsrcset="
|
|
353
|
-
https://n3xus-store.s3.eu-west-2.amazonaws.com/staging/assets/cirkay-logo-transparent-no-padding.webp 4x,
|
|
354
|
-
https://n3xus-store.s3.eu-west-2.amazonaws.com/staging/assets/cirkay-logo-transparent-no-padding.webp 3x,
|
|
355
|
-
https://n3xus-store.s3.eu-west-2.amazonaws.com/staging/assets/cirkay-logo-transparent-no-padding.webp 2x,
|
|
356
|
-
https://n3xus-store.s3.eu-west-2.amazonaws.com/staging/assets/cirkay-logo-transparent-no-padding.webp 1x
|
|
357
|
-
"
|
|
358
|
-
imgsizes=""
|
|
359
|
-
imgwidth="12"
|
|
360
|
-
imgheight="12"
|
|
361
|
-
></pu-logo>
|
|
362
|
-
</pu-horizontal-stack>
|
|
363
326
|
<div
|
|
364
327
|
part="popover-positioning-container"
|
|
365
328
|
class="popover-positioning-container"
|
|
@@ -410,13 +373,6 @@ Connected.styles = css `
|
|
|
410
373
|
:host {
|
|
411
374
|
font-size: var(--fp-font-size-base, 1em);
|
|
412
375
|
}
|
|
413
|
-
.cirkay-logo {
|
|
414
|
-
width: 12px;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.powered-by-text {
|
|
418
|
-
line-height: 1;
|
|
419
|
-
}
|
|
420
376
|
|
|
421
377
|
.date-text {
|
|
422
378
|
white-space: nowrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected.js","sources":["../../../src/components/connected/connected.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connected.js","sources":["../../../src/components/connected/connected.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;AAwBM,MAAO,SAAU,SAAQ,aAAa,CAAA;AAgBxC,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;QAhBH,IAAA,CAAA,eAAe,GAA2B,IAAI;AAE1B,QAAA,IAAA,CAAA,WAAW,GAAgB,WAAW,CAAC,UAAU;QACjD,IAAA,CAAA,MAAM,GAAG,EAAE;QACX,IAAA,CAAA,YAAY,GAAG,MAAM;QACrC,IAAA,CAAA,WAAW,GAAkB,IAAI;QAChB,IAAA,CAAA,YAAY,GAAG,KAAK;QACpB,IAAA,CAAA,qBAAqB,GAAG,KAAK;QAG1D,IAAA,CAAA,YAAY,GAAG,KAAK;QAGpB,IAAA,CAAA,UAAU,GAAqB,IAAI;AAwI3B,QAAA,IAAA,CAAA,iBAAiB,GAAG,CAAC,KAAY,KAAU;AAC/C,YAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAGI;YACzB,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;AAEnC,YAAA,IAAI,CAAC,IAAI;gBAAE;AAEX,YAAA,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC;YACnC,MAAM,UAAU,GAAwB,EAAE;YAE1C,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,KAAI;AAC5B,gBAAA,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK;AAC3B,YAAA,CAAC,CAAC;AAEF,YAAA,MAAM,YAAY,GAAG;gBACjB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EACD,MAAM,YAAY,gBAAgB,IAAI,MAAM,CAAC,IAA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AA,SAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AACrC,UAAA,CAAA;AAAX,IAAA,QAAQ;AAAoC,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAChB,UAAA,CAAA;AAA5B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AAAsB,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AACpB,UAAA,CAAA;AAA5B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AAA+B,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,uBAAA,EAAA,MAAA,CAAA;AAG1D,UAAA,CAAA;AADC,IAAA,KAAK;AACc,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAGpB,UAAA,CAAA;AADC,IAAA,KAAK;AAC6B,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;;;;"}
|
|
@@ -29,6 +29,7 @@ export default class FanPassClaim extends CirkayElement {
|
|
|
29
29
|
private n3xusAPIController;
|
|
30
30
|
private mintRequestDid;
|
|
31
31
|
private walletCheckResponse;
|
|
32
|
+
private walletCheckInFlight;
|
|
32
33
|
private loginFlow;
|
|
33
34
|
private unlockedContent;
|
|
34
35
|
private callerId;
|
|
@@ -59,6 +60,7 @@ export default class FanPassClaim extends CirkayElement {
|
|
|
59
60
|
claimingText: string;
|
|
60
61
|
claimSuccessText: string;
|
|
61
62
|
claimSuccessPerkButtonText: string;
|
|
63
|
+
connectedText: string;
|
|
62
64
|
faqUrl: string;
|
|
63
65
|
_claimState: ClaimStateTypes;
|
|
64
66
|
_campaignState: CampaignState;
|
|
@@ -93,6 +95,7 @@ export default class FanPassClaim extends CirkayElement {
|
|
|
93
95
|
logout(): Promise<void>;
|
|
94
96
|
closeOverlay(e?: Event | null): void;
|
|
95
97
|
openOverlay(e?: Event | null): void;
|
|
98
|
+
private handleOpenModalFromPopover;
|
|
96
99
|
private onClaimModalClickOut;
|
|
97
100
|
private logging;
|
|
98
101
|
private renderMobilePass;
|
|
@@ -102,6 +105,9 @@ export default class FanPassClaim extends CirkayElement {
|
|
|
102
105
|
private renderContent;
|
|
103
106
|
private renderClaimButton;
|
|
104
107
|
private getConnectedDisplayText;
|
|
108
|
+
private isModalConnectedBlockVisible;
|
|
109
|
+
private shouldShowClaimInsideConnectedBox;
|
|
110
|
+
private shouldShowModalClaimOutsideConnected;
|
|
105
111
|
render(): TemplateResult;
|
|
106
112
|
}
|
|
107
113
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fan-pass-claim.d.ts","sourceRoot":"","sources":["../../../src/components/fan-pass-claim/fan-pass-claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAGzC,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,6CAA6C,CAAA;AACpD,OAAO,kDAAkD,CAAA;AACzD,OAAO,2CAA2C,CAAA;AAClD,OAAO,qDAAqD,CAAA;AAC5D,OAAO,8CAA8C,CAAA;AAOrD,OAAO,aAAa,MAAM,8BAA8B,CAAA;AACxD,OAAO,UAAU,CAAA;AACjB,OAAO,EAKH,WAAW,EACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,UAAU,CAAA;AACjB,OAAO,UAAU,CAAA;AACjB,OAAO,iBAAiB,CAAA;AACxB,OAAO,gBAAgB,CAAA;AACvB,OAAO,cAAc,CAAA;AACrB,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACpE,OAAO,EAAE,WAAW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AgB,EAAE,YAAY,CAAA;KACjC;CACJ"}
|
|
@@ -39,6 +39,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
39
39
|
this.n3xusAPIController = null;
|
|
40
40
|
this.mintRequestDid = null;
|
|
41
41
|
this.walletCheckResponse = null;
|
|
42
|
+
this.walletCheckInFlight = false;
|
|
42
43
|
this.loginFlow = false;
|
|
43
44
|
this.unlockedContent = false;
|
|
44
45
|
this.callerId = `fan-pass-claim-${Math.random().toString(36).substring(2, 9)}`;
|
|
@@ -79,6 +80,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
79
80
|
this.claimingText = 'Claiming - just a moment';
|
|
80
81
|
this.claimSuccessText = 'You\'ve claimed your ${fanPassTitle}!';
|
|
81
82
|
this.claimSuccessPerkButtonText = 'Check out your perks!';
|
|
83
|
+
this.connectedText = 'Connected';
|
|
82
84
|
this.faqUrl = 'https://cirkay.com/faq/';
|
|
83
85
|
this._claimState = ClaimStateTypes.validating;
|
|
84
86
|
this._campaignState = CampaignState.available;
|
|
@@ -472,9 +474,18 @@ class FanPassClaim extends CirkayElement {
|
|
|
472
474
|
}
|
|
473
475
|
else if (this.loginController?.loginInit &&
|
|
474
476
|
this.loginController?.loggedIn &&
|
|
477
|
+
!this.walletCheckInFlight &&
|
|
478
|
+
!this.walletCheckResponse &&
|
|
475
479
|
this._claimState !== ClaimStateTypes.redeemedLogin &&
|
|
476
480
|
this._claimState !== ClaimStateTypes.minting) {
|
|
477
|
-
|
|
481
|
+
this.walletCheckInFlight = true;
|
|
482
|
+
let walletCheckResponse = null;
|
|
483
|
+
try {
|
|
484
|
+
walletCheckResponse = await this.setSessionToken();
|
|
485
|
+
}
|
|
486
|
+
finally {
|
|
487
|
+
this.walletCheckInFlight = false;
|
|
488
|
+
}
|
|
478
489
|
if (walletCheckResponse) {
|
|
479
490
|
const state = walletCheckResponse.state;
|
|
480
491
|
if (state === 'NFT_EXPIRED') {
|
|
@@ -710,17 +721,56 @@ class FanPassClaim extends CirkayElement {
|
|
|
710
721
|
}
|
|
711
722
|
async checkSessionStatus() {
|
|
712
723
|
this.logging('checkSessionStatus');
|
|
713
|
-
const
|
|
724
|
+
const previousSession = getLatestSession(this.apiKey);
|
|
725
|
+
const session = previousSession;
|
|
714
726
|
this.logging('session', session);
|
|
715
|
-
const
|
|
716
|
-
const
|
|
727
|
+
const now = Date.now();
|
|
728
|
+
const sessionTtlMs = 3.5 * 60 * 1000;
|
|
729
|
+
const refreshThresholdMs = 60 * 1000;
|
|
730
|
+
const minutesAgo = now - sessionTtlMs;
|
|
717
731
|
this.logging('minutesAgo', minutesAgo);
|
|
732
|
+
if (session?.issueTS) {
|
|
733
|
+
const expiresAt = session.issueTS + sessionTtlMs;
|
|
734
|
+
const remainingMs = expiresAt - now;
|
|
735
|
+
this.logging('sessionRemainingMs', remainingMs);
|
|
736
|
+
}
|
|
718
737
|
if (session && session.issueTS > minutesAgo) {
|
|
719
|
-
|
|
720
|
-
|
|
738
|
+
const remainingMs = (session.issueTS + sessionTtlMs) - now;
|
|
739
|
+
if (remainingMs <= refreshThresholdMs) {
|
|
740
|
+
this.logging('session is nearing expiry (< 1m), refreshing');
|
|
741
|
+
await this.setSessionToken(true);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
this.logging('session is still valid, no need to make API call');
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
this.logging('session is expired, making API call');
|
|
750
|
+
await this.setSessionToken(true);
|
|
751
|
+
}
|
|
752
|
+
const renewedSession = getLatestSession(this.apiKey);
|
|
753
|
+
if (renewedSession
|
|
754
|
+
&& (!previousSession
|
|
755
|
+
|| renewedSession.issueTS !== previousSession.issueTS
|
|
756
|
+
|| renewedSession.token !== previousSession.token)) {
|
|
757
|
+
this.emit(LoginEvents.SessionRenewed, {
|
|
758
|
+
bubbles: true,
|
|
759
|
+
composed: true,
|
|
760
|
+
detail: {
|
|
761
|
+
apiKey: renewedSession.apiKey ?? this.apiKey,
|
|
762
|
+
issueTS: renewedSession.issueTS,
|
|
763
|
+
sessionToken: renewedSession.token,
|
|
764
|
+
didToken: renewedSession.didToken,
|
|
765
|
+
email: renewedSession.email ?? this.loginController?.user?.email ?? null,
|
|
766
|
+
wallet: renewedSession.wallet ?? this.loginController?.user?.walletAddress ?? null,
|
|
767
|
+
expiryDate: renewedSession.expiryDate ?? null,
|
|
768
|
+
startDate: renewedSession.startDate ?? null,
|
|
769
|
+
source: 'polling',
|
|
770
|
+
component: 'fp-claim',
|
|
771
|
+
},
|
|
772
|
+
});
|
|
721
773
|
}
|
|
722
|
-
this.logging('session is expired, making API call');
|
|
723
|
-
this.setSessionToken();
|
|
724
774
|
}
|
|
725
775
|
startPolling() {
|
|
726
776
|
if (!this.interval) {
|
|
@@ -1078,6 +1128,11 @@ class FanPassClaim extends CirkayElement {
|
|
|
1078
1128
|
window.addEventListener('mousedown', this.onClaimModalClickOut);
|
|
1079
1129
|
}
|
|
1080
1130
|
}
|
|
1131
|
+
handleOpenModalFromPopover() {
|
|
1132
|
+
this.openOverlay();
|
|
1133
|
+
const fpConnected = this.querySelector('fp-connected');
|
|
1134
|
+
fpConnected?.closePopover?.();
|
|
1135
|
+
}
|
|
1081
1136
|
logging(message, ...optionalParams) {
|
|
1082
1137
|
if (this.debugLogging) {
|
|
1083
1138
|
console.log(message, optionalParams);
|
|
@@ -1349,7 +1404,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
1349
1404
|
variant="bodyMd"
|
|
1350
1405
|
withoutMargin
|
|
1351
1406
|
>
|
|
1352
|
-
Claim to this
|
|
1407
|
+
Claim to this email
|
|
1353
1408
|
</pu-text>
|
|
1354
1409
|
</pu-button>
|
|
1355
1410
|
<pu-button
|
|
@@ -1368,7 +1423,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
1368
1423
|
variant="bodyMd"
|
|
1369
1424
|
withoutMargin
|
|
1370
1425
|
>
|
|
1371
|
-
Change
|
|
1426
|
+
Change email
|
|
1372
1427
|
</pu-text>
|
|
1373
1428
|
</pu-button>
|
|
1374
1429
|
</pu-vertical-stack>
|
|
@@ -1406,7 +1461,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
1406
1461
|
?showLoaderAfterLogin=${true}
|
|
1407
1462
|
exportparts="${loginShadowParts}"
|
|
1408
1463
|
>
|
|
1409
|
-
<div slot="form-content-before-submit">
|
|
1464
|
+
<div class="form-before-submit-wrapper" slot="form-content-before-submit">
|
|
1410
1465
|
<slot name="form-content-claim-before-submit"></slot>
|
|
1411
1466
|
</div>
|
|
1412
1467
|
<form part="form-content" slot="form-content">
|
|
@@ -1664,7 +1719,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
1664
1719
|
</div>
|
|
1665
1720
|
`;
|
|
1666
1721
|
}
|
|
1667
|
-
getConnectedDisplayText(
|
|
1722
|
+
getConnectedDisplayText() {
|
|
1668
1723
|
if (this.walletCheckResponse?.data?.holds === true &&
|
|
1669
1724
|
(this.walletCheckResponse.state === 'NFT_NOT_ACTIVE' ||
|
|
1670
1725
|
this.walletCheckResponse.data?.active === false)) {
|
|
@@ -1675,18 +1730,34 @@ class FanPassClaim extends CirkayElement {
|
|
|
1675
1730
|
}
|
|
1676
1731
|
return `You've claimed your ${this.fanPassTitle}\n\nIt will become active from`;
|
|
1677
1732
|
}
|
|
1678
|
-
return
|
|
1733
|
+
return this.connectedText;
|
|
1734
|
+
}
|
|
1735
|
+
isModalConnectedBlockVisible() {
|
|
1736
|
+
return !!(this.walletCheckResponse &&
|
|
1737
|
+
this.loginController?.loggedIn &&
|
|
1738
|
+
!this.hideConnected);
|
|
1739
|
+
}
|
|
1740
|
+
shouldShowClaimInsideConnectedBox() {
|
|
1741
|
+
return (this.isModalConnectedBlockVisible() &&
|
|
1742
|
+
this.walletCheckResponse?.data?.holds !== true);
|
|
1743
|
+
}
|
|
1744
|
+
shouldShowModalClaimOutsideConnected() {
|
|
1745
|
+
return !this.isModalConnectedBlockVisible();
|
|
1679
1746
|
}
|
|
1680
1747
|
render() {
|
|
1681
1748
|
this.logging('render', 'claimState', this._claimState);
|
|
1682
1749
|
if (this.modal) {
|
|
1683
1750
|
return html `
|
|
1684
|
-
${this.
|
|
1751
|
+
${this.shouldShowModalClaimOutsideConnected()
|
|
1752
|
+
? this.renderClaimButton()
|
|
1753
|
+
: html ``}
|
|
1754
|
+
${this.isModalConnectedBlockVisible()
|
|
1685
1755
|
? html `
|
|
1686
1756
|
<fp-connected
|
|
1757
|
+
part="connected-block"
|
|
1687
1758
|
exportparts="${connectedShadowParts}"
|
|
1688
1759
|
displayText=${this.walletCheckResponse.data?.holds
|
|
1689
|
-
? this.getConnectedDisplayText(
|
|
1760
|
+
? this.getConnectedDisplayText()
|
|
1690
1761
|
: this.claimIntroText.replace('${fanPassTitle}', this.fanPassTitle)}
|
|
1691
1762
|
fanPassTitle=${this.fanPassTitle}
|
|
1692
1763
|
apiKey=${this.apiKey}
|
|
@@ -1696,12 +1767,38 @@ class FanPassClaim extends CirkayElement {
|
|
|
1696
1767
|
? true
|
|
1697
1768
|
: false}
|
|
1698
1769
|
>
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1770
|
+
${this.shouldShowClaimInsideConnectedBox()
|
|
1771
|
+
? html `
|
|
1772
|
+
<div
|
|
1773
|
+
part="inner-content"
|
|
1774
|
+
slot="inner-content"
|
|
1775
|
+
class="connected-claim-button-wrap"
|
|
1776
|
+
>
|
|
1777
|
+
${this.renderClaimButton()}
|
|
1778
|
+
</div>
|
|
1779
|
+
`
|
|
1780
|
+
: html ``}
|
|
1781
|
+
<pu-button
|
|
1782
|
+
slot="popover-actions"
|
|
1783
|
+
@click=${this.handleOpenModalFromPopover}
|
|
1784
|
+
type="button"
|
|
1785
|
+
size="small"
|
|
1786
|
+
variant="plain"
|
|
1787
|
+
fullWidth
|
|
1788
|
+
>
|
|
1789
|
+
<pu-text
|
|
1790
|
+
as="span"
|
|
1791
|
+
variant="bodyMd"
|
|
1792
|
+
fontWeight="regular"
|
|
1793
|
+
withoutMargin
|
|
1794
|
+
spacing="loose"
|
|
1795
|
+
>
|
|
1796
|
+
See more
|
|
1797
|
+
</pu-text>
|
|
1798
|
+
</pu-button>
|
|
1702
1799
|
</fp-connected>
|
|
1703
1800
|
`
|
|
1704
|
-
: html
|
|
1801
|
+
: html ``}
|
|
1705
1802
|
|
|
1706
1803
|
<pu-overlay id="fb-modal" class="fb-modal" part="overlay-container" exportparts="base,close,content">
|
|
1707
1804
|
<pu-box
|
|
@@ -1759,8 +1856,9 @@ class FanPassClaim extends CirkayElement {
|
|
|
1759
1856
|
${this.walletCheckResponse && this.loginController?.loggedIn
|
|
1760
1857
|
? html `
|
|
1761
1858
|
<fp-connected
|
|
1859
|
+
part="connected-block"
|
|
1762
1860
|
displayText=${this.walletCheckResponse.data?.holds
|
|
1763
|
-
? this.getConnectedDisplayText(
|
|
1861
|
+
? this.getConnectedDisplayText()
|
|
1764
1862
|
: this.claimIntroText.replace('${fanPassTitle}', this.fanPassTitle)}
|
|
1765
1863
|
fanPassTitle=${this.fanPassTitle}
|
|
1766
1864
|
apiKey=${this.apiKey}
|
|
@@ -1864,6 +1962,9 @@ __decorate([
|
|
|
1864
1962
|
__decorate([
|
|
1865
1963
|
property({ type: String })
|
|
1866
1964
|
], FanPassClaim.prototype, "claimSuccessPerkButtonText", void 0);
|
|
1965
|
+
__decorate([
|
|
1966
|
+
property({ type: String })
|
|
1967
|
+
], FanPassClaim.prototype, "connectedText", void 0);
|
|
1867
1968
|
__decorate([
|
|
1868
1969
|
property({ type: String })
|
|
1869
1970
|
], FanPassClaim.prototype, "faqUrl", void 0);
|