@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 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 +376 -250
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +6 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +6 -1
- 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 -5
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +255 -175
- 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.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 +0 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +82 -66
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- 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 +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +70 -9
- 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 -1
- 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 +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- 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 +37 -20
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +2 -2
- 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 +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- 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 +2 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.js +2 -2
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- 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 +2 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
- 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/{types.d.ts → utils/types.d.ts} +14 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
- 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 +0 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +20 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- 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.js.map +1 -1
- package/lib/config/env-config.d.ts +6 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +21 -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 +1 -1
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +16 -17
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -1
- 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 +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +133 -168
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +107 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.d.ts +1 -1
- package/lib/redux/searchReducer.d.ts.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/styles/index.css +602 -372
- package/lib/tailwindConfig.d.ts +85 -27
- package/lib/tailwindConfig.d.ts.map +1 -1
- package/lib/tailwindConfig.js +96 -18
- package/lib/tailwindConfig.js.map +1 -1
- 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/isBrowser/index.js.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/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -123
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
- package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -22
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -35
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
- package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
- package/lib/components/SettingDrawer/types.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
- package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
- package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
- package/lib/components/ThemeProvider/index.d.ts +0 -4
- package/lib/components/ThemeProvider/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
- package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
- package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/default.js +0 -183
- package/lib/components/ThemeProvider/themes/default.js.map +0 -1
- package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/github.js +0 -190
- package/lib/components/ThemeProvider/themes/github.js.map +0 -1
- package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
- package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/index.js +0 -7
- package/lib/components/ThemeProvider/themes/index.js.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.js +0 -188
- package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.js +0 -189
- package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
- package/lib/components/ThemeProvider/types.d.ts +0 -112
- package/lib/components/ThemeProvider/types.d.ts.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -140
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -59
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -375
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import isBrowser from'../../../utils/isBrowser/index.js';/**
|
|
2
|
+
* Transform changed settings to wrap in uilayout structure for backend API
|
|
3
|
+
* Converts keys like "[desktop].theme" to "[desktop].uilayout.theme"
|
|
4
|
+
*/
|
|
5
|
+
function transformSettingsForBackend(changedSettings) {
|
|
6
|
+
const wrappedSettings = {};
|
|
7
|
+
function flattenAndWrap(obj, prefix = '') {
|
|
8
|
+
Object.keys(obj).forEach(key => {
|
|
9
|
+
const value = obj[key];
|
|
10
|
+
const fullKey = prefix ? `${prefix}.${key}` : key;
|
|
11
|
+
if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
|
|
12
|
+
// Recursively flatten nested objects
|
|
13
|
+
flattenAndWrap(value, fullKey);
|
|
14
|
+
} else {
|
|
15
|
+
// For leaf values, insert .uilayout after the bracket prefix
|
|
16
|
+
const bracketPrefix = prefix.split('.')[0]; // Extract bracket part like "[/route][desktop]"
|
|
17
|
+
const settingPath = fullKey.replace(`${bracketPrefix}.`, ''); // Get the setting path after bracket
|
|
18
|
+
wrappedSettings[`${bracketPrefix}.uilayout.${settingPath}`] = value;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
Object.keys(changedSettings || {}).forEach(routeDeviceKey => {
|
|
23
|
+
const settingsObj = changedSettings[routeDeviceKey];
|
|
24
|
+
// Skip if not an object or if it's a route path
|
|
25
|
+
if (typeof settingsObj !== 'object' || settingsObj === null || routeDeviceKey.startsWith('/')) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
// Flatten the nested settings object with the route-device prefix
|
|
29
|
+
flattenAndWrap(settingsObj, routeDeviceKey);
|
|
30
|
+
});
|
|
31
|
+
return wrappedSettings;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Extract and parse settings from browser cookies
|
|
35
|
+
* Returns null if cookie not found or parsing fails
|
|
36
|
+
*/
|
|
37
|
+
function getCookieSettings() {
|
|
38
|
+
if (!isBrowser()) return null;
|
|
39
|
+
try {
|
|
40
|
+
const settingsCookie = document.cookie.split(';').find(cookie => cookie.startsWith(' settings='));
|
|
41
|
+
if (!settingsCookie) {
|
|
42
|
+
console.log('settings Cookie not found');
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const settingsValue = settingsCookie.split('=')[1];
|
|
46
|
+
const decodedComponent = decodeURIComponent(settingsValue);
|
|
47
|
+
const parsedSettings = JSON.parse(atob(decodedComponent));
|
|
48
|
+
console.log('Settings in cookies:', parsedSettings);
|
|
49
|
+
return parsedSettings;
|
|
50
|
+
} catch (err) {
|
|
51
|
+
console.error('Failed to get cookie settings:', err);
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Clear settings cookies by sending DELETE request to server
|
|
57
|
+
*/
|
|
58
|
+
async function clearSettingsCookies() {
|
|
59
|
+
if (!isBrowser()) return false;
|
|
60
|
+
try {
|
|
61
|
+
const response = await fetch('/resources/settings', {
|
|
62
|
+
method: 'DELETE',
|
|
63
|
+
headers: {
|
|
64
|
+
'Content-Type': 'application/json'
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const result = await response.json();
|
|
68
|
+
return true;
|
|
69
|
+
} catch (err) {
|
|
70
|
+
console.error('⚠️ Failed to clear cookies:', err);
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}export{clearSettingsCookies,getCookieSettings,transformSettingsForBackend};//# sourceMappingURL=transformers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformers.js","sources":["../../../../src/components/SettingDrawer/utils/transformers.ts"],"sourcesContent":[null],"names":[],"mappings":"yDAEA;;;AAGG;AACG,SAAU,2BAA2B,CAAC,eAAoC,EAAA;QAC5E,eAAM,GAAe,EAAwB;AAE7C,EAAA,SAAA,cAAS,CAAA,GAAe,EAAwB,WAAmB,EAAE;UACjE,CAAA,IAAO,CAAA,GAAI,CAAC,CAAA,OAAK,CAAA,GAAO,IAAE;AACtB,MAAA,MAAA,KAAA,MAAW,CAAA,GAAG,CAAA;AACd,MAAA,MAAA,OAAM,GAAA,MAAU,GAAA,CAAA,EAAM,MAAM,CAAA,CAAA,EAAA,GAAM,CAAA,CAAA,MAAS;AAE3C,MAAA,IAAA,iBAAW,QAAU,IAAA,KAAQ,SAAS,IAAK,CAAA,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AAG,CAAA,KAAA,CAAA,IAAA,CAAA,gBAA6B,CAAA,CAAA;AACnD,IAAA,OAAA,CAAA,0BAAyB,EAAA,cAAmB,CAAA;WAC5C,cAAM;AAEN,EAAA,CAAA,CAAA,OAAA,GAAA,EAAQ;AACR,IAAA,OAAA,CAAA,sCAAsB,EAAA,GAAA,CAAA;IAC1B,OAAC,IAAA;;AACG;AACA;;AAER;AAEA,eAAA,oBAAA,GAAA;;AAEG,EAAA,IAAA;AACH,IAAA,MAAO,QAAK,GAAA,MAAU,KAAA,CAAA,qBAAoB,EAAA;MACtC,gBAAgB;AAAE,MAAA,OAAA,EAAO;AAEzB,QAAI,cAAC,EAAA;AACD;AACI,KAAA,CAAA;AACA,IAAA,MAAA,MAAA,GAAO,MAAE,QAAA,CAAA,IAAA,EAAA;AACL,IAAA,OAAA,IAAA;AACH,EAAA,CAAA,CAAA,OAAA,GAAA,EAAA;AACJ,IAAA,OAAE,CAAA,KAAA,CAAA,6BAAA,EAAA,GAAA,CAAA;AAEH,IAAA,OAAA;AACA,EAAA;"}
|
|
@@ -9,21 +9,29 @@ export type ICheckboxThemeProps = {
|
|
|
9
9
|
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
10
10
|
settings?: any;
|
|
11
11
|
location?: any;
|
|
12
|
+
routePattern?: string;
|
|
13
|
+
applyToAllRoutes?: boolean;
|
|
12
14
|
};
|
|
13
15
|
export type ILayoutSettingsProps = {
|
|
14
16
|
settings?: Partial<ProSettings>;
|
|
15
17
|
changeSetting?: (key: string, value: string | boolean) => void;
|
|
16
18
|
location?: any;
|
|
19
|
+
routePattern?: string;
|
|
20
|
+
applyToAllRoutes?: boolean;
|
|
17
21
|
};
|
|
18
22
|
export type NavMenuSelectorProps = {
|
|
19
23
|
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
20
24
|
settings?: any;
|
|
21
25
|
location?: any;
|
|
26
|
+
routePattern?: string;
|
|
27
|
+
applyToAllRoutes?: boolean;
|
|
22
28
|
};
|
|
23
29
|
export type IRegionalSettingsProps = {
|
|
24
30
|
settings?: Partial<ProSettings | any>;
|
|
25
31
|
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
26
32
|
location?: any;
|
|
33
|
+
routePattern?: string;
|
|
34
|
+
applyToAllRoutes?: boolean;
|
|
27
35
|
};
|
|
28
36
|
export type MergerSettingsType<T> = Partial<T> & {
|
|
29
37
|
primaryColor?: string;
|
|
@@ -48,6 +56,7 @@ export interface SettingDrawerProps {
|
|
|
48
56
|
navTheme?: string;
|
|
49
57
|
primaryColor?: string;
|
|
50
58
|
pathname?: string;
|
|
59
|
+
routePattern?: string;
|
|
51
60
|
onCollapseChange?: (collapse: boolean) => void;
|
|
52
61
|
onSettingChange?: (settings: MergerSettingsType<ProSettings>) => void;
|
|
53
62
|
actor?: any;
|
|
@@ -62,6 +71,8 @@ export interface SettingDrawerProps {
|
|
|
62
71
|
onChangeAllPages?: () => void;
|
|
63
72
|
isOpen?: boolean;
|
|
64
73
|
setOpen?: (open: boolean) => void;
|
|
74
|
+
fullMenuData?: any;
|
|
75
|
+
location?: any;
|
|
65
76
|
}
|
|
66
77
|
export type IThemeColorProps = {
|
|
67
78
|
color?: Array<{
|
|
@@ -71,6 +82,9 @@ export type IThemeColorProps = {
|
|
|
71
82
|
}>;
|
|
72
83
|
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
73
84
|
settings?: any;
|
|
85
|
+
location?: any;
|
|
86
|
+
routePattern?: string;
|
|
87
|
+
applyToAllRoutes?: boolean;
|
|
74
88
|
};
|
|
75
89
|
export interface ThemeSelectorProps {
|
|
76
90
|
value: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,WAAW,WAAW;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,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K,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACN"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { IAppLoadContext } from '@common-stack/client-core';
|
|
2
|
+
import { IResourceParams } from '@common-stack/core';
|
|
3
|
+
export declare const action: ({ request, context, params, }: {
|
|
2
4
|
request: Request;
|
|
3
|
-
|
|
5
|
+
context?: IAppLoadContext;
|
|
6
|
+
params?: IResourceParams;
|
|
7
|
+
}) => Promise<import("@remix-run/node").TypedResponse<any>>;
|
|
8
|
+
export declare const loader: ({ request, context, params, }: {
|
|
4
9
|
request: Request;
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
context?: IAppLoadContext;
|
|
11
|
+
params?: IResourceParams;
|
|
12
|
+
}) => Promise<import("@remix-run/node").TypedResponse<{
|
|
13
|
+
settings: any;
|
|
14
|
+
}> | import("@remix-run/node").TypedResponse<{
|
|
15
|
+
error: string;
|
|
7
16
|
}>>;
|
|
8
17
|
//# sourceMappingURL=UpdateSettingsResource.server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSettingsResource.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettingsResource/UpdateSettingsResource.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateSettingsResource.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettingsResource/UpdateSettingsResource.server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAOrD,eAAO,MAAM,MAAM,GAAU,+BAI1B;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,eAAe,CAAC;CAC5B,0DAyCA,CAAC;AAEF,eAAO,MAAM,MAAM,GAAU,+BAI1B;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,eAAe,CAAC;CAC5B;;;;GAmBA,CAAC"}
|
|
@@ -1,4 +1,97 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { json } from '@remix-run/node';
|
|
2
|
+
import { settingsCookie, settingsLoaderUtil } from '@admin-layout/client/lib/components/UpdateSettings/UpdateSettings.server';
|
|
3
|
+
const action = async ({
|
|
4
|
+
request,
|
|
5
|
+
context,
|
|
6
|
+
params
|
|
7
|
+
}) => {
|
|
8
|
+
try {
|
|
9
|
+
// Handle DELETE request - Clear settings cookies
|
|
10
|
+
// Note: Database deletion is handled by resetApplicationSettings mutation on the client
|
|
11
|
+
if (request.method === 'DELETE') {
|
|
12
|
+
try {
|
|
13
|
+
// Clear the settings cookie by setting it to empty with maxAge 0
|
|
14
|
+
const cookie = await settingsCookie.serialize({}, {
|
|
15
|
+
maxAge: 0
|
|
16
|
+
});
|
|
17
|
+
return json({
|
|
18
|
+
success: true,
|
|
19
|
+
message: 'Settings cookies cleared successfully'
|
|
20
|
+
}, {
|
|
21
|
+
headers: {
|
|
22
|
+
'Set-Cookie': cookie
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
} catch (error) {
|
|
26
|
+
console.error('❌ Error clearing cookies:', error);
|
|
27
|
+
return json({
|
|
28
|
+
success: false,
|
|
29
|
+
error: 'Failed to clear cookies'
|
|
30
|
+
}, {
|
|
31
|
+
status: 500
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
// Handle POST request - Update settings using the utility
|
|
36
|
+
const {
|
|
37
|
+
settings,
|
|
38
|
+
setCookie
|
|
39
|
+
} = await settingsLoaderUtil({
|
|
40
|
+
request,
|
|
41
|
+
context,
|
|
42
|
+
params
|
|
43
|
+
});
|
|
44
|
+
// Return the full settings as JSON, and set the new cookie in the response headers
|
|
45
|
+
return json(settings, {
|
|
46
|
+
headers: {
|
|
47
|
+
'Set-Cookie': setCookie
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
} catch (error) {
|
|
51
|
+
// If anything fails, log the error and return a 500 error response
|
|
52
|
+
console.error('Error in action:', error);
|
|
53
|
+
return json({
|
|
54
|
+
error: 'Failed to update settings'
|
|
55
|
+
}, {
|
|
56
|
+
status: 500
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const loader = async ({
|
|
61
|
+
request,
|
|
62
|
+
context,
|
|
63
|
+
params
|
|
64
|
+
}) => {
|
|
65
|
+
try {
|
|
66
|
+
const {
|
|
67
|
+
settings,
|
|
68
|
+
setCookie
|
|
69
|
+
} = await settingsLoaderUtil({
|
|
70
|
+
request,
|
|
71
|
+
context,
|
|
72
|
+
params
|
|
73
|
+
});
|
|
74
|
+
// Always include headers, but only set cookie if provided
|
|
75
|
+
const headers = {};
|
|
76
|
+
if (setCookie) {
|
|
77
|
+
headers['Set-Cookie'] = setCookie;
|
|
78
|
+
}
|
|
79
|
+
// returnInfo: {"returnType":"json","keys":["settings"],"hasOptions":true}
|
|
80
|
+
return {
|
|
81
|
+
data: [settings],
|
|
82
|
+
options: {
|
|
83
|
+
headers
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
} catch (error) {
|
|
87
|
+
console.error('Error in settings loader:', error);
|
|
88
|
+
// returnInfo: {"returnType":"json","keys":["settings","error"],"hasOptions":true}
|
|
89
|
+
return {
|
|
90
|
+
data: ['Failed to load settings'],
|
|
91
|
+
options: {
|
|
92
|
+
status: 500
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
export { action, loader }; //# sourceMappingURL=UpdateSettingsResource.server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSettingsResource.server.js","sources":["../../../src/components/UpdateSettingsResource/UpdateSettingsResource.server.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateSettingsResource.server.js","sources":["../../../src/components/UpdateSettingsResource/UpdateSettingsResource.server.ts"],"sourcesContent":[null],"names":[],"mappings":"4JAQO,MAAM,MAAM,GAAG,OAAO;AASzB,EAAA,OAAK;SACD;;AAEA,CAAA,KAAA;AACI,EAAA,IAAA;;AAEI;gBAEA,MAAA,KAAW,QACL,EAAO;AAEL,MAAA,IAAA;AACI;AACH,QAAA,MAAA,MAAA,GAAA,MAAA,cAAA,CAAA,SAAA,CAAA,EAAA,EAAA;AACJ,UAAA,MAAA,EACJ;;eACH,IAAO,CAAA;AACL,UAAA,OAAA,EAAA,IAAO;AACP,UAAA,OAAA,EAAA;;UAEP,OAAA,EAAA;YAED,YAAA,EAAA;;;eAGI,KAAO,EAAA;eACP,CAAA,KAAM,CAAA,2BAAA,EAAA,KAAA,CAAA;AACT,QAAA,OAAE,IAAA,CAAA;UAEH,OAAA,EAAA,KAAA;UACA,KAAO,EAAA;AACH,SAAA,EAAA;AACI,UAAA,MAAA,EAAA;AACH,SAAA,CAAA;AACJ,MAAA;IACL;;UACI;AACA,MAAA,QAAA;AACA,MAAA;KACH,GAAA,MAAA,kBAAA,CAAA;AACL,MAAE,OAAA;AAEF,MAAM,OAAO;AAST,MAAA;;;eAGQ,CAAA,QAAO,EAAA;aACP,EAAA;AACH,QAAA,YAAE,EAAA;;;WAIH,KAAI,EAAA;AACA;WACH,CAAA,KAAA,CAAA,kBAAA,EAAA,KAAA,CAAA;WAED,IAAO,CAAA;MACV,KAAA,EAAA;KAAC,EAAA;AACE,MAAA,MAAA,EAAA;AACA,KAAA,CAAA;;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{MainHeader}from'./Layout/GlobalHeader/MainHeader.js';export{RightMenu}from'./Layout/GlobalHeader/RightMenu.js';//# sourceMappingURL=index.js.map
|
|
@@ -34,7 +34,11 @@ export interface SidebarMenuProps {
|
|
|
34
34
|
settings: {
|
|
35
35
|
primaryColor: string;
|
|
36
36
|
};
|
|
37
|
-
collapsed
|
|
37
|
+
collapsed?: boolean;
|
|
38
|
+
siderPinned?: boolean;
|
|
39
|
+
setSiderPinned?: (siderPinned: boolean) => void;
|
|
40
|
+
actor?: any;
|
|
41
|
+
deviceSettings?: any;
|
|
38
42
|
}
|
|
39
43
|
export interface SidebarProps {
|
|
40
44
|
isSideMenuOpen: boolean;
|
|
@@ -47,10 +51,21 @@ export interface SidebarProps {
|
|
|
47
51
|
[key: string]: string;
|
|
48
52
|
};
|
|
49
53
|
settings?: any;
|
|
54
|
+
sideBarMarginTop?: string;
|
|
55
|
+
showHeader?: boolean;
|
|
50
56
|
upperMenuDividerName?: string;
|
|
51
57
|
middleMenuDividerName?: string;
|
|
52
58
|
lowerMenuDividerName?: string;
|
|
53
59
|
location?: any;
|
|
60
|
+
siderPinned?: boolean;
|
|
61
|
+
setSiderPinned?: (siderPinned: boolean) => void;
|
|
62
|
+
layoutSettings?: any;
|
|
63
|
+
deviceSettings?: any;
|
|
64
|
+
menuHeaderRender?: any;
|
|
65
|
+
isSideMenuLayout?: boolean;
|
|
66
|
+
actor?: any;
|
|
67
|
+
authorities?: Record<string, PermissionType>;
|
|
68
|
+
picture?: string;
|
|
54
69
|
}
|
|
55
70
|
export interface BottomMenuDropDownProps {
|
|
56
71
|
menus: any;
|
|
@@ -59,6 +74,7 @@ export interface BottomMenuDropDownProps {
|
|
|
59
74
|
orgName?: string;
|
|
60
75
|
[key: string]: string;
|
|
61
76
|
};
|
|
77
|
+
layoutSettings?: any;
|
|
62
78
|
}
|
|
63
79
|
export interface GlobalHeaderRightProps {
|
|
64
80
|
theme?: string;
|
|
@@ -105,6 +121,8 @@ export type PrivateHeaderProps = {
|
|
|
105
121
|
export interface MainHeaderProps extends Partial<GlobalHeaderProps> {
|
|
106
122
|
rightContentRender?: WithFalse<(props: any) => React.ReactNode>;
|
|
107
123
|
showSettings?: boolean;
|
|
124
|
+
showMenu?: boolean;
|
|
125
|
+
toggleSideMenu?: () => void;
|
|
108
126
|
}
|
|
109
127
|
export type IRightMenuProps = {
|
|
110
128
|
match?: any;
|
|
@@ -118,6 +136,7 @@ export type IRightMenuProps = {
|
|
|
118
136
|
settings?: Partial<ProSettings>;
|
|
119
137
|
authorities: Record<string, PermissionType>;
|
|
120
138
|
picture?: string;
|
|
139
|
+
isMobile?: boolean;
|
|
121
140
|
};
|
|
122
141
|
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
123
142
|
/**
|
|
@@ -155,9 +174,4 @@ export interface DynamicTypeIconsProps {
|
|
|
155
174
|
h?: any;
|
|
156
175
|
iconStyle?: any;
|
|
157
176
|
}
|
|
158
|
-
export declare enum TravelType {
|
|
159
|
-
HOTELS = "HOTELS",
|
|
160
|
-
FLIGHTS = "FLIGHTS",
|
|
161
|
-
CARS = "CARS"
|
|
162
|
-
}
|
|
163
177
|
//# sourceMappingURL=typings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../src/components/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,K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AC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,GAAG,GAAG,KAAK,kBAAkB,CAAC;IAC/D,WAAW,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;CACvC;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,SAAS,CAAC,EAAE,GAAG,CAAC;CACnB"}
|
package/lib/compute.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/compute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/compute.ts"],"names":[],"mappings":"AA8BA,QAAA,MAAM,aAAa,0CAA0C,CAAC;AAG9D,QAAA,MAAM,cAAc,0CAA2C,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
package/lib/compute.js
CHANGED
|
@@ -25,11 +25,19 @@ const tailwindDesignProPage = [{
|
|
|
25
25
|
hasServerCode: true,
|
|
26
26
|
name: 'UpdateSettingsResource',
|
|
27
27
|
isResourceRoute: true,
|
|
28
|
-
auth: false
|
|
28
|
+
auth: false
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
,
|
|
31
|
+
|
|
29
32
|
path: '/resources/settings',
|
|
30
33
|
componentPath: "@admin-layout/tailwind-design-pro/lib/components/UpdateSettingsResource/UpdateSettingsResource.js",
|
|
31
34
|
hasLoader: true,
|
|
32
|
-
hasAction: true
|
|
35
|
+
hasAction: true,
|
|
36
|
+
loaderReturnInfo: {
|
|
37
|
+
returnType: "json",
|
|
38
|
+
hasOptions: true,
|
|
39
|
+
keys: ["settings", "error"]
|
|
40
|
+
}
|
|
33
41
|
}];
|
|
34
42
|
// get menus
|
|
35
43
|
getFilteredMenus(tailwindDesignProPage);
|
package/lib/compute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.js","sources":["../src/compute.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compute.js","sources":["../src/compute.ts"],"sourcesContent":[null],"names":[],"mappings":"oJAIA,MAAM,GAAG,GAAG,aAAa;AAEzB,MAAM,qBAAqB,GAAmB,CAAA;AAC1C,EAAA,GAAA,EAAA,GAAA;AACI,EAAA,IAAA,EAAA,aAAQ;AACR,EAAA,IAAA,EAAA,MAAM,CAAA,WAAA;QACN,UAAM;AACN,EAAA,gBAAM,EAAA,CAAA,GAAU,CAAA;SAChB,KAAA;AACA,EAAA,SAAA,EAAK,MAAE,OAAK,0CAAA;AAEZ,CAAA,EAAA;AACH,EAAA,GAAA,EAAA,0BAAA;AACD,EAAA,aAAA,EAAA,IAAA;AACI,EAAA,IAAA,EAAA,wBAAK;AACL,EAAA,eAAA,EAAA,IAAe;AACf,EAAA,IAAA,EAAA;AACA;AACA,EAAA,SAAA,QAAW,OAAA,+DAAA,CAAA;QACX;AACA,CAAA,CAAA;AACA;AACH,gBAAA,CAAA,qBAAA;;AAGL,MAAA,cAAY,GAAA,iBAAA,CAAA,qBAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Analytics Configuration
|
|
3
|
+
*/
|
|
4
|
+
export declare const ANALYTICS_CONFIG: {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
debug: boolean;
|
|
7
|
+
GA4_MEASUREMENT_ID: string;
|
|
8
|
+
trackEvents: {
|
|
9
|
+
pageViews: boolean;
|
|
10
|
+
clicks: boolean;
|
|
11
|
+
redirections: boolean;
|
|
12
|
+
errors: boolean;
|
|
13
|
+
};
|
|
14
|
+
trackUserProperties: {
|
|
15
|
+
userId: boolean;
|
|
16
|
+
deviceInfo: boolean;
|
|
17
|
+
location: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const EVENT_CATEGORIES: {
|
|
21
|
+
REDIRECTION: string;
|
|
22
|
+
USER_INTERACTION: string;
|
|
23
|
+
SYSTEM: string;
|
|
24
|
+
ERROR: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const EVENT_ACTIONS: {
|
|
27
|
+
AUTO_REDIRECT: string;
|
|
28
|
+
MANUAL_CLICK: string;
|
|
29
|
+
LINK_CLICK: string;
|
|
30
|
+
BUTTON_CLICK: string;
|
|
31
|
+
FORM_SUBMIT: string;
|
|
32
|
+
SEARCH: string;
|
|
33
|
+
VIEW_ITEM: string;
|
|
34
|
+
ADD_TO_CART: string;
|
|
35
|
+
REMOVE_FROM_CART: string;
|
|
36
|
+
BEGIN_CHECKOUT: string;
|
|
37
|
+
ADD_PAYMENT_INFO: string;
|
|
38
|
+
PURCHASE: string;
|
|
39
|
+
LOAD: string;
|
|
40
|
+
INIT: string;
|
|
41
|
+
API_ERROR: string;
|
|
42
|
+
CLIENT_ERROR: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const GA4_EVENTS: {
|
|
45
|
+
PAGE_VIEW: string;
|
|
46
|
+
SEARCH: string;
|
|
47
|
+
VIEW_ITEM: string;
|
|
48
|
+
VIEW_ITEM_LIST: string;
|
|
49
|
+
SELECT_ITEM: string;
|
|
50
|
+
ADD_TO_CART: string;
|
|
51
|
+
REMOVE_FROM_CART: string;
|
|
52
|
+
BEGIN_CHECKOUT: string;
|
|
53
|
+
ADD_PAYMENT_INFO: string;
|
|
54
|
+
PURCHASE: string;
|
|
55
|
+
LOGIN: string;
|
|
56
|
+
SIGN_UP: string;
|
|
57
|
+
USER_ENGAGEMENT: string;
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=analytics-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics-config.d.ts","sourceRoot":"","sources":["../../src/config/analytics-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;CAwB5B,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAwBzB,CAAC;AAGF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CActB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/config/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../src/config/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,gBAAgB,GAAG;AAC5B,EAAA,GAAA,EAAG;AACH,EAAA,GAAA,EAAG,IAAE;AACL,EAAA,IAAA,EAAI,EAAE;AACN,EAAA,OAAA,EAAO;;AAGJ,MAAM,eAAe,GAAG;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -6,6 +6,7 @@ export declare const config: Readonly<{
|
|
|
6
6
|
BOOKING_CAR_RENTAL_API_KEY: string;
|
|
7
7
|
AIRBNB_API_KEY: string;
|
|
8
8
|
BOOKING_COM_API_KEY: string;
|
|
9
|
+
APP_DOMAIN: string;
|
|
9
10
|
SEARCH_LAYOUT: string;
|
|
10
11
|
GOOGLE_MAPS_API_KEY: string;
|
|
11
12
|
PROPERTY_SEARCH_DEFAULT_PAGE_SIZE: number;
|
|
@@ -15,5 +16,10 @@ export declare const config: Readonly<{
|
|
|
15
16
|
BOOKING_COM_DEFAULT_PAGE_SIZE: number;
|
|
16
17
|
PRICELINE_API_KEY: string;
|
|
17
18
|
DEFAULT_COORDINATES: string;
|
|
19
|
+
ENABLE_SETTING_DRAWER: boolean;
|
|
20
|
+
GOOGLE_ANALYTICS_ID: string;
|
|
21
|
+
RAPID_API_KEY: string;
|
|
22
|
+
APPLICATION_ID: string;
|
|
23
|
+
USE_FETCH_SETTINGS: string;
|
|
18
24
|
} & import("envalid").CleanedEnvAccessors>;
|
|
19
25
|
//# sourceMappingURL=env-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;0CA4CjB,CAAC"}
|
package/lib/config/env-config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {cleanEnv,str,num
|
|
1
|
+
import {cleanEnv,str,bool,num}from'envalid';import {getEnvironment}from'@common-stack/core';import {SCROLL_THRESHOLD,LAYOUT_SETTINGS}from'./constants.js';const env = getEnvironment();
|
|
2
2
|
const defaultScrollThreshold = JSON.stringify({
|
|
3
3
|
MIN: SCROLL_THRESHOLD.MIN,
|
|
4
4
|
MAX: SCROLL_THRESHOLD.MAX,
|
|
@@ -34,6 +34,9 @@ const config = cleanEnv(env, {
|
|
|
34
34
|
default: '',
|
|
35
35
|
desc: 'Booking com API key'
|
|
36
36
|
}),
|
|
37
|
+
APP_DOMAIN: str({
|
|
38
|
+
default: 'cdebase.dev'
|
|
39
|
+
}),
|
|
37
40
|
SEARCH_LAYOUT: str({
|
|
38
41
|
default: '/search',
|
|
39
42
|
desc: 'Layout Search route'
|
|
@@ -68,5 +71,22 @@ const config = cleanEnv(env, {
|
|
|
68
71
|
DEFAULT_COORDINATES: str({
|
|
69
72
|
default: '{"lat":40.7127281,"lng":-74.0060152}',
|
|
70
73
|
desc: 'Default coordinates for property search'
|
|
74
|
+
}),
|
|
75
|
+
ENABLE_SETTING_DRAWER: bool({
|
|
76
|
+
default: false,
|
|
77
|
+
desc: 'Enable setting drawer'
|
|
78
|
+
}),
|
|
79
|
+
GOOGLE_ANALYTICS_ID: str({
|
|
80
|
+
default: 'G-L5J3SYZ69C'
|
|
81
|
+
}),
|
|
82
|
+
RAPID_API_KEY: str({
|
|
83
|
+
default: '7c2d15ba29msh468be2f129d847cp183e95jsnc7c279116f6e'
|
|
84
|
+
}),
|
|
85
|
+
APPLICATION_ID: str({
|
|
86
|
+
default: '660e8400-e29b-41d4-a716-446655440001',
|
|
87
|
+
desc: 'Matches the Application ID exist already'
|
|
88
|
+
}),
|
|
89
|
+
USE_FETCH_SETTINGS: str({
|
|
90
|
+
default: ''
|
|
71
91
|
})
|
|
72
92
|
});export{config};//# sourceMappingURL=env-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"0JAIA,MAAM,GAAG,GAAG,cAAc,EAAE;AAE5B,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"0JAIA,MAAM,GAAG,GAAG,cAAc,EAAE;AAE5B,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,CAAC;KAC1C,EAAG,gBAAE,CAAA,GAAiB;KACtB,EAAG,gBAAE,CAAA,GAAiB;MACtB,EAAI,gBAAE,CAAA,IAAiB;SACvB,EAAO,gBAAE,CAAA;AACZ,CAAA,CAAC;AAEK,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;AAChC,EAAA,WAAA,EAAW,GAAE,CAAA;AACb,IAAA,OAAA,EAAA,aAAA;AACA,IAAA,IAAA,EAAA;AACA,GAAA,CAAA;AACA,EAAA,gCAA4B,EAAI,IAAE,CAAA;AAClC,IAAA,OAAA,EAAA,KAAc;AACd,IAAA,IAAA,EAAA;IACA;AACA,EAAA,gBAAa,EAAE,GAAI,CAAA;IACnB,OAAA,EAAA;IACA,IAAA,EAAA;AACI,GAAA,CAAA;AACA,EAAA,eAAM,EAAA,GAAA,CAAA;WACR,EAAA,IAAA,CAAA,SAAA,CAAA,eAAA,CAAA;IACF,IAAA,EAAA;AACI,GAAA,CAAA;AACA,EAAA,0BAAM,EAAA,GAAA,CAAA;WACR,EAAA,EAAA;IACF,IAAA,EAAA;;AAEI,EAAA,cAAM,EAAA,GAAA,CAAA;WACR,EAAA,EAAA;IACF,IAAA,EAAA;AACI,GAAA,CAAA;AACA,EAAA,mBAAM,EAAA,GAAA,CAAA;WACR,EAAA,EAAA;IACF,IAAA,EAAA;AACI,GAAA,CAAA;AACA,EAAA,UAAI,EAAE,GAAA,CAAA;WACR,EAAA;IACF;eACA,EAAA,GAAA,CAAA;AACI,IAAA,OAAA,EAAA,SAAS;AACT,IAAA,IAAA,EAAA;;AAEJ,EAAA,mBAAA,EAAA,GAAqB,CAAE;IACvB,OAAA,EAAA;IACA;mCACoB,EAAA,GAAA,CAAA;AAChB,IAAA,OAAA,EAAA,EAAO;AACP,IAAA,IAAA,EAAA;;sCAE6B,GAAI;AACxC,IAAE,OAAA,EAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
|
@@ -10,6 +10,6 @@ interface DynamicTypeIconsProps {
|
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}
|
|
12
12
|
export declare const DynamicIcon: React.FC<DynamicTypeIconsProps>;
|
|
13
|
-
export declare const renderDynamicIcon: (icon: any) =>
|
|
13
|
+
export declare const renderDynamicIcon: (icon: any) => React.JSX.Element;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=DynamicIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../src/helpers/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,qBAAqB;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyCvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAI,
|
|
1
|
+
{"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../src/helpers/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,qBAAqB;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyCvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAI,sBAQrC,CAAC"}
|