@okta/odyssey-react-mui 1.44.0 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Autocomplete.cjs +3 -33
- package/dist/cjs/Autocomplete.cjs.map +1 -1
- package/dist/cjs/Banner.cjs +2 -2
- package/dist/cjs/Banner.cjs.map +1 -1
- package/dist/cjs/Breadcrumbs.cjs +2 -2
- package/dist/cjs/Breadcrumbs.cjs.map +1 -1
- package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
- package/dist/cjs/Callout.cjs +3 -27
- package/dist/cjs/Callout.cjs.map +1 -1
- package/dist/cjs/Card.cjs +280 -63
- package/dist/cjs/Card.cjs.map +1 -1
- package/dist/cjs/Checkbox.cjs +14 -12
- package/dist/cjs/Checkbox.cjs.map +1 -1
- package/dist/cjs/DataTable/DataTable.cjs +2 -2
- package/dist/cjs/DataTable/DataTable.cjs.map +1 -1
- package/dist/cjs/DataTable/DataTableRowActions.cjs +6 -6
- package/dist/cjs/DataTable/DataTableRowActions.cjs.map +1 -1
- package/dist/cjs/DataTable/DataTableSettings.cjs +2 -2
- package/dist/cjs/DataTable/DataTableSettings.cjs.map +1 -1
- package/dist/cjs/DataTable/useRowReordering.cjs +2 -2
- package/dist/cjs/DataTable/useRowReordering.cjs.map +1 -1
- package/dist/cjs/DatePickers/DateField.cjs +2 -2
- package/dist/cjs/DatePickers/DateField.cjs.map +1 -1
- package/dist/cjs/DatePickers/DateFieldActionBar.cjs +2 -2
- package/dist/cjs/DatePickers/DateFieldActionBar.cjs.map +1 -1
- package/dist/cjs/DatePickers/DatePicker.cjs +2 -2
- package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
- package/dist/cjs/DatePickers/useDateFieldsTranslations.cjs +2 -2
- package/dist/cjs/DatePickers/useDateFieldsTranslations.cjs.map +1 -1
- package/dist/cjs/DatePickers/useOdysseyDateFields.cjs +2 -2
- package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
- package/dist/cjs/Dialog.cjs +34 -31
- package/dist/cjs/Dialog.cjs.map +1 -1
- package/dist/cjs/Drawer.cjs +8 -4
- package/dist/cjs/Drawer.cjs.map +1 -1
- package/dist/cjs/Field.cjs +2 -2
- package/dist/cjs/Field.cjs.map +1 -1
- package/dist/cjs/FieldError.cjs +2 -2
- package/dist/cjs/FieldError.cjs.map +1 -1
- package/dist/cjs/FieldLabel.cjs +2 -2
- package/dist/cjs/FieldLabel.cjs.map +1 -1
- package/dist/cjs/FileUploader/FileUploadPreview.cjs +2 -2
- package/dist/cjs/FileUploader/FileUploadPreview.cjs.map +1 -1
- package/dist/cjs/FileUploader/FileUploader.cjs +2 -2
- package/dist/cjs/FileUploader/FileUploader.cjs.map +1 -1
- package/dist/cjs/FullScreenOverlay.cjs +40 -0
- package/dist/cjs/FullScreenOverlay.cjs.map +1 -0
- package/dist/cjs/FullScreenOverlayContext.cjs +72 -0
- package/dist/cjs/FullScreenOverlayContext.cjs.map +1 -0
- package/dist/cjs/OdysseyCacheProvider.cjs +12 -17
- package/dist/cjs/OdysseyCacheProvider.cjs.map +1 -1
- package/dist/cjs/OdysseyProvider.cjs +18 -10
- package/dist/cjs/OdysseyProvider.cjs.map +1 -1
- package/dist/cjs/OdysseyThemeProvider.cjs +27 -16
- package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
- package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +44 -0
- package/dist/cjs/OdysseyThemeProviderPropsContext.cjs.map +1 -0
- package/dist/cjs/Pagination/Pagination.cjs +2 -3
- package/dist/cjs/Pagination/Pagination.cjs.map +1 -1
- package/dist/cjs/Pagination/usePagination.cjs +2 -2
- package/dist/cjs/Pagination/usePagination.cjs.map +1 -1
- package/dist/cjs/PasswordField.cjs +2 -2
- package/dist/cjs/PasswordField.cjs.map +1 -1
- package/dist/cjs/Radio.cjs +22 -20
- package/dist/cjs/Radio.cjs.map +1 -1
- package/dist/cjs/SearchField.cjs +2 -2
- package/dist/cjs/SearchField.cjs.map +1 -1
- package/dist/cjs/Select.cjs +1 -37
- package/dist/cjs/Select.cjs.map +1 -1
- package/dist/cjs/Surface.cjs +3 -3
- package/dist/cjs/Surface.cjs.map +1 -1
- package/dist/cjs/Switch.cjs +2 -2
- package/dist/cjs/Switch.cjs.map +1 -1
- package/dist/cjs/Tabs.cjs +1 -21
- package/dist/cjs/Tabs.cjs.map +1 -1
- package/dist/cjs/Tag.cjs +2 -2
- package/dist/cjs/Tag.cjs.map +1 -1
- package/dist/cjs/TextField.cjs +1 -26
- package/dist/cjs/TextField.cjs.map +1 -1
- package/dist/cjs/Toast.cjs +2 -2
- package/dist/cjs/Toast.cjs.map +1 -1
- package/dist/cjs/__internal.cjs +149 -0
- package/dist/cjs/__internal.cjs.map +1 -0
- package/dist/cjs/i18n.generated/i18n.cjs +35 -0
- package/dist/cjs/i18n.generated/i18n.cjs.map +1 -0
- package/dist/cjs/i18n.generated/i18n.resources.cjs +81 -0
- package/dist/cjs/i18n.generated/i18n.resources.cjs.map +1 -0
- package/dist/{esm/shadow-dom/index.js → cjs/i18n.generated/i18n.types.cjs} +9 -4
- package/dist/cjs/i18n.generated/i18n.types.cjs.map +1 -0
- package/dist/cjs/index.cjs +49 -30
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/labs/DataFilters.cjs +4 -4
- package/dist/cjs/labs/DataFilters.cjs.map +1 -1
- package/dist/cjs/labs/DataTable.cjs +2 -2
- package/dist/cjs/labs/DataTable.cjs.map +1 -1
- package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +2 -2
- package/dist/cjs/labs/DataView/BulkActionsMenu.cjs.map +1 -1
- package/dist/cjs/labs/DataView/CardLayoutContent.cjs +60 -44
- package/dist/cjs/labs/DataView/CardLayoutContent.cjs.map +1 -1
- package/dist/cjs/labs/DataView/DataCard.cjs +52 -181
- package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
- package/dist/cjs/labs/DataView/DataView.cjs +2 -2
- package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
- package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +2 -2
- package/dist/cjs/labs/DataView/LayoutSwitcher.cjs.map +1 -1
- package/dist/cjs/labs/DataView/RowActions.cjs +2 -2
- package/dist/cjs/labs/DataView/RowActions.cjs.map +1 -1
- package/dist/cjs/labs/DataView/TableLayoutContent.cjs +2 -2
- package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
- package/dist/cjs/labs/DataView/TableSettings.cjs +2 -2
- package/dist/cjs/labs/DataView/TableSettings.cjs.map +1 -1
- package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
- package/dist/cjs/labs/DataView/fetchData.cjs +2 -2
- package/dist/cjs/labs/DataView/fetchData.cjs.map +1 -1
- package/dist/cjs/labs/DatePickers/DateTimeField.cjs +2 -2
- package/dist/cjs/labs/DatePickers/DateTimeField.cjs.map +1 -1
- package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +2 -2
- package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
- package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs +3 -3
- package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs.map +1 -1
- package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +2 -2
- package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs.map +1 -1
- package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +4 -0
- package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs.map +1 -1
- package/dist/cjs/labs/OdysseyPickers/index.cjs.map +1 -1
- package/dist/cjs/labs/PageTemplate/Layout.cjs +2 -2
- package/dist/cjs/labs/PageTemplate/Layout.cjs.map +1 -1
- package/dist/cjs/labs/PageTemplate/PageTemplate.cjs.map +1 -1
- package/dist/cjs/labs/PaginatedTable.cjs +4 -4
- package/dist/cjs/labs/PaginatedTable.cjs.map +1 -1
- package/dist/cjs/labs/StaticTable.cjs +2 -2
- package/dist/cjs/labs/StaticTable.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +8 -2
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +7 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
- package/dist/cjs/test-selectors/AutocompleteTestSelector.cjs +49 -0
- package/dist/cjs/test-selectors/AutocompleteTestSelector.cjs.map +1 -0
- package/dist/cjs/test-selectors/CalloutTestSelector.cjs +43 -0
- package/dist/cjs/test-selectors/CalloutTestSelector.cjs.map +1 -0
- package/dist/cjs/test-selectors/SelectTestSelector.cjs +55 -0
- package/dist/cjs/test-selectors/SelectTestSelector.cjs.map +1 -0
- package/dist/cjs/{OdysseyTranslationProvider.types.cjs → test-selectors/TabsTestSelector.cjs} +23 -4
- package/dist/cjs/test-selectors/TabsTestSelector.cjs.map +1 -0
- package/dist/cjs/test-selectors/TextFieldTestSelector.cjs +44 -0
- package/dist/cjs/test-selectors/TextFieldTestSelector.cjs.map +1 -0
- package/dist/cjs/test-selectors/index.cjs +11 -0
- package/dist/cjs/test-selectors/index.cjs.map +1 -1
- package/dist/cjs/test-selectors/queryOdysseySelector.cjs +10 -10
- package/dist/cjs/test-selectors/queryOdysseySelector.cjs.map +1 -1
- package/dist/cjs/theme/components.cjs +5 -9
- package/dist/cjs/theme/components.cjs.map +1 -1
- package/dist/cjs/tools/addSpecificity.cjs.map +1 -0
- package/dist/cjs/tools/bufferLatest.cjs.map +1 -0
- package/dist/cjs/tools/createMessageBus.cjs.map +1 -0
- package/dist/cjs/tools/createStore.cjs.map +1 -0
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +2 -12
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +20 -15
- package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNav.cjs +137 -136
- package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +2 -2
- package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +7 -4
- package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemContentContext.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +3 -4
- package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +47 -0
- package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs.map +1 -0
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs +2 -2
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs +2 -2
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShell.cjs +4 -4
- package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShellProvider.cjs +1 -1
- package/dist/cjs/ui-shell/UiShellProvider.cjs.map +1 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs +2 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/renderUiShell.cjs +2 -2
- package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/uiShellContentTypes.cjs +2 -1
- package/dist/cjs/ui-shell/uiShellContentTypes.cjs.map +1 -1
- package/dist/cjs/{shadow-dom/shadow-dom.cjs → web-component/createShadowDomElements.cjs} +8 -3
- package/dist/cjs/web-component/createShadowDomElements.cjs.map +1 -0
- package/dist/cjs/web-component/index.cjs +33 -0
- package/dist/cjs/web-component/index.cjs.map +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
- package/dist/cjs/web-component/removeGlobalStylesFromShadowDom.cjs +35 -0
- package/dist/cjs/web-component/removeGlobalStylesFromShadowDom.cjs.map +1 -0
- package/dist/cjs/web-component/renderReactInWebComponent.cjs +5 -9
- package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
- package/dist/esm/Autocomplete.js +1 -31
- package/dist/esm/Autocomplete.js.map +1 -1
- package/dist/esm/Banner.js +1 -1
- package/dist/esm/Banner.js.map +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/Breadcrumbs.js.map +1 -1
- package/dist/esm/Buttons/BaseButton.js.map +1 -1
- package/dist/esm/Callout.js +1 -25
- package/dist/esm/Callout.js.map +1 -1
- package/dist/esm/Card.js +281 -63
- package/dist/esm/Card.js.map +1 -1
- package/dist/esm/Checkbox.js +13 -11
- package/dist/esm/Checkbox.js.map +1 -1
- package/dist/esm/DataTable/DataTable.js +1 -1
- package/dist/esm/DataTable/DataTable.js.map +1 -1
- package/dist/esm/DataTable/DataTableRowActions.js +1 -1
- package/dist/esm/DataTable/DataTableRowActions.js.map +1 -1
- package/dist/esm/DataTable/DataTableSettings.js +1 -1
- package/dist/esm/DataTable/DataTableSettings.js.map +1 -1
- package/dist/esm/DataTable/useRowReordering.js +1 -1
- package/dist/esm/DataTable/useRowReordering.js.map +1 -1
- package/dist/esm/DatePickers/DateField.js +1 -1
- package/dist/esm/DatePickers/DateField.js.map +1 -1
- package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
- package/dist/esm/DatePickers/DateFieldActionBar.js.map +1 -1
- package/dist/esm/DatePickers/DatePicker.js +1 -1
- package/dist/esm/DatePickers/DatePicker.js.map +1 -1
- package/dist/esm/DatePickers/useDateFieldsTranslations.js +1 -1
- package/dist/esm/DatePickers/useDateFieldsTranslations.js.map +1 -1
- package/dist/esm/DatePickers/useOdysseyDateFields.js +1 -1
- package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
- package/dist/esm/Dialog.js +33 -30
- package/dist/esm/Dialog.js.map +1 -1
- package/dist/esm/Drawer.js +7 -3
- package/dist/esm/Drawer.js.map +1 -1
- package/dist/esm/Field.js +1 -1
- package/dist/esm/Field.js.map +1 -1
- package/dist/esm/FieldError.js +1 -1
- package/dist/esm/FieldError.js.map +1 -1
- package/dist/esm/FieldLabel.js +1 -1
- package/dist/esm/FieldLabel.js.map +1 -1
- package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
- package/dist/esm/FileUploader/FileUploadPreview.js.map +1 -1
- package/dist/esm/FileUploader/FileUploader.js +1 -1
- package/dist/esm/FileUploader/FileUploader.js.map +1 -1
- package/dist/esm/FullScreenOverlay.js +35 -0
- package/dist/esm/FullScreenOverlay.js.map +1 -0
- package/dist/esm/FullScreenOverlayContext.js +66 -0
- package/dist/esm/FullScreenOverlayContext.js.map +1 -0
- package/dist/esm/OdysseyCacheProvider.js +12 -17
- package/dist/esm/OdysseyCacheProvider.js.map +1 -1
- package/dist/esm/OdysseyProvider.js +18 -10
- package/dist/esm/OdysseyProvider.js.map +1 -1
- package/dist/esm/OdysseyThemeProvider.js +27 -16
- package/dist/esm/OdysseyThemeProvider.js.map +1 -1
- package/dist/esm/OdysseyThemeProviderPropsContext.js +38 -0
- package/dist/esm/OdysseyThemeProviderPropsContext.js.map +1 -0
- package/dist/esm/Pagination/Pagination.js +1 -2
- package/dist/esm/Pagination/Pagination.js.map +1 -1
- package/dist/esm/Pagination/usePagination.js +1 -1
- package/dist/esm/Pagination/usePagination.js.map +1 -1
- package/dist/esm/PasswordField.js +1 -1
- package/dist/esm/PasswordField.js.map +1 -1
- package/dist/esm/Radio.js +22 -20
- package/dist/esm/Radio.js.map +1 -1
- package/dist/esm/SearchField.js +1 -1
- package/dist/esm/SearchField.js.map +1 -1
- package/dist/esm/Select.js +0 -36
- package/dist/esm/Select.js.map +1 -1
- package/dist/esm/Surface.js +3 -3
- package/dist/esm/Surface.js.map +1 -1
- package/dist/esm/Switch.js +1 -1
- package/dist/esm/Switch.js.map +1 -1
- package/dist/esm/Tabs.js +0 -20
- package/dist/esm/Tabs.js.map +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/Tag.js.map +1 -1
- package/dist/esm/TextField.js +0 -25
- package/dist/esm/TextField.js.map +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Toast.js.map +1 -1
- package/dist/esm/__internal.js +24 -0
- package/dist/esm/__internal.js.map +1 -0
- package/dist/esm/i18n.generated/i18n.js +25 -0
- package/dist/esm/i18n.generated/i18n.js.map +1 -0
- package/dist/esm/i18n.generated/i18n.resources.js +75 -0
- package/dist/esm/i18n.generated/i18n.resources.js.map +1 -0
- package/dist/{types/shadow-dom/index.d.ts → esm/i18n.generated/i18n.types.js} +3 -3
- package/dist/esm/i18n.generated/i18n.types.js.map +1 -0
- package/dist/esm/index.js +4 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/labs/DataFilters.js +1 -1
- package/dist/esm/labs/DataFilters.js.map +1 -1
- package/dist/esm/labs/DataTable.js +1 -1
- package/dist/esm/labs/DataTable.js.map +1 -1
- package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
- package/dist/esm/labs/DataView/BulkActionsMenu.js.map +1 -1
- package/dist/esm/labs/DataView/CardLayoutContent.js +61 -45
- package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
- package/dist/esm/labs/DataView/DataCard.js +51 -180
- package/dist/esm/labs/DataView/DataCard.js.map +1 -1
- package/dist/esm/labs/DataView/DataView.js +1 -1
- package/dist/esm/labs/DataView/DataView.js.map +1 -1
- package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
- package/dist/esm/labs/DataView/LayoutSwitcher.js.map +1 -1
- package/dist/esm/labs/DataView/RowActions.js +1 -1
- package/dist/esm/labs/DataView/RowActions.js.map +1 -1
- package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
- package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
- package/dist/esm/labs/DataView/TableSettings.js +1 -1
- package/dist/esm/labs/DataView/TableSettings.js.map +1 -1
- package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
- package/dist/esm/labs/DataView/fetchData.js +2 -2
- package/dist/esm/labs/DataView/fetchData.js.map +1 -1
- package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
- package/dist/esm/labs/DatePickers/DateTimeField.js.map +1 -1
- package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
- package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
- package/dist/esm/labs/DatePickers/dateTimePickerTheme.js +3 -3
- package/dist/esm/labs/DatePickers/dateTimePickerTheme.js.map +1 -1
- package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
- package/dist/esm/labs/OdysseyPickers/ComposablePicker.js.map +1 -1
- package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +4 -0
- package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js.map +1 -1
- package/dist/esm/labs/OdysseyPickers/index.js.map +1 -1
- package/dist/esm/labs/PageTemplate/Layout.js +2 -2
- package/dist/esm/labs/PageTemplate/Layout.js.map +1 -1
- package/dist/esm/labs/PageTemplate/PageTemplate.js.map +1 -1
- package/dist/esm/labs/PaginatedTable.js +1 -1
- package/dist/esm/labs/PaginatedTable.js.map +1 -1
- package/dist/esm/labs/StaticTable.js +1 -1
- package/dist/esm/labs/StaticTable.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_da.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_de.js +8 -2
- package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_el.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_eu.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_eu.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_id.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_it.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pl.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +7 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/esm/test-selectors/AutocompleteTestSelector.js +43 -0
- package/dist/esm/test-selectors/AutocompleteTestSelector.js.map +1 -0
- package/dist/esm/test-selectors/CalloutTestSelector.js +37 -0
- package/dist/esm/test-selectors/CalloutTestSelector.js.map +1 -0
- package/dist/esm/test-selectors/SelectTestSelector.js +49 -0
- package/dist/esm/test-selectors/SelectTestSelector.js.map +1 -0
- package/dist/esm/test-selectors/TabsTestSelector.js +33 -0
- package/dist/esm/test-selectors/TabsTestSelector.js.map +1 -0
- package/dist/esm/test-selectors/TextFieldTestSelector.js +38 -0
- package/dist/esm/test-selectors/TextFieldTestSelector.js.map +1 -0
- package/dist/esm/test-selectors/index.js +1 -0
- package/dist/esm/test-selectors/index.js.map +1 -1
- package/dist/esm/test-selectors/queryOdysseySelector.js +5 -5
- package/dist/esm/test-selectors/queryOdysseySelector.js.map +1 -1
- package/dist/esm/theme/components.js +5 -9
- package/dist/esm/theme/components.js.map +1 -1
- package/dist/esm/tools/addSpecificity.js.map +1 -0
- package/dist/esm/tools/bufferLatest.js.map +1 -0
- package/dist/esm/tools/createMessageBus.js.map +1 -0
- package/dist/esm/tools/createStore.js.map +1 -0
- package/dist/esm/ui-shell/NarrowUiShellContent.js +3 -13
- package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/NavAccordion.js +20 -15
- package/dist/esm/ui-shell/SideNav/NavAccordion.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNav.js +136 -135
- package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +7 -4
- package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemContentContext.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +3 -4
- package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +42 -0
- package/dist/esm/ui-shell/SideNav/SideNavSortableList.js.map +1 -0
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js +1 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js +1 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
- package/dist/esm/ui-shell/UiShell.js +4 -4
- package/dist/esm/ui-shell/UiShell.js.map +1 -1
- package/dist/esm/ui-shell/UiShellProvider.js +1 -1
- package/dist/esm/ui-shell/UiShellProvider.js.map +1 -1
- package/dist/esm/ui-shell/WideUiShellContent.js +2 -1
- package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -1
- package/dist/esm/ui-shell/renderUiShell.js +2 -2
- package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
- package/dist/esm/ui-shell/uiShellContentTypes.js +1 -0
- package/dist/esm/ui-shell/uiShellContentTypes.js.map +1 -1
- package/dist/esm/{shadow-dom/shadow-dom.js → web-component/createShadowDomElements.js} +8 -3
- package/dist/esm/web-component/createShadowDomElements.js.map +1 -0
- package/dist/esm/web-component/index.js +3 -0
- package/dist/esm/web-component/index.js.map +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
- package/dist/esm/web-component/removeGlobalStylesFromShadowDom.js +28 -0
- package/dist/esm/web-component/removeGlobalStylesFromShadowDom.js.map +1 -0
- package/dist/esm/web-component/renderReactInWebComponent.js +5 -9
- package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/types/Autocomplete.d.ts +0 -30
- package/dist/types/Autocomplete.d.ts.map +1 -1
- package/dist/types/Banner.d.ts.map +1 -1
- package/dist/types/Breadcrumbs.d.ts.map +1 -1
- package/dist/types/Buttons/BaseButton.d.ts +2 -2
- package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
- package/dist/types/Callout.d.ts +0 -24
- package/dist/types/Callout.d.ts.map +1 -1
- package/dist/types/Card.d.ts +17 -6
- package/dist/types/Card.d.ts.map +1 -1
- package/dist/types/Checkbox.d.ts.map +1 -1
- package/dist/types/DataTable/DataTable.d.ts.map +1 -1
- package/dist/types/DataTable/DataTableRowActions.d.ts.map +1 -1
- package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
- package/dist/types/DatePickers/useDateFieldsTranslations.d.ts.map +1 -1
- package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
- package/dist/types/Dialog.d.ts.map +1 -1
- package/dist/types/Drawer.d.ts.map +1 -1
- package/dist/types/Field.d.ts.map +1 -1
- package/dist/types/FieldError.d.ts.map +1 -1
- package/dist/types/FieldLabel.d.ts.map +1 -1
- package/dist/types/FileUploader/FileUploader.d.ts.map +1 -1
- package/dist/types/FullScreenOverlay.d.ts +19 -0
- package/dist/types/FullScreenOverlay.d.ts.map +1 -0
- package/dist/types/FullScreenOverlayContext.d.ts +31 -0
- package/dist/types/FullScreenOverlayContext.d.ts.map +1 -0
- package/dist/types/NativeSelect.d.ts +1 -1
- package/dist/types/OdysseyCacheProvider.d.ts +10 -3
- package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
- package/dist/types/OdysseyProvider.d.ts +8 -8
- package/dist/types/OdysseyProvider.d.ts.map +1 -1
- package/dist/types/OdysseyThemeProvider.d.ts +7 -16
- package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/types/OdysseyThemeProviderPropsContext.d.ts +27 -0
- package/dist/types/OdysseyThemeProviderPropsContext.d.ts.map +1 -0
- package/dist/types/Pagination/Pagination.d.ts +0 -1
- package/dist/types/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/Pagination/usePagination.d.ts.map +1 -1
- package/dist/types/PasswordField.d.ts.map +1 -1
- package/dist/types/Radio.d.ts.map +1 -1
- package/dist/types/SearchField.d.ts.map +1 -1
- package/dist/types/Select.d.ts +0 -36
- package/dist/types/Select.d.ts.map +1 -1
- package/dist/types/Surface.d.ts.map +1 -1
- package/dist/types/Switch.d.ts.map +1 -1
- package/dist/types/Tabs.d.ts +0 -20
- package/dist/types/Tabs.d.ts.map +1 -1
- package/dist/types/Tag.d.ts.map +1 -1
- package/dist/types/TextField.d.ts +0 -25
- package/dist/types/TextField.d.ts.map +1 -1
- package/dist/types/Toast.d.ts.map +1 -1
- package/dist/types/__internal.d.ts +30 -0
- package/dist/types/__internal.d.ts.map +1 -0
- package/dist/types/i18n.generated/i18n.d.ts +285 -0
- package/dist/types/i18n.generated/i18n.d.ts.map +1 -0
- package/dist/types/i18n.generated/i18n.resources.d.ts +4199 -0
- package/dist/types/{i18n.d.ts.map → i18n.generated/i18n.resources.d.ts.map} +1 -1
- package/dist/types/i18n.generated/i18n.types.d.ts +30 -0
- package/dist/types/i18n.generated/i18n.types.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/labs/DataTable.d.ts.map +1 -1
- package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
- package/dist/types/labs/DataView/DataCard.d.ts +14 -30
- package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
- package/dist/types/labs/DataView/RowActions.d.ts.map +1 -1
- package/dist/types/labs/DataView/componentTypes.d.ts +1 -1
- package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
- package/dist/types/labs/DataView/fetchData.d.ts.map +1 -1
- package/dist/types/labs/DatePickers/DateTimePicker.d.ts.map +1 -1
- package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts.map +1 -1
- package/dist/types/labs/OdysseyPickers/PickerWithOptionAdornment.d.ts.map +1 -1
- package/dist/types/labs/OdysseyPickers/index.d.ts +1 -2
- package/dist/types/labs/OdysseyPickers/index.d.ts.map +1 -1
- package/dist/types/labs/PageTemplate/PageTemplate.d.ts.map +1 -1
- package/dist/types/labs/PaginatedTable.d.ts.map +1 -1
- package/dist/types/labs/StaticTable.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui.d.ts +133 -133
- package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_da.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_de.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_el.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_es.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_it.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +133 -133
- package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +133 -133
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_th.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +133 -127
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/types/test-selectors/AutocompleteTestSelector.d.ts +42 -0
- package/dist/types/test-selectors/AutocompleteTestSelector.d.ts.map +1 -0
- package/dist/types/test-selectors/CalloutTestSelector.d.ts +36 -0
- package/dist/types/test-selectors/CalloutTestSelector.d.ts.map +1 -0
- package/dist/types/test-selectors/SelectTestSelector.d.ts +48 -0
- package/dist/types/test-selectors/SelectTestSelector.d.ts.map +1 -0
- package/dist/types/test-selectors/TabsTestSelector.d.ts +32 -0
- package/dist/types/test-selectors/TabsTestSelector.d.ts.map +1 -0
- package/dist/types/test-selectors/TextFieldTestSelector.d.ts +37 -0
- package/dist/types/test-selectors/TextFieldTestSelector.d.ts.map +1 -0
- package/dist/types/test-selectors/index.d.ts +1 -0
- package/dist/types/test-selectors/index.d.ts.map +1 -1
- package/dist/types/test-selectors/queryOdysseySelector.d.ts.map +1 -1
- package/dist/types/theme/components.d.ts.map +1 -1
- package/dist/types/tools/addSpecificity.d.ts.map +1 -0
- package/dist/types/tools/bufferLatest.d.ts.map +1 -0
- package/dist/types/tools/createMessageBus.d.ts.map +1 -0
- package/dist/types/tools/createStore.d.ts.map +1 -0
- package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/NavAccordion.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNav.d.ts +1 -1
- package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavFooterContent.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts +2 -1
- package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts +1 -0
- package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavItemLinkContent.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavSortableList.d.ts +41 -0
- package/dist/types/ui-shell/SideNav/SideNavSortableList.d.ts.map +1 -0
- package/dist/types/ui-shell/SideNav/types.d.ts +13 -2
- package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShell.d.ts +1 -1
- package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShellProvider.d.ts +1 -1
- package/dist/types/ui-shell/UiShellProvider.d.ts.map +1 -1
- package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -1
- package/dist/types/ui-shell/renderUiShell.d.ts +2 -2
- package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/uiShellContentTypes.d.ts +4 -1
- package/dist/types/ui-shell/uiShellContentTypes.d.ts.map +1 -1
- package/dist/types/{shadow-dom/shadow-dom.d.ts → web-component/createShadowDomElements.d.ts} +6 -4
- package/dist/types/web-component/createShadowDomElements.d.ts.map +1 -0
- package/dist/types/web-component/index.d.ts +3 -0
- package/dist/types/web-component/index.d.ts.map +1 -1
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/dist/types/web-component/removeGlobalStylesFromShadowDom.d.ts +18 -0
- package/dist/types/web-component/removeGlobalStylesFromShadowDom.d.ts.map +1 -0
- package/dist/types/web-component/renderReactInWebComponent.d.ts +1 -1
- package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
- package/package.json +26 -17
- package/dist/cjs/@types/i18next.d.cjs +0 -4
- package/dist/cjs/@types/i18next.d.cjs.map +0 -1
- package/dist/cjs/@types/properties.d.cjs +0 -2
- package/dist/cjs/@types/properties.d.cjs.map +0 -1
- package/dist/cjs/OdysseyTranslationProvider.cjs +0 -55
- package/dist/cjs/OdysseyTranslationProvider.cjs.map +0 -1
- package/dist/cjs/OdysseyTranslationProvider.types.cjs.map +0 -1
- package/dist/cjs/addSpecificity.cjs.map +0 -1
- package/dist/cjs/i18n.cjs +0 -113
- package/dist/cjs/i18n.cjs.map +0 -1
- package/dist/cjs/shadow-dom/index.cjs +0 -17
- package/dist/cjs/shadow-dom/index.cjs.map +0 -1
- package/dist/cjs/shadow-dom/shadow-dom.cjs.map +0 -1
- package/dist/cjs/ui-shell/bufferLatest.cjs.map +0 -1
- package/dist/cjs/ui-shell/createMessageBus.cjs.map +0 -1
- package/dist/cjs/ui-shell/createStore.cjs.map +0 -1
- package/dist/esm/@types/i18next.d.js +0 -14
- package/dist/esm/@types/i18next.d.js.map +0 -1
- package/dist/esm/@types/properties.d.js +0 -2
- package/dist/esm/@types/properties.d.js.map +0 -1
- package/dist/esm/OdysseyTranslationProvider.js +0 -48
- package/dist/esm/OdysseyTranslationProvider.js.map +0 -1
- package/dist/esm/OdysseyTranslationProvider.types.js +0 -14
- package/dist/esm/OdysseyTranslationProvider.types.js.map +0 -1
- package/dist/esm/addSpecificity.js.map +0 -1
- package/dist/esm/i18n.js +0 -100
- package/dist/esm/i18n.js.map +0 -1
- package/dist/esm/shadow-dom/index.js.map +0 -1
- package/dist/esm/shadow-dom/shadow-dom.js.map +0 -1
- package/dist/esm/ui-shell/bufferLatest.js.map +0 -1
- package/dist/esm/ui-shell/createMessageBus.js.map +0 -1
- package/dist/esm/ui-shell/createStore.js.map +0 -1
- package/dist/types/OdysseyTranslationProvider.d.ts +0 -24
- package/dist/types/OdysseyTranslationProvider.d.ts.map +0 -1
- package/dist/types/OdysseyTranslationProvider.types.d.ts +0 -14
- package/dist/types/OdysseyTranslationProvider.types.d.ts.map +0 -1
- package/dist/types/addSpecificity.d.ts.map +0 -1
- package/dist/types/i18n.d.ts +0 -3910
- package/dist/types/shadow-dom/index.d.ts.map +0 -1
- package/dist/types/shadow-dom/shadow-dom.d.ts.map +0 -1
- package/dist/types/ui-shell/bufferLatest.d.ts.map +0 -1
- package/dist/types/ui-shell/createMessageBus.d.ts.map +0 -1
- package/dist/types/ui-shell/createStore.d.ts.map +0 -1
- /package/dist/cjs/{addSpecificity.cjs → tools/addSpecificity.cjs} +0 -0
- /package/dist/cjs/{ui-shell → tools}/bufferLatest.cjs +0 -0
- /package/dist/cjs/{ui-shell → tools}/createMessageBus.cjs +0 -0
- /package/dist/cjs/{ui-shell → tools}/createStore.cjs +0 -0
- /package/dist/esm/{addSpecificity.js → tools/addSpecificity.js} +0 -0
- /package/dist/esm/{ui-shell → tools}/bufferLatest.js +0 -0
- /package/dist/esm/{ui-shell → tools}/createMessageBus.js +0 -0
- /package/dist/esm/{ui-shell → tools}/createStore.js +0 -0
- /package/dist/types/{addSpecificity.d.ts → tools/addSpecificity.d.ts} +0 -0
- /package/dist/types/{ui-shell → tools}/bufferLatest.d.ts +0 -0
- /package/dist/types/{ui-shell → tools}/createMessageBus.d.ts +0 -0
- /package/dist/types/{ui-shell → tools}/createStore.d.ts +0 -0
|
@@ -75,7 +75,7 @@ export type RenderReactInWebComponentProps = {
|
|
|
75
75
|
webComponentParentElement: HTMLElement;
|
|
76
76
|
webComponentRootElement?: never;
|
|
77
77
|
} | {
|
|
78
|
-
webComponentParentElement?:
|
|
78
|
+
webComponentParentElement?: never;
|
|
79
79
|
/**
|
|
80
80
|
* @deprecated Use `webComponentParentElement` instead.
|
|
81
81
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderReactInWebComponent.d.ts","sourceRoot":"","sources":["../../../src/web-component/renderReactInWebComponent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"renderReactInWebComponent.d.ts","sourceRoot":"","sources":["../../../src/web-component/renderReactInWebComponent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AAItC,UAAU,2BAA2B;IACnC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,SAAS,CAAC;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAGD,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAGhF,eAAO,MAAM,yBAAyB,QACkB,CAAC;AAEzD,QAAA,MAAM,2BAA2B;;;CAG2B,CAAC;AAE7D,qBAAa,iBAAkB,SAAQ,2BAA2B;;IAGhE,SAAgB,WAAW,EAAE,MAAM,CAAkB;IAE9C,gBAAgB,EAAE,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAyB;;IAkBtE;;;;;OAKG;IACH,oBAAoB,CAAC,iBAAiB,EAAE,+BAA+B;IAcvE,iBAAiB;IA0BjB,oBAAoB;CAcrB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,0CAGlC,2BAA2B,sBAc7B,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAC5C,iBAAiB,EAAE,iBAAiB,KACjC,SAAS,CAAC;AAEf,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;;;;OAMG;IACH,iBAAiB,EAAE,+BAA+B,CAAC;IACnD;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;IACnD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG,CACA;IACE;;;;OAIG;IACH,yBAAyB,EAAE,WAAW,CAAC;IACvC,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC,GACD;IACE,yBAAyB,CAAC,EAAE,KAAK,CAAC;IAClC;;OAEG;IACH,uBAAuB,EAAE,WAAW,CAAC;CACtC,CACJ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAI,oHAMvC,8BAA8B,sBAwBhC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
-
"sideEffects":
|
|
8
|
-
"./src/i18n.ts"
|
|
9
|
-
],
|
|
7
|
+
"sideEffects": false,
|
|
10
8
|
"type": "module",
|
|
11
9
|
"types": "dist/types/index.d.ts",
|
|
12
10
|
"browser": "dist/cjs/index.cjs",
|
|
@@ -17,6 +15,9 @@
|
|
|
17
15
|
"*": [
|
|
18
16
|
"./dist/types/index.d.ts"
|
|
19
17
|
],
|
|
18
|
+
"__internal": [
|
|
19
|
+
"./dist/types/__internal.d.ts"
|
|
20
|
+
],
|
|
20
21
|
"icons": [
|
|
21
22
|
"./dist/types/icons.generated/index.d.ts"
|
|
22
23
|
],
|
|
@@ -35,6 +36,13 @@
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
"exports": {
|
|
39
|
+
"./__internal": {
|
|
40
|
+
"types": "./dist/types/__internal.d.ts",
|
|
41
|
+
"node": "./dist/cjs/__internal.cjs",
|
|
42
|
+
"import": "./dist/esm/__internal.js",
|
|
43
|
+
"require": "./dist/cjs/__internal.cjs",
|
|
44
|
+
"default": "./dist/cjs/__internal.cjs"
|
|
45
|
+
},
|
|
38
46
|
"./icons": {
|
|
39
47
|
"types": "./dist/types/icons.generated/index.d.ts",
|
|
40
48
|
"node": "./dist/cjs/icons.generated/index.cjs",
|
|
@@ -85,7 +93,7 @@
|
|
|
85
93
|
"build:source:esm": "ODYSSEY_BUILD_MODE=esm NODE_ENV=production BROWSERSLIST_ENV=modern babel src --out-dir dist/esm --extensions .js,.jsx,.ts,.tsx --source-maps",
|
|
86
94
|
"build:source": "yarn build:source:esm && yarn build:source:cjs",
|
|
87
95
|
"build:testSelectors": "tsx scripts/generateTestSelectorsJson.ts",
|
|
88
|
-
"build:translationsJson": "
|
|
96
|
+
"build:translationsJson": "odyssey-cli build:translationsJson",
|
|
89
97
|
"build:types": "tsc --project tsconfig.production.json",
|
|
90
98
|
"build": "yarn build:clean && yarn build:translationsJson && yarn build:types && yarn build:source && yarn build:testSelectors",
|
|
91
99
|
"ci:coverage": "NODE_ENV=test yarn vitest run --coverage --reporter=default",
|
|
@@ -95,13 +103,14 @@
|
|
|
95
103
|
"dev:translationsJson": "yarn build:translationsJson --watch",
|
|
96
104
|
"dev:types": "yarn build:types --watch",
|
|
97
105
|
"dev": "yarn concurrently npm:dev:translationsJson npm:dev:types npm:dev:source",
|
|
106
|
+
"generate:i18n": "odyssey-cli generate:i18n",
|
|
98
107
|
"generate:icons:clean": "rimraf src/icons.generated && rimraf src/icons.generated/index.ts",
|
|
99
108
|
"generate:icons:components": "svgr ../odyssey-icons/dist/icons --out-dir ./src/icons.generated",
|
|
100
109
|
"generate:icons:index": "tsx scripts/generateIconsIndex.ts",
|
|
101
110
|
"generate:icons": "yarn generate:icons:clean && yarn generate:icons:components && yarn generate:icons:index",
|
|
102
111
|
"generate:pseudoLocales": "yarn pseudo-loc generate --resourcePath src/properties",
|
|
103
112
|
"generate:webComponentVersion": "tsx scripts/updateWebComponentVersion.ts",
|
|
104
|
-
"playwright-install": "
|
|
113
|
+
"playwright-install": "yarn playwright install --with-deps chromium",
|
|
105
114
|
"test": "NODE_ENV=test vitest run --reporter=default",
|
|
106
115
|
"test:downstream": "yarn ok-ui downstream",
|
|
107
116
|
"typecheck": "tsc --noEmit --rootDir ./"
|
|
@@ -118,21 +127,20 @@
|
|
|
118
127
|
"@emotion/cache": "^11.14.0",
|
|
119
128
|
"@emotion/react": "^11.14.0",
|
|
120
129
|
"@emotion/styled": "^11.14.0",
|
|
121
|
-
"@mui/icons-material": "^5.
|
|
130
|
+
"@mui/icons-material": "^5.18.0",
|
|
122
131
|
"@mui/lab": "^5.0.0-alpha.175",
|
|
123
|
-
"@mui/material": "^5.
|
|
124
|
-
"@mui/system": "^5.
|
|
132
|
+
"@mui/material": "^5.18.0",
|
|
133
|
+
"@mui/system": "^5.18.0",
|
|
125
134
|
"@mui/utils": "^5.17.1",
|
|
126
135
|
"@mui/x-date-pickers": "^7.2.0",
|
|
127
|
-
"@okta/odyssey-
|
|
136
|
+
"@okta/odyssey-contribution-tooling": "1.47.0",
|
|
137
|
+
"@okta/odyssey-design-tokens": "1.47.0",
|
|
128
138
|
"@types/luxon": "^3.4.2",
|
|
129
139
|
"date-fns": "^2.30.0",
|
|
130
140
|
"dom-accessibility-api": "^0.7.0",
|
|
131
|
-
"i18next": "^23.15.1",
|
|
132
141
|
"luxon": "^3.4.4",
|
|
133
142
|
"material-react-table": "^2.11.3",
|
|
134
143
|
"react-error-boundary": "^4.1.1",
|
|
135
|
-
"react-i18next": "^15.1.1",
|
|
136
144
|
"react-window": "^1.8.10",
|
|
137
145
|
"word-wrap": "^1.2.5"
|
|
138
146
|
},
|
|
@@ -142,9 +150,10 @@
|
|
|
142
150
|
"@babel/preset-env": "^7.27.1",
|
|
143
151
|
"@babel/preset-react": "^7.27.1",
|
|
144
152
|
"@babel/preset-typescript": "^7.27.1",
|
|
145
|
-
"@okta/browserslist-config-odyssey": "1.
|
|
146
|
-
"@okta/odyssey-
|
|
147
|
-
"@okta/odyssey-
|
|
153
|
+
"@okta/browserslist-config-odyssey": "1.47.0",
|
|
154
|
+
"@okta/odyssey-cli": "1.47.0",
|
|
155
|
+
"@okta/odyssey-icons": "1.47.0",
|
|
156
|
+
"@okta/odyssey-typescript": "1.47.0",
|
|
148
157
|
"@okta/ok-ui": "^4.12.2",
|
|
149
158
|
"@okta/tools.i18n.pseudo-loc": "^1.0.0-99-gc858246",
|
|
150
159
|
"@svgr/cli": "^7.0.0",
|
|
@@ -173,7 +182,7 @@
|
|
|
173
182
|
"rimraf": "^6.0.1",
|
|
174
183
|
"tsd": "^0.31.2",
|
|
175
184
|
"tsx": "^4.7.3",
|
|
176
|
-
"typescript": "^5.
|
|
185
|
+
"typescript": "^5.9.2",
|
|
177
186
|
"vitest": "^3.2.4",
|
|
178
187
|
"yargs": "^17.7.2"
|
|
179
188
|
},
|
|
@@ -181,5 +190,5 @@
|
|
|
181
190
|
"react": "^18.3.1",
|
|
182
191
|
"react-dom": "^18.3.1"
|
|
183
192
|
},
|
|
184
|
-
"gitHead": "
|
|
193
|
+
"gitHead": "96e9fff148bb67730acab7ff06dd8a09ef53a462"
|
|
185
194
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18next.d.cjs","names":["require"],"sources":["../../../src/@types/i18next.d.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport \"i18next\";\n\nimport { defaultNS, keySeparator, resources } from \"../i18n.js\";\n\ndeclare module \"i18next\" {\n interface CustomTypeOptions {\n defaultNS: typeof defaultNS;\n keySeparator: typeof keySeparator;\n resources: {\n odyssey: (typeof resources)[\"en\"];\n };\n }\n}\n"],"mappings":";;AAYAA,OAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.cjs","names":[],"sources":["../../../src/@types/properties.d.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Copied this in from a PR that will hopefully get merged:\n * @see https://github.com/gagle/node-properties/pull/35\n */\ndeclare module \"properties\" {\n export interface ParseOptions {\n /**\n * Allows you to add additional comment tokens.\n * The token must be a single printable non-whitespae ascii character.\n * If the `strict` option is not set, the tokens `#` and `!` are parsed as comment tokens.\n *\n * @example\n * comments: \";\"\n * @example\n * comments: [\";\", \"@\"]\n */\n comments?: string | string[];\n\n /**\n * Files can be linked and imported with the include key.\n * If this option is used, the callback is mandatory.\n *\n * Look at the include section for further details.\n * @link https://www.npmjs.com/package/properties#include\n */\n include?: boolean;\n\n /**\n * Parses dot separated keys as JavaScript objects.\n *\n * Look at the namespaces section for further details.\n * @link https://www.npmjs.com/package/properties#namespaces\n */\n namespaces?: boolean;\n\n /**\n * By default `parse()` reads a String.\n * If you want to read a file, set this option to true.\n * If this option is used, the callback is mandatory.\n * It gets 2 parameters, a possible error and the object with all the properties.\n */\n path?: boolean;\n\n /**\n * Each property or section can be removed or modified from the final object.\n * It's similar to the reviver of the `JSON.parse()` function.\n *\n * The reviver it's exactly the same as the replacer from `stringify()`.\n * The same function can be reused.\n *\n * The callback gets 3 parameters: key, value and section.\n *\n * A property has a key and a value and can belong to a section.\n * If it's a global property, the section is set to null.\n * If **undefined** is returned, the property will be removed from the final object, otherwise the returned value will be used as the property value.\n *\n * If the key and the value are set to null, then it's a section line.\n * If it returns a falsy value, it won't be added to the final object, the entire section _including all the properties_ will be discarded.\n * If it returns a truthy value, the section is parsed.\n *\n * For your convenience, to know whether the line is a property or section you can access to `this.isProperty` and `this.isSection` from inside the replacer function.\n * Also, `this.assert()` can be used to return the default value, the unmodified value that will be used to parse the line.\n *\n * Look at the reviver example for further details.\n * @link https://github.com/gagle/node-properties/blob/master/examples/reviver/reviver.js\n */\n reviver?: (this: Context, key: any, value: any) => any;\n\n /**\n * Parses INI sections.\n * Read the INI section for further details.\n *\n * @link https://www.npmjs.com/package/properties#ini\n */\n sections?: boolean;\n\n /**\n * Allows you to add additional separator tokens.\n * The token must be a single printable non-whitespae ascii character.\n * If the `strict` option is not set, the tokens `=` and `:` are parsed as comment tokens.\n *\n * @example\n * separators: \"-\"\n * @example\n * separators: [\"-\", \">\"]\n */\n separators?: string | string[];\n\n /**\n * This option can be used with the `comments` and `separators` options.\n * If true, **only** the tokens specified in these options are used to parse comments and separators.\n */\n strict?: boolean;\n\n /**\n * Allows you to read the value of a key while the file is being parsed.\n *\n * Look at the variables section for further details.\n * @link https://www.npmjs.com/package/properties#variables\n */\n variables?: boolean;\n\n /**\n * External variables can be passed to the file if the variables option is enabled.\n *\n * Look at the variables section for further details.\n * @link https://www.npmjs.com/package/properties#variables\n */\n vars?: boolean;\n }\n\n export interface Context {\n assert(): any;\n }\n\n /**\n * Parses a .properties string.\n *\n * @param data\n * @param options\n */\n export function parse(data: string, options?: ParseOptions): object;\n\n /**\n * Parses a .properties string.\n *\n * If a callback is given, the result is returned as the second parameter. Some options will require a callback.\n *\n * @param data\n * @param cb\n */\n export function parse(\n data: string,\n cb: (err: Error, result: { [key: string]: unknown } | undefined) => void,\n ): void;\n\n /**\n * Parses a .properties string.\n *\n * If a callback is given, the result is returned as the second parameter. Some options will require a callback.\n *\n * @param data\n * @param options\n * @param cb\n */\n export function parse(\n data: string,\n options: ParseOptions | undefined,\n cb: (err: Error, result: { [key: string]: unknown } | undefined) => void,\n ): void;\n\n export interface StringifyOptions {\n /**\n * The token to use to write comments.\n * It must be a single printable non-whitespace ascii character.\n * @default `#`\n */\n comment?: string;\n\n /**\n * By default `stringify()` returns a string.\n * If you want to write it to a file, use this option and pass the path of a file.\n * If this option is used, the callback is mandatory.\n * It gets two parameters, a possible error and the string.\n */\n path?: string;\n\n /**\n * Each property or section can be removed or modified from the final string.\n * It's similar to the replacer of the `JSON.stringify()` function.\n *\n * The replacer it's exatcly the same as the reviver from `parse()`.\n * The same function can be reused.\n *\n * The callback gets three parameters: key, value and section.\n *\n * A property has a key and a value and can belong to a section.\n * If it's a global property, the section is set to null.\n * If **undefined** is returned, the property won't be stringified, otherwise the returned value will be used as the property value.\n *\n * If the key and the value are set to null, then it's a section line.\n * If it returns a falsy value, it won't be added to the final string, the entire section _including all the properties_ will be discarded.\n * If it returns a truthy value, the section is stringified.\n *\n * For your convenience, to know whether the line is a property or section you can access to `this.isProperty` and `this.isSection` from inside the replacer function.\n * Also, `this.assert()` can be used to return the default value, the unmodified value that will be used to stringify the line.\n *\n * Look at the replacer example for further details.\n * @link https://github.com/gagle/node-properties/blob/master/examples/replacer.js\n */\n replacer?: (this: Context, key: string, value: any) => any;\n\n /**\n * The token to use to separate keys from values.\n * It must be a single printable non-whitespace ascii character.\n * @default `=`\n */\n separator?: string;\n\n /**\n * The .properties specification uses iso 8859-1 (latin-1) as a default encoding.\n * In the other hand, Node.js has a utf8 default encoding.\n * This means that if you want a full compatibility with Java, that is, you are generating a .properties file that is going to be read by a Java program, then set this option to true.\n * This will encode all ascii extended and multibyte characters to their unicode string representation (`\\uXXXX`).\n *\n * Non-printable control codes (control sets 0 and 1) are always encoded as unicode strings except `\\t`, `\\n`, `\\f` and `\\r`.\n *\n * If you are in a platform that can handle utf8 strings, e.g. Node.js, you don't need to use this option.\n */\n unicode?: boolean;\n }\n\n /**\n * Stringifies an `object` or a `Stringifier`.\n *\n * If you don't need to add sections or comments simply pass an object, otherwise use a `Stringifier`.\n *\n * @param obj\n * @param options\n */\n export function stringify(obj: object, options?: StringifyOptions): string;\n\n /**\n * Stringifies an `object` or a `Stringifier`.\n *\n * If you don't need to add sections or comments simply pass an object, otherwise use a `Stringifier`.\n *\n * The callback is only necessary when the `path` option is used.\n *\n * @param obj\n * @param options\n * @param cb\n */\n export function stringify(\n obj: object,\n options: StringifyOptions | undefined,\n cb: (err: Error, result: string) => void,\n ): void;\n\n /**\n * This class is used when you want to add sections or comments to the final string.\n *\n * To create a Stringifier use the `createStringifier()` function.\n *\n * Look at the stringify-ini example for further details.\n * @link https://github.com/gagle/node-properties/blob/master/examples/ini/stringify-ini.js\n */\n export interface Stringifier {\n /**\n * Writes a header comment.\n * It will be written to the top of the final string.\n * Returns the Stringifier being used.\n */\n header(comment: string): this;\n\n /**\n * Writes a property line.\n * It takes an object with three options: `key`, `value` and comment.\n * Both the key and the value are converted into a string automatically.\n * Returns the Stringifier being used.\n */\n property(obj: { comment?: string; key?: string; value?: string }): this;\n\n /**\n * Writes a section line.\n * It gets an object with two options: `name` and `comment`.\n * The name is converted into a string.\n * If you don't need to write a comment, you can pass the name instead of an object.\n * Returns the stringifier being used.\n */\n section(obj: string | { comment?: string; name: string }): this;\n }\n\n /**\n * Returns a new `Stringifier` instance.\n */\n export function createStringifier(): Stringifier;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.odysseyI18nResourceKeysList = exports.OdysseyTranslationProvider = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactI18next = require("react-i18next");
|
|
9
|
-
var _getTypedObjectKeys = require("./getTypedObjectKeys.cjs");
|
|
10
|
-
var _i18n = require("./i18n.cjs");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
/*!
|
|
13
|
-
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
14
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
15
|
-
*
|
|
16
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
19
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
*
|
|
21
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
const odysseyI18nResourceKeysList = exports.odysseyI18nResourceKeysList = (0, _getTypedObjectKeys.getTypedObjectKeys)(_i18n.resources["en"]);
|
|
25
|
-
const mergeBundleOverrides = (languageCode, translationOverrides) => {
|
|
26
|
-
const translationStringOverrides = translationOverrides[languageCode];
|
|
27
|
-
const translationStrings = languageCode in _i18n.resources ? _i18n.resources[languageCode] : {};
|
|
28
|
-
return {
|
|
29
|
-
...translationStrings,
|
|
30
|
-
...translationStringOverrides
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
const OdysseyTranslationProvider = ({
|
|
34
|
-
children,
|
|
35
|
-
languageCode,
|
|
36
|
-
translationOverrides
|
|
37
|
-
}) => {
|
|
38
|
-
(0, _react.useEffect)(() => {
|
|
39
|
-
_i18n.i18n.changeLanguage(languageCode || window.navigator.language);
|
|
40
|
-
}, [languageCode]);
|
|
41
|
-
(0, _react.useEffect)(() => {
|
|
42
|
-
if (translationOverrides) {
|
|
43
|
-
(0, _getTypedObjectKeys.getTypedObjectKeys)(translationOverrides).forEach(language => {
|
|
44
|
-
const bundle = mergeBundleOverrides(language, translationOverrides);
|
|
45
|
-
_i18n.i18n.addResourceBundle(language, _i18n.defaultNS, bundle);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}, [translationOverrides]);
|
|
49
|
-
return (0, _jsxRuntime.jsx)(_reactI18next.I18nextProvider, {
|
|
50
|
-
i18n: _i18n.i18n,
|
|
51
|
-
children: children
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
exports.OdysseyTranslationProvider = OdysseyTranslationProvider;
|
|
55
|
-
//# sourceMappingURL=OdysseyTranslationProvider.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OdysseyTranslationProvider.cjs","names":["_react","require","_reactI18next","_getTypedObjectKeys","_i18n","_jsxRuntime","odysseyI18nResourceKeysList","exports","getTypedObjectKeys","resources","mergeBundleOverrides","languageCode","translationOverrides","translationStringOverrides","translationStrings","OdysseyTranslationProvider","children","useEffect","i18n","changeLanguage","window","navigator","language","forEach","bundle","addResourceBundle","defaultNS","jsx","I18nextProvider"],"sources":["../../src/OdysseyTranslationProvider.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { ReactNode, useEffect } from \"react\";\nimport { I18nextProvider } from \"react-i18next\";\n\nimport { getTypedObjectKeys } from \"./getTypedObjectKeys.js\";\nimport { defaultNS, i18n, resources } from \"./i18n.js\";\nimport { DefaultSupportedLanguages } from \"./OdysseyTranslationProvider.types.js\";\n\nexport type OdysseyI18nResourceKeys = (typeof resources)[\"en\"];\nexport const odysseyI18nResourceKeysList = getTypedObjectKeys(resources[\"en\"]);\n\nexport type TranslationOverrides<\n SupportedLanguages extends string = DefaultSupportedLanguages,\n> = Record<SupportedLanguages, Partial<OdysseyI18nResourceKeys>>;\n\nconst mergeBundleOverrides = <\n SupportedLanguages extends string = DefaultSupportedLanguages,\n>(\n languageCode: SupportedLanguages,\n translationOverrides: TranslationOverrides<SupportedLanguages>,\n) => {\n const translationStringOverrides = translationOverrides[languageCode];\n\n const translationStrings =\n languageCode in resources\n ? resources[languageCode as DefaultSupportedLanguages]\n : {};\n\n return {\n ...translationStrings,\n ...translationStringOverrides,\n };\n};\n\nexport type OdysseyTranslationProviderProps<\n SupportedLanguages extends string = DefaultSupportedLanguages,\n> = {\n children: ReactNode;\n languageCode?: SupportedLanguages | DefaultSupportedLanguages;\n translationOverrides?: TranslationOverrides<SupportedLanguages>;\n};\n\nexport const OdysseyTranslationProvider = <SupportedLanguages extends string>({\n children,\n languageCode,\n translationOverrides,\n}: OdysseyTranslationProviderProps<SupportedLanguages>) => {\n useEffect(() => {\n i18n.changeLanguage(languageCode || window.navigator.language);\n }, [languageCode]);\n\n useEffect(() => {\n if (translationOverrides) {\n getTypedObjectKeys(translationOverrides).forEach((language) => {\n const bundle = mergeBundleOverrides<SupportedLanguages>(\n language,\n translationOverrides,\n );\n i18n.addResourceBundle(language, defaultNS, bundle);\n });\n }\n }, [translationOverrides]);\n\n return <I18nextProvider i18n={i18n}>{children}</I18nextProvider>;\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAAuD,IAAAI,WAAA,GAAAJ,OAAA;AAhBvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUO,MAAMK,2BAA2B,GAAAC,OAAA,CAAAD,2BAAA,GAAG,IAAAE,sCAAkB,EAACC,eAAS,CAAC,IAAI,CAAC,CAAC;AAM9E,MAAMC,oBAAoB,GAAGA,CAG3BC,YAAgC,EAChCC,oBAA8D,KAC3D;EACH,MAAMC,0BAA0B,GAAGD,oBAAoB,CAACD,YAAY,CAAC;EAErE,MAAMG,kBAAkB,GACtBH,YAAY,IAAIF,eAAS,GACrBA,eAAS,CAACE,YAAY,CAA8B,GACpD,CAAC,CAAC;EAER,OAAO;IACL,GAAGG,kBAAkB;IACrB,GAAGD;EACL,CAAC;AACH,CAAC;AAUM,MAAME,0BAA0B,GAAGA,CAAoC;EAC5EC,QAAQ;EACRL,YAAY;EACZC;AACmD,CAAC,KAAK;EACzD,IAAAK,gBAAS,EAAC,MAAM;IACdC,UAAI,CAACC,cAAc,CAACR,YAAY,IAAIS,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAC;EAChE,CAAC,EAAE,CAACX,YAAY,CAAC,CAAC;EAElB,IAAAM,gBAAS,EAAC,MAAM;IACd,IAAIL,oBAAoB,EAAE;MACxB,IAAAJ,sCAAkB,EAACI,oBAAoB,CAAC,CAACW,OAAO,CAAED,QAAQ,IAAK;QAC7D,MAAME,MAAM,GAAGd,oBAAoB,CACjCY,QAAQ,EACRV,oBACF,CAAC;QACDM,UAAI,CAACO,iBAAiB,CAACH,QAAQ,EAAEI,eAAS,EAAEF,MAAM,CAAC;MACrD,CAAC,CAAC;IACJ;EACF,CAAC,EAAE,CAACZ,oBAAoB,CAAC,CAAC;EAE1B,OAAO,IAAAP,WAAA,CAAAsB,GAAA,EAACzB,aAAA,CAAA0B,eAAe;IAACV,IAAI,EAAEA,UAAK;IAAAF,QAAA,EAAEA;EAAQ,CAAkB,CAAC;AAClE,CAAC;AAACT,OAAA,CAAAQ,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OdysseyTranslationProvider.types.cjs","names":["defaultSupportedLanguages","exports"],"sources":["../../src/OdysseyTranslationProvider.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport const defaultSupportedLanguages = [\n \"cs\", // Czech\n \"da\", // Danish\n \"de\", // German\n \"el\", // Greek\n \"en\", // English\n \"es\", // Spanish\n \"fi\", // Finnish\n \"fr\", // French\n \"ht\", // Haitian Creole\n \"hu\", // Hungarian\n \"id\", // Indonesian\n \"it\", // Italian\n \"ja\", // Japanese\n \"ko\", // Korean\n \"ms\", // Malaysian\n \"nb\", // Norwegian\n \"nl_NL\", // Dutch\n \"ok_PL\", // (Test Language) Pseudo-loc\n \"ok_SK\", // (Test Language) Show Keys\n \"pl\", // Polish\n \"pt_BR\", // Portuguese (Brazil)\n \"ro\", // Romanian\n \"ru\", // Russian\n \"sv\", // Swedish\n \"th\", // Thai\n \"tr\", // Turkish\n \"uk\", // Ukrainian\n \"vi\", // Vietnamese\n \"zh_CN\", // Chinese (PRC)\n \"zh_TW\", // Chinese\n] as const;\n\nexport type DefaultSupportedLanguages =\n (typeof defaultSupportedLanguages)[number];\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,CACvC,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,CACC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addSpecificity.cjs","names":["addSpecificity","specificityCount","selector","ampersands","repeat","exports"],"sources":["../../src/addSpecificity.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Adds CSS specificity to class selectors by prepending a specified number of ampersands.\n * This function helps override MUI component styles by increasing selector specificity.\n *\n * @param {number} specificityCount - Number of ampersands to prepend (e.g., 2 results in \"&&\")\n * @param {string} selector - The selector string to add specificity to.\n * Include spaces in the selector if needed for descendant selectors.\n * @returns {string} The selector with added specificity\n *\n * @example\n * // Direct selector: \"&&.MuiButton-root\"\n * addSpecificity(2, \".MuiButton-root\")\n *\n * // Descendant selector: \"&& .MuiButton-root\"\n * addSpecificity(2, \" .MuiButton-root\")\n *\n * // Direct selector with class reference:\n * addSpecificity(2, `.${buttonClasses.root}`)\n *\n * // Descendant selector with class reference:\n * addSpecificity(2, ` .${buttonClasses.root}`)\n *\n * // Combined selector: \"&&.MuiButton-root:hover\"\n * addSpecificity(2, \".MuiButton-root:hover\")\n */\nexport const addSpecificity = (\n specificityCount: number,\n selector: string,\n): string => {\n const ampersands = \"&\".repeat(specificityCount);\n return `${ampersands}${selector}`;\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GA2BO,MAAMA,cAAc,GAAGA,CAC5BC,gBAAwB,EACxBC,QAAgB,KACL;EACX,MAAMC,UAAU,GAAG,GAAG,CAACC,MAAM,CAACH,gBAAgB,CAAC;EAC/C,OAAO,GAAGE,UAAU,GAAGD,QAAQ,EAAE;AACnC,CAAC;AAACG,OAAA,CAAAL,cAAA,GAAAA,cAAA","ignoreList":[]}
|
package/dist/cjs/i18n.cjs
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.defaultNS = exports.defaultLNG = void 0;
|
|
7
|
-
Object.defineProperty(exports, "i18n", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _i18next.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
exports.resources = exports.odysseyTranslate = exports.keySeparator = void 0;
|
|
14
|
-
var _i18next = _interopRequireDefault(require("i18next"));
|
|
15
|
-
var _reactI18next = require("react-i18next");
|
|
16
|
-
var _odysseyReactMui_cs = require("./properties/ts/odyssey-react-mui_cs.cjs");
|
|
17
|
-
var _odysseyReactMui_da = require("./properties/ts/odyssey-react-mui_da.cjs");
|
|
18
|
-
var _odysseyReactMui_de = require("./properties/ts/odyssey-react-mui_de.cjs");
|
|
19
|
-
var _odysseyReactMui_el = require("./properties/ts/odyssey-react-mui_el.cjs");
|
|
20
|
-
var _odysseyReactMui_es = require("./properties/ts/odyssey-react-mui_es.cjs");
|
|
21
|
-
var _odysseyReactMui_fi = require("./properties/ts/odyssey-react-mui_fi.cjs");
|
|
22
|
-
var _odysseyReactMui_fr = require("./properties/ts/odyssey-react-mui_fr.cjs");
|
|
23
|
-
var _odysseyReactMui_ht = require("./properties/ts/odyssey-react-mui_ht.cjs");
|
|
24
|
-
var _odysseyReactMui_hu = require("./properties/ts/odyssey-react-mui_hu.cjs");
|
|
25
|
-
var _odysseyReactMui_id = require("./properties/ts/odyssey-react-mui_id.cjs");
|
|
26
|
-
var _odysseyReactMui_it = require("./properties/ts/odyssey-react-mui_it.cjs");
|
|
27
|
-
var _odysseyReactMui_ja = require("./properties/ts/odyssey-react-mui_ja.cjs");
|
|
28
|
-
var _odysseyReactMui_ko = require("./properties/ts/odyssey-react-mui_ko.cjs");
|
|
29
|
-
var _odysseyReactMui_ms = require("./properties/ts/odyssey-react-mui_ms.cjs");
|
|
30
|
-
var _odysseyReactMui_nb = require("./properties/ts/odyssey-react-mui_nb.cjs");
|
|
31
|
-
var _odysseyReactMui_nl_NL = require("./properties/ts/odyssey-react-mui_nl_NL.cjs");
|
|
32
|
-
var _odysseyReactMui_ok_PL = require("./properties/ts/odyssey-react-mui_ok_PL.cjs");
|
|
33
|
-
var _odysseyReactMui_ok_SK = require("./properties/ts/odyssey-react-mui_ok_SK.cjs");
|
|
34
|
-
var _odysseyReactMui_pl = require("./properties/ts/odyssey-react-mui_pl.cjs");
|
|
35
|
-
var _odysseyReactMui_pt_BR = require("./properties/ts/odyssey-react-mui_pt_BR.cjs");
|
|
36
|
-
var _odysseyReactMui_ro = require("./properties/ts/odyssey-react-mui_ro.cjs");
|
|
37
|
-
var _odysseyReactMui_ru = require("./properties/ts/odyssey-react-mui_ru.cjs");
|
|
38
|
-
var _odysseyReactMui_sv = require("./properties/ts/odyssey-react-mui_sv.cjs");
|
|
39
|
-
var _odysseyReactMui_th = require("./properties/ts/odyssey-react-mui_th.cjs");
|
|
40
|
-
var _odysseyReactMui_tr = require("./properties/ts/odyssey-react-mui_tr.cjs");
|
|
41
|
-
var _odysseyReactMui_uk = require("./properties/ts/odyssey-react-mui_uk.cjs");
|
|
42
|
-
var _odysseyReactMui_vi = require("./properties/ts/odyssey-react-mui_vi.cjs");
|
|
43
|
-
var _odysseyReactMui_zh_CN = require("./properties/ts/odyssey-react-mui_zh_CN.cjs");
|
|
44
|
-
var _odysseyReactMui_zh_TW = require("./properties/ts/odyssey-react-mui_zh_TW.cjs");
|
|
45
|
-
var _odysseyReactMui = require("./properties/ts/odyssey-react-mui.cjs");
|
|
46
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
47
|
-
/*!
|
|
48
|
-
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
49
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
50
|
-
*
|
|
51
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
52
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
53
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
54
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
55
|
-
*
|
|
56
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
const defaultLNG = exports.defaultLNG = "en";
|
|
60
|
-
const defaultNS = exports.defaultNS = "odyssey";
|
|
61
|
-
const keySeparator = exports.keySeparator = false;
|
|
62
|
-
const resources = exports.resources = {
|
|
63
|
-
cs: _odysseyReactMui_cs.translation,
|
|
64
|
-
da: _odysseyReactMui_da.translation,
|
|
65
|
-
de: _odysseyReactMui_de.translation,
|
|
66
|
-
el: _odysseyReactMui_el.translation,
|
|
67
|
-
en: _odysseyReactMui.translation,
|
|
68
|
-
es: _odysseyReactMui_es.translation,
|
|
69
|
-
fi: _odysseyReactMui_fi.translation,
|
|
70
|
-
fr: _odysseyReactMui_fr.translation,
|
|
71
|
-
ht: _odysseyReactMui_ht.translation,
|
|
72
|
-
hu: _odysseyReactMui_hu.translation,
|
|
73
|
-
id: _odysseyReactMui_id.translation,
|
|
74
|
-
it: _odysseyReactMui_it.translation,
|
|
75
|
-
ja: _odysseyReactMui_ja.translation,
|
|
76
|
-
ko: _odysseyReactMui_ko.translation,
|
|
77
|
-
ms: _odysseyReactMui_ms.translation,
|
|
78
|
-
nb: _odysseyReactMui_nb.translation,
|
|
79
|
-
nl_NL: _odysseyReactMui_nl_NL.translation,
|
|
80
|
-
ok_PL: _odysseyReactMui_ok_PL.translation,
|
|
81
|
-
ok_SK: _odysseyReactMui_ok_SK.translation,
|
|
82
|
-
pl: _odysseyReactMui_pl.translation,
|
|
83
|
-
pt_BR: _odysseyReactMui_pt_BR.translation,
|
|
84
|
-
ro: _odysseyReactMui_ro.translation,
|
|
85
|
-
ru: _odysseyReactMui_ru.translation,
|
|
86
|
-
sv: _odysseyReactMui_sv.translation,
|
|
87
|
-
th: _odysseyReactMui_th.translation,
|
|
88
|
-
tr: _odysseyReactMui_tr.translation,
|
|
89
|
-
uk: _odysseyReactMui_uk.translation,
|
|
90
|
-
vi: _odysseyReactMui_vi.translation,
|
|
91
|
-
zh_CN: _odysseyReactMui_zh_CN.translation,
|
|
92
|
-
zh_TW: _odysseyReactMui_zh_TW.translation
|
|
93
|
-
};
|
|
94
|
-
_i18next.default.use(_reactI18next.initReactI18next).init({
|
|
95
|
-
defaultNS,
|
|
96
|
-
ns: [defaultNS],
|
|
97
|
-
fallbackLng: defaultLNG,
|
|
98
|
-
load: "currentOnly",
|
|
99
|
-
keySeparator,
|
|
100
|
-
interpolation: {
|
|
101
|
-
escapeValue: false,
|
|
102
|
-
skipOnVariables: false
|
|
103
|
-
},
|
|
104
|
-
react: {
|
|
105
|
-
bindI18nStore: "added",
|
|
106
|
-
useSuspense: false
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
Object.entries(resources).forEach(([locale, property]) => {
|
|
110
|
-
_i18next.default.addResourceBundle(locale, defaultNS, property);
|
|
111
|
-
});
|
|
112
|
-
const odysseyTranslate = exports.odysseyTranslate = _i18next.default.t.bind(_i18next.default);
|
|
113
|
-
//# sourceMappingURL=i18n.cjs.map
|
package/dist/cjs/i18n.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.cjs","names":["_i18next","_interopRequireDefault","require","_reactI18next","_odysseyReactMui_cs","_odysseyReactMui_da","_odysseyReactMui_de","_odysseyReactMui_el","_odysseyReactMui_es","_odysseyReactMui_fi","_odysseyReactMui_fr","_odysseyReactMui_ht","_odysseyReactMui_hu","_odysseyReactMui_id","_odysseyReactMui_it","_odysseyReactMui_ja","_odysseyReactMui_ko","_odysseyReactMui_ms","_odysseyReactMui_nb","_odysseyReactMui_nl_NL","_odysseyReactMui_ok_PL","_odysseyReactMui_ok_SK","_odysseyReactMui_pl","_odysseyReactMui_pt_BR","_odysseyReactMui_ro","_odysseyReactMui_ru","_odysseyReactMui_sv","_odysseyReactMui_th","_odysseyReactMui_tr","_odysseyReactMui_uk","_odysseyReactMui_vi","_odysseyReactMui_zh_CN","_odysseyReactMui_zh_TW","_odysseyReactMui","e","__esModule","default","defaultLNG","exports","defaultNS","keySeparator","resources","cs","da","de","el","en","es","fi","fr","ht","hu","id","it","ja","ko","ms","nb","nl_NL","nlNL","ok_PL","okPL","ok_SK","okSK","pl","pt_BR","ptBR","ro","ru","sv","th","tr","uk","vi","zh_CN","zhCN","zh_TW","znTW","i18n","use","initReactI18next","init","ns","fallbackLng","load","interpolation","escapeValue","skipOnVariables","react","bindI18nStore","useSuspense","Object","entries","forEach","locale","property","addResourceBundle","odysseyTranslate","t","bind"],"sources":["../../src/i18n.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport { translation as cs } from \"./properties/ts/odyssey-react-mui_cs.js\";\nimport { translation as da } from \"./properties/ts/odyssey-react-mui_da.js\";\nimport { translation as de } from \"./properties/ts/odyssey-react-mui_de.js\";\nimport { translation as el } from \"./properties/ts/odyssey-react-mui_el.js\";\nimport { translation as es } from \"./properties/ts/odyssey-react-mui_es.js\";\nimport { translation as fi } from \"./properties/ts/odyssey-react-mui_fi.js\";\nimport { translation as fr } from \"./properties/ts/odyssey-react-mui_fr.js\";\nimport { translation as ht } from \"./properties/ts/odyssey-react-mui_ht.js\";\nimport { translation as hu } from \"./properties/ts/odyssey-react-mui_hu.js\";\nimport { translation as id } from \"./properties/ts/odyssey-react-mui_id.js\";\nimport { translation as it } from \"./properties/ts/odyssey-react-mui_it.js\";\nimport { translation as ja } from \"./properties/ts/odyssey-react-mui_ja.js\";\nimport { translation as ko } from \"./properties/ts/odyssey-react-mui_ko.js\";\nimport { translation as ms } from \"./properties/ts/odyssey-react-mui_ms.js\";\nimport { translation as nb } from \"./properties/ts/odyssey-react-mui_nb.js\";\nimport { translation as nlNL } from \"./properties/ts/odyssey-react-mui_nl_NL.js\";\nimport { translation as okPL } from \"./properties/ts/odyssey-react-mui_ok_PL.js\";\nimport { translation as okSK } from \"./properties/ts/odyssey-react-mui_ok_SK.js\";\nimport { translation as pl } from \"./properties/ts/odyssey-react-mui_pl.js\";\nimport { translation as ptBR } from \"./properties/ts/odyssey-react-mui_pt_BR.js\";\nimport { translation as ro } from \"./properties/ts/odyssey-react-mui_ro.js\";\nimport { translation as ru } from \"./properties/ts/odyssey-react-mui_ru.js\";\nimport { translation as sv } from \"./properties/ts/odyssey-react-mui_sv.js\";\nimport { translation as th } from \"./properties/ts/odyssey-react-mui_th.js\";\nimport { translation as tr } from \"./properties/ts/odyssey-react-mui_tr.js\";\nimport { translation as uk } from \"./properties/ts/odyssey-react-mui_uk.js\";\nimport { translation as vi } from \"./properties/ts/odyssey-react-mui_vi.js\";\nimport { translation as zhCN } from \"./properties/ts/odyssey-react-mui_zh_CN.js\";\nimport { translation as znTW } from \"./properties/ts/odyssey-react-mui_zh_TW.js\";\nimport { translation as en } from \"./properties/ts/odyssey-react-mui.js\";\n\nexport const defaultLNG = \"en\";\nexport const defaultNS = \"odyssey\";\nexport const keySeparator = false;\n\n// Note: This is type \"string\" to allow translation overrides from other languages\nexport type I18nResources = Record<string, Partial<typeof en>>;\n\nexport const resources = {\n cs,\n da,\n de,\n el,\n en,\n es,\n fi,\n fr,\n ht,\n hu,\n id,\n it,\n ja,\n ko,\n ms,\n nb,\n nl_NL: nlNL,\n ok_PL: okPL,\n ok_SK: okSK,\n pl,\n pt_BR: ptBR,\n ro,\n ru,\n sv,\n th,\n tr,\n uk,\n vi,\n zh_CN: zhCN,\n zh_TW: znTW,\n} as const satisfies Record<string, Partial<typeof en>>;\n\n// eslint-disable-next-line import/no-named-as-default-member\ni18n.use(initReactI18next).init({\n defaultNS,\n ns: [defaultNS],\n fallbackLng: defaultLNG,\n load: \"currentOnly\",\n keySeparator,\n interpolation: {\n escapeValue: false, // react already safe from xss\n skipOnVariables: false, // to handle translations that use nesting\n },\n react: {\n bindI18nStore: \"added\",\n useSuspense: false,\n },\n} as const);\n\nObject.entries(resources).forEach(([locale, property]) => {\n i18n.addResourceBundle(locale, defaultNS, property);\n});\n\n// eslint-disable-next-line import/no-named-as-default-member\nexport const odysseyTranslate = i18n.t.bind(i18n);\nexport { i18n };\n"],"mappings":";;;;;;;;;;;;;AAYA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AACA,IAAAS,mBAAA,GAAAT,OAAA;AACA,IAAAU,mBAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AACA,IAAAa,mBAAA,GAAAb,OAAA;AACA,IAAAc,mBAAA,GAAAd,OAAA;AACA,IAAAe,mBAAA,GAAAf,OAAA;AACA,IAAAgB,mBAAA,GAAAhB,OAAA;AACA,IAAAiB,sBAAA,GAAAjB,OAAA;AACA,IAAAkB,sBAAA,GAAAlB,OAAA;AACA,IAAAmB,sBAAA,GAAAnB,OAAA;AACA,IAAAoB,mBAAA,GAAApB,OAAA;AACA,IAAAqB,sBAAA,GAAArB,OAAA;AACA,IAAAsB,mBAAA,GAAAtB,OAAA;AACA,IAAAuB,mBAAA,GAAAvB,OAAA;AACA,IAAAwB,mBAAA,GAAAxB,OAAA;AACA,IAAAyB,mBAAA,GAAAzB,OAAA;AACA,IAAA0B,mBAAA,GAAA1B,OAAA;AACA,IAAA2B,mBAAA,GAAA3B,OAAA;AACA,IAAA4B,mBAAA,GAAA5B,OAAA;AACA,IAAA6B,sBAAA,GAAA7B,OAAA;AACA,IAAA8B,sBAAA,GAAA9B,OAAA;AACA,IAAA+B,gBAAA,GAAA/B,OAAA;AAAyE,SAAAD,uBAAAiC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA5CzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoCO,MAAMG,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAI;AACvB,MAAME,SAAS,GAAAD,OAAA,CAAAC,SAAA,GAAG,SAAS;AAC3B,MAAMC,YAAY,GAAAF,OAAA,CAAAE,YAAA,GAAG,KAAK;AAK1B,MAAMC,SAAS,GAAAH,OAAA,CAAAG,SAAA,GAAG;EACvBC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,4BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,KAAK,EAAEC,kCAAI;EACXC,KAAK,EAAEC,kCAAI;EACXC,KAAK,EAAEC,kCAAI;EACXC,EAAE,EAAFA,+BAAE;EACFC,KAAK,EAAEC,kCAAI;EACXC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,EAAE,EAAFA,+BAAE;EACFC,KAAK,EAAEC,kCAAI;EACXC,KAAK,EAAEC;AACT,CAAuD;AAGvDC,gBAAI,CAACC,GAAG,CAACC,8BAAgB,CAAC,CAACC,IAAI,CAAC;EAC9B1C,SAAS;EACT2C,EAAE,EAAE,CAAC3C,SAAS,CAAC;EACf4C,WAAW,EAAE9C,UAAU;EACvB+C,IAAI,EAAE,aAAa;EACnB5C,YAAY;EACZ6C,aAAa,EAAE;IACbC,WAAW,EAAE,KAAK;IAClBC,eAAe,EAAE;EACnB,CAAC;EACDC,KAAK,EAAE;IACLC,aAAa,EAAE,OAAO;IACtBC,WAAW,EAAE;EACf;AACF,CAAU,CAAC;AAEXC,MAAM,CAACC,OAAO,CAACnD,SAAS,CAAC,CAACoD,OAAO,CAAC,CAAC,CAACC,MAAM,EAAEC,QAAQ,CAAC,KAAK;EACxDjB,gBAAI,CAACkB,iBAAiB,CAACF,MAAM,EAAEvD,SAAS,EAAEwD,QAAQ,CAAC;AACrD,CAAC,CAAC;AAGK,MAAME,gBAAgB,GAAA3D,OAAA,CAAA2D,gBAAA,GAAGnB,gBAAI,CAACoB,CAAC,CAACC,IAAI,CAACrB,gBAAI,CAAC","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _shadowDom = require("./shadow-dom.cjs");
|
|
7
|
-
Object.keys(_shadowDom).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _shadowDom[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _shadowDom[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["_shadowDom","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../src/shadow-dom/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./shadow-dom.js\";\n"],"mappings":";;;;;AAYA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadow-dom.cjs","names":["_createReactRootElements","require","createShadowDomElements","containerElement","shadowRoot","attachShadow","mode","appRootElement","stylesRootElement","createReactRootElements","appendChild","emotionRootElement","shadowRootElement","exports","createShadowRootElement","document","createElement","setAttribute","window","cspNonce"],"sources":["../../../src/shadow-dom/shadow-dom.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createReactRootElements } from \"../web-component/createReactRootElements.js\";\n\n/**\n * @deprecated Use `renderReactInWebComponent` from `@okta/odyssey-react-mui/ui-shell` instead. This function was necessary when using bare Shadow DOM, but with UI Shell rendering in a Web Component, you won't be able to render your Shadow DOM in its Shadow DOM without using a Web Component.\n */\nexport const createShadowDomElements = (containerElement: HTMLElement) => {\n const shadowRoot = containerElement.attachShadow({ mode: \"open\" });\n\n // Container for Emotion `<style>` elements.\n const { appRootElement, stylesRootElement } = createReactRootElements();\n\n shadowRoot.appendChild(appRootElement);\n shadowRoot.appendChild(stylesRootElement);\n\n return {\n emotionRootElement: stylesRootElement,\n shadowRootElement: appRootElement,\n };\n};\n\n/**\n * @deprecated Use `createShadowDomElements` instead which returns an object instead of an array. It's otherwise the same.\n * @deprecated Ideally, use `renderReactInWebComponent` from `@okta/odyssey-react-mui/ui-shell` instead. This function was necessary when using bare Shadow DOM, but with UI Shell rendering in a Web Component, you won't be able to render your Shadow DOM in its Shadow DOM without using a Web Component. */\nexport const createShadowRootElement = (\n containerElement: HTMLElement,\n): [HTMLStyleElement, HTMLDivElement] => {\n const shadowRoot = containerElement.attachShadow({ mode: \"open\" });\n\n // the element that styles will be cached into\n const emotionRootElement = document.createElement(\"style\");\n emotionRootElement.setAttribute(\"id\", \"style-root\");\n emotionRootElement.setAttribute(\"nonce\", window.cspNonce);\n\n // the element that emotion renders html into\n const shadowRootElement = document.createElement(\"div\");\n shadowRootElement.setAttribute(\"id\", \"shadow-root\");\n\n shadowRoot.appendChild(emotionRootElement);\n shadowRoot.appendChild(shadowRootElement);\n\n return [emotionRootElement, shadowRootElement];\n};\n"],"mappings":";;;;;;AAYA,IAAAA,wBAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAOO,MAAMC,uBAAuB,GAAIC,gBAA6B,IAAK;EACxE,MAAMC,UAAU,GAAGD,gBAAgB,CAACE,YAAY,CAAC;IAAEC,IAAI,EAAE;EAAO,CAAC,CAAC;EAGlE,MAAM;IAAEC,cAAc;IAAEC;EAAkB,CAAC,GAAG,IAAAC,gDAAuB,EAAC,CAAC;EAEvEL,UAAU,CAACM,WAAW,CAACH,cAAc,CAAC;EACtCH,UAAU,CAACM,WAAW,CAACF,iBAAiB,CAAC;EAEzC,OAAO;IACLG,kBAAkB,EAAEH,iBAAiB;IACrCI,iBAAiB,EAAEL;EACrB,CAAC;AACH,CAAC;AAACM,OAAA,CAAAX,uBAAA,GAAAA,uBAAA;AAKK,MAAMY,uBAAuB,GAClCX,gBAA6B,IACU;EACvC,MAAMC,UAAU,GAAGD,gBAAgB,CAACE,YAAY,CAAC;IAAEC,IAAI,EAAE;EAAO,CAAC,CAAC;EAGlE,MAAMK,kBAAkB,GAAGI,QAAQ,CAACC,aAAa,CAAC,OAAO,CAAC;EAC1DL,kBAAkB,CAACM,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC;EACnDN,kBAAkB,CAACM,YAAY,CAAC,OAAO,EAAEC,MAAM,CAACC,QAAQ,CAAC;EAGzD,MAAMP,iBAAiB,GAAGG,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;EACvDJ,iBAAiB,CAACK,YAAY,CAAC,IAAI,EAAE,aAAa,CAAC;EAEnDb,UAAU,CAACM,WAAW,CAACC,kBAAkB,CAAC;EAC1CP,UAAU,CAACM,WAAW,CAACE,iBAAiB,CAAC;EAEzC,OAAO,CAACD,kBAAkB,EAAEC,iBAAiB,CAAC;AAChD,CAAC;AAACC,OAAA,CAAAC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bufferLatest.cjs","names":["_createStore","require","bufferLatest","publish","subscribe","store","createStore","isReactAppReadyForProps","unsubscribe","setState","getState","hasState","publishWhenReady","value","exports"],"sources":["../../../src/ui-shell/bufferLatest.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createStore } from \"./createStore.js\";\n\n/**\n * Buffers the values passed to a publisher, keeping only the latest value, until the subscriber emits.\n *\n * This is useful in restricting publishers from firing events until specific subscribers are active. Once active, the `publish` function reverts to its previous behavior.\n */\nexport const bufferLatest = <Value>({\n publish,\n subscribe,\n}: {\n /**\n * A function that publishes values to a subscriber, but not the same subscriber as the one passed to this function.\n *\n * Only the latest value published by this publisher is kept until the subscriber emits.\n */\n publish: (value: Value) => void;\n /**\n * A subscription that listens for emissions from a separate publisher.\n *\n * When that separate publisher emits, the latest value from the passed-in publish function is emitted as are all future values.\n */\n subscribe: (subscriber: () => void) => () => void;\n}) => {\n const store = createStore<{\n bufferedValue?: Value;\n isReactAppReadyForProps: boolean;\n }>({\n isReactAppReadyForProps: false,\n });\n\n const unsubscribe = subscribe(() => {\n unsubscribe();\n\n store.setState(\"isReactAppReadyForProps\", true);\n store.getState(\"bufferedValue\");\n if (store.hasState(\"bufferedValue\")) {\n // If we have a state, then the value in here is what we want. TypeScript expects this to possibly be `undefined` because the type we sent to `createStore` listed `bufferedValue` as optional. TypeScript doesn't seem to have any way of knowing we passed in the value at some point.\n publish(store.getState(\"bufferedValue\")!);\n }\n });\n\n const publishWhenReady: typeof publish = (value) => {\n if (store.getState(\"isReactAppReadyForProps\")) {\n publish(value);\n } else {\n store.setState(\"bufferedValue\", value);\n }\n };\n\n return publishWhenReady;\n};\n"],"mappings":";;;;;;AAYA,IAAAA,YAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GASO,MAAMC,YAAY,GAAGA,CAAQ;EAClCC,OAAO;EACPC;AAcF,CAAC,KAAK;EACJ,MAAMC,KAAK,GAAG,IAAAC,wBAAW,EAGtB;IACDC,uBAAuB,EAAE;EAC3B,CAAC,CAAC;EAEF,MAAMC,WAAW,GAAGJ,SAAS,CAAC,MAAM;IAClCI,WAAW,CAAC,CAAC;IAEbH,KAAK,CAACI,QAAQ,CAAC,yBAAyB,EAAE,IAAI,CAAC;IAC/CJ,KAAK,CAACK,QAAQ,CAAC,eAAe,CAAC;IAC/B,IAAIL,KAAK,CAACM,QAAQ,CAAC,eAAe,CAAC,EAAE;MAEnCR,OAAO,CAACE,KAAK,CAACK,QAAQ,CAAC,eAAe,CAAE,CAAC;IAC3C;EACF,CAAC,CAAC;EAEF,MAAME,gBAAgC,GAAIC,KAAK,IAAK;IAClD,IAAIR,KAAK,CAACK,QAAQ,CAAC,yBAAyB,CAAC,EAAE;MAC7CP,OAAO,CAACU,KAAK,CAAC;IAChB,CAAC,MAAM;MACLR,KAAK,CAACI,QAAQ,CAAC,eAAe,EAAEI,KAAK,CAAC;IACxC;EACF,CAAC;EAED,OAAOD,gBAAgB;AACzB,CAAC;AAACE,OAAA,CAAAZ,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createMessageBus.cjs","names":["createMessageBus","subscribers","Map","publish","message","Array","from","values","forEach","subscriber","subscribe","subscriberId","Symbol","set","delete","exports"],"sources":["../../../src/ui-shell/createMessageBus.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport type MessageHandler<Message> = (message: Message) => void;\n\nexport type PublishMessage<Message> = MessageHandler<Message>;\n\nexport type UnsubscribeMessageSubscription = () => void;\n\nexport type MessageSubscription<Message> = (\n subscriber: MessageHandler<Message>,\n) => UnsubscribeMessageSubscription;\n\nexport type MessageBus<Message> = {\n publish: PublishMessage<Message>;\n subscribe: MessageSubscription<Message>;\n};\n\n/**\n * Create a self-contained message bus that allows you to subscribe to events published by the publisher.\n */\nexport const createMessageBus = <Message = void>(): MessageBus<Message> => {\n const subscribers = new Map<symbol, MessageHandler<Message>>();\n\n const publish: PublishMessage<Message> = (message) => {\n Array.from(subscribers.values()).forEach((subscriber) => {\n subscriber(message);\n });\n };\n\n const subscribe: MessageSubscription<Message> = (subscriber) => {\n const subscriberId = Symbol();\n subscribers.set(subscriberId, subscriber);\n\n return () => {\n subscribers.delete(subscriberId);\n };\n };\n\n return {\n publish,\n subscribe,\n };\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAoBO,MAAMA,gBAAgB,GAAGA,CAAA,KAA2C;EACzE,MAAMC,WAAW,GAAG,IAAIC,GAAG,CAAkC,CAAC;EAE9D,MAAMC,OAAgC,GAAIC,OAAO,IAAK;IACpDC,KAAK,CAACC,IAAI,CAACL,WAAW,CAACM,MAAM,CAAC,CAAC,CAAC,CAACC,OAAO,CAAEC,UAAU,IAAK;MACvDA,UAAU,CAACL,OAAO,CAAC;IACrB,CAAC,CAAC;EACJ,CAAC;EAED,MAAMM,SAAuC,GAAID,UAAU,IAAK;IAC9D,MAAME,YAAY,GAAGC,MAAM,CAAC,CAAC;IAC7BX,WAAW,CAACY,GAAG,CAACF,YAAY,EAAEF,UAAU,CAAC;IAEzC,OAAO,MAAM;MACXR,WAAW,CAACa,MAAM,CAACH,YAAY,CAAC;IAClC,CAAC;EACH,CAAC;EAED,OAAO;IACLR,OAAO;IACPO;EACF,CAAC;AACH,CAAC;AAACK,OAAA,CAAAf,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createStore.cjs","names":["createStore","initialState","state","hasState","name","getState","setState","value","exports"],"sources":["../../../src/ui-shell/createStore.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Creates an internal state and gives access to those values via functions.\n *\n * It can be optionally given an initial state.\n */\nexport const createStore = <State extends object>(initialState?: State) => {\n const state = initialState || ({} as Partial<State>);\n\n const hasState = <Name extends keyof State>(name: Name) => name in state;\n\n const getState = <Name extends keyof State>(name: Name) => state[name];\n\n const setState = <Name extends keyof State>(\n name: Name,\n value: Required<State>[Name],\n ) => {\n state[name] = value;\n };\n\n return {\n getState,\n hasState,\n setState,\n };\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAOO,MAAMA,WAAW,GAA0BC,YAAoB,IAAK;EACzE,MAAMC,KAAK,GAAGD,YAAY,IAAK,CAAC,CAAoB;EAEpD,MAAME,QAAQ,GAA8BC,IAAU,IAAKA,IAAI,IAAIF,KAAK;EAExE,MAAMG,QAAQ,GAA8BD,IAAU,IAAKF,KAAK,CAACE,IAAI,CAAC;EAEtE,MAAME,QAAQ,GAAGA,CACfF,IAAU,EACVG,KAA4B,KACzB;IACHL,KAAK,CAACE,IAAI,CAAC,GAAGG,KAAK;EACrB,CAAC;EAED,OAAO;IACLF,QAAQ;IACRF,QAAQ;IACRG;EACF,CAAC;AACH,CAAC;AAACE,OAAA,CAAAR,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
-
*
|
|
5
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
10
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import "i18next";
|
|
14
|
-
//# sourceMappingURL=i18next.d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18next.d.js","names":[],"sources":["../../../src/@types/i18next.d.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport \"i18next\";\n\nimport { defaultNS, keySeparator, resources } from \"../i18n.js\";\n\ndeclare module \"i18next\" {\n interface CustomTypeOptions {\n defaultNS: typeof defaultNS;\n keySeparator: typeof keySeparator;\n resources: {\n odyssey: (typeof resources)[\"en\"];\n };\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAAS","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.js","names":[],"sources":["../../../src/@types/properties.d.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Copied this in from a PR that will hopefully get merged:\n * @see https://github.com/gagle/node-properties/pull/35\n */\ndeclare module \"properties\" {\n export interface ParseOptions {\n /**\n * Allows you to add additional comment tokens.\n * The token must be a single printable non-whitespae ascii character.\n * If the `strict` option is not set, the tokens `#` and `!` are parsed as comment tokens.\n *\n * @example\n * comments: \";\"\n * @example\n * comments: [\";\", \"@\"]\n */\n comments?: string | string[];\n\n /**\n * Files can be linked and imported with the include key.\n * If this option is used, the callback is mandatory.\n *\n * Look at the include section for further details.\n * @link https://www.npmjs.com/package/properties#include\n */\n include?: boolean;\n\n /**\n * Parses dot separated keys as JavaScript objects.\n *\n * Look at the namespaces section for further details.\n * @link https://www.npmjs.com/package/properties#namespaces\n */\n namespaces?: boolean;\n\n /**\n * By default `parse()` reads a String.\n * If you want to read a file, set this option to true.\n * If this option is used, the callback is mandatory.\n * It gets 2 parameters, a possible error and the object with all the properties.\n */\n path?: boolean;\n\n /**\n * Each property or section can be removed or modified from the final object.\n * It's similar to the reviver of the `JSON.parse()` function.\n *\n * The reviver it's exactly the same as the replacer from `stringify()`.\n * The same function can be reused.\n *\n * The callback gets 3 parameters: key, value and section.\n *\n * A property has a key and a value and can belong to a section.\n * If it's a global property, the section is set to null.\n * If **undefined** is returned, the property will be removed from the final object, otherwise the returned value will be used as the property value.\n *\n * If the key and the value are set to null, then it's a section line.\n * If it returns a falsy value, it won't be added to the final object, the entire section _including all the properties_ will be discarded.\n * If it returns a truthy value, the section is parsed.\n *\n * For your convenience, to know whether the line is a property or section you can access to `this.isProperty` and `this.isSection` from inside the replacer function.\n * Also, `this.assert()` can be used to return the default value, the unmodified value that will be used to parse the line.\n *\n * Look at the reviver example for further details.\n * @link https://github.com/gagle/node-properties/blob/master/examples/reviver/reviver.js\n */\n reviver?: (this: Context, key: any, value: any) => any;\n\n /**\n * Parses INI sections.\n * Read the INI section for further details.\n *\n * @link https://www.npmjs.com/package/properties#ini\n */\n sections?: boolean;\n\n /**\n * Allows you to add additional separator tokens.\n * The token must be a single printable non-whitespae ascii character.\n * If the `strict` option is not set, the tokens `=` and `:` are parsed as comment tokens.\n *\n * @example\n * separators: \"-\"\n * @example\n * separators: [\"-\", \">\"]\n */\n separators?: string | string[];\n\n /**\n * This option can be used with the `comments` and `separators` options.\n * If true, **only** the tokens specified in these options are used to parse comments and separators.\n */\n strict?: boolean;\n\n /**\n * Allows you to read the value of a key while the file is being parsed.\n *\n * Look at the variables section for further details.\n * @link https://www.npmjs.com/package/properties#variables\n */\n variables?: boolean;\n\n /**\n * External variables can be passed to the file if the variables option is enabled.\n *\n * Look at the variables section for further details.\n * @link https://www.npmjs.com/package/properties#variables\n */\n vars?: boolean;\n }\n\n export interface Context {\n assert(): any;\n }\n\n /**\n * Parses a .properties string.\n *\n * @param data\n * @param options\n */\n export function parse(data: string, options?: ParseOptions): object;\n\n /**\n * Parses a .properties string.\n *\n * If a callback is given, the result is returned as the second parameter. Some options will require a callback.\n *\n * @param data\n * @param cb\n */\n export function parse(\n data: string,\n cb: (err: Error, result: { [key: string]: unknown } | undefined) => void,\n ): void;\n\n /**\n * Parses a .properties string.\n *\n * If a callback is given, the result is returned as the second parameter. Some options will require a callback.\n *\n * @param data\n * @param options\n * @param cb\n */\n export function parse(\n data: string,\n options: ParseOptions | undefined,\n cb: (err: Error, result: { [key: string]: unknown } | undefined) => void,\n ): void;\n\n export interface StringifyOptions {\n /**\n * The token to use to write comments.\n * It must be a single printable non-whitespace ascii character.\n * @default `#`\n */\n comment?: string;\n\n /**\n * By default `stringify()` returns a string.\n * If you want to write it to a file, use this option and pass the path of a file.\n * If this option is used, the callback is mandatory.\n * It gets two parameters, a possible error and the string.\n */\n path?: string;\n\n /**\n * Each property or section can be removed or modified from the final string.\n * It's similar to the replacer of the `JSON.stringify()` function.\n *\n * The replacer it's exatcly the same as the reviver from `parse()`.\n * The same function can be reused.\n *\n * The callback gets three parameters: key, value and section.\n *\n * A property has a key and a value and can belong to a section.\n * If it's a global property, the section is set to null.\n * If **undefined** is returned, the property won't be stringified, otherwise the returned value will be used as the property value.\n *\n * If the key and the value are set to null, then it's a section line.\n * If it returns a falsy value, it won't be added to the final string, the entire section _including all the properties_ will be discarded.\n * If it returns a truthy value, the section is stringified.\n *\n * For your convenience, to know whether the line is a property or section you can access to `this.isProperty` and `this.isSection` from inside the replacer function.\n * Also, `this.assert()` can be used to return the default value, the unmodified value that will be used to stringify the line.\n *\n * Look at the replacer example for further details.\n * @link https://github.com/gagle/node-properties/blob/master/examples/replacer.js\n */\n replacer?: (this: Context, key: string, value: any) => any;\n\n /**\n * The token to use to separate keys from values.\n * It must be a single printable non-whitespace ascii character.\n * @default `=`\n */\n separator?: string;\n\n /**\n * The .properties specification uses iso 8859-1 (latin-1) as a default encoding.\n * In the other hand, Node.js has a utf8 default encoding.\n * This means that if you want a full compatibility with Java, that is, you are generating a .properties file that is going to be read by a Java program, then set this option to true.\n * This will encode all ascii extended and multibyte characters to their unicode string representation (`\\uXXXX`).\n *\n * Non-printable control codes (control sets 0 and 1) are always encoded as unicode strings except `\\t`, `\\n`, `\\f` and `\\r`.\n *\n * If you are in a platform that can handle utf8 strings, e.g. Node.js, you don't need to use this option.\n */\n unicode?: boolean;\n }\n\n /**\n * Stringifies an `object` or a `Stringifier`.\n *\n * If you don't need to add sections or comments simply pass an object, otherwise use a `Stringifier`.\n *\n * @param obj\n * @param options\n */\n export function stringify(obj: object, options?: StringifyOptions): string;\n\n /**\n * Stringifies an `object` or a `Stringifier`.\n *\n * If you don't need to add sections or comments simply pass an object, otherwise use a `Stringifier`.\n *\n * The callback is only necessary when the `path` option is used.\n *\n * @param obj\n * @param options\n * @param cb\n */\n export function stringify(\n obj: object,\n options: StringifyOptions | undefined,\n cb: (err: Error, result: string) => void,\n ): void;\n\n /**\n * This class is used when you want to add sections or comments to the final string.\n *\n * To create a Stringifier use the `createStringifier()` function.\n *\n * Look at the stringify-ini example for further details.\n * @link https://github.com/gagle/node-properties/blob/master/examples/ini/stringify-ini.js\n */\n export interface Stringifier {\n /**\n * Writes a header comment.\n * It will be written to the top of the final string.\n * Returns the Stringifier being used.\n */\n header(comment: string): this;\n\n /**\n * Writes a property line.\n * It takes an object with three options: `key`, `value` and comment.\n * Both the key and the value are converted into a string automatically.\n * Returns the Stringifier being used.\n */\n property(obj: { comment?: string; key?: string; value?: string }): this;\n\n /**\n * Writes a section line.\n * It gets an object with two options: `name` and `comment`.\n * The name is converted into a string.\n * If you don't need to write a comment, you can pass the name instead of an object.\n * Returns the stringifier being used.\n */\n section(obj: string | { comment?: string; name: string }): this;\n }\n\n /**\n * Returns a new `Stringifier` instance.\n */\n export function createStringifier(): Stringifier;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
-
*
|
|
5
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
10
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { useEffect } from "react";
|
|
14
|
-
import { I18nextProvider } from "react-i18next";
|
|
15
|
-
import { getTypedObjectKeys } from "./getTypedObjectKeys.js";
|
|
16
|
-
import { defaultNS, i18n, resources } from "./i18n.js";
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
export const odysseyI18nResourceKeysList = getTypedObjectKeys(resources["en"]);
|
|
19
|
-
const mergeBundleOverrides = (languageCode, translationOverrides) => {
|
|
20
|
-
const translationStringOverrides = translationOverrides[languageCode];
|
|
21
|
-
const translationStrings = languageCode in resources ? resources[languageCode] : {};
|
|
22
|
-
return {
|
|
23
|
-
...translationStrings,
|
|
24
|
-
...translationStringOverrides
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export const OdysseyTranslationProvider = ({
|
|
28
|
-
children,
|
|
29
|
-
languageCode,
|
|
30
|
-
translationOverrides
|
|
31
|
-
}) => {
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
i18n.changeLanguage(languageCode || window.navigator.language);
|
|
34
|
-
}, [languageCode]);
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
if (translationOverrides) {
|
|
37
|
-
getTypedObjectKeys(translationOverrides).forEach(language => {
|
|
38
|
-
const bundle = mergeBundleOverrides(language, translationOverrides);
|
|
39
|
-
i18n.addResourceBundle(language, defaultNS, bundle);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}, [translationOverrides]);
|
|
43
|
-
return _jsx(I18nextProvider, {
|
|
44
|
-
i18n: i18n,
|
|
45
|
-
children: children
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=OdysseyTranslationProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OdysseyTranslationProvider.js","names":["useEffect","I18nextProvider","getTypedObjectKeys","defaultNS","i18n","resources","jsx","_jsx","odysseyI18nResourceKeysList","mergeBundleOverrides","languageCode","translationOverrides","translationStringOverrides","translationStrings","OdysseyTranslationProvider","children","changeLanguage","window","navigator","language","forEach","bundle","addResourceBundle"],"sources":["../../src/OdysseyTranslationProvider.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { ReactNode, useEffect } from \"react\";\nimport { I18nextProvider } from \"react-i18next\";\n\nimport { getTypedObjectKeys } from \"./getTypedObjectKeys.js\";\nimport { defaultNS, i18n, resources } from \"./i18n.js\";\nimport { DefaultSupportedLanguages } from \"./OdysseyTranslationProvider.types.js\";\n\nexport type OdysseyI18nResourceKeys = (typeof resources)[\"en\"];\nexport const odysseyI18nResourceKeysList = getTypedObjectKeys(resources[\"en\"]);\n\nexport type TranslationOverrides<\n SupportedLanguages extends string = DefaultSupportedLanguages,\n> = Record<SupportedLanguages, Partial<OdysseyI18nResourceKeys>>;\n\nconst mergeBundleOverrides = <\n SupportedLanguages extends string = DefaultSupportedLanguages,\n>(\n languageCode: SupportedLanguages,\n translationOverrides: TranslationOverrides<SupportedLanguages>,\n) => {\n const translationStringOverrides = translationOverrides[languageCode];\n\n const translationStrings =\n languageCode in resources\n ? resources[languageCode as DefaultSupportedLanguages]\n : {};\n\n return {\n ...translationStrings,\n ...translationStringOverrides,\n };\n};\n\nexport type OdysseyTranslationProviderProps<\n SupportedLanguages extends string = DefaultSupportedLanguages,\n> = {\n children: ReactNode;\n languageCode?: SupportedLanguages | DefaultSupportedLanguages;\n translationOverrides?: TranslationOverrides<SupportedLanguages>;\n};\n\nexport const OdysseyTranslationProvider = <SupportedLanguages extends string>({\n children,\n languageCode,\n translationOverrides,\n}: OdysseyTranslationProviderProps<SupportedLanguages>) => {\n useEffect(() => {\n i18n.changeLanguage(languageCode || window.navigator.language);\n }, [languageCode]);\n\n useEffect(() => {\n if (translationOverrides) {\n getTypedObjectKeys(translationOverrides).forEach((language) => {\n const bundle = mergeBundleOverrides<SupportedLanguages>(\n language,\n translationOverrides,\n );\n i18n.addResourceBundle(language, defaultNS, bundle);\n });\n }\n }, [translationOverrides]);\n\n return <I18nextProvider i18n={i18n}>{children}</I18nextProvider>;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAoBA,SAAS,QAAQ,OAAO;AAC5C,SAASC,eAAe,QAAQ,eAAe;AAE/C,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,SAAS,EAAEC,IAAI,EAAEC,SAAS,QAAQ,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIvD,OAAO,MAAMC,2BAA2B,GAAGN,kBAAkB,CAACG,SAAS,CAAC,IAAI,CAAC,CAAC;AAM9E,MAAMI,oBAAoB,GAAGA,CAG3BC,YAAgC,EAChCC,oBAA8D,KAC3D;EACH,MAAMC,0BAA0B,GAAGD,oBAAoB,CAACD,YAAY,CAAC;EAErE,MAAMG,kBAAkB,GACtBH,YAAY,IAAIL,SAAS,GACrBA,SAAS,CAACK,YAAY,CAA8B,GACpD,CAAC,CAAC;EAER,OAAO;IACL,GAAGG,kBAAkB;IACrB,GAAGD;EACL,CAAC;AACH,CAAC;AAUD,OAAO,MAAME,0BAA0B,GAAGA,CAAoC;EAC5EC,QAAQ;EACRL,YAAY;EACZC;AACmD,CAAC,KAAK;EACzDX,SAAS,CAAC,MAAM;IACdI,IAAI,CAACY,cAAc,CAACN,YAAY,IAAIO,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAC;EAChE,CAAC,EAAE,CAACT,YAAY,CAAC,CAAC;EAElBV,SAAS,CAAC,MAAM;IACd,IAAIW,oBAAoB,EAAE;MACxBT,kBAAkB,CAACS,oBAAoB,CAAC,CAACS,OAAO,CAAED,QAAQ,IAAK;QAC7D,MAAME,MAAM,GAAGZ,oBAAoB,CACjCU,QAAQ,EACRR,oBACF,CAAC;QACDP,IAAI,CAACkB,iBAAiB,CAACH,QAAQ,EAAEhB,SAAS,EAAEkB,MAAM,CAAC;MACrD,CAAC,CAAC;IACJ;EACF,CAAC,EAAE,CAACV,oBAAoB,CAAC,CAAC;EAE1B,OAAOJ,IAAA,CAACN,eAAe;IAACG,IAAI,EAAEA,IAAK;IAAAW,QAAA,EAAEA;EAAQ,CAAkB,CAAC;AAClE,CAAC","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
-
*
|
|
5
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
10
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export const defaultSupportedLanguages = ["cs", "da", "de", "el", "en", "es", "fi", "fr", "ht", "hu", "id", "it", "ja", "ko", "ms", "nb", "nl_NL", "ok_PL", "ok_SK", "pl", "pt_BR", "ro", "ru", "sv", "th", "tr", "uk", "vi", "zh_CN", "zh_TW"];
|
|
14
|
-
//# sourceMappingURL=OdysseyTranslationProvider.types.js.map
|