@admin-layout/tailwind-design-pro 11.0.4-alpha.4 → 11.2.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +471 -1
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +40 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +42 -3
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +6 -12
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +274 -108
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +80 -109
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +1 -15
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +107 -65
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js +187 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +3 -16
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +86 -0
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js +248 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js +109 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts +3 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts +3 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +77 -12
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/Divider.d.ts +2 -31
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js +26 -28
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js +50 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +46 -13
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.d.ts +1 -16
- package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
- package/lib/components/Layout/getPageTitle.js +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +5 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
- package/lib/components/Layout/slot-fill/Footer.d.ts +4 -3
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +6 -6
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
- package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +4 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +4 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +4 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js +6 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +6 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.d.ts.map +1 -1
- package/lib/components/Layout/util.js +12 -0
- package/lib/components/Layout/util.js.map +1 -0
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -25
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +203 -382
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.js +20 -0
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.js +77 -0
- package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.js +154 -0
- package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.js +73 -0
- package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
- package/lib/components/SettingDrawer/utils/types.d.ts +105 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +16 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/typings.d.ts +154 -50
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +16 -6
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.d.ts +59 -0
- package/lib/config/analytics-config.d.ts.map +1 -0
- package/lib/config/constants.d.ts +8 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +32 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/env-config.d.ts +21 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +86 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/helpers/DynamicIcon.d.ts +8 -5
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +50 -0
- package/lib/helpers/DynamicIcon.js.map +1 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.d.ts +14 -0
- package/lib/hooks/useMediaQuery.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.js +48 -0
- package/lib/hooks/useMediaQuery.js.map +1 -0
- package/lib/hooks/useScrollThreshold.d.ts +12 -0
- package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
- package/lib/hooks/useScrollThreshold.js +60 -0
- package/lib/hooks/useScrollThreshold.js.map +1 -0
- package/lib/hooks/useTailwindTheme.d.ts +34 -0
- package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/lib/icons.d.ts +18 -0
- package/lib/icons.d.ts.map +1 -0
- package/lib/icons.js +14 -0
- package/lib/icons.js.map +1 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +29 -0
- package/lib/machines/settingsMachine.d.ts.map +1 -0
- package/lib/machines/settingsMachine.js +171 -0
- package/lib/machines/settingsMachine.js.map +1 -0
- package/lib/machines/types.d.ts +272 -0
- package/lib/machines/types.d.ts.map +1 -0
- package/lib/machines/types.js +5 -0
- package/lib/machines/types.js.map +1 -0
- package/lib/module.d.ts +0 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +14 -15
- package/lib/module.js.map +1 -1
- package/lib/redux/index.d.ts +2 -0
- package/lib/redux/index.d.ts.map +1 -0
- package/lib/redux/searchReducer.d.ts +42 -0
- package/lib/redux/searchReducer.d.ts.map +1 -0
- package/lib/redux/searchReducer.js +64 -0
- package/lib/redux/searchReducer.js.map +1 -0
- package/lib/routes.json +10 -1
- package/lib/styles/index.css +667 -45
- package/lib/tailwindConfig.d.ts +100 -0
- package/lib/tailwindConfig.d.ts.map +1 -0
- package/lib/tailwindConfig.js +101 -0
- package/lib/tailwindConfig.js.map +1 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/__tests__/menu.test.d.ts +2 -0
- package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
- package/lib/utils/__tests__/selectors.test.d.ts +2 -0
- package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
- package/lib/utils/analytics-utils.d.ts +43 -0
- package/lib/utils/analytics-utils.d.ts.map +1 -0
- package/lib/utils/analytics.d.ts +48 -0
- package/lib/utils/analytics.d.ts.map +1 -0
- package/lib/utils/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/formateCarData.d.ts +2 -0
- package/lib/utils/formateCarData.d.ts.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/menu.d.ts.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/test-utils.d.ts.map +1 -1
- package/lib/utils/utils/index.d.ts.map +1 -1
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
- package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
- package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
- package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -15
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -141
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -6
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -89
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -8
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -48
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -7
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -69
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -8
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -95
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -9
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -39
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -8
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -32
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/defaultSettings.d.ts +0 -4
- package/lib/components/defaultSettings.d.ts.map +0 -1
- package/lib/components/defaultSettings.js +0 -14
- package/lib/components/defaultSettings.js.map +0 -1
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -13
- package/lib/utils/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;CAgBjB,CAAC"}
|
package/lib/icons.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {FaSearch}from'@react-icons/all-files/fa/FaSearch.js';import {IoMenu}from'@react-icons/all-files/io5/IoMenu.js';import'@react-icons/all-files/ai/AiOutlineDash.js';import {FaChevronDown}from'@react-icons/all-files/fa/FaChevronDown.js';import {FaChevronUp}from'@react-icons/all-files/fa/FaChevronUp.js';import {FaChevronRight}from'@react-icons/all-files/fa/FaChevronRight.js';import {FaChevronLeft}from'@react-icons/all-files/fa/FaChevronLeft.js';import {MdClose}from'@react-icons/all-files/md/MdClose.js';import {RiSettings5Fill}from'@react-icons/all-files/ri/RiSettings5Fill.js';import {IoMdCopy}from'@react-icons/all-files/io/IoMdCopy.js';import {FaCheck}from'@react-icons/all-files/fa/FaCheck.js';import'@react-icons/all-files/io5/IoChevronBackCircleOutline.js';import'@react-icons/all-files/io5/IoChevronForwardCircleOutline.js';import {RiPushpinLine}from'@react-icons/all-files/ri/RiPushpinLine.js';import {RiPushpinFill}from'@react-icons/all-files/ri/RiPushpinFill.js';const icons = {
|
|
2
|
+
SearchIcon: FaSearch,
|
|
3
|
+
ChevronDownIcon: FaChevronDown,
|
|
4
|
+
ChevronRightIcon: FaChevronRight,
|
|
5
|
+
MenuIcon: IoMenu,
|
|
6
|
+
CloseIcon: MdClose,
|
|
7
|
+
Settings5FillIcon: RiSettings5Fill,
|
|
8
|
+
CopyIcon: IoMdCopy,
|
|
9
|
+
CheckIcon: FaCheck,
|
|
10
|
+
ChevronUpIcon: FaChevronUp,
|
|
11
|
+
ChevronLeftIcon: FaChevronLeft,
|
|
12
|
+
PushpinLineIcon: RiPushpinLine,
|
|
13
|
+
PushpinFillIcon: RiPushpinFill
|
|
14
|
+
};export{icons};//# sourceMappingURL=icons.js.map
|
package/lib/icons.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sources":["../src/icons.ts"],"sourcesContent":[null],"names":[],"mappings":"q9BAgBO,MAAM,KAAK,GAAG;sBACjB;gCACA;kCACA;kBACA;oBAEA;oCACA;oBACA;oBACA;4BAGA;gCACA;gCACA;;"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from '@common-stack/client-react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export * from './tailwindConfig';
|
|
3
|
+
export * from './redux';
|
|
4
|
+
export * from './hooks';
|
|
5
5
|
declare const _default: Feature;
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;;AAExB,wBAAqC"}
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {Feature}from'@common-stack/client-react';import settings from'./module.js';export{
|
|
1
|
+
import {Feature}from'@common-stack/client-react';import settings from'./module.js';export{themeConfig}from'./tailwindConfig.js';export{SEARCH_ACTIONS,clearSearch,searchReducer,setSearchError,setSearchQuery,setSearchResult}from'./redux/searchReducer.js';export{useTailwindTheme}from'./hooks/useTailwindTheme.js';export{useMediaQuery}from'./hooks/useMediaQuery.js';// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
2
|
var index = new Feature(settings);export{index as default};//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"2WAAA;AAOA,YAAe,IAAI,OAAO,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { UISettings } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* XSTATE SELECTORS
|
|
4
|
+
*
|
|
5
|
+
* These selector functions provide STABLE references to state values,
|
|
6
|
+
* preventing unnecessary re-renders and eliminating infinite loop possibilities.
|
|
7
|
+
*
|
|
8
|
+
* IMPORTANT RULES:
|
|
9
|
+
* 1. Components should ONLY use these selectors to access state
|
|
10
|
+
* 2. NEVER access state.context directly
|
|
11
|
+
* 3. Selectors only return PUBLIC settings - internal state is never exposed
|
|
12
|
+
* 4. XState's useSelector hook memoizes these, ensuring stable references
|
|
13
|
+
*
|
|
14
|
+
* WHY THIS WORKS:
|
|
15
|
+
* - Even if context.internal.configModel changes (new reference),
|
|
16
|
+
* context.public remains stable (same values = same reference after JSON comparison)
|
|
17
|
+
* - useSelector only triggers re-render if the RETURNED value changes
|
|
18
|
+
* - No manual filtering needed - separation is built into the structure
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Select all UI settings (excludes internal machine state)
|
|
22
|
+
*
|
|
23
|
+
* This is the primary selector for getting user-facing settings.
|
|
24
|
+
* XState's useSelector will automatically memoize this, so it only
|
|
25
|
+
* re-renders when the UI settings actually change.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* const settings = useSelector(actor, selectPublicSettings);
|
|
29
|
+
*/
|
|
30
|
+
export declare const selectPublicSettings: (state: any) => UISettings;
|
|
31
|
+
/**
|
|
32
|
+
* Select only changed settings (for save button state).
|
|
33
|
+
* Use this to check if there are unsaved changes.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const changedSettings = useSelector(actor, selectChangedSettings);
|
|
37
|
+
* const hasChanges = Object.keys(changedSettings).length > 0;
|
|
38
|
+
*/
|
|
39
|
+
export declare const selectChangedSettings: (state: any) => Record<string, any>;
|
|
40
|
+
/**
|
|
41
|
+
* Select current device type (desktop/mobile).
|
|
42
|
+
* Use this to check which device mode is active.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* const deviceType = useSelector(actor, selectDeviceType);
|
|
46
|
+
*/
|
|
47
|
+
export declare const selectDeviceType: (state: any) => "desktop" | "mobile";
|
|
48
|
+
/**
|
|
49
|
+
* Select current route path.
|
|
50
|
+
* Use this to check which route is active.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* const currentRoute = useSelector(actor, selectCurrentRoute);
|
|
54
|
+
*/
|
|
55
|
+
export declare const selectCurrentRoute: (state: any) => string;
|
|
56
|
+
/**
|
|
57
|
+
* Select a specific setting by key.
|
|
58
|
+
* Returns a selector function that extracts a specific setting value.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* const navTheme = useSelector(actor, selectSetting('navTheme'));
|
|
62
|
+
* const primaryColor = useSelector(actor, selectSetting('primaryColor'));
|
|
63
|
+
*/
|
|
64
|
+
export declare const selectSetting: (key: keyof UISettings) => (state: any) => any;
|
|
65
|
+
/**
|
|
66
|
+
* Select navigation theme specifically.
|
|
67
|
+
* Commonly used setting, provided as convenience.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* const navTheme = useSelector(actor, selectNavTheme);
|
|
71
|
+
*/
|
|
72
|
+
export declare const selectNavTheme: (state: any) => "light" | "dark" | "realDark";
|
|
73
|
+
/**
|
|
74
|
+
* Select primary color specifically.
|
|
75
|
+
* Commonly used setting, provided as convenience.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* const primaryColor = useSelector(actor, selectPrimaryColor);
|
|
79
|
+
*/
|
|
80
|
+
export declare const selectPrimaryColor: (state: any) => string;
|
|
81
|
+
/**
|
|
82
|
+
* Select whether settings panel should be shown.
|
|
83
|
+
* Use this to control settings drawer visibility.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* const showSettingPanel = useSelector(actor, selectShowSettingPanel);
|
|
87
|
+
*/
|
|
88
|
+
export declare const selectShowSettingPanel: (state: any) => boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Select menu visibility settings.
|
|
91
|
+
* Returns both hiddenMenuKeys and hiddenMenuCategories.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* const { hiddenMenuKeys, hiddenMenuCategories } = useSelector(actor, selectMenuVisibility);
|
|
95
|
+
*/
|
|
96
|
+
export declare const selectMenuVisibility: (state: any) => {
|
|
97
|
+
hiddenMenuKeys: string[];
|
|
98
|
+
hiddenMenuCategories: string[];
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Check if there are unsaved changes.
|
|
102
|
+
* Use this for save button disabled state.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* const hasUnsavedChanges = useSelector(actor, selectHasUnsavedChanges);
|
|
106
|
+
*/
|
|
107
|
+
export declare const selectHasUnsavedChanges: (state: any) => boolean;
|
|
108
|
+
/**
|
|
109
|
+
* COMPARISON HELPER
|
|
110
|
+
*
|
|
111
|
+
* Use this to compare settings between renders without triggering infinite loops.
|
|
112
|
+
* This performs a deep comparison of UI settings only.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* const settingsChanged = !areUISettingsEqual(prevSettings, currentSettings);
|
|
116
|
+
*/
|
|
117
|
+
export declare const areUISettingsEqual: (a: UISettings, b: UISettings) => boolean;
|
|
118
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/machines/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAwB,MAAM,SAAS,CAAC;A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4
|
+
*
|
|
5
|
+
* DESIGN PHILOSOPHY:
|
|
6
|
+
* This machine has been completely rewritten to eliminate any possibility of infinite loops
|
|
7
|
+
* by enforcing a strict separation between:
|
|
8
|
+
* 1. PUBLIC STATE: User-facing settings (stable, exposed to consumers)
|
|
9
|
+
* 2. INTERNAL STATE: Machine logic state (may have reference changes, never exposed)
|
|
10
|
+
*
|
|
11
|
+
* ARCHITECTURE:
|
|
12
|
+
* - Context is split into `public` and `internal` namespaces
|
|
13
|
+
* - Components ONLY access `context.public` via selectors
|
|
14
|
+
* - NO filtering is needed - separation is built into the structure
|
|
15
|
+
* - ConfigurationModel reference changes are isolated to `context.internal`
|
|
16
|
+
* - Redux receives ONLY `context.public` - no manual filtering required
|
|
17
|
+
*
|
|
18
|
+
* WHY THIS WORKS:
|
|
19
|
+
* - Reference changes in `context.internal.configModel` don't affect `context.public`
|
|
20
|
+
* - Components using selectors get stable references to `context.public`
|
|
21
|
+
* - No manual filtering means no chance of accidentally exposing internal state
|
|
22
|
+
* - Type system enforces the separation at compile time
|
|
23
|
+
*/
|
|
24
|
+
export declare const settingsMachine: import("xstate").StateMachine<SettingsContext, MachineEvent, Record<string, import("xstate").AnyActorRef>, import("xstate").ProvidedActor, import("xstate").ParameterizedObject, import("xstate").ParameterizedObject, string, import("xstate").StateValue, string, {
|
|
25
|
+
settings: any;
|
|
26
|
+
currentRoute?: string;
|
|
27
|
+
routePattern?: string;
|
|
28
|
+
}, {}, import("xstate").EventObject, import("xstate").MetaObject, any>;
|
|
29
|
+
//# sourceMappingURL=settingsMachine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settingsMachine.d.ts","sourceRoot":"","sources":["../../src/machines/settingsMachine.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAoC,MAAM,SAAS,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,eAAe;cAMN,GAAG;mBACE,MAAM;mBACN,MAAM;sEA0K/B,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import {cloneDeep,merge}from'lodash-es';import {createMachine,assign}from'xstate';import {extractConfigurationWithModel}from'@adminide-stack/core';/**
|
|
2
|
+
* SETTINGS MACHINE - COMPLETELY REFACTORED
|
|
3
|
+
*
|
|
4
|
+
* DESIGN PHILOSOPHY:
|
|
5
|
+
* This machine has been completely rewritten to eliminate any possibility of infinite loops
|
|
6
|
+
* by enforcing a strict separation between:
|
|
7
|
+
* 1. PUBLIC STATE: User-facing settings (stable, exposed to consumers)
|
|
8
|
+
* 2. INTERNAL STATE: Machine logic state (may have reference changes, never exposed)
|
|
9
|
+
*
|
|
10
|
+
* ARCHITECTURE:
|
|
11
|
+
* - Context is split into `public` and `internal` namespaces
|
|
12
|
+
* - Components ONLY access `context.public` via selectors
|
|
13
|
+
* - NO filtering is needed - separation is built into the structure
|
|
14
|
+
* - ConfigurationModel reference changes are isolated to `context.internal`
|
|
15
|
+
* - Redux receives ONLY `context.public` - no manual filtering required
|
|
16
|
+
*
|
|
17
|
+
* WHY THIS WORKS:
|
|
18
|
+
* - Reference changes in `context.internal.configModel` don't affect `context.public`
|
|
19
|
+
* - Components using selectors get stable references to `context.public`
|
|
20
|
+
* - No manual filtering means no chance of accidentally exposing internal state
|
|
21
|
+
* - Type system enforces the separation at compile time
|
|
22
|
+
*/
|
|
23
|
+
const settingsMachine = createMachine({
|
|
24
|
+
id: 'settings',
|
|
25
|
+
types: {},
|
|
26
|
+
initial: 'idle',
|
|
27
|
+
context: ({
|
|
28
|
+
input
|
|
29
|
+
}) => {
|
|
30
|
+
const rawSettings = input?.settings || {};
|
|
31
|
+
// ConfigurationModel handles ALL bracket patterns automatically
|
|
32
|
+
const {
|
|
33
|
+
model: configModel
|
|
34
|
+
} = extractConfigurationWithModel(rawSettings);
|
|
35
|
+
const deviceType = 'desktop';
|
|
36
|
+
const routePattern = input?.routePattern || input?.currentRoute || '/';
|
|
37
|
+
// Apply overrides by chaining: base -> device -> route+device
|
|
38
|
+
const deviceOverride = configModel.override([routePattern, deviceType], {
|
|
39
|
+
strict: true
|
|
40
|
+
});
|
|
41
|
+
const effectiveSettings = deviceOverride.getValue('');
|
|
42
|
+
// Build INTERNAL state (machine only, never exposed)
|
|
43
|
+
const internalState = {
|
|
44
|
+
configModel,
|
|
45
|
+
deviceType,
|
|
46
|
+
currentRoute: input?.currentRoute || '/',
|
|
47
|
+
routePattern: input?.routePattern,
|
|
48
|
+
changedSettings: {},
|
|
49
|
+
currentChangedSetting: {}
|
|
50
|
+
};
|
|
51
|
+
const context = {
|
|
52
|
+
public: effectiveSettings,
|
|
53
|
+
internal: internalState
|
|
54
|
+
};
|
|
55
|
+
return context;
|
|
56
|
+
},
|
|
57
|
+
states: {
|
|
58
|
+
idle: {
|
|
59
|
+
entry: ['updateReduxSettings'],
|
|
60
|
+
on: {
|
|
61
|
+
UISETTING_UPDATE: {
|
|
62
|
+
actions: [assign(({
|
|
63
|
+
context,
|
|
64
|
+
event
|
|
65
|
+
}) => {
|
|
66
|
+
if (!event.value) return context;
|
|
67
|
+
// Clone context to avoid mutations
|
|
68
|
+
const newContext = cloneDeep(context);
|
|
69
|
+
// 1. Extract the configuration model from the new value
|
|
70
|
+
const {
|
|
71
|
+
model: updateModel
|
|
72
|
+
} = extractConfigurationWithModel(event.value);
|
|
73
|
+
// 2. Merge the new settings into existing config
|
|
74
|
+
newContext.internal.configModel = newContext.internal.configModel.merge(updateModel);
|
|
75
|
+
// 3. Track what changed (for saving to cookie later & save button)
|
|
76
|
+
newContext.internal.currentChangedSetting = event.value;
|
|
77
|
+
newContext.internal.changedSettings = merge({}, newContext.internal.changedSettings, event.value);
|
|
78
|
+
// 4. Reapply settings for current route
|
|
79
|
+
const routePattern = newContext.internal.routePattern || newContext.internal.currentRoute;
|
|
80
|
+
const deviceOverride = newContext.internal.configModel.override([routePattern, newContext.internal.deviceType], {
|
|
81
|
+
strict: true
|
|
82
|
+
});
|
|
83
|
+
// 5. Update the public settings that components see
|
|
84
|
+
newContext.public = deviceOverride.getValue('');
|
|
85
|
+
return newContext;
|
|
86
|
+
}), 'updateReduxSettings']
|
|
87
|
+
},
|
|
88
|
+
UISETTING_ROUTE_CHANGE: {
|
|
89
|
+
actions: [assign(({
|
|
90
|
+
context,
|
|
91
|
+
event
|
|
92
|
+
}) => {
|
|
93
|
+
const routePath = event.pathname || '/';
|
|
94
|
+
const routePattern = event.routePattern;
|
|
95
|
+
// Clone context to avoid mutations
|
|
96
|
+
const newContext = cloneDeep(context);
|
|
97
|
+
// Update internal route and route pattern
|
|
98
|
+
newContext.internal.currentRoute = routePath;
|
|
99
|
+
if (routePattern) {
|
|
100
|
+
newContext.internal.routePattern = routePattern;
|
|
101
|
+
}
|
|
102
|
+
// Build override keys using route pattern if available
|
|
103
|
+
const routeForBracket = routePattern || routePath;
|
|
104
|
+
const routeDeviceKey = [routeForBracket, context.internal.deviceType];
|
|
105
|
+
// Apply overrides by chaining: base -> device -> route+device
|
|
106
|
+
const deviceOverride = context.internal.configModel.override(routeDeviceKey, {
|
|
107
|
+
strict: true
|
|
108
|
+
});
|
|
109
|
+
// Extract final merged settings
|
|
110
|
+
const effectiveSettings = deviceOverride.getValue('');
|
|
111
|
+
// Rebuild PUBLIC settings from scratch (no leakage from old route)
|
|
112
|
+
newContext.public = effectiveSettings;
|
|
113
|
+
return newContext;
|
|
114
|
+
})
|
|
115
|
+
// 'updateReduxSettings',
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
UISETTING_UPDATE_ROUTE_SETTINGS: {
|
|
119
|
+
actions: [assign(({
|
|
120
|
+
context
|
|
121
|
+
}) => ({
|
|
122
|
+
...context
|
|
123
|
+
// Route settings are now handled via uiSettings overrides
|
|
124
|
+
})), 'updateReduxSettings']
|
|
125
|
+
},
|
|
126
|
+
UISETTING_RESET: {
|
|
127
|
+
actions: [assign(({
|
|
128
|
+
context
|
|
129
|
+
}) => {
|
|
130
|
+
const newContext = cloneDeep(context);
|
|
131
|
+
// Reset public state
|
|
132
|
+
newContext.public.components = [];
|
|
133
|
+
newContext.public.activeComponent = undefined;
|
|
134
|
+
// Reset internal tracking
|
|
135
|
+
newContext.internal.changedSettings = {};
|
|
136
|
+
return newContext;
|
|
137
|
+
}), 'updateReduxSettings']
|
|
138
|
+
},
|
|
139
|
+
UISETTING_RESET_CHANGED_SETTINGS: {
|
|
140
|
+
actions: [assign(({
|
|
141
|
+
context
|
|
142
|
+
}) => {
|
|
143
|
+
const newContext = cloneDeep(context);
|
|
144
|
+
newContext.internal.changedSettings = {};
|
|
145
|
+
return newContext;
|
|
146
|
+
})]
|
|
147
|
+
},
|
|
148
|
+
UISETTING_UPDATE_DEVICE_TYPE: {
|
|
149
|
+
actions: [assign(({
|
|
150
|
+
context,
|
|
151
|
+
event
|
|
152
|
+
}) => {
|
|
153
|
+
const deviceType = event.deviceType || 'desktop';
|
|
154
|
+
if (context.internal.deviceType === deviceType) {
|
|
155
|
+
return context;
|
|
156
|
+
}
|
|
157
|
+
const newContext = cloneDeep(context);
|
|
158
|
+
newContext.internal.deviceType = deviceType;
|
|
159
|
+
// Recalculate settings for new device
|
|
160
|
+
const routeForBracket = context.internal.routePattern || context.internal.currentRoute;
|
|
161
|
+
const routeOverride = context.internal.configModel.override([routeForBracket, deviceType], {
|
|
162
|
+
strict: true
|
|
163
|
+
});
|
|
164
|
+
newContext.public = routeOverride.getValue('');
|
|
165
|
+
return newContext;
|
|
166
|
+
}), 'updateReduxSettings']
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
});export{settingsMachine};//# sourceMappingURL=settingsMachine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settingsMachine.js","sources":["../../src/machines/settingsMachine.ts"],"sourcesContent":[null],"names":[],"mappings":"mJAKA;;;;;;;;;;;;;;;;;;;;;AAqBG;AAEI,MAAM,eAAe,GAAG,aAAa,CAAC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,eAAA,EAAA,UAAA,CAAA,EAAA;AACJ,cAAE,MAAA,EAAA;;;;;;;;;"}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
export type ThemeColor = 'blue' | 'indigo' | 'red' | 'orange' | 'yellow' | 'teal' | 'green' | 'blue' | 'purple';
|
|
2
|
+
export type NavigationMode = 'sidebar' | 'topbar' | 'mixed';
|
|
3
|
+
export type SideMenuType = 'expanded' | 'collapsed' | 'perplexLayout';
|
|
4
|
+
export type ContentWidth = 'fixed' | 'fluid';
|
|
5
|
+
export declare enum SearchBarBehavior {
|
|
6
|
+
PERMANENT = "permanent",
|
|
7
|
+
ON_SCROLL = "on-scroll"
|
|
8
|
+
}
|
|
9
|
+
export interface BackgroundSettings {
|
|
10
|
+
type: 'color' | 'image' | 'video';
|
|
11
|
+
color?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
video?: string;
|
|
14
|
+
videoThumbnail?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ComponentSettings {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
settings: Record<string, any>;
|
|
20
|
+
}
|
|
21
|
+
export type RouteSettings = {
|
|
22
|
+
layout?: {
|
|
23
|
+
desktop: {
|
|
24
|
+
navigationMode: NavigationMode;
|
|
25
|
+
sideMenuType: SideMenuType;
|
|
26
|
+
contentWidth: ContentWidth;
|
|
27
|
+
fixedHeader: boolean;
|
|
28
|
+
fixedSidebar: boolean;
|
|
29
|
+
splitMenus: boolean;
|
|
30
|
+
upperMenuDividerName?: string;
|
|
31
|
+
middleMenuDividerName?: string;
|
|
32
|
+
lowerMenuDividerName?: string;
|
|
33
|
+
};
|
|
34
|
+
mobile: {
|
|
35
|
+
navigationMode: NavigationMode;
|
|
36
|
+
sideMenuType: SideMenuType;
|
|
37
|
+
contentWidth: ContentWidth;
|
|
38
|
+
fixedHeader: boolean;
|
|
39
|
+
fixedSidebar: boolean;
|
|
40
|
+
splitMenus: boolean;
|
|
41
|
+
upperMenuDividerName?: string;
|
|
42
|
+
middleMenuDividerName?: string;
|
|
43
|
+
lowerMenuDividerName?: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
header?: {
|
|
47
|
+
desktop?: {
|
|
48
|
+
showLogo?: boolean;
|
|
49
|
+
showSearchSlot?: boolean;
|
|
50
|
+
showRightContent?: boolean;
|
|
51
|
+
showMenuToggle?: boolean;
|
|
52
|
+
showBackButton?: boolean;
|
|
53
|
+
showPageTitle?: boolean;
|
|
54
|
+
showActionButtons?: boolean;
|
|
55
|
+
position?: 'fixed' | 'static';
|
|
56
|
+
height?: string;
|
|
57
|
+
elevation?: number;
|
|
58
|
+
showHeader?: boolean;
|
|
59
|
+
showMenu?: boolean;
|
|
60
|
+
menuHeaderRender?: boolean;
|
|
61
|
+
searchBarRender?: boolean;
|
|
62
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
63
|
+
searchBarOverlay?: boolean;
|
|
64
|
+
scrollThreshold?: number;
|
|
65
|
+
};
|
|
66
|
+
mobile?: {
|
|
67
|
+
showLogo?: boolean;
|
|
68
|
+
showSearchSlot?: boolean;
|
|
69
|
+
showRightContent?: boolean;
|
|
70
|
+
showMenuToggle?: boolean;
|
|
71
|
+
showBackButton?: boolean;
|
|
72
|
+
showPageTitle?: boolean;
|
|
73
|
+
showActionButtons?: boolean;
|
|
74
|
+
position?: 'fixed' | 'static';
|
|
75
|
+
height?: string;
|
|
76
|
+
elevation?: number;
|
|
77
|
+
showHeader?: boolean;
|
|
78
|
+
showMenu?: boolean;
|
|
79
|
+
menuHeaderRender?: boolean;
|
|
80
|
+
searchBarRender?: boolean;
|
|
81
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
82
|
+
searchBarOverlay?: boolean;
|
|
83
|
+
scrollThreshold?: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
footer?: {
|
|
87
|
+
desktop?: {
|
|
88
|
+
showFooter?: boolean;
|
|
89
|
+
};
|
|
90
|
+
mobile?: {
|
|
91
|
+
showFooter?: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
background?: {
|
|
95
|
+
desktop?: BackgroundSettings;
|
|
96
|
+
mobile?: BackgroundSettings;
|
|
97
|
+
};
|
|
98
|
+
regions?: {
|
|
99
|
+
desktop?: {
|
|
100
|
+
background?: BackgroundSettings;
|
|
101
|
+
header?: {
|
|
102
|
+
showLogo?: boolean;
|
|
103
|
+
showSearchSlot?: boolean;
|
|
104
|
+
showRightContent?: boolean;
|
|
105
|
+
showMenuToggle?: boolean;
|
|
106
|
+
showBackButton?: boolean;
|
|
107
|
+
showPageTitle?: boolean;
|
|
108
|
+
showActionButtons?: boolean;
|
|
109
|
+
position?: 'fixed' | 'static';
|
|
110
|
+
height?: string;
|
|
111
|
+
elevation?: number;
|
|
112
|
+
showHeader?: boolean;
|
|
113
|
+
showMenu?: boolean;
|
|
114
|
+
menuHeaderRender?: boolean;
|
|
115
|
+
searchBarRender?: boolean;
|
|
116
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
117
|
+
searchBarOverlay?: boolean;
|
|
118
|
+
scrollThreshold?: number;
|
|
119
|
+
};
|
|
120
|
+
footer?: {
|
|
121
|
+
showFooter?: boolean;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
mobile?: {
|
|
125
|
+
background?: BackgroundSettings;
|
|
126
|
+
header?: {
|
|
127
|
+
showLogo?: boolean;
|
|
128
|
+
showSearchSlot?: boolean;
|
|
129
|
+
showRightContent?: boolean;
|
|
130
|
+
showMenuToggle?: boolean;
|
|
131
|
+
showBackButton?: boolean;
|
|
132
|
+
showPageTitle?: boolean;
|
|
133
|
+
showActionButtons?: boolean;
|
|
134
|
+
position?: 'fixed' | 'static';
|
|
135
|
+
height?: string;
|
|
136
|
+
elevation?: number;
|
|
137
|
+
showHeader?: boolean;
|
|
138
|
+
showMenu?: boolean;
|
|
139
|
+
menuHeaderRender?: boolean;
|
|
140
|
+
searchBarRender?: boolean;
|
|
141
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
142
|
+
searchBarOverlay?: boolean;
|
|
143
|
+
scrollThreshold?: number;
|
|
144
|
+
};
|
|
145
|
+
footer?: {
|
|
146
|
+
showFooter?: boolean;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* UI Settings - User-facing settings that control the visual appearance and layout.
|
|
153
|
+
* This includes all visual/layout settings but excludes internal machine state.
|
|
154
|
+
*/
|
|
155
|
+
export interface UISettings {
|
|
156
|
+
navTheme: 'light' | 'dark' | 'realDark';
|
|
157
|
+
primaryColor: string;
|
|
158
|
+
secondaryColor: string;
|
|
159
|
+
theme?: string;
|
|
160
|
+
logo: string;
|
|
161
|
+
showSettingPanel: boolean;
|
|
162
|
+
titleColor: string;
|
|
163
|
+
language: string;
|
|
164
|
+
fontFamily: string;
|
|
165
|
+
titleFontWeight: string;
|
|
166
|
+
titleHeight: string;
|
|
167
|
+
titleFontSize: string;
|
|
168
|
+
letterSpacings: string;
|
|
169
|
+
siderBgColor: string;
|
|
170
|
+
sideMenuType: SideMenuType;
|
|
171
|
+
headerBgColor: string;
|
|
172
|
+
textColor: string;
|
|
173
|
+
themeType: string;
|
|
174
|
+
loginThemeColor: string;
|
|
175
|
+
loginFormPosition: string;
|
|
176
|
+
loginSocials: string;
|
|
177
|
+
loginBackgroundImage: string;
|
|
178
|
+
verifyFormLayout: string;
|
|
179
|
+
verifyFormImageUrl: string;
|
|
180
|
+
verifyFormBackgroundStyle: string;
|
|
181
|
+
verifyFormVisibleFields: string;
|
|
182
|
+
verifyFormShowSkipButton: boolean;
|
|
183
|
+
components: ComponentSettings[];
|
|
184
|
+
activeComponent?: string;
|
|
185
|
+
hiddenMenuKeys?: string[];
|
|
186
|
+
hiddenMenuCategories?: string[];
|
|
187
|
+
uiSettings?: {
|
|
188
|
+
uilayout?: {
|
|
189
|
+
layout?: any;
|
|
190
|
+
regions?: any;
|
|
191
|
+
};
|
|
192
|
+
overrides?: Record<string, any>;
|
|
193
|
+
};
|
|
194
|
+
overrides?: Record<string, any>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Machine-internal state used for XState machine logic only.
|
|
198
|
+
* These values are NEVER exposed to consumers or synced to Redux.
|
|
199
|
+
*
|
|
200
|
+
* IMPORTANT: This interface contains ONLY machine-internal state.
|
|
201
|
+
* NO user-facing settings should be added here.
|
|
202
|
+
*/
|
|
203
|
+
export interface MachineInternalState {
|
|
204
|
+
configModel: any;
|
|
205
|
+
deviceType: 'desktop' | 'mobile';
|
|
206
|
+
currentRoute: string;
|
|
207
|
+
changedSettings: Record<string, any>;
|
|
208
|
+
currentChangedSetting?: Record<string, any>;
|
|
209
|
+
routePattern?: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Settings Context - Complete state with separated UI and internal concerns.
|
|
213
|
+
*/
|
|
214
|
+
export interface SettingsContext {
|
|
215
|
+
public: UISettings;
|
|
216
|
+
internal: MachineInternalState;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Legacy type for backward compatibility
|
|
220
|
+
* @deprecated Use UISettings instead
|
|
221
|
+
*/
|
|
222
|
+
export type SettingsContextLegacy = UISettings;
|
|
223
|
+
export type UpdateEvent = {
|
|
224
|
+
type: 'UISETTING_UPDATE';
|
|
225
|
+
value?: Partial<SettingsContext>;
|
|
226
|
+
};
|
|
227
|
+
export type ComponentEvent = {
|
|
228
|
+
type: 'REGISTER_COMPONENT';
|
|
229
|
+
component: ComponentSettings;
|
|
230
|
+
} | {
|
|
231
|
+
type: 'UPDATE_COMPONENT_SETTINGS';
|
|
232
|
+
componentId: string;
|
|
233
|
+
settings: Record<string, any>;
|
|
234
|
+
} | {
|
|
235
|
+
type: 'SELECT_COMPONENT';
|
|
236
|
+
componentId: string;
|
|
237
|
+
} | {
|
|
238
|
+
type: 'CLEAR_COMPONENT_SELECTION';
|
|
239
|
+
};
|
|
240
|
+
export type MachineEvent = {
|
|
241
|
+
type: 'UISETTING_UPDATE';
|
|
242
|
+
value: Partial<SettingsContext>;
|
|
243
|
+
} | {
|
|
244
|
+
type: 'REGISTER_COMPONENT';
|
|
245
|
+
component: any;
|
|
246
|
+
} | {
|
|
247
|
+
type: 'UPDATE_COMPONENT_SETTINGS';
|
|
248
|
+
componentId: string;
|
|
249
|
+
settings: any;
|
|
250
|
+
} | {
|
|
251
|
+
type: 'SELECT_COMPONENT';
|
|
252
|
+
componentId: string;
|
|
253
|
+
} | {
|
|
254
|
+
type: 'CLEAR_COMPONENT_SELECTION';
|
|
255
|
+
} | {
|
|
256
|
+
type: 'UISETTING_RESET';
|
|
257
|
+
} | {
|
|
258
|
+
type: 'SAVE';
|
|
259
|
+
} | {
|
|
260
|
+
type: 'UISETTING_RESET_CHANGED_SETTINGS';
|
|
261
|
+
} | {
|
|
262
|
+
type: 'UISETTING_ROUTE_CHANGE';
|
|
263
|
+
pathname: string;
|
|
264
|
+
routePattern?: string;
|
|
265
|
+
} | {
|
|
266
|
+
type: 'UISETTING_UPDATE_ROUTE_SETTINGS';
|
|
267
|
+
settings: Record<string, Partial<SettingsContext>>;
|
|
268
|
+
} | {
|
|
269
|
+
type: 'UISETTING_UPDATE_DEVICE_TYPE';
|
|
270
|
+
deviceType: 'desktop' | 'mobile';
|
|
271
|
+
};
|
|
272
|
+
//# sourceMappingURL=types.d.ts.map
|