@appcues/web-sdk 7.22.2 → 7.24.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/CHANGELOG.md +103 -0
- package/build/actions/action-types.d.ts +46 -0
- package/build/actions/action-types.d.ts.map +1 -0
- package/build/actions/annotations-actions.d.ts +121 -0
- package/build/actions/annotations-actions.d.ts.map +1 -0
- package/build/actions/checklist-actions.d.ts +199 -0
- package/build/actions/checklist-actions.d.ts.map +1 -0
- package/build/actions/collision-mode-actions.d.ts +9 -0
- package/build/actions/collision-mode-actions.d.ts.map +1 -0
- package/build/actions/common-actions.d.ts +124 -0
- package/build/actions/common-actions.d.ts.map +1 -0
- package/build/actions/core-actions.d.ts +259 -0
- package/build/actions/core-actions.d.ts.map +1 -0
- package/build/actions/create-action.d.ts +17 -0
- package/build/actions/create-action.d.ts.map +1 -0
- package/build/actions/debugger-actions.d.ts +8 -0
- package/build/actions/debugger-actions.d.ts.map +1 -0
- package/build/actions/experience-actions.d.ts +48 -0
- package/build/actions/experience-actions.d.ts.map +1 -0
- package/build/actions/hotspots-actions.d.ts +36 -0
- package/build/actions/hotspots-actions.d.ts.map +1 -0
- package/build/actions/modal-actions.d.ts +16 -0
- package/build/actions/modal-actions.d.ts.map +1 -0
- package/build/actions/root-actions.d.ts +260 -0
- package/build/actions/root-actions.d.ts.map +1 -0
- package/build/actions/satisfaction-survey-actions.d.ts +67 -0
- package/build/actions/satisfaction-survey-actions.d.ts.map +1 -0
- package/build/actions/session-actions.d.ts +19 -0
- package/build/actions/session-actions.d.ts.map +1 -0
- package/build/actions/widget-actions.d.ts +25 -0
- package/build/actions/widget-actions.d.ts.map +1 -0
- package/build/analytics/create-checklist-event.d.ts +24 -0
- package/build/analytics/create-checklist-event.d.ts.map +1 -0
- package/build/analytics/create-events.d.ts +30 -0
- package/build/analytics/create-events.d.ts.map +1 -0
- package/build/analytics/create-flow-event.d.ts +3 -0
- package/build/analytics/create-flow-event.d.ts.map +1 -0
- package/build/analytics/create-session-event.d.ts +3 -0
- package/build/analytics/create-session-event.d.ts.map +1 -0
- package/build/analytics/create-step-events.d.ts +40 -0
- package/build/analytics/create-step-events.d.ts.map +1 -0
- package/build/analytics/transform-analytics-event.d.ts +10 -0
- package/build/analytics/transform-analytics-event.d.ts.map +1 -0
- package/build/bind-interface.d.ts +10 -0
- package/build/bind-interface.d.ts.map +1 -0
- package/build/bootstrap.npm.DYhiH7lm.js +12049 -0
- package/build/bootstrap.npm.d.ts +2 -0
- package/build/bootstrap.npm.d.ts.map +1 -0
- package/build/checklist.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css +1 -0
- package/build/clickstream/generate-selector.d.ts +12 -0
- package/build/clickstream/generate-selector.d.ts.map +1 -0
- package/build/clickstream/index.d.ts +2 -0
- package/build/clickstream/index.d.ts.map +1 -0
- package/build/clickstream/pii-filter.d.ts +3 -0
- package/build/clickstream/pii-filter.d.ts.map +1 -0
- package/build/clickstream/saga.d.ts +2 -0
- package/build/clickstream/saga.d.ts.map +1 -0
- package/build/constants.FfLavyn7.js +119 -0
- package/build/container.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css +1 -0
- package/build/css-helper.d.ts +2 -0
- package/build/css-helper.d.ts.map +1 -0
- package/build/custom-events/actions.d.ts +3 -0
- package/build/custom-events/actions.d.ts.map +1 -0
- package/build/custom-events/index.d.ts +4 -0
- package/build/custom-events/index.d.ts.map +1 -0
- package/build/custom-events/listeners/click.d.ts +14 -0
- package/build/custom-events/listeners/click.d.ts.map +1 -0
- package/build/custom-events/listeners/get-composed-path.d.ts +2 -0
- package/build/custom-events/listeners/get-composed-path.d.ts.map +1 -0
- package/build/custom-events/listeners/get-matching-events.d.ts +31 -0
- package/build/custom-events/listeners/get-matching-events.d.ts.map +1 -0
- package/build/custom-events/listeners/hover.d.ts +13 -0
- package/build/custom-events/listeners/hover.d.ts.map +1 -0
- package/build/custom-events/listeners/input.d.ts +5 -0
- package/build/custom-events/listeners/input.d.ts.map +1 -0
- package/build/custom-events/saga.d.ts +11 -0
- package/build/custom-events/saga.d.ts.map +1 -0
- package/build/custom-events/transform-custom-event.d.ts +18 -0
- package/build/custom-events/transform-custom-event.d.ts.map +1 -0
- package/build/data/api.d.ts +107 -0
- package/build/data/api.d.ts.map +1 -0
- package/build/data/create-event.d.ts +10 -0
- package/build/data/create-event.d.ts.map +1 -0
- package/build/data/message-dispatcher.d.ts +11 -0
- package/build/data/message-dispatcher.d.ts.map +1 -0
- package/build/data/strip-query-params.d.ts +3 -0
- package/build/data/strip-query-params.d.ts.map +1 -0
- package/build/data/transports/http.d.ts +2 -0
- package/build/data/transports/http.d.ts.map +1 -0
- package/build/data/transports/websocket.d.ts +10 -0
- package/build/data/transports/websocket.d.ts.map +1 -0
- package/build/debugger.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css +1 -0
- package/build/dist.BmJY3Sl-.js +85 -0
- package/build/dist.DrPFC3yn.js +2204 -0
- package/build/index.npm.js +88 -4
- package/build/initialize.d.ts +6 -0
- package/build/initialize.d.ts.map +1 -0
- package/build/integrations/integration-helpers.d.ts +57 -0
- package/build/integrations/integration-helpers.d.ts.map +1 -0
- package/build/integrations/integration-methods.d.ts +8 -0
- package/build/integrations/integration-methods.d.ts.map +1 -0
- package/build/lifecycle-events/create-lifecycle-events.d.ts +13 -0
- package/build/lifecycle-events/create-lifecycle-events.d.ts.map +1 -0
- package/build/main.d.ts +3 -0
- package/build/main.d.ts.map +1 -0
- package/build/modal.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css +1 -0
- package/build/open-builder.Djam6tRm.js +8260 -0
- package/build/reducers/annotations-reducers.d.ts +49 -0
- package/build/reducers/annotations-reducers.d.ts.map +1 -0
- package/build/reducers/checklist-reducers.d.ts +49 -0
- package/build/reducers/checklist-reducers.d.ts.map +1 -0
- package/build/reducers/common-reducers.d.ts +70 -0
- package/build/reducers/common-reducers.d.ts.map +1 -0
- package/build/reducers/core-reducers.d.ts +166 -0
- package/build/reducers/core-reducers.d.ts.map +1 -0
- package/build/reducers/create-root-reducer.d.ts +3 -0
- package/build/reducers/create-root-reducer.d.ts.map +1 -0
- package/build/reducers/debugger-reducers.d.ts +33 -0
- package/build/reducers/debugger-reducers.d.ts.map +1 -0
- package/build/reducers/default-reducer.d.ts +16 -0
- package/build/reducers/default-reducer.d.ts.map +1 -0
- package/build/reducers/hotspots-reducers.d.ts +17 -0
- package/build/reducers/hotspots-reducers.d.ts.map +1 -0
- package/build/reducers/modal-reducers.d.ts +13 -0
- package/build/reducers/modal-reducers.d.ts.map +1 -0
- package/build/reducers/reducer-helpers.d.ts +13 -0
- package/build/reducers/reducer-helpers.d.ts.map +1 -0
- package/build/reducers/root-reducers.d.ts +47 -0
- package/build/reducers/root-reducers.d.ts.map +1 -0
- package/build/reducers/satisfaction-survey-reducers.d.ts +41 -0
- package/build/reducers/satisfaction-survey-reducers.d.ts.map +1 -0
- package/build/reducers/session-reducers.d.ts +20 -0
- package/build/reducers/session-reducers.d.ts.map +1 -0
- package/build/reducers/test-mode-reducers.d.ts +9 -0
- package/build/reducers/test-mode-reducers.d.ts.map +1 -0
- package/build/reducers/widget-reducers.d.ts +21 -0
- package/build/reducers/widget-reducers.d.ts.map +1 -0
- package/build/sagas/action-sagas.d.ts +20 -0
- package/build/sagas/action-sagas.d.ts.map +1 -0
- package/build/sagas/annotations-sagas.d.ts +55 -0
- package/build/sagas/annotations-sagas.d.ts.map +1 -0
- package/build/sagas/checklist-sagas.d.ts +18 -0
- package/build/sagas/checklist-sagas.d.ts.map +1 -0
- package/build/sagas/collision-mode-sagas.d.ts +9 -0
- package/build/sagas/collision-mode-sagas.d.ts.map +1 -0
- package/build/sagas/common-sagas.d.ts +18 -0
- package/build/sagas/common-sagas.d.ts.map +1 -0
- package/build/sagas/conditions-sagas.d.ts +72 -0
- package/build/sagas/conditions-sagas.d.ts.map +1 -0
- package/build/sagas/debugger-sagas.d.ts +7 -0
- package/build/sagas/debugger-sagas.d.ts.map +1 -0
- package/build/sagas/experiences-sagas.d.ts +5 -0
- package/build/sagas/experiences-sagas.d.ts.map +1 -0
- package/build/sagas/experiments-sagas.d.ts +14 -0
- package/build/sagas/experiments-sagas.d.ts.map +1 -0
- package/build/sagas/flow-sagas.d.ts +64 -0
- package/build/sagas/flow-sagas.d.ts.map +1 -0
- package/build/sagas/handle-flow-lifecycle-events.d.ts +12 -0
- package/build/sagas/handle-flow-lifecycle-events.d.ts.map +1 -0
- package/build/sagas/handle-messages.d.ts +3 -0
- package/build/sagas/handle-messages.d.ts.map +1 -0
- package/build/sagas/hotspots-sagas.d.ts +30 -0
- package/build/sagas/hotspots-sagas.d.ts.map +1 -0
- package/build/sagas/knowledge-base-sagas.d.ts +2 -0
- package/build/sagas/knowledge-base-sagas.d.ts.map +1 -0
- package/build/sagas/modal-sagas.d.ts +3 -0
- package/build/sagas/modal-sagas.d.ts.map +1 -0
- package/build/sagas/open-builder-sagas.d.ts +5 -0
- package/build/sagas/open-builder-sagas.d.ts.map +1 -0
- package/build/sagas/saga-utils.d.ts +84 -0
- package/build/sagas/saga-utils.d.ts.map +1 -0
- package/build/sagas/sagas.d.ts +167 -0
- package/build/sagas/sagas.d.ts.map +1 -0
- package/build/sagas/satisfaction-survey-sagas.d.ts +8 -0
- package/build/sagas/satisfaction-survey-sagas.d.ts.map +1 -0
- package/build/sagas/session-sagas.d.ts +4 -0
- package/build/sagas/session-sagas.d.ts.map +1 -0
- package/build/sagas/test-mode-sagas.d.ts +4 -0
- package/build/sagas/test-mode-sagas.d.ts.map +1 -0
- package/build/sagas/watch-url-sagas.d.ts +3 -0
- package/build/sagas/watch-url-sagas.d.ts.map +1 -0
- package/build/sagas/widget-sagas.d.ts +4 -0
- package/build/sagas/widget-sagas.d.ts.map +1 -0
- package/build/satisfaction-survey.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css +1 -0
- package/build/store/configure-store.d.ts +10 -0
- package/build/store/configure-store.d.ts.map +1 -0
- package/build/store/reporter-middleware.d.ts +10 -0
- package/build/store/reporter-middleware.d.ts.map +1 -0
- package/build/test-mode.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css +1 -0
- package/build/tooltip.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css +1 -0
- package/build/utils/accessible-tab.d.ts +2 -0
- package/build/utils/accessible-tab.d.ts.map +1 -0
- package/build/utils/array.d.ts +2 -0
- package/build/utils/array.d.ts.map +1 -0
- package/build/utils/conditions.d.ts +15 -0
- package/build/utils/conditions.d.ts.map +1 -0
- package/build/utils/constants.d.ts +2 -0
- package/build/utils/constants.d.ts.map +1 -1
- package/build/utils/create-appcues.d.ts +4 -0
- package/build/utils/create-appcues.d.ts.map +1 -0
- package/build/utils/create-reporter.d.ts +2 -0
- package/build/utils/create-reporter.d.ts.map +1 -0
- package/build/utils/data-selectors.d.ts +122 -0
- package/build/utils/data-selectors.d.ts.map +1 -0
- package/build/utils/delay.d.ts +9 -0
- package/build/utils/delay.d.ts.map +1 -0
- package/build/utils/dom.d.ts +160 -0
- package/build/utils/dom.d.ts.map +1 -0
- package/build/utils/embed-grouping.d.ts +23 -0
- package/build/utils/embed-grouping.d.ts.map +1 -0
- package/build/utils/escape.d.ts +12 -0
- package/build/utils/escape.d.ts.map +1 -0
- package/build/utils/evaluate-selector.d.ts +4 -0
- package/build/utils/evaluate-selector.d.ts.map +1 -0
- package/build/utils/flow-performance.d.ts +19 -0
- package/build/utils/flow-performance.d.ts.map +1 -0
- package/build/utils/flow-selectors.d.ts +52 -0
- package/build/utils/flow-selectors.d.ts.map +1 -0
- package/build/utils/generate-uuid.d.ts +7 -0
- package/build/utils/generate-uuid.d.ts.map +1 -0
- package/build/utils/generated-properties.d.ts +27 -0
- package/build/utils/generated-properties.d.ts.map +1 -0
- package/build/utils/handle-navigation.d.ts +5 -0
- package/build/utils/handle-navigation.d.ts.map +1 -0
- package/build/utils/humanize.d.ts +15 -0
- package/build/utils/humanize.d.ts.map +1 -0
- package/build/utils/iframes.d.ts +3 -0
- package/build/utils/iframes.d.ts.map +1 -0
- package/build/utils/is.d.ts +8 -0
- package/build/utils/is.d.ts.map +1 -0
- package/build/utils/lazy-loading.d.ts +2 -0
- package/build/utils/lazy-loading.d.ts.map +1 -0
- package/build/utils/links.d.ts +16 -0
- package/build/utils/links.d.ts.map +1 -0
- package/build/utils/location.d.ts +8 -0
- package/build/utils/location.d.ts.map +1 -0
- package/build/utils/pending-experience-events.d.ts +31 -0
- package/build/utils/pending-experience-events.d.ts.map +1 -0
- package/build/utils/query.d.ts +4 -0
- package/build/utils/query.d.ts.map +1 -0
- package/build/utils/render-contexts.d.ts +6 -0
- package/build/utils/render-contexts.d.ts.map +1 -0
- package/build/utils/selector-utils.d.ts +13 -0
- package/build/utils/selector-utils.d.ts.map +1 -0
- package/build/utils/show-powered-by.d.ts +9 -0
- package/build/utils/show-powered-by.d.ts.map +1 -0
- package/build/utils/store.d.ts +23 -0
- package/build/utils/store.d.ts.map +1 -0
- package/build/utils/temp-store.d.ts +5 -0
- package/build/utils/temp-store.d.ts.map +1 -0
- package/build/utils/test-mode.d.ts +3 -0
- package/build/utils/test-mode.d.ts.map +1 -0
- package/build/utils/time.d.ts +6 -0
- package/build/utils/time.d.ts.map +1 -0
- package/build/utils/trigger-content-changes.d.ts +20 -0
- package/build/utils/trigger-content-changes.d.ts.map +1 -0
- package/build/utils/url.d.ts +7 -0
- package/build/utils/url.d.ts.map +1 -0
- package/build/utils/validate-form-fields.d.ts +20 -0
- package/build/utils/validate-form-fields.d.ts.map +1 -0
- package/build/utils/vnode.d.ts +102 -0
- package/build/utils/vnode.d.ts.map +1 -0
- package/build/utils/widget.d.ts +10 -0
- package/build/utils/widget.d.ts.map +1 -0
- package/build/views/callbacks/checklist-callbacks.d.ts +20 -0
- package/build/views/callbacks/checklist-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/common-callbacks.d.ts +45 -0
- package/build/views/callbacks/common-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/debugger-callbacks.d.ts +6 -0
- package/build/views/callbacks/debugger-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/hotspots-callbacks.d.ts +18 -0
- package/build/views/callbacks/hotspots-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/modal-callbacks.d.ts +26 -0
- package/build/views/callbacks/modal-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/sequential-hotspots-callbacks.d.ts +38 -0
- package/build/views/callbacks/sequential-hotspots-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/survey-callbacks.d.ts +16 -0
- package/build/views/callbacks/survey-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/test-mode-callbacks.d.ts +15 -0
- package/build/views/callbacks/test-mode-callbacks.d.ts.map +1 -0
- package/build/views/callbacks/widget-callbacks.d.ts +15 -0
- package/build/views/callbacks/widget-callbacks.d.ts.map +1 -0
- package/build/views/components/annotations.d.ts +13 -0
- package/build/views/components/annotations.d.ts.map +1 -0
- package/build/views/components/background.d.ts +6 -0
- package/build/views/components/background.d.ts.map +1 -0
- package/build/views/components/beacon-outline-styling.d.ts +3 -0
- package/build/views/components/beacon-outline-styling.d.ts.map +1 -0
- package/build/views/components/beacons.d.ts +12 -0
- package/build/views/components/beacons.d.ts.map +1 -0
- package/build/views/components/button.d.ts +11 -0
- package/build/views/components/button.d.ts.map +1 -0
- package/build/views/components/checklist-beacon.d.ts +3 -0
- package/build/views/components/checklist-beacon.d.ts.map +1 -0
- package/build/views/components/checklist-icons.d.ts +18 -0
- package/build/views/components/checklist-icons.d.ts.map +1 -0
- package/build/views/components/checklist-item.d.ts +3 -0
- package/build/views/components/checklist-item.d.ts.map +1 -0
- package/build/views/components/checklist.d.ts +3 -0
- package/build/views/components/checklist.d.ts.map +1 -0
- package/build/views/components/content-outline-styling.d.ts +3 -0
- package/build/views/components/content-outline-styling.d.ts.map +1 -0
- package/build/views/components/debugger.d.ts +14 -0
- package/build/views/components/debugger.d.ts.map +1 -0
- package/build/views/components/empty.d.ts +6 -0
- package/build/views/components/empty.d.ts.map +1 -0
- package/build/views/components/global-styling.d.ts +5 -0
- package/build/views/components/global-styling.d.ts.map +1 -0
- package/build/views/components/hotspot.d.ts +36 -0
- package/build/views/components/hotspot.d.ts.map +1 -0
- package/build/views/components/logo.d.ts +6 -0
- package/build/views/components/logo.d.ts.map +1 -0
- package/build/views/components/modal-step.d.ts +5 -0
- package/build/views/components/modal-step.d.ts.map +1 -0
- package/build/views/components/nps-survey-qualitative-question.d.ts +5 -0
- package/build/views/components/nps-survey-qualitative-question.d.ts.map +1 -0
- package/build/views/components/nps-survey-quantitative-option.d.ts +2 -0
- package/build/views/components/nps-survey-quantitative-option.d.ts.map +1 -0
- package/build/views/components/nps-survey-quantitative-question.d.ts +5 -0
- package/build/views/components/nps-survey-quantitative-question.d.ts.map +1 -0
- package/build/views/components/nps-survey-toast.d.ts +2 -0
- package/build/views/components/nps-survey-toast.d.ts.map +1 -0
- package/build/views/components/nps-survey.d.ts +2 -0
- package/build/views/components/nps-survey.d.ts.map +1 -0
- package/build/views/components/powered-by-appcues.d.ts +14 -0
- package/build/views/components/powered-by-appcues.d.ts.map +1 -0
- package/build/views/components/test-mode-banner.d.ts +3 -0
- package/build/views/components/test-mode-banner.d.ts.map +1 -0
- package/build/views/components/tooltip.d.ts +4 -0
- package/build/views/components/tooltip.d.ts.map +1 -0
- package/build/views/renderers/render-checklist.d.ts +3 -0
- package/build/views/renderers/render-checklist.d.ts.map +1 -0
- package/build/views/renderers/render-debugger.d.ts +3 -0
- package/build/views/renderers/render-debugger.d.ts.map +1 -0
- package/build/views/renderers/render-hotspots.d.ts +2 -0
- package/build/views/renderers/render-hotspots.d.ts.map +1 -0
- package/build/views/renderers/render-modal.d.ts +10 -0
- package/build/views/renderers/render-modal.d.ts.map +1 -0
- package/build/views/renderers/render-satisfaction-survey.d.ts +10 -0
- package/build/views/renderers/render-satisfaction-survey.d.ts.map +1 -0
- package/build/views/renderers/render-test-mode-banner.d.ts +2 -0
- package/build/views/renderers/render-test-mode-banner.d.ts.map +1 -0
- package/build/views/renderers/render-widget-icon.d.ts +10 -0
- package/build/views/renderers/render-widget-icon.d.ts.map +1 -0
- package/build/views/renderers/render-widget.d.ts +3 -0
- package/build/views/renderers/render-widget.d.ts.map +1 -0
- package/build/views/setup-view.d.ts +11 -0
- package/build/views/setup-view.d.ts.map +1 -0
- package/build/views/setup-widget.d.ts +11 -0
- package/build/views/setup-widget.d.ts.map +1 -0
- package/package.json +7 -6
- package/build/bootstrap.npm.DVu00o0l.js +0 -15505
- package/build/checklist.045d5c27f0910d4361d7c1398c89d399dee2edb5.css +0 -1
- package/build/container.045d5c27f0910d4361d7c1398c89d399dee2edb5.css +0 -1
- package/build/debugger.045d5c27f0910d4361d7c1398c89d399dee2edb5.css +0 -1
- package/build/index.C4xtQVZQ.js +0 -2152
- package/build/index.npm.B4soqbH3.js +0 -339
- package/build/modal.045d5c27f0910d4361d7c1398c89d399dee2edb5.css +0 -1
- package/build/open-builder.CqAPcpHg.js +0 -10172
- package/build/satisfaction-survey.045d5c27f0910d4361d7c1398c89d399dee2edb5.css +0 -1
- package/build/test-mode.045d5c27f0910d4361d7c1398c89d399dee2edb5.css +0 -1
- package/build/tooltip.045d5c27f0910d4361d7c1398c89d399dee2edb5.css +0 -1
- /package/build/{modal-step-legacy-render.045d5c27f0910d4361d7c1398c89d399dee2edb5.css → modal-step-legacy-render.c1e77dbbb641eec1fd5ab36b9a1474de41efcf5f.css} +0 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export function getRootNode($el: any): any;
|
|
2
|
+
export function findUniqueElement(query: any, context?: Document): any;
|
|
3
|
+
export function hasSize(el: any, computedStyle?: {}): boolean;
|
|
4
|
+
export function getParentPadding(element: any): {
|
|
5
|
+
top: any;
|
|
6
|
+
left: any;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Calculates a set of position-related details about the element identified by
|
|
10
|
+
* the passed selector. It calculates the following proeprties:
|
|
11
|
+
* - fixed - whether the element or a parent is fixed.
|
|
12
|
+
* - zIndex - 1 higher than the zIndex of the targeted element's highest level
|
|
13
|
+
* stacking context.
|
|
14
|
+
* - element - the targeted element.
|
|
15
|
+
* - boundingRect - with values for the `top`, `left`, `bottom`, `right` of
|
|
16
|
+
* the element (from getBoundingClientRect()), adjusted for
|
|
17
|
+
* page offsets and scrolling. This value is the equivalent
|
|
18
|
+
* of the position as if the element had a position of
|
|
19
|
+
* of 'absolute', unless it is fixed or has a fixed parent.
|
|
20
|
+
* - relativeBoundingRect - with values for the `top`, `left`, `bottom`,
|
|
21
|
+
* `right` of the element relative to the viewport.
|
|
22
|
+
* - viewport - with values for the `height` and `width` of the viewport.
|
|
23
|
+
*
|
|
24
|
+
* If no element is found or multiple are found an error object is generated.
|
|
25
|
+
*
|
|
26
|
+
* @param {Element} el The element to calculate details for, or null if unknown.
|
|
27
|
+
*
|
|
28
|
+
* @param {string|object[]} selector Selector of element to calculate position
|
|
29
|
+
* details for, or an array of objects that have a "selector" key that is a
|
|
30
|
+
* string
|
|
31
|
+
*
|
|
32
|
+
* @return {object} Position details object of the form:
|
|
33
|
+
* {
|
|
34
|
+
* fixed: true,
|
|
35
|
+
* zIndex: 1,
|
|
36
|
+
* element: $domNode,
|
|
37
|
+
* boundingRect: {
|
|
38
|
+
* top: 0,
|
|
39
|
+
* left: 0,
|
|
40
|
+
* bottom: 100,
|
|
41
|
+
* right: 30
|
|
42
|
+
* }
|
|
43
|
+
* relativeBoundingRect: {
|
|
44
|
+
* top: 10,
|
|
45
|
+
* left: 0,
|
|
46
|
+
* bottom: 110,
|
|
47
|
+
* right: 30
|
|
48
|
+
* },
|
|
49
|
+
* viewport: {
|
|
50
|
+
* height: 1000,
|
|
51
|
+
* width: 1200
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* Or in the case of an error:
|
|
55
|
+
* {
|
|
56
|
+
* error: true,
|
|
57
|
+
* errorMessage: 'This is the error message.'
|
|
58
|
+
* }
|
|
59
|
+
*/
|
|
60
|
+
export function calculatePositionDetails($el: any, selector: string | object[], context?: Document): object;
|
|
61
|
+
/**
|
|
62
|
+
* Calculates the region of the rectangle (specified by the `height` and `width`
|
|
63
|
+
* params) that these coordinates fall within. The passed coordinates should be
|
|
64
|
+
* relative to the rectangle. The return value has two properties `xRegion` and
|
|
65
|
+
* `yRegion` that range from 0 to 3, depending on which quadrants of the
|
|
66
|
+
* rectangle the coordinates fall within:
|
|
67
|
+
*
|
|
68
|
+
* +---+---+---+---+
|
|
69
|
+
* |0,0|1,0|2,0|3,0|
|
|
70
|
+
* +---+---+---+---+
|
|
71
|
+
* |0,1|1,1|2,1|3,1|
|
|
72
|
+
* +---+---+---+---+
|
|
73
|
+
* |0,2|1,2|2,2|3,2|
|
|
74
|
+
* +---+---+---+---+
|
|
75
|
+
* |0,3|1,3|2,3|3,3|
|
|
76
|
+
* +---+---+---+---+
|
|
77
|
+
*
|
|
78
|
+
* @param {number} x X-coordinate relative to the rectangle.
|
|
79
|
+
* @param {number} y Y-coordinate relative to the rectangle.
|
|
80
|
+
* @param {number} width Width of the rectagle.
|
|
81
|
+
* @param {number} height Height of the rectagle.
|
|
82
|
+
*
|
|
83
|
+
* @return {Object} Has two properties indicating x-region and y-region of the
|
|
84
|
+
* passed coordinates.
|
|
85
|
+
*/
|
|
86
|
+
export function calculateRegion(x: number, y: number, width: number, height: number): Object;
|
|
87
|
+
export function getScrollDuration(target: any, current: any): number;
|
|
88
|
+
export function getScrollablePageElement(doc: any): any;
|
|
89
|
+
export function findScrollableParentElements(el: any, context: any): any[];
|
|
90
|
+
export function calculateParentScrollTops(target: any, offsetFromBottomPercentage: any, parentElements: any, context: any): any;
|
|
91
|
+
/**
|
|
92
|
+
* Checks if two position details objects, as returned from
|
|
93
|
+
* `calculatePositionDetails` are the same.
|
|
94
|
+
*
|
|
95
|
+
* @param {object} a The first set of position details.
|
|
96
|
+
* @param {object} b The second set of position details.
|
|
97
|
+
*
|
|
98
|
+
* @return {boolean} Whether the position details are the same.
|
|
99
|
+
*/
|
|
100
|
+
export function positionDetailsEqual(a: object, b: object): boolean;
|
|
101
|
+
export function isElementAttached(el: any): any;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates if the given element is on top and visible at the coordinates
|
|
104
|
+
* specified, relative to the viewport. This excludes the hotspot beacon from
|
|
105
|
+
* this calculation, since that will technically be the element on top at the
|
|
106
|
+
* given point.
|
|
107
|
+
*
|
|
108
|
+
* @param {number} options.xOffset the % x offset within the element
|
|
109
|
+
* @param {number} options.yOffset the % y offset within the element
|
|
110
|
+
* @param {Element} options.element the element to verify is on top and
|
|
111
|
+
* visible
|
|
112
|
+
*
|
|
113
|
+
* @return {Boolean} true if on top and visible, else false
|
|
114
|
+
*/
|
|
115
|
+
export function isElementVisible({ xOffset, yOffset, element }: number): boolean;
|
|
116
|
+
export function addClass($el: any, className: any): void;
|
|
117
|
+
export function removeClass($el: any, className: any): void;
|
|
118
|
+
export function isBodyReady(doc: any): any;
|
|
119
|
+
export function onCSSReady(doc: any, url: any, callback: any): void;
|
|
120
|
+
export function afterNextPaint(win: any, callback: any): void;
|
|
121
|
+
export function eventListenerPromise(el: any, event: any, cond: any): {
|
|
122
|
+
listener: undefined;
|
|
123
|
+
promise: Promise<any>;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Attempt to focus an element with delayed retries. Due to iframe related
|
|
127
|
+
* timing issues, it's possible for the iframe to have been inserted/attached to
|
|
128
|
+
* the DOM but not focusable yet. Additionally, it's possible that the site
|
|
129
|
+
* already has focus trapping logic e.g. `material-ui` which is why we only
|
|
130
|
+
* attempt this a few times before conceding as to prevent any harmonic locks
|
|
131
|
+
* from occurring as each library fights to trap focus. Finally, it's possible
|
|
132
|
+
* that the element has been removed between the first focus attempt and next so
|
|
133
|
+
* we want to check that the element is still contained in the document before
|
|
134
|
+
* attempting the next focus, otherwise exiting earlier.
|
|
135
|
+
*/
|
|
136
|
+
export function focusElement($element: any, retries?: number): void;
|
|
137
|
+
export function focusPreviouslyFocusedElement(previousActiveElement: any): void;
|
|
138
|
+
/**
|
|
139
|
+
* Gets keyboard-focusable elements within a specified element
|
|
140
|
+
* @returns {Array}
|
|
141
|
+
*/
|
|
142
|
+
export function getKeyboardFocusableElements(element: any): any[];
|
|
143
|
+
export function getForceHeaderFocusInstance(elementId?: string, forceFocus?: boolean): (vnode: any) => void;
|
|
144
|
+
export function preventClickPropagating(event: any): void;
|
|
145
|
+
export function getParent(el: any): any;
|
|
146
|
+
/**
|
|
147
|
+
* Helper function to get event text content
|
|
148
|
+
*
|
|
149
|
+
* @param {Event} event - Event from handler
|
|
150
|
+
* @return {string} Text content of event target
|
|
151
|
+
*/
|
|
152
|
+
export const getTextContent: (...args: any[]) => any;
|
|
153
|
+
export const _testExports: {
|
|
154
|
+
findUniqueElementFromSelector: typeof findUniqueElementFromSelector;
|
|
155
|
+
findUniqueElementFromSelectors: typeof findUniqueElementFromSelectors;
|
|
156
|
+
} | null;
|
|
157
|
+
declare function findUniqueElementFromSelector(selector: any, context: any): any;
|
|
158
|
+
declare function findUniqueElementFromSelectors(selectors: any, context: any): any;
|
|
159
|
+
export {};
|
|
160
|
+
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/dom.js"],"names":[],"mappings":"AAuBA,2CAKC;AAyOD,uEAcC;AAED,8DAmBC;AA8HD;;;EAeC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,6DAhCY,MAAM,GAAC,MAAM,EAAE,uBAIf,MAAM,CA6HjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,mCARY,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GAEN,MAAM,CAWjB;AAED,qEAOC;AAED,wDAiBC;AAyFD,2EA0CC;AAED,gIA0DC;AAWD;;;;;;;;GAQG;AACH,wCALY,MAAM,KACN,MAAM,GAEN,OAAO,CAgBlB;AAED,gDAGC;AAsKD;;;;;;;;;;;;GAYG;AACH,gEAPY,MAAM,WA2DjB;AAED,yDAWC;AAED,4DASC;AAED,2CAKC;AAED,oEAkBC;AAED,8DAMC;AAED;;;EAWC;AAED;;;;;;;;;;GAUG;AACH,oEAsBC;AAID,gFAcC;AAED;;;GAGG;AACH,kEAMC;AAUD,wFAOS,UAAK,UAqCb;AAED,0DAEC;AA9kBM,wCAqBN;AAigBD;;;;;GAKG;AACH,qDAA6E;AA2D7E;;;SAMW;AA7oCX,iFA4EC;AAMD,mFAoBC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the inline trait configuration from an experience object.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} experience - Experience object with traits array
|
|
5
|
+
* @returns {Object|null} - Inline trait target config or null if not found
|
|
6
|
+
*/
|
|
7
|
+
export function getInlineTraitConfig(experience: Object): Object | null;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a unique identifier from selector and filters for grouping embeds.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} selector - CSS selector string
|
|
12
|
+
* @param {Object} filters - Optional order and text filters
|
|
13
|
+
* @returns {string} - Unique key for this selector+filters combination
|
|
14
|
+
*/
|
|
15
|
+
export function createContainerKey(selector: string, filters: Object): string;
|
|
16
|
+
/**
|
|
17
|
+
* Groups embed experiences by container target, returning first of each group.
|
|
18
|
+
*
|
|
19
|
+
* @param {Array} embedExperiences - Array of embed-type experiences
|
|
20
|
+
* @returns {Array} - Deduplicated array with first experience per container
|
|
21
|
+
*/
|
|
22
|
+
export function groupEmbedsByContainer(embedExperiences: any[]): any[];
|
|
23
|
+
//# sourceMappingURL=embed-grouping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embed-grouping.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/embed-grouping.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,iDAHW,MAAM,GACJ,MAAM,GAAC,IAAI,CAiBvB;AAED;;;;;;GAMG;AACH,6CAJW,MAAM,WACN,MAAM,GACJ,MAAM,CA6BlB;AAED;;;;;GAKG;AACH,uEA6BC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create escape keyup event listeners
|
|
3
|
+
*
|
|
4
|
+
* @param {boolean} condition - Whether we should bind listeners
|
|
5
|
+
* @param {function} callback - Callback to bind listeners
|
|
6
|
+
* @param {object} Bound event listeners
|
|
7
|
+
*/
|
|
8
|
+
export function createEscapeEventListeners(condition: boolean, callback: Function): {
|
|
9
|
+
addEscapeEventListener: (vnode: VNode) => void;
|
|
10
|
+
removeEscapeEventListener: (vnode: VNode) => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=escape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/escape.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,sDAJW,OAAO;oCAkBL,KAAK,KACJ,IAAI;uCAgCL,KAAK,KACJ,IAAI;EAsBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluate-selector.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/evaluate-selector.js"],"names":[],"mappings":"AAAA,gCAAiC,eAAe,CAAC;AACjD,gCAAiC,UAAU,CAAC;AAErC,4EAwBN"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function getTimingReport(requestId: any, stepType: any): {
|
|
2
|
+
api_response_duration: number;
|
|
3
|
+
time_to_attempt: number;
|
|
4
|
+
time_to_render: number;
|
|
5
|
+
css_load_time: number;
|
|
6
|
+
time_to_reveal: number;
|
|
7
|
+
time_to_show: number;
|
|
8
|
+
step_type: any;
|
|
9
|
+
request_id: any;
|
|
10
|
+
init_time?: number | undefined;
|
|
11
|
+
} | null;
|
|
12
|
+
export function recordInitTS(): void;
|
|
13
|
+
export function recordRequestTS(requestId: any): void;
|
|
14
|
+
export function recordResponseTS(requestId: any): void;
|
|
15
|
+
export function recordAttemptTS(requestId: any): void;
|
|
16
|
+
export function recordRenderTS(requestId: any): void;
|
|
17
|
+
export function recordCSSLoadTS(requestId: any): void;
|
|
18
|
+
export function recordShownTS(requestId: any): void;
|
|
19
|
+
//# sourceMappingURL=flow-performance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-performance.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/flow-performance.js"],"names":[],"mappings":"AAuJA;;;;;;;;;;SA6CC;AA9GM,qCAAkD;AAKlD,sDAAwE;AAKxE,uDAC+B;AAK/B,sDAAwE;AAKxE,qDAAsE;AAKtE,sDAAoE;AAKpE,oDAAoE"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a "selector" in the abstract sense, which we should think of as a
|
|
3
|
+
* collection of things describing an element on screen.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} annotation
|
|
6
|
+
*
|
|
7
|
+
* @return {Array} A list of selector "options" for one annotation. Even though
|
|
8
|
+
* there are potentially many things in this list, we call it a
|
|
9
|
+
* single "selector" for an element, since these are all
|
|
10
|
+
* descriptors to help us select an element on screen.
|
|
11
|
+
*/
|
|
12
|
+
export function getSelectorForAnnotation(annotation?: Object): any[];
|
|
13
|
+
export function isMultiStepFlow(flow: object): boolean;
|
|
14
|
+
export const getFlowSteps: (...args: any[]) => any;
|
|
15
|
+
export const getNumberOfSteps: (...args: any[]) => any;
|
|
16
|
+
export const getStepChildren: (...args: any[]) => any;
|
|
17
|
+
export const getStepChildNumber: (...args: any[]) => any;
|
|
18
|
+
export const getStepChildByIndex: (...args: any[]) => any;
|
|
19
|
+
/**
|
|
20
|
+
* Used to determine if a particular step contains a stepChild with
|
|
21
|
+
* the given ID. Backwards compatible with legacy flow format.
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} step
|
|
24
|
+
* @param {String} stepChildId
|
|
25
|
+
*/
|
|
26
|
+
export const getStepChildById: (...args: any[]) => any;
|
|
27
|
+
export const areHotspotsSequential: (...args: any[]) => any;
|
|
28
|
+
export const isActionDrivenTooltip: (...args: any[]) => any;
|
|
29
|
+
export const isRedirectAction: (...args: any[]) => any;
|
|
30
|
+
export const isWaitForPageAction: (...args: any[]) => any;
|
|
31
|
+
export const isActionStep: (...args: any[]) => any;
|
|
32
|
+
export const hasStandardLifecycleEvents: (...args: any[]) => any;
|
|
33
|
+
export const getStepByIndex: (...args: any[]) => any;
|
|
34
|
+
export const getStepFromFlow: (...args: any[]) => any;
|
|
35
|
+
export const getStepNumber: (...args: any[]) => any;
|
|
36
|
+
/**
|
|
37
|
+
* Given a stepChildId and a keyed object of Steps, returns the step
|
|
38
|
+
* which contains that child.
|
|
39
|
+
*
|
|
40
|
+
* @param {Object} steps
|
|
41
|
+
* @param {String} stepChildId
|
|
42
|
+
*/
|
|
43
|
+
export const getStepFromStepChildId: (...args: any[]) => any;
|
|
44
|
+
/**
|
|
45
|
+
* Given the entirety of storedContent and a stepChildId, returns the flow
|
|
46
|
+
* that contains that child. Backwards compatible with legacy flows.
|
|
47
|
+
*
|
|
48
|
+
* @param {Object} storedContent
|
|
49
|
+
* @param {String} stepChildId
|
|
50
|
+
*/
|
|
51
|
+
export const getFlowFromStepChildId: (...args: any[]) => any;
|
|
52
|
+
//# sourceMappingURL=flow-selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-selectors.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/flow-selectors.js"],"names":[],"mappings":"AA+KA;;;;;;;;;;GAUG;AACH,sDAPY,MAAM,SAsBjB;AA7LM,sCAJK,MAAM,GAEN,OAAO,CAGwB;AAE3C,mDAMO;AAEP,uDAMM;AAEN,sDAKO;AAEP,yDAQO;AAEP,0DAEG;AAEH;;;;;;GAMG;AACH,uDAMG;AAEH,4DAGE;AAEF,4DASU;AAEV,uDAKU;AAEV,0DAKU;AAEV,mDAGE;AAEF,iEAEE;AAEF,qDAcG;AAEH,sDAOG;AAEH,oDASO;AAEP;;;;;;GAMG;AAEH,6DAIG;AAEH;;;;;;GAMG;AAEH,6DASG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-uuid.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/generate-uuid.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wCAJY,MAAM,CAwBjB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates a set of "auto-properties" for the current user, taking any
|
|
3
|
+
* existing properties into account. For an "initial" generation of properties
|
|
4
|
+
* we'll do some special things, like incrementing page views no matter what and
|
|
5
|
+
* trying to use the document.referrer value to get the _lastPageUrl.
|
|
6
|
+
*
|
|
7
|
+
* @param {Window} win The window with which to calculate the properties.
|
|
8
|
+
* @param {boolean} initial Indicates if this should be considered the initial
|
|
9
|
+
* generation of these properties.
|
|
10
|
+
* @param {object} existing The existing properties (if any).
|
|
11
|
+
*
|
|
12
|
+
* @return {object} The auto-generated properties.
|
|
13
|
+
*/
|
|
14
|
+
export function generateProperties(win: Window, initial: boolean, props?: {}): object;
|
|
15
|
+
export function generateGroupProperties(): {
|
|
16
|
+
_lastSeenAt: number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Filters down the set of passed properties to only those that are included in
|
|
20
|
+
* the WHITELISTED_PROPERTIES list.
|
|
21
|
+
*
|
|
22
|
+
* @param {object} properties The set of properties to filter.
|
|
23
|
+
*
|
|
24
|
+
* @return {object} The filtered set of properties.
|
|
25
|
+
*/
|
|
26
|
+
export function filterGeneratedProperties(properties: object): object;
|
|
27
|
+
//# sourceMappingURL=generated-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-properties.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/generated-properties.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;GAYG;AACH,wCAPY,MAAM,WACN,OAAO,eAIP,MAAM,CA6FjB;AAED;;EAEC;AAED;;;;;;;GAOG;AACH,sDAJY,MAAM,GAEN,MAAM,CASjB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export function createHandleNavigation(waitForPendingEventsToClear?: () => Promise<void>): ({ type, experienceId, stepId, campaignId, tacticId, ...config }?: {
|
|
2
|
+
campaignId?: null | undefined;
|
|
3
|
+
tacticId?: null | undefined;
|
|
4
|
+
}) => Promise<void>;
|
|
5
|
+
//# sourceMappingURL=handle-navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-navigation.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/handle-navigation.js"],"names":[],"mappings":"AAuBA,4FAGyC;;;CAOjC,mBA4EP"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turn a word or phrase into a simplified, machine-readable string.
|
|
3
|
+
* Taken from https://gist.github.com/mathewbyrne/1280286
|
|
4
|
+
* @param {string} phrase The string to convert.
|
|
5
|
+
* @return {string} String.
|
|
6
|
+
*/
|
|
7
|
+
export function slugify(phrase: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Turn an slug into a human-readable title.
|
|
10
|
+
* @param {string} slug The string to convert.
|
|
11
|
+
* @param {string} separator Character dividing each part of the slug.
|
|
12
|
+
* @return {string} Human-readable title.
|
|
13
|
+
*/
|
|
14
|
+
export function unslugify(slug: string, separator?: string): string;
|
|
15
|
+
//# sourceMappingURL=humanize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"humanize.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/humanize.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,gCAHY,MAAM,GACN,MAAM,CAWjB;AAED;;;;;GAKG;AACH,gCAJY,MAAM,cACN,MAAM,GACN,MAAM,CAOjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iframes.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/iframes.js"],"names":[],"mappings":"AAAO,2CAA8C;AAE9C,8CAMN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default methods;
|
|
2
|
+
declare namespace methods {
|
|
3
|
+
let array: (arg: any) => arg is any[];
|
|
4
|
+
function undefined(value: any): value is undefined;
|
|
5
|
+
function defined(value: any): boolean;
|
|
6
|
+
function inArray(a: any, obj: any): boolean;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=is.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/is.js"],"names":[],"mappings":";;;IAiCA,mDAEC;IAED,sCAEC;IAED,4CASC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-loading.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/lazy-loading.js"],"names":[],"mappings":"AAgBO,4DAqCN"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Updates the `target` attribute of a vnode that will become an <a> tag and
|
|
3
|
+
* does not have the [data-step] attribute.
|
|
4
|
+
*
|
|
5
|
+
* @param {VNode} vnode The VNode.
|
|
6
|
+
*/
|
|
7
|
+
export function correctLinkTarget(vnode: VNode): void;
|
|
8
|
+
/**
|
|
9
|
+
* Binds the passed function to a 'click' event on the passed VNode, but
|
|
10
|
+
* still allows the link to be followed.
|
|
11
|
+
*
|
|
12
|
+
* @param {VNode} vnode The VNode to add a listener to.
|
|
13
|
+
* @param {function} onClick The function.
|
|
14
|
+
*/
|
|
15
|
+
export function bindLinkClick(vnode: VNode, onClick: Function): void;
|
|
16
|
+
//# sourceMappingURL=links.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/links.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,yCAFY,KAAK,QAMhB;AAED;;;;;;GAMG;AACH,qCAHW,KAAK,2BA6Df"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function resolveUrl(win: any, url: any): any;
|
|
2
|
+
export function navigate(win: any, url: any, tab: any): Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
* If `urlOrPath` or `targetUrl` is undefined, it defaults to trailing slash
|
|
5
|
+
*/
|
|
6
|
+
export function doesLocationMatch(urlOrPath?: string, targetUrl?: string): boolean;
|
|
7
|
+
export function getCurrentURL(): string;
|
|
8
|
+
//# sourceMappingURL=location.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/location.js"],"names":[],"mappings":"AAGA,oDAUC;AAED,sEAiBC;AAgDD;;GAEG;AACH,mFAWC;AAED,wCAEC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Increment the pending-event count for an experience and mark that an
|
|
3
|
+
* activity update is in-flight. Called from create-appcues.js each time
|
|
4
|
+
* the `sendEvent` callback fires.
|
|
5
|
+
*/
|
|
6
|
+
export function addPendingEvent(experienceId: any): void;
|
|
7
|
+
/**
|
|
8
|
+
* Mark that an activity update is in-flight without incrementing the
|
|
9
|
+
* event-handler count. Used for dispatches that only go through the
|
|
10
|
+
* activity pipeline (e.g. sendCustomEvent) and have no matching
|
|
11
|
+
* FINISHED_EVENT.
|
|
12
|
+
*/
|
|
13
|
+
export function markActivityPending(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Decrement the event-handler count for an experience. Called by the
|
|
16
|
+
* watcher saga when FINISHED_EVENT fires.
|
|
17
|
+
*/
|
|
18
|
+
export function onFinishedEvent(experienceId: any): void;
|
|
19
|
+
/**
|
|
20
|
+
* Mark that the activity saga has sent its batch. Called by the watcher
|
|
21
|
+
* saga when SENT_ACTIVITY_UPDATE fires.
|
|
22
|
+
*/
|
|
23
|
+
export function onSentActivityUpdate(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Returns a Promise that resolves once there are no more pending events
|
|
26
|
+
* for the given experience — both the event-handler pipeline and the
|
|
27
|
+
* activity-update pipeline must be clear. Resolves immediately if
|
|
28
|
+
* nothing is pending.
|
|
29
|
+
*/
|
|
30
|
+
export function waitForPendingEventsToClear(experienceId: any): Promise<any>;
|
|
31
|
+
//# sourceMappingURL=pending-experience-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending-experience-events.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/pending-experience-events.js"],"names":[],"mappings":"AAgCA;;;;GAIG;AACH,yDAGC;AAED;;;;;GAKG;AACH,4CAEC;AAED;;;GAGG;AACH,yDAWC;AAED;;;GAGG;AACH,6CAKC;AAED;;;;;GAKG;AACH,6EAqBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/query.js"],"names":[],"mappings":"AAiBA,6CAIC;AAED,kEAGC;AAED,oEAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-contexts.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/render-contexts.js"],"names":[],"mappings":"AAyDA,oDAEC;AAED;;;EAsEC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper function that takes a "getter" function for retrieving the specified
|
|
3
|
+
* data and wraps it in a try-catch, such that the default value is returned if
|
|
4
|
+
* there's an error retrieving the specified data.
|
|
5
|
+
*
|
|
6
|
+
* @param {Function} getter The function to lookup the data in state.
|
|
7
|
+
* @param {any type} The default value to return in case of error. This
|
|
8
|
+
* defaults to null.
|
|
9
|
+
*
|
|
10
|
+
* @return The requested data or the default value.
|
|
11
|
+
*/
|
|
12
|
+
export function safeGet(getter: Function, def?: null): (...args: any[]) => any;
|
|
13
|
+
//# sourceMappingURL=selector-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-utils.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/selector-utils.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wDACU,GAAG,WAAI,SAQhB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if we should show the powered-by link.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} settings Object with settings from the current state of the object
|
|
5
|
+
*
|
|
6
|
+
* @return {boolean} Indicates if powered-by link should be shown or not.
|
|
7
|
+
*/
|
|
8
|
+
export default function showPoweredBy(): boolean;
|
|
9
|
+
//# sourceMappingURL=show-powered-by.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-powered-by.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/show-powered-by.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,yCAFY,OAAO,CAIlB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module provides a simple wrapper around browser Storage APIs.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Set data in the specified browser Storage location.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} storage The browser storage location (localStorage, sessionStorage, etc).
|
|
8
|
+
* @param {string} key The key to store data under.
|
|
9
|
+
* @param {string} value The value to store.
|
|
10
|
+
*/
|
|
11
|
+
export function set(storage: string, key: string, value: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Get data from the specified browser Storage location.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} storage The browser storage location (localStorage, sessionStorage, etc).
|
|
16
|
+
* @param {string} key The key to store data under.
|
|
17
|
+
*
|
|
18
|
+
* @return {string} The value under the specified key.
|
|
19
|
+
*/
|
|
20
|
+
export function get(storage: string, key: string): string;
|
|
21
|
+
export function remove(storage: any, key: any): void;
|
|
22
|
+
export function removeWithPrefixKey(storage: any, prefix: any): void;
|
|
23
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/store.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,6BAJW,MAAM,OACN,MAAM,SACN,MAAM,QAQhB;AAED;;;;;;;GAOG;AACH,6BALW,MAAM,OACN,MAAM,GAEL,MAAM,CAQjB;AAED,qDAMC;AACD,qEAWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temp-store.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/temp-store.js"],"names":[],"mappings":"AAEA,2CAGC;AAED,2CAcC;AAED,iDAUC;AAED,kEAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-mode.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/test-mode.js"],"names":[],"mappings":"AAOA,4CA6BC;AAED,yCAoBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/time.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gCAHa,MAAM,CAKlB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calls the passed `onContentChange` function with the passed `contentId` and
|
|
3
|
+
* the element returned by executing the passed `selector` on the passed `doc`
|
|
4
|
+
* document. It calls the fuction after the next paint and again after 200ms as
|
|
5
|
+
* backup.
|
|
6
|
+
*
|
|
7
|
+
* @param {Document} doc The Document that contains the element we
|
|
8
|
+
* want to call the `onContentChange` function
|
|
9
|
+
* with.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} contentId The ID of the content to call the
|
|
12
|
+
* `onContentChange` function with.
|
|
13
|
+
*
|
|
14
|
+
* @param {[type]} selector The selector to find the element we want to
|
|
15
|
+
* call the `onContentChange` function with.
|
|
16
|
+
*
|
|
17
|
+
* @param {[type]} onContentChange The function to call twice.
|
|
18
|
+
*/
|
|
19
|
+
export default function triggerContentChanges(doc: Document, contentId: string, selector: [type], onContentChange: [type]): void;
|
|
20
|
+
//# sourceMappingURL=trigger-content-changes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-content-changes.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/trigger-content-changes.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,mDAZY,QAAQ,aAIR,MAAM,YAGN,CAAC,IAAI,CAAC,mBAGN,CAAC,IAAI,CAAC,QAmBjB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removes trailing slashes from a URL to prevent double slashes when concatenating paths.
|
|
3
|
+
* @param {string} url - The URL to normalize
|
|
4
|
+
* @returns {string} The URL without trailing slashes
|
|
5
|
+
*/
|
|
6
|
+
export function removeTrailingSlash(url: string): string;
|
|
7
|
+
//# sourceMappingURL=url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/scripts/utils/url.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yCAHW,MAAM,GACJ,MAAM,CAIlB"}
|