@stack-spot/portal-layout 0.0.64 → 1.0.0-dev.1768482785050
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 +779 -0
- package/dist/Layout.d.ts +60 -8
- package/dist/Layout.d.ts.map +1 -1
- package/dist/Layout.js +59 -24
- package/dist/Layout.js.map +1 -1
- package/dist/LayoutOverlayManager.d.ts +274 -19
- package/dist/LayoutOverlayManager.d.ts.map +1 -1
- package/dist/LayoutOverlayManager.js +373 -82
- package/dist/LayoutOverlayManager.js.map +1 -1
- package/dist/WelcomeTour.d.ts +2 -0
- package/dist/WelcomeTour.d.ts.map +1 -0
- package/dist/WelcomeTour.js +8 -0
- package/dist/WelcomeTour.js.map +1 -0
- package/dist/components/Backdrop.d.ts +75 -0
- package/dist/components/Backdrop.d.ts.map +1 -0
- package/dist/components/Backdrop.js +69 -0
- package/dist/components/Backdrop.js.map +1 -0
- package/dist/components/Contact/show-contact-modal.d.ts +5 -0
- package/dist/components/Contact/show-contact-modal.d.ts.map +1 -0
- package/dist/components/Contact/show-contact-modal.js +37 -0
- package/dist/components/Contact/show-contact-modal.js.map +1 -0
- package/dist/components/ContactModal.d.ts +1 -0
- package/dist/components/ContactModal.d.ts.map +1 -0
- package/dist/components/ContactModal.js +2 -0
- package/dist/components/ContactModal.js.map +1 -0
- package/dist/components/Dialog.d.ts +54 -7
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog.js +8 -2
- package/dist/components/Dialog.js.map +1 -1
- package/dist/components/Header.d.ts +38 -2
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/Header.js +9 -4
- package/dist/components/Header.js.map +1 -1
- package/dist/components/NotificationCenter/NotificationPanel.d.ts +3 -0
- package/dist/components/NotificationCenter/NotificationPanel.d.ts.map +1 -0
- package/dist/components/NotificationCenter/NotificationPanel.js +19 -0
- package/dist/components/NotificationCenter/NotificationPanel.js.map +1 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.d.ts +3 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.d.ts.map +1 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.js +16 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.js.map +1 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.d.ts +4 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.d.ts.map +1 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js +12 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js.map +1 -0
- package/dist/components/NotificationCenter/dictionary.d.ts +2 -0
- package/dist/components/NotificationCenter/dictionary.d.ts.map +1 -0
- package/dist/components/NotificationCenter/dictionary.js +43 -0
- package/dist/components/NotificationCenter/dictionary.js.map +1 -0
- package/dist/components/NotificationCenter/index.d.ts +2 -0
- package/dist/components/NotificationCenter/index.d.ts.map +1 -0
- package/dist/components/NotificationCenter/index.js +34 -0
- package/dist/components/NotificationCenter/index.js.map +1 -0
- package/dist/components/NotificationCenter/styled.d.ts +3 -0
- package/dist/components/NotificationCenter/styled.d.ts.map +1 -0
- package/dist/components/NotificationCenter/styled.js +74 -0
- package/dist/components/NotificationCenter/styled.js.map +1 -0
- package/dist/components/NotificationCenter/types.d.ts +21 -0
- package/dist/components/NotificationCenter/types.d.ts.map +1 -0
- package/dist/components/NotificationCenter/types.js.map +1 -0
- package/dist/components/NotificationCenter/utils.d.ts +5 -0
- package/dist/components/NotificationCenter/utils.d.ts.map +1 -0
- package/dist/components/NotificationCenter/utils.js +18 -0
- package/dist/components/NotificationCenter/utils.js.map +1 -0
- package/dist/components/OverlayContent.d.ts +27 -1
- package/dist/components/OverlayContent.d.ts.map +1 -1
- package/dist/components/OverlayContent.js +8 -4
- package/dist/components/OverlayContent.js.map +1 -1
- package/dist/components/PortalSwitcher.d.ts +19 -1
- package/dist/components/PortalSwitcher.d.ts.map +1 -1
- package/dist/components/PortalSwitcher.js +16 -31
- package/dist/components/PortalSwitcher.js.map +1 -1
- package/dist/components/PrivacyPolicyMessage/hooks.d.ts +10 -0
- package/dist/components/PrivacyPolicyMessage/hooks.d.ts.map +1 -0
- package/dist/components/PrivacyPolicyMessage/hooks.js +33 -0
- package/dist/components/PrivacyPolicyMessage/hooks.js.map +1 -0
- package/dist/components/PrivacyPolicyMessage/index.d.ts +7 -0
- package/dist/components/PrivacyPolicyMessage/index.d.ts.map +1 -0
- package/dist/components/PrivacyPolicyMessage/index.js +5 -0
- package/dist/components/PrivacyPolicyMessage/index.js.map +1 -0
- package/dist/components/Rate/FeedbackModal.d.ts +8 -0
- package/dist/components/Rate/FeedbackModal.d.ts.map +1 -0
- package/dist/components/Rate/FeedbackModal.js +52 -0
- package/dist/components/Rate/FeedbackModal.js.map +1 -0
- package/dist/components/Rate/hook.d.ts +3 -0
- package/dist/components/Rate/hook.d.ts.map +1 -0
- package/dist/components/Rate/hook.js +48 -0
- package/dist/components/Rate/hook.js.map +1 -0
- package/dist/components/Rate/index.d.ts +10 -0
- package/dist/components/Rate/index.d.ts.map +1 -0
- package/dist/components/Rate/index.js +16 -0
- package/dist/components/Rate/index.js.map +1 -0
- package/dist/components/Rate/on-nps-submit.d.ts +7 -0
- package/dist/components/Rate/on-nps-submit.d.ts.map +1 -0
- package/dist/components/Rate/on-nps-submit.js +8 -0
- package/dist/components/Rate/on-nps-submit.js.map +1 -0
- package/dist/components/Rate/show-rate-us-modals.d.ts +17 -0
- package/dist/components/Rate/show-rate-us-modals.d.ts.map +1 -0
- package/dist/components/Rate/show-rate-us-modals.js +14 -0
- package/dist/components/Rate/show-rate-us-modals.js.map +1 -0
- package/dist/components/Rate/utils.d.ts +2 -0
- package/dist/components/Rate/utils.d.ts.map +1 -0
- package/dist/components/Rate/utils.js +10 -0
- package/dist/components/Rate/utils.js.map +1 -0
- package/dist/components/Toaster.d.ts +35 -0
- package/dist/components/Toaster.d.ts.map +1 -1
- package/dist/components/Toaster.js +32 -4
- package/dist/components/Toaster.js.map +1 -1
- package/dist/components/TypeForm/hook.d.ts +2 -0
- package/dist/components/TypeForm/hook.d.ts.map +1 -0
- package/dist/components/TypeForm/hook.js +11 -0
- package/dist/components/TypeForm/hook.js.map +1 -0
- package/dist/components/TypeForm/index.d.ts +6 -0
- package/dist/components/TypeForm/index.d.ts.map +1 -0
- package/dist/components/TypeForm/index.js +23 -0
- package/dist/components/TypeForm/index.js.map +1 -0
- package/dist/components/TypeForm/show-typeform-modal.d.ts +5 -0
- package/dist/components/TypeForm/show-typeform-modal.d.ts.map +1 -0
- package/dist/components/TypeForm/show-typeform-modal.js +11 -0
- package/dist/components/TypeForm/show-typeform-modal.js.map +1 -0
- package/dist/components/TypeForm/utils.d.ts +2 -0
- package/dist/components/TypeForm/utils.d.ts.map +1 -0
- package/dist/components/TypeForm/utils.js +9 -0
- package/dist/components/TypeForm/utils.js.map +1 -0
- package/dist/components/UserMenu.d.ts +19 -2
- package/dist/components/UserMenu.d.ts.map +1 -1
- package/dist/components/UserMenu.js +12 -6
- package/dist/components/UserMenu.js.map +1 -1
- package/dist/components/error/ErrorBoundary.d.ts +25 -4
- package/dist/components/error/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/error/ErrorBoundary.js +10 -1
- package/dist/components/error/ErrorBoundary.js.map +1 -1
- package/dist/components/error/ErrorManager.d.ts +22 -6
- package/dist/components/error/ErrorManager.d.ts.map +1 -1
- package/dist/components/error/ErrorManager.js +21 -1
- package/dist/components/error/ErrorManager.js.map +1 -1
- package/dist/components/error/SilentErrorBoundary.d.ts +26 -5
- package/dist/components/error/SilentErrorBoundary.d.ts.map +1 -1
- package/dist/components/error/SilentErrorBoundary.js +10 -0
- package/dist/components/error/SilentErrorBoundary.js.map +1 -1
- package/dist/components/menu/MenuContent.d.ts +20 -547
- package/dist/components/menu/MenuContent.d.ts.map +1 -1
- package/dist/components/menu/MenuContent.js +89 -88
- package/dist/components/menu/MenuContent.js.map +1 -1
- package/dist/components/menu/MenuSectionGroup.d.ts +2 -0
- package/dist/components/menu/MenuSectionGroup.d.ts.map +1 -0
- package/dist/components/menu/MenuSectionGroup.js +121 -0
- package/dist/components/menu/MenuSectionGroup.js.map +1 -0
- package/dist/components/menu/MenuSections.d.ts +17 -0
- package/dist/components/menu/MenuSections.d.ts.map +1 -1
- package/dist/components/menu/MenuSections.js +159 -39
- package/dist/components/menu/MenuSections.js.map +1 -1
- package/dist/components/menu/PageSelector.d.ts +5 -0
- package/dist/components/menu/PageSelector.d.ts.map +1 -1
- package/dist/components/menu/PageSelector.js +9 -4
- package/dist/components/menu/PageSelector.js.map +1 -1
- package/dist/components/menu/types.d.ts +219 -8
- package/dist/components/menu/types.d.ts.map +1 -1
- package/dist/components/tour/StepContainer.d.ts +37 -0
- package/dist/components/tour/StepContainer.d.ts.map +1 -0
- package/dist/components/tour/StepContainer.js +51 -0
- package/dist/components/tour/StepContainer.js.map +1 -0
- package/dist/components/tour/StepNavigation.d.ts +29 -0
- package/dist/components/tour/StepNavigation.d.ts.map +1 -0
- package/dist/components/tour/StepNavigation.js +37 -0
- package/dist/components/tour/StepNavigation.js.map +1 -0
- package/dist/components/tour/StepTitle.d.ts +17 -0
- package/dist/components/tour/StepTitle.d.ts.map +1 -0
- package/dist/components/tour/StepTitle.js +10 -0
- package/dist/components/tour/StepTitle.js.map +1 -0
- package/dist/components/tour/hook.d.ts +3 -0
- package/dist/components/tour/hook.d.ts.map +1 -0
- package/dist/components/tour/hook.js +10 -0
- package/dist/components/tour/hook.js.map +1 -0
- package/dist/components/tour/index.d.ts +5 -0
- package/dist/components/tour/index.d.ts.map +1 -0
- package/dist/components/tour/index.js +5 -0
- package/dist/components/tour/index.js.map +1 -0
- package/dist/components/tour/manager.d.ts +34 -0
- package/dist/components/tour/manager.d.ts.map +1 -0
- package/dist/components/tour/manager.js +104 -0
- package/dist/components/tour/manager.js.map +1 -0
- package/dist/components/tour/utils.d.ts +66 -8
- package/dist/components/tour/utils.d.ts.map +1 -1
- package/dist/components/tour/utils.js +57 -45
- package/dist/components/tour/utils.js.map +1 -1
- package/dist/components/user-menu-manager.d.ts +13 -0
- package/dist/components/user-menu-manager.d.ts.map +1 -0
- package/dist/components/user-menu-manager.js +36 -0
- package/dist/components/user-menu-manager.js.map +1 -0
- package/dist/dictionary.d.ts +6 -1
- package/dist/dictionary.d.ts.map +1 -1
- package/dist/dictionary.js +7 -2
- package/dist/dictionary.js.map +1 -1
- package/dist/elements.d.ts +7 -0
- package/dist/elements.d.ts.map +1 -1
- package/dist/elements.js +7 -0
- package/dist/elements.js.map +1 -1
- package/dist/index.d.ts +15 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -8
- package/dist/index.js.map +1 -1
- package/dist/layout.css +190 -35
- package/dist/svg/StarFillWithGradient.d.ts +6 -0
- package/dist/svg/StarFillWithGradient.d.ts.map +1 -0
- package/dist/svg/StarFillWithGradient.js +4 -0
- package/dist/svg/StarFillWithGradient.js.map +1 -0
- package/dist/toaster.d.ts +55 -9
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.js +34 -6
- package/dist/toaster.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +6 -69
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +9 -130
- package/dist/utils.js.map +1 -1
- package/package.dev.json +3 -0
- package/package.json +26 -15
- package/package.stg.json +3 -0
- package/readme.md +147 -0
- package/src/Layout.tsx +166 -57
- package/src/LayoutOverlayManager.tsx +499 -85
- package/src/WelcomeTour.tsx +8 -0
- package/src/components/Backdrop.tsx +116 -0
- package/src/components/Contact/show-contact-modal.tsx +71 -0
- package/src/components/Dialog.tsx +58 -9
- package/src/components/Header.tsx +53 -5
- package/src/components/NotificationCenter/NotificationPanel.tsx +40 -0
- package/src/components/NotificationCenter/NotificationPanelHeader.tsx +53 -0
- package/src/components/NotificationCenter/NotificationsPanelFooter.tsx +25 -0
- package/src/components/NotificationCenter/dictionary.ts +44 -0
- package/src/components/NotificationCenter/index.tsx +58 -0
- package/src/components/NotificationCenter/styled.ts +75 -0
- package/src/components/NotificationCenter/types.ts +24 -0
- package/src/components/NotificationCenter/utils.ts +20 -0
- package/src/components/OverlayContent.tsx +40 -5
- package/src/components/PortalSwitcher.tsx +33 -39
- package/src/components/PrivacyPolicyMessage/hooks.tsx +49 -0
- package/src/components/PrivacyPolicyMessage/index.tsx +21 -0
- package/src/components/Rate/FeedbackModal.tsx +86 -0
- package/src/components/Rate/hook.tsx +61 -0
- package/src/components/Rate/index.tsx +36 -0
- package/src/components/Rate/on-nps-submit.ts +18 -0
- package/src/components/Rate/show-rate-us-modals.tsx +29 -0
- package/src/components/Rate/utils.ts +11 -0
- package/src/components/Toaster.tsx +82 -3
- package/src/components/TypeForm/hook.tsx +13 -0
- package/src/components/TypeForm/index.tsx +50 -0
- package/src/components/TypeForm/show-typeform-modal.tsx +10 -0
- package/src/components/TypeForm/utils.ts +8 -0
- package/src/components/UserMenu.tsx +32 -8
- package/src/components/error/ErrorBoundary.tsx +11 -2
- package/src/components/error/ErrorManager.ts +22 -6
- package/src/components/error/SilentErrorBoundary.tsx +12 -2
- package/src/components/menu/MenuContent.tsx +102 -110
- package/src/components/menu/MenuSectionGroup.tsx +121 -0
- package/src/components/menu/MenuSections.tsx +342 -93
- package/src/components/menu/PageSelector.tsx +16 -4
- package/src/components/menu/types.ts +221 -9
- package/src/components/tour/StepContainer.tsx +92 -0
- package/src/components/tour/StepNavigation.tsx +72 -0
- package/src/components/tour/StepTitle.tsx +28 -0
- package/src/components/tour/hook.ts +12 -0
- package/src/components/tour/index.ts +6 -0
- package/src/components/tour/manager.tsx +119 -0
- package/src/components/tour/utils.tsx +119 -0
- package/src/components/user-menu-manager.ts +31 -0
- package/src/dictionary.ts +7 -2
- package/src/elements.ts +7 -0
- package/src/index.ts +15 -8
- package/src/layout.css +190 -35
- package/src/svg/StarFillWithGradient.tsx +14 -0
- package/src/toaster.tsx +90 -13
- package/src/types.ts +4 -0
- package/src/utils.ts +9 -142
- package/dist/components/BottomNotification.d.ts +0 -1
- package/dist/components/BottomNotification.d.ts.map +0 -1
- package/dist/components/BottomNotification.js +0 -2
- package/dist/components/BottomNotification.js.map +0 -1
- package/dist/components/BottomPanel.d.ts +0 -1
- package/dist/components/BottomPanel.d.ts.map +0 -1
- package/dist/components/BottomPanel.js +0 -2
- package/dist/components/BottomPanel.js.map +0 -1
- package/dist/components/SelectionList.d.ts +0 -36
- package/dist/components/SelectionList.d.ts.map +0 -1
- package/dist/components/SelectionList.js +0 -140
- package/dist/components/SelectionList.js.map +0 -1
- package/dist/components/error/ErrorDescriptor.d.ts +0 -12
- package/dist/components/error/ErrorDescriptor.d.ts.map +0 -1
- package/dist/components/error/ErrorDescriptor.js +0 -17
- package/dist/components/error/ErrorDescriptor.js.map +0 -1
- package/dist/components/error/ErrorFeedback.d.ts +0 -3
- package/dist/components/error/ErrorFeedback.d.ts.map +0 -1
- package/dist/components/error/ErrorFeedback.js +0 -66
- package/dist/components/error/ErrorFeedback.js.map +0 -1
- package/dist/components/menu/use-check-text-overflow.d.ts +0 -6
- package/dist/components/menu/use-check-text-overflow.d.ts.map +0 -1
- package/dist/components/menu/use-check-text-overflow.js +0 -20
- package/dist/components/menu/use-check-text-overflow.js.map +0 -1
- package/dist/components/menu/use-keyboard-controls.d.ts +0 -23
- package/dist/components/menu/use-keyboard-controls.d.ts.map +0 -1
- package/dist/components/menu/use-keyboard-controls.js +0 -49
- package/dist/components/menu/use-keyboard-controls.js.map +0 -1
- package/dist/components/menu/useCheckTextOverflow.d.ts +0 -6
- package/dist/components/menu/useCheckTextOverflow.d.ts.map +0 -1
- package/dist/components/menu/useCheckTextOverflow.js +0 -20
- package/dist/components/menu/useCheckTextOverflow.js.map +0 -1
- package/dist/components/tour/Navigation.d.ts +0 -8
- package/dist/components/tour/Navigation.d.ts.map +0 -1
- package/dist/components/tour/Navigation.js +0 -15
- package/dist/components/tour/Navigation.js.map +0 -1
- package/dist/components/tour/PortalSwitcherStep.d.ts +0 -3
- package/dist/components/tour/PortalSwitcherStep.d.ts.map +0 -1
- package/dist/components/tour/PortalSwitcherStep.js +0 -29
- package/dist/components/tour/PortalSwitcherStep.js.map +0 -1
- package/dist/components/tour/config.d.ts +0 -3
- package/dist/components/tour/config.d.ts.map +0 -1
- package/dist/components/tour/config.js +0 -22
- package/dist/components/tour/config.js.map +0 -1
- package/dist/components/tour/steps/PortalSwitcherStep.d.ts +0 -3
- package/dist/components/tour/steps/PortalSwitcherStep.d.ts.map +0 -1
- package/dist/components/tour/steps/PortalSwitcherStep.js +0 -30
- package/dist/components/tour/steps/PortalSwitcherStep.js.map +0 -1
- package/dist/components/types.d.ts +0 -15
- package/dist/components/types.d.ts.map +0 -1
- package/dist/components/types.js.map +0 -1
- package/dist/layout-context.d.ts +0 -10
- package/dist/layout-context.d.ts.map +0 -1
- package/dist/layout-context.js +0 -11
- package/dist/layout-context.js.map +0 -1
- package/dist/svg/AI.d.ts +0 -6
- package/dist/svg/AI.d.ts.map +0 -1
- package/dist/svg/AI.js +0 -9
- package/dist/svg/AI.js.map +0 -1
- package/dist/svg/EDP.d.ts +0 -6
- package/dist/svg/EDP.d.ts.map +0 -1
- package/dist/svg/EDP.js +0 -5
- package/dist/svg/EDP.js.map +0 -1
- package/dist/svg/Forbidden.d.ts +0 -6
- package/dist/svg/Forbidden.d.ts.map +0 -1
- package/dist/svg/Forbidden.js +0 -4
- package/dist/svg/Forbidden.js.map +0 -1
- package/dist/svg/HUB.d.ts +0 -6
- package/dist/svg/HUB.d.ts.map +0 -1
- package/dist/svg/HUB.js +0 -5
- package/dist/svg/HUB.js.map +0 -1
- package/dist/svg/Logo.d.ts +0 -2
- package/dist/svg/Logo.d.ts.map +0 -1
- package/dist/svg/Logo.js +0 -4
- package/dist/svg/Logo.js.map +0 -1
- package/dist/svg/NotFound.d.ts +0 -6
- package/dist/svg/NotFound.d.ts.map +0 -1
- package/dist/svg/NotFound.js +0 -4
- package/dist/svg/NotFound.js.map +0 -1
- package/dist/svg/ServerError.d.ts +0 -6
- package/dist/svg/ServerError.d.ts.map +0 -1
- package/dist/svg/ServerError.js +0 -4
- package/dist/svg/ServerError.js.map +0 -1
- package/dist/svg/Unauthenticated.d.ts +0 -6
- package/dist/svg/Unauthenticated.d.ts.map +0 -1
- package/dist/svg/Unauthenticated.js +0 -4
- package/dist/svg/Unauthenticated.js.map +0 -1
- package/src/components/BottomPanel.tsx +0 -0
- package/src/components/SelectionList.tsx +0 -272
- package/src/components/error/ErrorFeedback.tsx +0 -114
- package/src/components/menu/use-check-text-overflow.tsx +0 -26
- package/src/components/menu/use-keyboard-controls.tsx +0 -70
- package/src/components/tour/PortalSwitcherStep.tsx +0 -36
- package/src/components/types.ts +0 -15
- package/src/layout-context.tsx +0 -22
- package/src/svg/AI.tsx +0 -37
- package/src/svg/EDP.tsx +0 -35
- package/src/svg/Forbidden.tsx +0 -22
- package/src/svg/HUB.tsx +0 -35
- package/src/svg/Logo.tsx +0 -35
- package/src/svg/NotFound.tsx +0 -16
- package/src/svg/ServerError.tsx +0 -33
- package/src/svg/Unauthenticated.tsx +0 -16
- /package/dist/components/{types.js → NotificationCenter/types.js} +0 -0
- /package/src/components/{BottomNotification.tsx → ContactModal.tsx} +0 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import WelcomeTour from 'reactour';
|
|
2
|
+
import { finishTourStep, isNewTourStep, tourStepBuilder } from './utils.js';
|
|
3
|
+
/**
|
|
4
|
+
* Tutorial: the default configuration for a React Tour.
|
|
5
|
+
*/
|
|
6
|
+
const defaultTourConfig = Object.freeze({
|
|
7
|
+
steps: [],
|
|
8
|
+
isOpen: true,
|
|
9
|
+
onRequestClose: () => '',
|
|
10
|
+
showButtons: false,
|
|
11
|
+
showNavigation: false,
|
|
12
|
+
showNavigationNumber: false,
|
|
13
|
+
showNumber: false,
|
|
14
|
+
showCloseButton: false,
|
|
15
|
+
disableFocusLock: true,
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* TourManager: provides state management for React Tour.
|
|
19
|
+
*/
|
|
20
|
+
class TourManager {
|
|
21
|
+
constructor() {
|
|
22
|
+
Object.defineProperty(this, "_steps", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: []
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "_currentStep", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: 0
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(this, "observers", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: []
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
get config() {
|
|
42
|
+
const config = {
|
|
43
|
+
...defaultTourConfig,
|
|
44
|
+
goToStep: this._currentStep,
|
|
45
|
+
update: `${this._currentStep}`,
|
|
46
|
+
steps: this._steps,
|
|
47
|
+
isOpen: !!this._steps.length && (this._currentStep < this._steps.length),
|
|
48
|
+
currentStep: this._currentStep,
|
|
49
|
+
nextStep: () => this.nextStep(),
|
|
50
|
+
prevStep: () => this.prevStep(),
|
|
51
|
+
finishStep: (stepSelector) => this.finishStep(stepSelector),
|
|
52
|
+
addStep: (step) => this.addStep(step),
|
|
53
|
+
closeTour: () => this.closeTour(),
|
|
54
|
+
};
|
|
55
|
+
return config;
|
|
56
|
+
}
|
|
57
|
+
get currentStep() {
|
|
58
|
+
return this._currentStep;
|
|
59
|
+
}
|
|
60
|
+
get steps() {
|
|
61
|
+
return this._steps;
|
|
62
|
+
}
|
|
63
|
+
addStep(step) {
|
|
64
|
+
this.addRawStep(tourStepBuilder(step));
|
|
65
|
+
}
|
|
66
|
+
addRawStep(step) {
|
|
67
|
+
const stepAlreadyAdded = this._steps.some(it => it.selector == step.selector);
|
|
68
|
+
if (!stepAlreadyAdded && isNewTourStep(step)) {
|
|
69
|
+
this._steps = [...this._steps, step];
|
|
70
|
+
this.notify();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
nextStep() {
|
|
74
|
+
this._currentStep = this._currentStep + 1;
|
|
75
|
+
this.notify();
|
|
76
|
+
}
|
|
77
|
+
prevStep() {
|
|
78
|
+
this._currentStep = this._currentStep - 1;
|
|
79
|
+
this.notify();
|
|
80
|
+
}
|
|
81
|
+
finishStep(stepSelector) {
|
|
82
|
+
finishTourStep(stepSelector);
|
|
83
|
+
this.nextStep();
|
|
84
|
+
}
|
|
85
|
+
closeTour() {
|
|
86
|
+
this.steps.forEach((step) => step.selector && finishTourStep(step.selector));
|
|
87
|
+
this._currentStep = this.steps.length;
|
|
88
|
+
this.notify();
|
|
89
|
+
}
|
|
90
|
+
subscribe(updateFn) {
|
|
91
|
+
this.observers.push(updateFn);
|
|
92
|
+
this.notify();
|
|
93
|
+
return () => this.pullListener(updateFn);
|
|
94
|
+
}
|
|
95
|
+
pullListener(updateFn) {
|
|
96
|
+
this.observers = this.observers.filter((obs) => obs !== updateFn);
|
|
97
|
+
}
|
|
98
|
+
notify() {
|
|
99
|
+
this.observers.forEach((updateFn) => updateFn(this.config));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const tourManager = new TourManager();
|
|
103
|
+
export { WelcomeTour, tourManager };
|
|
104
|
+
//# sourceMappingURL=manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../src/components/tour/manager.tsx"],"names":[],"mappings":"AAAA,OAAO,WAA4C,MAAM,UAAU,CAAA;AACnE,OAAO,EAAqB,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK3F;;GAEG;AACH,MAAM,iBAAiB,GAAe,MAAM,CAAC,MAAM,CAAC;IAClD,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE;IACxB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AAC,YAAY,CAAC,QAAQ,CAAC,CAAA;IAC1C,CAAC;IAEO,YAAY,CAAC,QAA4B;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAA;IACnE,CAAC;IAEO,MAAM;QACZ,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;IAC7D,CAAC;CAEF;AAED,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAA;AAErC,OAAO,EAAsB,WAAW,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,9 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactourStep } from 'reactour';
|
|
3
|
+
import { PointingArrowPosition } from './StepContainer.js';
|
|
4
|
+
import { NavigationProps } from './StepNavigation.js';
|
|
5
|
+
export declare const getTourCookie: () => string[];
|
|
6
|
+
/**
|
|
7
|
+
* Tutorial: marks the tour step as finished. This sets a cookie, preventing the tour from showing again.
|
|
8
|
+
* @param key the identifier for the step to mark as finished.
|
|
9
|
+
*/
|
|
10
|
+
export declare const finishTourStep: (key: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Tutorial: verifies if the React Tour step has not finished yet.
|
|
13
|
+
*
|
|
14
|
+
* A step has not finished if the array stored as a cookie doesn't include the string value of `step.selector`.
|
|
15
|
+
* @param step the step config.
|
|
16
|
+
* @returns true if the step has not yet been marked as finished. False otherwise.
|
|
17
|
+
*/
|
|
18
|
+
export declare const isNewTourStep: (step: ReactourStep) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Tutorial: verifies if the key passed as parameter refers to a React Tour step that has already finished.
|
|
21
|
+
*
|
|
22
|
+
* The key refers to a finished step if the array stored as a cookie includes it.
|
|
23
|
+
* If the cookie is set to 'disabled', then the step will be considered finished.Particularly useful in scenarios like e2e tests.
|
|
24
|
+
* @param key the step's identifier to check.
|
|
25
|
+
* @returns true if the key refers to a finished step. False otherwise.
|
|
26
|
+
*/
|
|
27
|
+
export declare const hasFinishedTourStep: (key: string) => boolean;
|
|
28
|
+
export interface StackspotTourStep extends ReactourStep {
|
|
29
|
+
/**
|
|
30
|
+
* The step's title.
|
|
31
|
+
*/
|
|
32
|
+
title: string;
|
|
33
|
+
/**
|
|
34
|
+
* The unique identifier for the step (key).
|
|
35
|
+
*/
|
|
36
|
+
selector: string;
|
|
37
|
+
/**
|
|
38
|
+
* The step's content.
|
|
39
|
+
*/
|
|
40
|
+
content: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* The position of the tour overlay related to the content being explained.
|
|
43
|
+
*/
|
|
44
|
+
position?: PointingArrowPosition;
|
|
45
|
+
/**
|
|
46
|
+
* The CSS 'right' property to adjust the horizontal position of the overlay.
|
|
47
|
+
*/
|
|
48
|
+
right?: React.CSSProperties['right'];
|
|
49
|
+
/**
|
|
50
|
+
* The CSS 'top' property to adjust the vertical position of the overlay.
|
|
51
|
+
*/
|
|
52
|
+
top?: React.CSSProperties['top'];
|
|
53
|
+
/**
|
|
54
|
+
* A customizable set of buttons for navigating the tour steps.
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* A set of properties for customizing the next and previous buttons.
|
|
58
|
+
*/
|
|
59
|
+
customNavigation?: NavigationProps;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Tutorial: utility for building a React Tour step. This already includes some default configuration for tours in Stackspot.
|
|
63
|
+
* @param options the options for building the step: {@link StackspotTourStep}.
|
|
64
|
+
* @returns the React Tour step.
|
|
65
|
+
*/
|
|
66
|
+
export declare const tourStepBuilder: ({ selector, position, title, content, style, right, top, customNavigation, ...rest }: StackspotTourStep) => ReactourStep;
|
|
9
67
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/tour/utils.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/tour/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,qBAAqB,EAAiB,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAOlD,eAAO,MAAM,aAAa,gBAGzB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,SAIzC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,YAAY,YAA6C,CAAA;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,YAG9C,CAAA;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACrC;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACjC;;OAEG;IACH;;OAEG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,sFAU7B,iBAAiB,KAAG,YAoBrB,CAAA"}
|
|
@@ -1,48 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getCookie, setCookie } from '@stack-spot/portal-components';
|
|
1
3
|
import { theme } from '@stack-spot/portal-theme';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
border-width: 10px;
|
|
10
|
-
border-style: solid;
|
|
11
|
-
border-color: transparent;
|
|
12
|
-
margin-top: -5px;
|
|
13
|
-
border-right-color: ${theme.color.inverse[500]};
|
|
14
|
-
${({ $position, $top }) => $position === 'right' ?
|
|
15
|
-
`
|
|
16
|
-
top: ${$top || '16px'};
|
|
17
|
-
left: -18px;
|
|
18
|
-
` : ''}
|
|
19
|
-
${({ $position, $right }) => $position === 'top' ?
|
|
20
|
-
`
|
|
21
|
-
bottom: 96%;
|
|
22
|
-
right: ${$right || '16px'};
|
|
23
|
-
transform: rotate(90deg);
|
|
24
|
-
` : ''}
|
|
25
|
-
${({ $position, $top }) => $position === 'left' ?
|
|
26
|
-
`
|
|
27
|
-
top: ${$top || '16px'};
|
|
28
|
-
right: -18px;
|
|
29
|
-
transform: rotate(180deg);
|
|
30
|
-
` : ''}
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
const DOMAIN_REGEX = new RegExp(/(\.*(prd|stg|dev)*.stackspot.com)|localhost/);
|
|
34
|
-
const portalUrl = new URL(location.href);
|
|
35
|
-
const cookieDomain = DOMAIN_REGEX.exec(portalUrl.host)?.[0];
|
|
36
|
-
const defaultCookieAttributes = `domain=${cookieDomain}; SameSite=Strict;`;
|
|
37
|
-
const getCookies = () => document.cookie.split('; ').reduce((prev, current) => {
|
|
38
|
-
const [name, ...value] = current.split('=');
|
|
39
|
-
prev[name] = value.join('=');
|
|
40
|
-
return prev;
|
|
41
|
-
}, {});
|
|
42
|
-
const setCookie = (key, value) => {
|
|
43
|
-
document.cookie = `${key}=${value}; ${defaultCookieAttributes}`;
|
|
4
|
+
import { StepContainer } from './StepContainer.js';
|
|
5
|
+
const TOUR_COOKIE = 'guided-tour-global';
|
|
6
|
+
const defaultExpires = new Date();
|
|
7
|
+
defaultExpires.setFullYear(new Date().getFullYear() + 1);
|
|
8
|
+
export const getTourCookie = () => {
|
|
9
|
+
const currentTourObject = getCookie(TOUR_COOKIE);
|
|
10
|
+
return currentTourObject ? currentTourObject.split(',') : [];
|
|
44
11
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Tutorial: marks the tour step as finished. This sets a cookie, preventing the tour from showing again.
|
|
14
|
+
* @param key the identifier for the step to mark as finished.
|
|
15
|
+
*/
|
|
16
|
+
export const finishTourStep = (key) => {
|
|
17
|
+
const finishedTours = getTourCookie();
|
|
18
|
+
if (!finishedTours.includes(key))
|
|
19
|
+
finishedTours.push(key);
|
|
20
|
+
setCookie(TOUR_COOKIE, finishedTours.toString(), { expires: defaultExpires.toUTCString() });
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Tutorial: verifies if the React Tour step has not finished yet.
|
|
24
|
+
*
|
|
25
|
+
* A step has not finished if the array stored as a cookie doesn't include the string value of `step.selector`.
|
|
26
|
+
* @param step the step config.
|
|
27
|
+
* @returns true if the step has not yet been marked as finished. False otherwise.
|
|
28
|
+
*/
|
|
29
|
+
export const isNewTourStep = (step) => !hasFinishedTourStep(`${step.selector}`);
|
|
30
|
+
/**
|
|
31
|
+
* Tutorial: verifies if the key passed as parameter refers to a React Tour step that has already finished.
|
|
32
|
+
*
|
|
33
|
+
* The key refers to a finished step if the array stored as a cookie includes it.
|
|
34
|
+
* If the cookie is set to 'disabled', then the step will be considered finished.Particularly useful in scenarios like e2e tests.
|
|
35
|
+
* @param key the step's identifier to check.
|
|
36
|
+
* @returns true if the key refers to a finished step. False otherwise.
|
|
37
|
+
*/
|
|
38
|
+
export const hasFinishedTourStep = (key) => {
|
|
39
|
+
const tourCookie = getTourCookie();
|
|
40
|
+
return tourCookie.includes(key) || tourCookie[0] === 'disabled';
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Tutorial: utility for building a React Tour step. This already includes some default configuration for tours in Stackspot.
|
|
44
|
+
* @param options the options for building the step: {@link StackspotTourStep}.
|
|
45
|
+
* @returns the React Tour step.
|
|
46
|
+
*/
|
|
47
|
+
export const tourStepBuilder = ({ selector, position, title, content, style, right, top, customNavigation, ...rest }) => ({
|
|
48
|
+
selector,
|
|
49
|
+
content: (_jsx(StepContainer, { stepKey: selector, position: position, right: right, top: top, title: title, customNavigation: customNavigation, children: content })),
|
|
50
|
+
position,
|
|
51
|
+
style: {
|
|
52
|
+
backgroundColor: theme.color.inverse[500],
|
|
53
|
+
width: '256px',
|
|
54
|
+
padding: 0,
|
|
55
|
+
top: ['right', 'left'].includes(position) ? '-3px' : '0',
|
|
56
|
+
...(style || {}),
|
|
57
|
+
},
|
|
58
|
+
...(rest || {}),
|
|
59
|
+
});
|
|
48
60
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/tour/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/tour/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAGhD,OAAO,EAAyB,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGtE,MAAM,WAAW,GAAG,oBAAoB,CAAA;AAExC,MAAM,cAAc,GAAG,IAAI,IAAI,EAAE,CAAA;AACjC,cAAc,CAAC,WAAW,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAA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,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,YACjC,OAAO,GACM,CAAC;IACjB,QAAQ;IACR,KAAK,EAAE;QACL,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QACzC,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAiC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG;QACjF,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;KACjB;IACD,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;CAChB,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type UserMenuManagerListeners = (visible: boolean) => void;
|
|
2
|
+
declare class UserMenuManager {
|
|
3
|
+
private visible;
|
|
4
|
+
private observers;
|
|
5
|
+
changeVisible(isVisible: boolean): void;
|
|
6
|
+
isOpen(): boolean;
|
|
7
|
+
subscribe(updateFn: UserMenuManagerListeners): () => void;
|
|
8
|
+
private pullListener;
|
|
9
|
+
private notify;
|
|
10
|
+
}
|
|
11
|
+
export declare const userMenuManager: UserMenuManager;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=user-menu-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-menu-manager.d.ts","sourceRoot":"","sources":["../../src/components/user-menu-manager.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAI,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;AAElE,cAAM,eAAe;IACnB,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,SAAS,CAAmC;IAEpD,aAAa,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAKvC,MAAM,IAAI,OAAO;IAIjB,SAAS,CAAC,QAAQ,EAAE,wBAAwB;IAM5C,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,MAAM;CAGf;AAED,eAAO,MAAM,eAAe,iBAAwB,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
class UserMenuManager {
|
|
2
|
+
constructor() {
|
|
3
|
+
Object.defineProperty(this, "visible", {
|
|
4
|
+
enumerable: true,
|
|
5
|
+
configurable: true,
|
|
6
|
+
writable: true,
|
|
7
|
+
value: false
|
|
8
|
+
});
|
|
9
|
+
Object.defineProperty(this, "observers", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true,
|
|
13
|
+
value: []
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
changeVisible(isVisible) {
|
|
17
|
+
this.visible = isVisible;
|
|
18
|
+
this.notify();
|
|
19
|
+
}
|
|
20
|
+
isOpen() {
|
|
21
|
+
return this.visible;
|
|
22
|
+
}
|
|
23
|
+
subscribe(updateFn) {
|
|
24
|
+
this.observers.push(updateFn);
|
|
25
|
+
this.notify();
|
|
26
|
+
return () => this.pullListener(updateFn);
|
|
27
|
+
}
|
|
28
|
+
pullListener(updateFn) {
|
|
29
|
+
this.observers = this.observers.filter((obs) => obs !== updateFn);
|
|
30
|
+
}
|
|
31
|
+
notify() {
|
|
32
|
+
this.observers.forEach((updateFn) => updateFn(this.visible));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export const userMenuManager = new UserMenuManager();
|
|
36
|
+
//# sourceMappingURL=user-menu-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-menu-manager.js","sourceRoot":"","sources":["../../src/components/user-menu-manager.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe;IAArB;QACU;;;;mBAAmB,KAAK;WAAA;QACxB;;;;mBAAY,EAAgC;WAAA;IAwBtD,CAAC;IAtBC,aAAa,CAAC,SAAkB;QAC9B,IAAI,CAAC,OAAO,GAAG,SAAS,CAAA;QACxB,IAAI,CAAC,MAAM,EAAE,CAAA;IACf,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED,SAAS,CAAC,QAAkC;QAC1C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC7B,IAAI,CAAC,MAAM,EAAE,CAAA;QACb,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAA;IAC1C,CAAC;IAEO,YAAY,CAAC,QAAkC;QACrD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAA;IACnE,CAAC;IAEO,MAAM;QACZ,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;IAC9D,CAAC;CACF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA"}
|
package/dist/dictionary.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A global dictionary for layout components.
|
|
3
|
+
*/
|
|
4
|
+
export declare const useDictionary: () => Record<"close" | "validationLabel" | "dismiss" | "confirm" | "cancel" | "goBack", string>;
|
|
2
5
|
export declare function getDictionary(): {
|
|
3
6
|
close: string;
|
|
4
7
|
validationLabel: string;
|
|
5
8
|
dismiss: string;
|
|
6
9
|
confirm: string;
|
|
7
10
|
cancel: string;
|
|
11
|
+
goBack: string;
|
|
8
12
|
} | {
|
|
9
13
|
close: string;
|
|
10
14
|
validationLabel: string;
|
|
11
15
|
dismiss: string;
|
|
12
16
|
confirm: string;
|
|
13
17
|
cancel: string;
|
|
18
|
+
goBack: string;
|
|
14
19
|
};
|
|
15
20
|
//# sourceMappingURL=dictionary.d.ts.map
|
package/dist/dictionary.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../src/dictionary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../src/dictionary.ts"],"names":[],"mappings":"AAqBA;;GAEG;AACH,eAAO,MAAM,aAAa,iGAAiC,CAAA;AAE3D,wBAAgB,aAAa;;;;;;;;;;;;;;EAG5B"}
|
package/dist/dictionary.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getLanguage, useTranslate } from '@stack-spot/portal-translate';
|
|
1
|
+
import { getLanguage, ptEn, useTranslate } from '@stack-spot/portal-translate';
|
|
2
2
|
const dictionary = {
|
|
3
3
|
en: {
|
|
4
4
|
close: 'Close',
|
|
@@ -6,6 +6,7 @@ const dictionary = {
|
|
|
6
6
|
dismiss: 'Dismiss',
|
|
7
7
|
confirm: 'OK',
|
|
8
8
|
cancel: 'Cancel',
|
|
9
|
+
goBack: 'Return',
|
|
9
10
|
},
|
|
10
11
|
pt: {
|
|
11
12
|
close: 'Fechar',
|
|
@@ -13,11 +14,15 @@ const dictionary = {
|
|
|
13
14
|
dismiss: 'Dispensar',
|
|
14
15
|
confirm: 'OK',
|
|
15
16
|
cancel: 'Cancelar',
|
|
17
|
+
goBack: 'Voltar',
|
|
16
18
|
},
|
|
17
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* A global dictionary for layout components.
|
|
22
|
+
*/
|
|
18
23
|
export const useDictionary = () => useTranslate(dictionary);
|
|
19
24
|
export function getDictionary() {
|
|
20
|
-
const language = getLanguage();
|
|
25
|
+
const language = getLanguage(ptEn);
|
|
21
26
|
return dictionary[language];
|
|
22
27
|
}
|
|
23
28
|
//# sourceMappingURL=dictionary.js.map
|
package/dist/dictionary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../src/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../src/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE1F,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,KAAK,EAAE,OAAO;QACd,eAAe,EAAE,kDAAkD;QACnE,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,QAAQ;KACjB;IACD,EAAE,EAAE;QACF,KAAK,EAAE,QAAQ;QACf,eAAe,EAAE,4DAA4D;QAC7E,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;KACjB;CACmB,CAAA;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;AAE3D,MAAM,UAAU,aAAa;IAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;IAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC7B,CAAC"}
|
package/dist/elements.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ids of the layout elements.
|
|
3
|
+
*/
|
|
1
4
|
export declare const elementIds: {
|
|
2
5
|
readonly layout: "layout";
|
|
3
6
|
readonly backdrop: "backdrop";
|
|
@@ -9,10 +12,14 @@ export declare const elementIds: {
|
|
|
9
12
|
readonly header: "header";
|
|
10
13
|
readonly menu: "menu";
|
|
11
14
|
readonly menuContent: "menuContent";
|
|
15
|
+
readonly menuInnerContent: "menuInnerContent";
|
|
12
16
|
readonly menuSections: "menuSections";
|
|
13
17
|
readonly accessibilityAnnouncer: "accessibilityAnnouncer";
|
|
14
18
|
};
|
|
15
19
|
export type LayoutElement = keyof typeof elementIds;
|
|
16
20
|
export type LayoutElements = Record<LayoutElement, HTMLElement | null>;
|
|
21
|
+
/**
|
|
22
|
+
* @returns an object with the html elements of the layout.
|
|
23
|
+
*/
|
|
17
24
|
export declare function getLayoutElements(): LayoutElements;
|
|
18
25
|
//# sourceMappingURL=elements.d.ts.map
|
package/dist/elements.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../src/elements.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../src/elements.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAcb,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAA;AACnD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,IAAI,CAAC,CAAA;AAEtE;;GAEG;AACH,wBAAgB,iBAAiB,mBAKhC"}
|
package/dist/elements.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ids of the layout elements.
|
|
3
|
+
*/
|
|
1
4
|
export const elementIds = {
|
|
2
5
|
layout: 'layout',
|
|
3
6
|
backdrop: 'backdrop',
|
|
@@ -9,9 +12,13 @@ export const elementIds = {
|
|
|
9
12
|
header: 'header',
|
|
10
13
|
menu: 'menu',
|
|
11
14
|
menuContent: 'menuContent',
|
|
15
|
+
menuInnerContent: 'menuInnerContent',
|
|
12
16
|
menuSections: 'menuSections',
|
|
13
17
|
accessibilityAnnouncer: 'accessibilityAnnouncer',
|
|
14
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @returns an object with the html elements of the layout.
|
|
21
|
+
*/
|
|
15
22
|
export function getLayoutElements() {
|
|
16
23
|
return Object.keys(elementIds).reduce((result, id) => ({ ...result, [id]: document.getElementById(id) }), {});
|
|
17
24
|
}
|
package/dist/elements.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../src/elements.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,sBAAsB,EAAE,wBAAwB;CACxC,CAAA;AAKV,MAAM,UAAU,iBAAiB;IAC/B,OAAQ,MAAM,CAAC,IAAI,CAAC,UAAU,CAAqB,CAAC,MAAM,CACxD,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,EAClE,EAAoB,CACrB,CAAA;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../src/elements.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,kBAAkB;IACpC,YAAY,EAAE,cAAc;IAC5B,sBAAsB,EAAE,wBAAwB;CACxC,CAAA;AAKV;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAQ,MAAM,CAAC,IAAI,CAAC,UAAU,CAAqB,CAAC,MAAM,CACxD,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,EAClE,EAAoB,CACrB,CAAA;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Backdrop } from './components/Backdrop.js';
|
|
2
|
+
export { showContactUsModal } from './components/Contact/show-contact-modal.js';
|
|
3
3
|
export { Dialog } from './components/Dialog.js';
|
|
4
4
|
export { Header, HeaderProps } from './components/Header.js';
|
|
5
|
-
export { OverlayContent } from './components/OverlayContent.js';
|
|
6
|
-
export { PortalSwitcher } from './components/PortalSwitcher.js';
|
|
7
|
-
export { ListAction, SelectionList, SelectionListProps } from './components/SelectionList.js';
|
|
8
|
-
export { Toaster } from './components/Toaster.js';
|
|
9
5
|
export { ActionItem, MenuContent, MenuGroup, Title } from './components/menu/MenuContent.js';
|
|
10
6
|
export { MenuSections } from './components/menu/MenuSections.js';
|
|
11
7
|
export * from './components/menu/types.js';
|
|
12
|
-
export
|
|
8
|
+
export { CLOSE_OVERLAY_ID, OverlayContent } from './components/OverlayContent.js';
|
|
9
|
+
export { PortalSwitcher } from './components/PortalSwitcher.js';
|
|
10
|
+
export { usePrivacyPolicyEffect } from './components/PrivacyPolicyMessage/hooks.js';
|
|
11
|
+
export { RateComponent } from './components/Rate/index.js';
|
|
12
|
+
export { shouldShowNpsModal } from './components/Rate/hook.js';
|
|
13
|
+
export { ShowFeedbackModal, showRateUsModal } from './components/Rate/show-rate-us-modals.js';
|
|
14
|
+
export * from './components/tour/index.js';
|
|
15
|
+
export { TypeForm } from './components/TypeForm/index.js';
|
|
16
|
+
export { useTypeFormEffect } from './components/TypeForm/hook.js';
|
|
17
|
+
export { showTypeFormModal } from './components/TypeForm/show-typeform-modal.js';
|
|
13
18
|
export * from './elements.js';
|
|
14
19
|
export * from './errors.js';
|
|
15
|
-
export {
|
|
20
|
+
export { Layout, RawLayout } from './Layout.js';
|
|
21
|
+
export { overlay } from './LayoutOverlayManager.js';
|
|
22
|
+
export * from './types.js';
|
|
16
23
|
export * from './utils.js';
|
|
17
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAA;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAC1F,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAC7E,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAChD,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Backdrop } from './components/Backdrop.js';
|
|
2
|
+
export { showContactUsModal } from './components/Contact/show-contact-modal.js';
|
|
3
3
|
export { Dialog } from './components/Dialog.js';
|
|
4
4
|
export { Header } from './components/Header.js';
|
|
5
|
-
export { OverlayContent } from './components/OverlayContent.js';
|
|
6
|
-
export { PortalSwitcher } from './components/PortalSwitcher.js';
|
|
7
|
-
export { SelectionList } from './components/SelectionList.js';
|
|
8
|
-
export { Toaster } from './components/Toaster.js';
|
|
9
5
|
export { ActionItem, MenuContent, MenuGroup, Title } from './components/menu/MenuContent.js';
|
|
10
6
|
export { MenuSections } from './components/menu/MenuSections.js';
|
|
11
7
|
export * from './components/menu/types.js';
|
|
12
|
-
export
|
|
8
|
+
export { CLOSE_OVERLAY_ID, OverlayContent } from './components/OverlayContent.js';
|
|
9
|
+
export { PortalSwitcher } from './components/PortalSwitcher.js';
|
|
10
|
+
export { usePrivacyPolicyEffect } from './components/PrivacyPolicyMessage/hooks.js';
|
|
11
|
+
export { RateComponent } from './components/Rate/index.js';
|
|
12
|
+
export { shouldShowNpsModal } from './components/Rate/hook.js';
|
|
13
|
+
export { ShowFeedbackModal, showRateUsModal } from './components/Rate/show-rate-us-modals.js';
|
|
14
|
+
export * from './components/tour/index.js';
|
|
15
|
+
export { TypeForm } from './components/TypeForm/index.js';
|
|
16
|
+
export { useTypeFormEffect } from './components/TypeForm/hook.js';
|
|
17
|
+
export { showTypeFormModal } from './components/TypeForm/show-typeform-modal.js';
|
|
13
18
|
export * from './elements.js';
|
|
14
19
|
export * from './errors.js';
|
|
15
|
-
export {
|
|
20
|
+
export { Layout, RawLayout } from './Layout.js';
|
|
21
|
+
export { overlay } from './LayoutOverlayManager.js';
|
|
22
|
+
export * from './types.js';
|
|
16
23
|
export * from './utils.js';
|
|
17
24
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,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