@okta/odyssey-react-mui 1.70.1 → 1.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1100) hide show
  1. package/README.md +134 -20
  2. package/dist/cjs/@types/react-augment.d.cjs.map +1 -1
  3. package/dist/cjs/Accordion.cjs +1 -1
  4. package/dist/cjs/Accordion.cjs.map +1 -1
  5. package/dist/cjs/AnimationContext.cjs +1 -1
  6. package/dist/cjs/Autocomplete.cjs +1 -1
  7. package/dist/cjs/Autocomplete.cjs.map +1 -1
  8. package/dist/cjs/Badge.cjs +1 -1
  9. package/dist/cjs/Badge.cjs.map +1 -1
  10. package/dist/cjs/Banner.cjs +1 -1
  11. package/dist/cjs/Banner.cjs.map +1 -1
  12. package/dist/cjs/Box.cjs +1 -1
  13. package/dist/cjs/Box.cjs.map +1 -1
  14. package/dist/cjs/Breadcrumbs.cjs +1 -1
  15. package/dist/cjs/Breadcrumbs.cjs.map +1 -1
  16. package/dist/cjs/Buttons/BaseButton.cjs +4 -2
  17. package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
  18. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  19. package/dist/cjs/Buttons/BaseMenuButton.cjs.map +1 -1
  20. package/dist/cjs/Buttons/Button.cjs +1 -1
  21. package/dist/cjs/Buttons/Button.cjs.map +1 -1
  22. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  23. package/dist/cjs/Buttons/MenuButton.cjs.map +1 -1
  24. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  25. package/dist/cjs/Buttons/MenuItem.cjs.map +1 -1
  26. package/dist/cjs/Callout.cjs +1 -1
  27. package/dist/cjs/Callout.cjs.map +1 -1
  28. package/dist/cjs/Card.cjs +1 -1
  29. package/dist/cjs/Card.cjs.map +1 -1
  30. package/dist/cjs/CircularProgress.cjs +1 -1
  31. package/dist/cjs/CircularProgress.cjs.map +1 -1
  32. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  33. package/dist/cjs/ConditionalWrapper.cjs.map +1 -1
  34. package/dist/cjs/CssBaseline.cjs.map +1 -1
  35. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  36. package/dist/cjs/DataTable/DataTable.cjs.map +1 -1
  37. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  38. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  39. package/dist/cjs/DataTable/useRowReordering.cjs.map +1 -1
  40. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  41. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  42. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  43. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  44. package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
  45. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  46. package/dist/cjs/DatePickers/TimeZonePicker.cjs.map +1 -1
  47. package/dist/cjs/DatePickers/datePickerTheme.cjs +57 -27
  48. package/dist/cjs/DatePickers/datePickerTheme.cjs.map +1 -1
  49. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
  50. package/dist/cjs/Dialog.cjs +1 -1
  51. package/dist/cjs/Dialog.cjs.map +1 -1
  52. package/dist/cjs/Drawer.cjs +1 -1
  53. package/dist/cjs/Drawer.cjs.map +1 -1
  54. package/dist/cjs/EmptyState.cjs +1 -1
  55. package/dist/cjs/EmptyState.cjs.map +1 -1
  56. package/dist/cjs/ErrorMessageList.cjs +1 -1
  57. package/dist/cjs/Field.cjs +1 -1
  58. package/dist/cjs/FieldError.cjs +1 -1
  59. package/dist/cjs/FieldHint.cjs +1 -1
  60. package/dist/cjs/FieldLabel.cjs +1 -1
  61. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  62. package/dist/cjs/Fields/Checkbox.cjs.map +1 -1
  63. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  64. package/dist/cjs/Fields/CheckboxGroup.cjs.map +1 -1
  65. package/dist/cjs/Fields/Hint.cjs.map +1 -1
  66. package/dist/cjs/Fields/Radio.cjs +1 -1
  67. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  68. package/dist/cjs/Fields/RadioGroup.cjs.map +1 -1
  69. package/dist/cjs/Fieldset.cjs +1 -1
  70. package/dist/cjs/Fieldset.cjs.map +1 -1
  71. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  72. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  73. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  74. package/dist/cjs/FileUploader/FileUploader.cjs.map +1 -1
  75. package/dist/cjs/Form.cjs +1 -1
  76. package/dist/cjs/Form.cjs.map +1 -1
  77. package/dist/cjs/FormCheckedProps.cjs.map +1 -1
  78. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  79. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  80. package/dist/cjs/HintLink.cjs +1 -1
  81. package/dist/cjs/IconWithTooltip.cjs +1 -1
  82. package/dist/cjs/IconWithTooltip.cjs.map +1 -1
  83. package/dist/cjs/Link.cjs +1 -1
  84. package/dist/cjs/Link.cjs.map +1 -1
  85. package/dist/cjs/MuiPropsChild.cjs +1 -1
  86. package/dist/cjs/NativeSelect.cjs +1 -1
  87. package/dist/cjs/NativeSelect.cjs.map +1 -1
  88. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  89. package/dist/cjs/OdysseyCacheProvider.cjs.map +1 -1
  90. package/dist/cjs/OdysseyDesignTokensContext.cjs.map +1 -1
  91. package/dist/cjs/OdysseyProvider.cjs +1 -1
  92. package/dist/cjs/OdysseyProvider.cjs.map +1 -1
  93. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  94. package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
  95. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  96. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  97. package/dist/cjs/Pagination/Pagination.cjs.map +1 -1
  98. package/dist/cjs/PasswordField.cjs +1 -1
  99. package/dist/cjs/PasswordField.cjs.map +1 -1
  100. package/dist/cjs/ScreenReaderText.cjs +1 -1
  101. package/dist/cjs/ScreenReaderText.cjs.map +1 -1
  102. package/dist/cjs/SearchField.cjs +1 -1
  103. package/dist/cjs/SearchField.cjs.map +1 -1
  104. package/dist/cjs/Select.cjs +1 -1
  105. package/dist/cjs/Select.cjs.map +1 -1
  106. package/dist/cjs/Stack.cjs +1 -1
  107. package/dist/cjs/Stack.cjs.map +1 -1
  108. package/dist/cjs/Status.cjs +1 -1
  109. package/dist/cjs/Status.cjs.map +1 -1
  110. package/dist/cjs/Surface.cjs +1 -1
  111. package/dist/cjs/Surface.cjs.map +1 -1
  112. package/dist/cjs/Switch.cjs +2 -2
  113. package/dist/cjs/Switch.cjs.map +1 -1
  114. package/dist/cjs/Tabs.cjs +1 -1
  115. package/dist/cjs/Tabs.cjs.map +1 -1
  116. package/dist/cjs/Tag.cjs +1 -1
  117. package/dist/cjs/Tag.cjs.map +1 -1
  118. package/dist/cjs/TagList.cjs +1 -1
  119. package/dist/cjs/TagList.cjs.map +1 -1
  120. package/dist/cjs/TextField.cjs +1 -1
  121. package/dist/cjs/TextField.cjs.map +1 -1
  122. package/dist/cjs/Toast.cjs +1 -1
  123. package/dist/cjs/Toast.cjs.map +1 -1
  124. package/dist/cjs/ToastStack.cjs +1 -1
  125. package/dist/cjs/ToastStack.cjs.map +1 -1
  126. package/dist/cjs/Tooltip.cjs +1 -1
  127. package/dist/cjs/Tooltip.cjs.map +1 -1
  128. package/dist/cjs/Typography.cjs +12 -12
  129. package/dist/cjs/Typography.cjs.map +1 -1
  130. package/dist/cjs/__internal.cjs.map +1 -1
  131. package/dist/cjs/charts/BarChart.cjs +1 -1
  132. package/dist/cjs/charts/BarChart.cjs.map +1 -1
  133. package/dist/cjs/charts/LineChart.cjs +1 -1
  134. package/dist/cjs/charts/LineChart.cjs.map +1 -1
  135. package/dist/cjs/charts/components/ChartContainer.cjs.map +1 -1
  136. package/dist/cjs/charts/components/ChartError.cjs +1 -1
  137. package/dist/cjs/charts/components/ChartError.cjs.map +1 -1
  138. package/dist/cjs/charts/components/ChartFrame.cjs +1 -1
  139. package/dist/cjs/charts/components/ChartFrame.cjs.map +1 -1
  140. package/dist/cjs/charts/components/ChartPopoverContent.cjs +1 -1
  141. package/dist/cjs/charts/components/ChartPopoverContent.cjs.map +1 -1
  142. package/dist/cjs/charts/utils/chartTokens.cjs.map +1 -1
  143. package/dist/cjs/charts/utils/chartTypes.cjs.map +1 -1
  144. package/dist/cjs/charts/utils/formatChartValue.cjs.map +1 -1
  145. package/dist/cjs/charts/utils/getChartSeriesPointData.cjs.map +1 -1
  146. package/dist/cjs/charts/utils/hasDuplicateSeries.cjs.map +1 -1
  147. package/dist/cjs/charts/utils/resolveChartLocale.cjs.map +1 -1
  148. package/dist/cjs/charts/utils/useChartValueFormatter.cjs.map +1 -1
  149. package/dist/cjs/charts/utils/useStableValue.cjs.map +1 -1
  150. package/dist/cjs/createContrastColors.cjs.map +1 -1
  151. package/dist/cjs/createOdysseyStyledComponent.cjs.map +1 -1
  152. package/dist/cjs/fullscreen/FullscreenButton.cjs +55 -0
  153. package/dist/cjs/fullscreen/FullscreenButton.cjs.map +1 -0
  154. package/dist/cjs/fullscreen/FullscreenRegion.cjs +405 -0
  155. package/dist/cjs/fullscreen/FullscreenRegion.cjs.map +1 -0
  156. package/dist/cjs/fullscreen/easeFullscreenTransition.cjs +19 -0
  157. package/dist/cjs/fullscreen/easeFullscreenTransition.cjs.map +1 -0
  158. package/dist/cjs/fullscreen/getBackgroundColorBehindElement.cjs +60 -0
  159. package/dist/cjs/fullscreen/getBackgroundColorBehindElement.cjs.map +1 -0
  160. package/dist/cjs/fullscreen/useFullscreen.cjs +116 -0
  161. package/dist/cjs/fullscreen/useFullscreen.cjs.map +1 -0
  162. package/dist/cjs/fullscreen/useFullscreenId.cjs +21 -0
  163. package/dist/cjs/fullscreen/useFullscreenId.cjs.map +1 -0
  164. package/dist/cjs/getLogicalBoundaries.cjs.map +1 -1
  165. package/dist/cjs/icons.generated/Add.cjs +1 -1
  166. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  167. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  168. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  169. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  170. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  171. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  172. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  173. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  174. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  175. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  176. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  177. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  178. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  179. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  180. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  181. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  182. package/dist/cjs/icons.generated/Call.cjs +1 -1
  183. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  184. package/dist/cjs/icons.generated/Check.cjs +1 -1
  185. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  186. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  187. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  188. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  189. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  190. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  191. package/dist/cjs/icons.generated/Close.cjs +1 -1
  192. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  193. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  194. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  195. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  196. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  197. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  198. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  199. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  200. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  201. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  202. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  203. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  204. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  205. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  206. package/dist/cjs/icons.generated/Download.cjs +1 -1
  207. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  208. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  209. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  210. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  211. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  212. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  213. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  214. package/dist/cjs/icons.generated/FullscreenEnter.cjs +39 -0
  215. package/dist/cjs/icons.generated/FullscreenEnter.cjs.map +1 -0
  216. package/dist/cjs/icons.generated/FullscreenExit.cjs +39 -0
  217. package/dist/cjs/icons.generated/FullscreenExit.cjs.map +1 -0
  218. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  219. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  220. package/dist/cjs/icons.generated/Group.cjs +1 -1
  221. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  222. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  223. package/dist/cjs/icons.generated/Home.cjs +1 -1
  224. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  225. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  226. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  227. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  228. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  229. package/dist/cjs/icons.generated/Link.cjs +1 -1
  230. package/dist/cjs/icons.generated/List.cjs +1 -1
  231. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  232. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  233. package/dist/cjs/icons.generated/More.cjs +1 -1
  234. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  235. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  236. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  237. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  238. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  239. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  240. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  241. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  242. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  243. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  244. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  245. package/dist/cjs/icons.generated/Same.cjs +1 -1
  246. package/dist/cjs/icons.generated/Search.cjs +1 -1
  247. package/dist/cjs/icons.generated/Security.cjs +1 -1
  248. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  249. package/dist/cjs/icons.generated/Send.cjs +1 -1
  250. package/dist/cjs/icons.generated/Server.cjs +1 -1
  251. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  252. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  253. package/dist/cjs/icons.generated/Show.cjs +1 -1
  254. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  255. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  256. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  257. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  258. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  259. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  260. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  261. package/dist/cjs/icons.generated/User.cjs +1 -1
  262. package/dist/cjs/icons.generated/Video.cjs +1 -1
  263. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  264. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  265. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  266. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  267. package/dist/cjs/icons.generated/index.cjs +22 -0
  268. package/dist/cjs/icons.generated/index.cjs.map +1 -1
  269. package/dist/cjs/icons.generated/lazyIconDictionary.cjs +6 -0
  270. package/dist/cjs/icons.generated/lazyIconDictionary.cjs.map +1 -1
  271. package/dist/cjs/icons.generated/names.cjs +1 -1
  272. package/dist/cjs/icons.generated/names.cjs.map +1 -1
  273. package/dist/cjs/index.cjs +47 -0
  274. package/dist/cjs/index.cjs.map +1 -1
  275. package/dist/cjs/inputUtils.cjs.map +1 -1
  276. package/dist/cjs/labs/AppTile.cjs +1 -1
  277. package/dist/cjs/labs/AppTile.cjs.map +1 -1
  278. package/dist/cjs/labs/DataFilters.cjs +2 -2
  279. package/dist/cjs/labs/DataFilters.cjs.map +1 -1
  280. package/dist/cjs/labs/DataTable.cjs +1 -1
  281. package/dist/cjs/labs/DataTable.cjs.map +1 -1
  282. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  283. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  284. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs.map +1 -1
  285. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  286. package/dist/cjs/labs/DataView/CardLayoutContent.cjs.map +1 -1
  287. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  288. package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
  289. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  290. package/dist/cjs/labs/DataView/DataTable.cjs.map +1 -1
  291. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  292. package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
  293. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  294. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  295. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  296. package/dist/cjs/labs/DataView/RowActions.cjs.map +1 -1
  297. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  298. package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
  299. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  300. package/dist/cjs/labs/DataView/TableSettings.cjs.map +1 -1
  301. package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
  302. package/dist/cjs/labs/DataView/tableConstants.cjs.map +1 -1
  303. package/dist/cjs/labs/DataView/testSupportData.cjs.map +1 -1
  304. package/dist/cjs/labs/DataView/useFilterConversion.cjs.map +1 -1
  305. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  306. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +2 -2
  307. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
  308. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs +4 -4
  309. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs.map +1 -1
  310. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  311. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  312. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  313. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs.map +1 -1
  314. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  315. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  316. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  317. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  318. package/dist/cjs/labs/PageTemplate/Layout.cjs.map +1 -1
  319. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  320. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  321. package/dist/cjs/labs/StaticTable.cjs +1 -1
  322. package/dist/cjs/labs/UserProfile.cjs +1 -1
  323. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  324. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  325. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  326. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  327. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  328. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  329. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  330. package/dist/cjs/message-bus/createBrowserMessageBus.cjs +78 -0
  331. package/dist/cjs/message-bus/createBrowserMessageBus.cjs.map +1 -0
  332. package/dist/cjs/message-bus/createMessageChannel.cjs +38 -0
  333. package/dist/cjs/message-bus/createMessageChannel.cjs.map +1 -0
  334. package/dist/cjs/message-bus/fullscreen/createFullscreenId.cjs +24 -0
  335. package/dist/cjs/message-bus/fullscreen/createFullscreenId.cjs.map +1 -0
  336. package/dist/cjs/message-bus/fullscreen/createFullscreenModeHost.cjs +99 -0
  337. package/dist/cjs/message-bus/fullscreen/createFullscreenModeHost.cjs.map +1 -0
  338. package/dist/cjs/message-bus/fullscreen/createFullscreenModeMessageBus.cjs +76 -0
  339. package/dist/cjs/message-bus/fullscreen/createFullscreenModeMessageBus.cjs.map +1 -0
  340. package/dist/cjs/message-bus/fullscreen/fullscreenMessageChannel.cjs +35 -0
  341. package/dist/cjs/message-bus/fullscreen/fullscreenMessageChannel.cjs.map +1 -0
  342. package/dist/cjs/message-bus/fullscreen/fullscreenState.cjs +60 -0
  343. package/dist/cjs/message-bus/fullscreen/fullscreenState.cjs.map +1 -0
  344. package/dist/cjs/message-bus/fullscreen/watchElementDisconnection.cjs +51 -0
  345. package/dist/cjs/message-bus/fullscreen/watchElementDisconnection.cjs.map +1 -0
  346. package/dist/cjs/message-bus/index.cjs +111 -0
  347. package/dist/cjs/message-bus/index.cjs.map +1 -0
  348. package/dist/cjs/message-bus/messageGuards.cjs +23 -0
  349. package/dist/cjs/message-bus/messageGuards.cjs.map +1 -0
  350. package/dist/cjs/pendingDesignTokens/fullscreenTransitionTokens.cjs +21 -0
  351. package/dist/cjs/pendingDesignTokens/fullscreenTransitionTokens.cjs.map +1 -0
  352. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +4 -0
  353. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  354. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +4 -0
  355. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  356. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +4 -0
  357. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  358. package/dist/cjs/test-utils/appendToSandbox.cjs.map +1 -1
  359. package/dist/cjs/test-utils/getControlledElement.cjs.map +1 -1
  360. package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs.map +1 -1
  361. package/dist/cjs/test-utils/viewportTestSizes.cjs.map +1 -1
  362. package/dist/cjs/theme/components/Autocomplete.cjs.map +1 -1
  363. package/dist/cjs/theme/components/Button.cjs.map +1 -1
  364. package/dist/cjs/theme/components/CircularProgress.cjs.map +1 -1
  365. package/dist/cjs/theme/components/Drawer.cjs.map +1 -1
  366. package/dist/cjs/theme/components/Form.cjs.map +1 -1
  367. package/dist/cjs/theme/components/Input.cjs.map +1 -1
  368. package/dist/cjs/theme/components/Table.cjs.map +1 -1
  369. package/dist/cjs/theme/useAppElementContainerQuery.cjs.map +1 -1
  370. package/dist/cjs/theme/useContainerQuery.cjs.map +1 -1
  371. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  372. package/dist/cjs/tools/addSpecificity.cjs.map +1 -1
  373. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  374. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  375. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +32 -2
  376. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  377. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  378. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  379. package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
  380. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  381. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  382. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  383. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
  384. package/dist/cjs/ui-shell/SideNav/SideNavItemContentContext.cjs.map +1 -1
  385. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  386. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  387. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  388. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
  389. package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs.map +1 -1
  390. package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs.map +1 -1
  391. package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs.map +1 -1
  392. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  393. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  394. package/dist/cjs/ui-shell/SkipToContent.cjs.map +1 -1
  395. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  396. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  397. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  398. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  399. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs.map +1 -1
  400. package/dist/cjs/ui-shell/UiShell.cjs +11 -1
  401. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  402. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  403. package/dist/cjs/ui-shell/UiShellProvider.cjs.map +1 -1
  404. package/dist/cjs/ui-shell/WideUiShellContent.cjs +40 -1
  405. package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -1
  406. package/dist/cjs/ui-shell/createUiShellFullscreenState.cjs +66 -0
  407. package/dist/cjs/ui-shell/createUiShellFullscreenState.cjs.map +1 -0
  408. package/dist/cjs/ui-shell/renderUiShell.cjs +23 -0
  409. package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
  410. package/dist/cjs/ui-shell/uiShellContentTypes.cjs.map +1 -1
  411. package/dist/cjs/ui-shell/uiShellSharedConstants.cjs.map +1 -1
  412. package/dist/cjs/ui-shell/useFullscreenChromeCollapse.cjs +74 -0
  413. package/dist/cjs/ui-shell/useFullscreenChromeCollapse.cjs.map +1 -0
  414. package/dist/cjs/useContrastMode.cjs.map +1 -1
  415. package/dist/cjs/useStableCallback.cjs.map +1 -1
  416. package/dist/cjs/useThemeCache.cjs.map +1 -1
  417. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  418. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  419. package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
  420. package/dist/esm/@types/react-augment.d.js.map +1 -1
  421. package/dist/esm/Accordion.js +1 -1
  422. package/dist/esm/Accordion.js.map +1 -1
  423. package/dist/esm/AnimationContext.js +1 -1
  424. package/dist/esm/Autocomplete.js +1 -1
  425. package/dist/esm/Autocomplete.js.map +1 -1
  426. package/dist/esm/Badge.js +1 -1
  427. package/dist/esm/Badge.js.map +1 -1
  428. package/dist/esm/Banner.js +1 -1
  429. package/dist/esm/Banner.js.map +1 -1
  430. package/dist/esm/Box.js +1 -1
  431. package/dist/esm/Box.js.map +1 -1
  432. package/dist/esm/Breadcrumbs.js +1 -1
  433. package/dist/esm/Breadcrumbs.js.map +1 -1
  434. package/dist/esm/Buttons/BaseButton.js +4 -2
  435. package/dist/esm/Buttons/BaseButton.js.map +1 -1
  436. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  437. package/dist/esm/Buttons/BaseMenuButton.js.map +1 -1
  438. package/dist/esm/Buttons/Button.js +1 -1
  439. package/dist/esm/Buttons/Button.js.map +1 -1
  440. package/dist/esm/Buttons/MenuButton.js +1 -1
  441. package/dist/esm/Buttons/MenuButton.js.map +1 -1
  442. package/dist/esm/Buttons/MenuItem.js +1 -1
  443. package/dist/esm/Buttons/MenuItem.js.map +1 -1
  444. package/dist/esm/Callout.js +1 -1
  445. package/dist/esm/Callout.js.map +1 -1
  446. package/dist/esm/Card.js +1 -1
  447. package/dist/esm/Card.js.map +1 -1
  448. package/dist/esm/CircularProgress.js +1 -1
  449. package/dist/esm/CircularProgress.js.map +1 -1
  450. package/dist/esm/ConditionalWrapper.js +1 -1
  451. package/dist/esm/ConditionalWrapper.js.map +1 -1
  452. package/dist/esm/CssBaseline.js.map +1 -1
  453. package/dist/esm/DataTable/DataTable.js +1 -1
  454. package/dist/esm/DataTable/DataTable.js.map +1 -1
  455. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  456. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  457. package/dist/esm/DataTable/useRowReordering.js.map +1 -1
  458. package/dist/esm/DatePickers/DateField.js +1 -1
  459. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  460. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  461. package/dist/esm/DatePickers/DatePicker.js +1 -1
  462. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  463. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  464. package/dist/esm/DatePickers/TimeZonePicker.js.map +1 -1
  465. package/dist/esm/DatePickers/datePickerTheme.js +57 -27
  466. package/dist/esm/DatePickers/datePickerTheme.js.map +1 -1
  467. package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
  468. package/dist/esm/Dialog.js +1 -1
  469. package/dist/esm/Dialog.js.map +1 -1
  470. package/dist/esm/Drawer.js +1 -1
  471. package/dist/esm/Drawer.js.map +1 -1
  472. package/dist/esm/EmptyState.js +1 -1
  473. package/dist/esm/EmptyState.js.map +1 -1
  474. package/dist/esm/ErrorMessageList.js +1 -1
  475. package/dist/esm/Field.js +1 -1
  476. package/dist/esm/FieldError.js +1 -1
  477. package/dist/esm/FieldHint.js +1 -1
  478. package/dist/esm/FieldLabel.js +1 -1
  479. package/dist/esm/Fields/Checkbox.js +1 -1
  480. package/dist/esm/Fields/Checkbox.js.map +1 -1
  481. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  482. package/dist/esm/Fields/CheckboxGroup.js.map +1 -1
  483. package/dist/esm/Fields/Hint.js.map +1 -1
  484. package/dist/esm/Fields/Radio.js +1 -1
  485. package/dist/esm/Fields/RadioGroup.js +1 -1
  486. package/dist/esm/Fields/RadioGroup.js.map +1 -1
  487. package/dist/esm/Fieldset.js +1 -1
  488. package/dist/esm/Fieldset.js.map +1 -1
  489. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  490. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  491. package/dist/esm/FileUploader/FileUploader.js +1 -1
  492. package/dist/esm/FileUploader/FileUploader.js.map +1 -1
  493. package/dist/esm/Form.js +1 -1
  494. package/dist/esm/Form.js.map +1 -1
  495. package/dist/esm/FormCheckedProps.js.map +1 -1
  496. package/dist/esm/FullScreenOverlay.js +1 -1
  497. package/dist/esm/FullScreenOverlayContext.js +1 -1
  498. package/dist/esm/HintLink.js +1 -1
  499. package/dist/esm/IconWithTooltip.js +1 -1
  500. package/dist/esm/IconWithTooltip.js.map +1 -1
  501. package/dist/esm/Link.js +1 -1
  502. package/dist/esm/Link.js.map +1 -1
  503. package/dist/esm/MuiPropsChild.js +1 -1
  504. package/dist/esm/NativeSelect.js +1 -1
  505. package/dist/esm/NativeSelect.js.map +1 -1
  506. package/dist/esm/OdysseyCacheProvider.js +1 -1
  507. package/dist/esm/OdysseyCacheProvider.js.map +1 -1
  508. package/dist/esm/OdysseyDesignTokensContext.js.map +1 -1
  509. package/dist/esm/OdysseyProvider.js +1 -1
  510. package/dist/esm/OdysseyProvider.js.map +1 -1
  511. package/dist/esm/OdysseyThemeProvider.js +1 -1
  512. package/dist/esm/OdysseyThemeProvider.js.map +1 -1
  513. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  514. package/dist/esm/Pagination/Pagination.js +1 -1
  515. package/dist/esm/Pagination/Pagination.js.map +1 -1
  516. package/dist/esm/PasswordField.js +1 -1
  517. package/dist/esm/PasswordField.js.map +1 -1
  518. package/dist/esm/ScreenReaderText.js +1 -1
  519. package/dist/esm/ScreenReaderText.js.map +1 -1
  520. package/dist/esm/SearchField.js +1 -1
  521. package/dist/esm/SearchField.js.map +1 -1
  522. package/dist/esm/Select.js +1 -1
  523. package/dist/esm/Select.js.map +1 -1
  524. package/dist/esm/Stack.js +1 -1
  525. package/dist/esm/Stack.js.map +1 -1
  526. package/dist/esm/Status.js +1 -1
  527. package/dist/esm/Status.js.map +1 -1
  528. package/dist/esm/Surface.js +1 -1
  529. package/dist/esm/Surface.js.map +1 -1
  530. package/dist/esm/Switch.js +2 -2
  531. package/dist/esm/Switch.js.map +1 -1
  532. package/dist/esm/Tabs.js +1 -1
  533. package/dist/esm/Tabs.js.map +1 -1
  534. package/dist/esm/Tag.js +1 -1
  535. package/dist/esm/Tag.js.map +1 -1
  536. package/dist/esm/TagList.js +1 -1
  537. package/dist/esm/TagList.js.map +1 -1
  538. package/dist/esm/TextField.js +1 -1
  539. package/dist/esm/TextField.js.map +1 -1
  540. package/dist/esm/Toast.js +1 -1
  541. package/dist/esm/Toast.js.map +1 -1
  542. package/dist/esm/ToastStack.js +1 -1
  543. package/dist/esm/ToastStack.js.map +1 -1
  544. package/dist/esm/Tooltip.js +1 -1
  545. package/dist/esm/Tooltip.js.map +1 -1
  546. package/dist/esm/Typography.js +12 -12
  547. package/dist/esm/Typography.js.map +1 -1
  548. package/dist/esm/__internal.js.map +1 -1
  549. package/dist/esm/charts/BarChart.js +1 -1
  550. package/dist/esm/charts/BarChart.js.map +1 -1
  551. package/dist/esm/charts/LineChart.js +1 -1
  552. package/dist/esm/charts/LineChart.js.map +1 -1
  553. package/dist/esm/charts/components/ChartContainer.js.map +1 -1
  554. package/dist/esm/charts/components/ChartError.js +1 -1
  555. package/dist/esm/charts/components/ChartError.js.map +1 -1
  556. package/dist/esm/charts/components/ChartFrame.js +1 -1
  557. package/dist/esm/charts/components/ChartFrame.js.map +1 -1
  558. package/dist/esm/charts/components/ChartPopoverContent.js +1 -1
  559. package/dist/esm/charts/components/ChartPopoverContent.js.map +1 -1
  560. package/dist/esm/charts/utils/chartTokens.js.map +1 -1
  561. package/dist/esm/charts/utils/chartTypes.js.map +1 -1
  562. package/dist/esm/charts/utils/formatChartValue.js.map +1 -1
  563. package/dist/esm/charts/utils/getChartSeriesPointData.js.map +1 -1
  564. package/dist/esm/charts/utils/hasDuplicateSeries.js.map +1 -1
  565. package/dist/esm/charts/utils/resolveChartLocale.js.map +1 -1
  566. package/dist/esm/charts/utils/useChartValueFormatter.js.map +1 -1
  567. package/dist/esm/charts/utils/useStableValue.js.map +1 -1
  568. package/dist/esm/createContrastColors.js.map +1 -1
  569. package/dist/esm/createOdysseyStyledComponent.js.map +1 -1
  570. package/dist/esm/fullscreen/FullscreenButton.js +52 -0
  571. package/dist/esm/fullscreen/FullscreenButton.js.map +1 -0
  572. package/dist/esm/fullscreen/FullscreenRegion.js +402 -0
  573. package/dist/esm/fullscreen/FullscreenRegion.js.map +1 -0
  574. package/dist/esm/fullscreen/easeFullscreenTransition.js +12 -0
  575. package/dist/esm/fullscreen/easeFullscreenTransition.js.map +1 -0
  576. package/dist/esm/fullscreen/getBackgroundColorBehindElement.js +53 -0
  577. package/dist/esm/fullscreen/getBackgroundColorBehindElement.js.map +1 -0
  578. package/dist/esm/fullscreen/useFullscreen.js +110 -0
  579. package/dist/esm/fullscreen/useFullscreen.js.map +1 -0
  580. package/dist/esm/fullscreen/useFullscreenId.js +16 -0
  581. package/dist/esm/fullscreen/useFullscreenId.js.map +1 -0
  582. package/dist/esm/getLogicalBoundaries.js.map +1 -1
  583. package/dist/esm/icons.generated/Add.js +1 -1
  584. package/dist/esm/icons.generated/AddCircle.js +1 -1
  585. package/dist/esm/icons.generated/Apps.js +1 -1
  586. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  587. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  588. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  589. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  590. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  591. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  592. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  593. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  594. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  595. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  596. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  597. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  598. package/dist/esm/icons.generated/Bug.js +1 -1
  599. package/dist/esm/icons.generated/Calendar.js +1 -1
  600. package/dist/esm/icons.generated/Call.js +1 -1
  601. package/dist/esm/icons.generated/Chat.js +1 -1
  602. package/dist/esm/icons.generated/Check.js +1 -1
  603. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  604. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  605. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  606. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  607. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  608. package/dist/esm/icons.generated/Clock.js +1 -1
  609. package/dist/esm/icons.generated/Close.js +1 -1
  610. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  611. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  612. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  613. package/dist/esm/icons.generated/Copy.js +1 -1
  614. package/dist/esm/icons.generated/Customizations.js +1 -1
  615. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  616. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  617. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  618. package/dist/esm/icons.generated/Delete.js +1 -1
  619. package/dist/esm/icons.generated/Deny.js +1 -1
  620. package/dist/esm/icons.generated/Devices.js +1 -1
  621. package/dist/esm/icons.generated/Directory.js +1 -1
  622. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  623. package/dist/esm/icons.generated/Documentation.js +1 -1
  624. package/dist/esm/icons.generated/Download.js +1 -1
  625. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  626. package/dist/esm/icons.generated/Edit.js +1 -1
  627. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  628. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  629. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  630. package/dist/esm/icons.generated/Filter.js +1 -1
  631. package/dist/esm/icons.generated/Folder.js +1 -1
  632. package/dist/esm/icons.generated/FullscreenEnter.js +34 -0
  633. package/dist/esm/icons.generated/FullscreenEnter.js.map +1 -0
  634. package/dist/esm/icons.generated/FullscreenExit.js +34 -0
  635. package/dist/esm/icons.generated/FullscreenExit.js.map +1 -0
  636. package/dist/esm/icons.generated/Globe.js +1 -1
  637. package/dist/esm/icons.generated/Grid.js +1 -1
  638. package/dist/esm/icons.generated/Group.js +1 -1
  639. package/dist/esm/icons.generated/Happy.js +1 -1
  640. package/dist/esm/icons.generated/Hide.js +1 -1
  641. package/dist/esm/icons.generated/Home.js +1 -1
  642. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  643. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  644. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  645. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  646. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  647. package/dist/esm/icons.generated/Link.js +1 -1
  648. package/dist/esm/icons.generated/List.js +1 -1
  649. package/dist/esm/icons.generated/Lock.js +1 -1
  650. package/dist/esm/icons.generated/Menu.js +1 -1
  651. package/dist/esm/icons.generated/More.js +1 -1
  652. package/dist/esm/icons.generated/Neutral.js +1 -1
  653. package/dist/esm/icons.generated/Notification.js +1 -1
  654. package/dist/esm/icons.generated/Pause.js +1 -1
  655. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  656. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  657. package/dist/esm/icons.generated/Refresh.js +1 -1
  658. package/dist/esm/icons.generated/Reports.js +1 -1
  659. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  660. package/dist/esm/icons.generated/Reset.js +1 -1
  661. package/dist/esm/icons.generated/Resume.js +1 -1
  662. package/dist/esm/icons.generated/Sad.js +1 -1
  663. package/dist/esm/icons.generated/Same.js +1 -1
  664. package/dist/esm/icons.generated/Search.js +1 -1
  665. package/dist/esm/icons.generated/Security.js +1 -1
  666. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  667. package/dist/esm/icons.generated/Send.js +1 -1
  668. package/dist/esm/icons.generated/Server.js +1 -1
  669. package/dist/esm/icons.generated/Settings.js +1 -1
  670. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  671. package/dist/esm/icons.generated/Show.js +1 -1
  672. package/dist/esm/icons.generated/Sparkle.js +1 -1
  673. package/dist/esm/icons.generated/Subtract.js +1 -1
  674. package/dist/esm/icons.generated/Sync.js +1 -1
  675. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  676. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  677. package/dist/esm/icons.generated/Unlock.js +1 -1
  678. package/dist/esm/icons.generated/Upload.js +1 -1
  679. package/dist/esm/icons.generated/User.js +1 -1
  680. package/dist/esm/icons.generated/Video.js +1 -1
  681. package/dist/esm/icons.generated/Warning.js +1 -1
  682. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  683. package/dist/esm/icons.generated/Workflows.js +1 -1
  684. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  685. package/dist/esm/icons.generated/index.js +2 -0
  686. package/dist/esm/icons.generated/index.js.map +1 -1
  687. package/dist/esm/icons.generated/lazyIconDictionary.js +6 -0
  688. package/dist/esm/icons.generated/lazyIconDictionary.js.map +1 -1
  689. package/dist/esm/icons.generated/names.js +1 -1
  690. package/dist/esm/icons.generated/names.js.map +1 -1
  691. package/dist/esm/index.js +5 -0
  692. package/dist/esm/index.js.map +1 -1
  693. package/dist/esm/inputUtils.js.map +1 -1
  694. package/dist/esm/labs/AppTile.js +1 -1
  695. package/dist/esm/labs/AppTile.js.map +1 -1
  696. package/dist/esm/labs/DataFilters.js +2 -2
  697. package/dist/esm/labs/DataFilters.js.map +1 -1
  698. package/dist/esm/labs/DataTable.js +1 -1
  699. package/dist/esm/labs/DataTable.js.map +1 -1
  700. package/dist/esm/labs/DataTablePagination.js +1 -1
  701. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  702. package/dist/esm/labs/DataView/BulkActionsMenu.js.map +1 -1
  703. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  704. package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
  705. package/dist/esm/labs/DataView/DataCard.js +1 -1
  706. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  707. package/dist/esm/labs/DataView/DataTable.js +1 -1
  708. package/dist/esm/labs/DataView/DataTable.js.map +1 -1
  709. package/dist/esm/labs/DataView/DataView.js +1 -1
  710. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  711. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  712. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  713. package/dist/esm/labs/DataView/RowActions.js +1 -1
  714. package/dist/esm/labs/DataView/RowActions.js.map +1 -1
  715. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  716. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  717. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  718. package/dist/esm/labs/DataView/TableSettings.js.map +1 -1
  719. package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
  720. package/dist/esm/labs/DataView/tableConstants.js.map +1 -1
  721. package/dist/esm/labs/DataView/testSupportData.js.map +1 -1
  722. package/dist/esm/labs/DataView/useFilterConversion.js.map +1 -1
  723. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  724. package/dist/esm/labs/DatePickers/DateTimePicker.js +2 -2
  725. package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
  726. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js +4 -4
  727. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js.map +1 -1
  728. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  729. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  730. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  731. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js.map +1 -1
  732. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  733. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  734. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  735. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  736. package/dist/esm/labs/PageTemplate/Layout.js.map +1 -1
  737. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  738. package/dist/esm/labs/PaginatedTable.js +1 -1
  739. package/dist/esm/labs/StaticTable.js +1 -1
  740. package/dist/esm/labs/UserProfile.js +1 -1
  741. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  742. package/dist/esm/logos.generated/Duo.js +1 -1
  743. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  744. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  745. package/dist/esm/logos.generated/Persona.js +1 -1
  746. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  747. package/dist/esm/logos.generated/Yubikey.js +1 -1
  748. package/dist/esm/message-bus/createBrowserMessageBus.js +72 -0
  749. package/dist/esm/message-bus/createBrowserMessageBus.js.map +1 -0
  750. package/dist/esm/message-bus/createMessageChannel.js +33 -0
  751. package/dist/esm/message-bus/createMessageChannel.js.map +1 -0
  752. package/dist/esm/message-bus/fullscreen/createFullscreenId.js +18 -0
  753. package/dist/esm/message-bus/fullscreen/createFullscreenId.js.map +1 -0
  754. package/dist/esm/message-bus/fullscreen/createFullscreenModeHost.js +92 -0
  755. package/dist/esm/message-bus/fullscreen/createFullscreenModeHost.js.map +1 -0
  756. package/dist/esm/message-bus/fullscreen/createFullscreenModeMessageBus.js +69 -0
  757. package/dist/esm/message-bus/fullscreen/createFullscreenModeMessageBus.js.map +1 -0
  758. package/dist/esm/message-bus/fullscreen/fullscreenMessageChannel.js +29 -0
  759. package/dist/esm/message-bus/fullscreen/fullscreenMessageChannel.js.map +1 -0
  760. package/dist/esm/message-bus/fullscreen/fullscreenState.js +46 -0
  761. package/dist/esm/message-bus/fullscreen/fullscreenState.js.map +1 -0
  762. package/dist/esm/message-bus/fullscreen/watchElementDisconnection.js +44 -0
  763. package/dist/esm/message-bus/fullscreen/watchElementDisconnection.js.map +1 -0
  764. package/dist/esm/message-bus/index.js +22 -0
  765. package/dist/esm/message-bus/index.js.map +1 -0
  766. package/dist/esm/message-bus/messageGuards.js +14 -0
  767. package/dist/esm/message-bus/messageGuards.js.map +1 -0
  768. package/dist/esm/pendingDesignTokens/fullscreenTransitionTokens.js +15 -0
  769. package/dist/esm/pendingDesignTokens/fullscreenTransitionTokens.js.map +1 -0
  770. package/dist/esm/properties/ts/odyssey-react-mui.js +4 -0
  771. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  772. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +4 -0
  773. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  774. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +4 -0
  775. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  776. package/dist/esm/test-utils/appendToSandbox.js.map +1 -1
  777. package/dist/esm/test-utils/getControlledElement.js.map +1 -1
  778. package/dist/esm/test-utils/renderWithOdysseyProvider.js.map +1 -1
  779. package/dist/esm/test-utils/viewportTestSizes.js.map +1 -1
  780. package/dist/esm/theme/components/Autocomplete.js.map +1 -1
  781. package/dist/esm/theme/components/Button.js.map +1 -1
  782. package/dist/esm/theme/components/CircularProgress.js.map +1 -1
  783. package/dist/esm/theme/components/Drawer.js.map +1 -1
  784. package/dist/esm/theme/components/Form.js.map +1 -1
  785. package/dist/esm/theme/components/Input.js.map +1 -1
  786. package/dist/esm/theme/components/Table.js.map +1 -1
  787. package/dist/esm/theme/useAppElementContainerQuery.js.map +1 -1
  788. package/dist/esm/theme/useContainerQuery.js.map +1 -1
  789. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  790. package/dist/esm/tools/addSpecificity.js.map +1 -1
  791. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  792. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  793. package/dist/esm/ui-shell/NarrowUiShellContent.js +32 -2
  794. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  795. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  796. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  797. package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
  798. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  799. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  800. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  801. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
  802. package/dist/esm/ui-shell/SideNav/SideNavItemContentContext.js.map +1 -1
  803. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  804. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  805. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  806. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
  807. package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js.map +1 -1
  808. package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js.map +1 -1
  809. package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js.map +1 -1
  810. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  811. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  812. package/dist/esm/ui-shell/SkipToContent.js.map +1 -1
  813. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  814. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  815. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  816. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  817. package/dist/esm/ui-shell/TopNav/TopNavListItem.js.map +1 -1
  818. package/dist/esm/ui-shell/UiShell.js +11 -1
  819. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  820. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  821. package/dist/esm/ui-shell/UiShellProvider.js.map +1 -1
  822. package/dist/esm/ui-shell/WideUiShellContent.js +40 -1
  823. package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -1
  824. package/dist/esm/ui-shell/createUiShellFullscreenState.js +61 -0
  825. package/dist/esm/ui-shell/createUiShellFullscreenState.js.map +1 -0
  826. package/dist/esm/ui-shell/renderUiShell.js +23 -0
  827. package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
  828. package/dist/esm/ui-shell/uiShellContentTypes.js.map +1 -1
  829. package/dist/esm/ui-shell/uiShellSharedConstants.js.map +1 -1
  830. package/dist/esm/ui-shell/useFullscreenChromeCollapse.js +69 -0
  831. package/dist/esm/ui-shell/useFullscreenChromeCollapse.js.map +1 -0
  832. package/dist/esm/useContrastMode.js.map +1 -1
  833. package/dist/esm/useStableCallback.js.map +1 -1
  834. package/dist/esm/useThemeCache.js.map +1 -1
  835. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  836. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  837. package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
  838. package/dist/tsconfig.production.tsbuildinfo +1 -1
  839. package/dist/types/Accordion.d.ts.map +1 -1
  840. package/dist/types/Autocomplete.d.ts +5 -17
  841. package/dist/types/Autocomplete.d.ts.map +1 -1
  842. package/dist/types/Badge.d.ts.map +1 -1
  843. package/dist/types/Banner.d.ts.map +1 -1
  844. package/dist/types/Box.d.ts.map +1 -1
  845. package/dist/types/Breadcrumbs.d.ts +4 -8
  846. package/dist/types/Breadcrumbs.d.ts.map +1 -1
  847. package/dist/types/Buttons/BaseButton.d.ts +4 -8
  848. package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
  849. package/dist/types/Buttons/BaseMenuButton.d.ts +1 -2
  850. package/dist/types/Buttons/BaseMenuButton.d.ts.map +1 -1
  851. package/dist/types/Buttons/Button.d.ts.map +1 -1
  852. package/dist/types/Buttons/MenuButton.d.ts.map +1 -1
  853. package/dist/types/Buttons/MenuItem.d.ts.map +1 -1
  854. package/dist/types/Callout.d.ts.map +1 -1
  855. package/dist/types/Card.d.ts.map +1 -1
  856. package/dist/types/CircularProgress.d.ts +1 -2
  857. package/dist/types/CircularProgress.d.ts.map +1 -1
  858. package/dist/types/ConditionalWrapper.d.ts +1 -2
  859. package/dist/types/ConditionalWrapper.d.ts.map +1 -1
  860. package/dist/types/CssBaseline.d.ts +1 -2
  861. package/dist/types/CssBaseline.d.ts.map +1 -1
  862. package/dist/types/DataTable/DataTable.d.ts +9 -19
  863. package/dist/types/DataTable/DataTable.d.ts.map +1 -1
  864. package/dist/types/DataTable/useRowReordering.d.ts.map +1 -1
  865. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  866. package/dist/types/DatePickers/TimeZonePicker.d.ts +1 -2
  867. package/dist/types/DatePickers/TimeZonePicker.d.ts.map +1 -1
  868. package/dist/types/DatePickers/datePickerTheme.d.ts.map +1 -1
  869. package/dist/types/DatePickers/useOdysseyDateFields.d.ts +4 -8
  870. package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
  871. package/dist/types/Dialog.d.ts +5 -10
  872. package/dist/types/Dialog.d.ts.map +1 -1
  873. package/dist/types/Drawer.d.ts +4 -9
  874. package/dist/types/Drawer.d.ts.map +1 -1
  875. package/dist/types/EmptyState.d.ts.map +1 -1
  876. package/dist/types/Fields/Checkbox.d.ts.map +1 -1
  877. package/dist/types/Fields/CheckboxGroup.d.ts.map +1 -1
  878. package/dist/types/Fields/Hint.d.ts.map +1 -1
  879. package/dist/types/Fields/RadioGroup.d.ts.map +1 -1
  880. package/dist/types/Fieldset.d.ts.map +1 -1
  881. package/dist/types/FileUploader/FileUploader.d.ts +2 -4
  882. package/dist/types/FileUploader/FileUploader.d.ts.map +1 -1
  883. package/dist/types/Form.d.ts +6 -13
  884. package/dist/types/Form.d.ts.map +1 -1
  885. package/dist/types/FormCheckedProps.d.ts +4 -8
  886. package/dist/types/FormCheckedProps.d.ts.map +1 -1
  887. package/dist/types/IconWithTooltip.d.ts.map +1 -1
  888. package/dist/types/Link.d.ts.map +1 -1
  889. package/dist/types/NativeSelect.d.ts +2 -4
  890. package/dist/types/NativeSelect.d.ts.map +1 -1
  891. package/dist/types/OdysseyCacheProvider.d.ts +5 -11
  892. package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
  893. package/dist/types/OdysseyDesignTokensContext.d.ts.map +1 -1
  894. package/dist/types/OdysseyProvider.d.ts +1 -2
  895. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  896. package/dist/types/OdysseyThemeProvider.d.ts +1 -2
  897. package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
  898. package/dist/types/Pagination/Pagination.d.ts +1 -2
  899. package/dist/types/Pagination/Pagination.d.ts.map +1 -1
  900. package/dist/types/PasswordField.d.ts +2 -14
  901. package/dist/types/PasswordField.d.ts.map +1 -1
  902. package/dist/types/ScreenReaderText.d.ts +1 -2
  903. package/dist/types/ScreenReaderText.d.ts.map +1 -1
  904. package/dist/types/SearchField.d.ts +2 -4
  905. package/dist/types/SearchField.d.ts.map +1 -1
  906. package/dist/types/Select.d.ts.map +1 -1
  907. package/dist/types/Stack.d.ts.map +1 -1
  908. package/dist/types/Status.d.ts.map +1 -1
  909. package/dist/types/Surface.d.ts.map +1 -1
  910. package/dist/types/Switch.d.ts.map +1 -1
  911. package/dist/types/Tabs.d.ts +1 -2
  912. package/dist/types/Tabs.d.ts.map +1 -1
  913. package/dist/types/Tag.d.ts.map +1 -1
  914. package/dist/types/TagList.d.ts.map +1 -1
  915. package/dist/types/TextField.d.ts +6 -12
  916. package/dist/types/TextField.d.ts.map +1 -1
  917. package/dist/types/Toast.d.ts +2 -4
  918. package/dist/types/Toast.d.ts.map +1 -1
  919. package/dist/types/ToastStack.d.ts.map +1 -1
  920. package/dist/types/Tooltip.d.ts.map +1 -1
  921. package/dist/types/Typography.d.ts +3 -6
  922. package/dist/types/Typography.d.ts.map +1 -1
  923. package/dist/types/__internal.d.ts +1 -2
  924. package/dist/types/__internal.d.ts.map +1 -1
  925. package/dist/types/charts/BarChart.d.ts +1 -3
  926. package/dist/types/charts/BarChart.d.ts.map +1 -1
  927. package/dist/types/charts/LineChart.d.ts +1 -3
  928. package/dist/types/charts/LineChart.d.ts.map +1 -1
  929. package/dist/types/charts/components/ChartContainer.d.ts +1 -3
  930. package/dist/types/charts/components/ChartContainer.d.ts.map +1 -1
  931. package/dist/types/charts/components/ChartError.d.ts +1 -3
  932. package/dist/types/charts/components/ChartError.d.ts.map +1 -1
  933. package/dist/types/charts/components/ChartFrame.d.ts +7 -16
  934. package/dist/types/charts/components/ChartFrame.d.ts.map +1 -1
  935. package/dist/types/charts/components/ChartPopoverContent.d.ts +14 -36
  936. package/dist/types/charts/components/ChartPopoverContent.d.ts.map +1 -1
  937. package/dist/types/charts/utils/chartTokens.d.ts +7 -25
  938. package/dist/types/charts/utils/chartTokens.d.ts.map +1 -1
  939. package/dist/types/charts/utils/chartTypes.d.ts +21 -55
  940. package/dist/types/charts/utils/chartTypes.d.ts.map +1 -1
  941. package/dist/types/charts/utils/formatChartValue.d.ts +7 -28
  942. package/dist/types/charts/utils/formatChartValue.d.ts.map +1 -1
  943. package/dist/types/charts/utils/getChartSeriesPointData.d.ts +5 -16
  944. package/dist/types/charts/utils/getChartSeriesPointData.d.ts.map +1 -1
  945. package/dist/types/charts/utils/hasDuplicateSeries.d.ts +1 -3
  946. package/dist/types/charts/utils/hasDuplicateSeries.d.ts.map +1 -1
  947. package/dist/types/charts/utils/resolveChartLocale.d.ts +3 -11
  948. package/dist/types/charts/utils/resolveChartLocale.d.ts.map +1 -1
  949. package/dist/types/charts/utils/useChartValueFormatter.d.ts +3 -10
  950. package/dist/types/charts/utils/useChartValueFormatter.d.ts.map +1 -1
  951. package/dist/types/charts/utils/useStableValue.d.ts +3 -12
  952. package/dist/types/charts/utils/useStableValue.d.ts.map +1 -1
  953. package/dist/types/createContrastColors.d.ts.map +1 -1
  954. package/dist/types/createOdysseyStyledComponent.d.ts +1 -3
  955. package/dist/types/createOdysseyStyledComponent.d.ts.map +1 -1
  956. package/dist/types/fullscreen/FullscreenButton.d.ts +26 -0
  957. package/dist/types/fullscreen/FullscreenButton.d.ts.map +1 -0
  958. package/dist/types/fullscreen/FullscreenRegion.d.ts +25 -0
  959. package/dist/types/fullscreen/FullscreenRegion.d.ts.map +1 -0
  960. package/dist/types/fullscreen/easeFullscreenTransition.d.ts +14 -0
  961. package/dist/types/fullscreen/easeFullscreenTransition.d.ts.map +1 -0
  962. package/dist/types/fullscreen/getBackgroundColorBehindElement.d.ts +22 -0
  963. package/dist/types/fullscreen/getBackgroundColorBehindElement.d.ts.map +1 -0
  964. package/dist/types/fullscreen/useFullscreen.d.ts +68 -0
  965. package/dist/types/fullscreen/useFullscreen.d.ts.map +1 -0
  966. package/dist/types/fullscreen/useFullscreenId.d.ts +18 -0
  967. package/dist/types/fullscreen/useFullscreenId.d.ts.map +1 -0
  968. package/dist/types/getLogicalBoundaries.d.ts +1 -2
  969. package/dist/types/getLogicalBoundaries.d.ts.map +1 -1
  970. package/dist/types/i18n.generated/i18n.d.ts +8 -0
  971. package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
  972. package/dist/types/i18n.generated/i18n.resources.d.ts +12 -0
  973. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  974. package/dist/types/icons.generated/FullscreenEnter.d.ts +16 -0
  975. package/dist/types/icons.generated/FullscreenEnter.d.ts.map +1 -0
  976. package/dist/types/icons.generated/FullscreenExit.d.ts +16 -0
  977. package/dist/types/icons.generated/FullscreenExit.d.ts.map +1 -0
  978. package/dist/types/icons.generated/index.d.ts +2 -0
  979. package/dist/types/icons.generated/index.d.ts.map +1 -1
  980. package/dist/types/icons.generated/lazyIconDictionary.d.ts.map +1 -1
  981. package/dist/types/icons.generated/names.d.ts +1 -1
  982. package/dist/types/icons.generated/names.d.ts.map +1 -1
  983. package/dist/types/index.d.ts +5 -0
  984. package/dist/types/index.d.ts.map +1 -1
  985. package/dist/types/inputUtils.d.ts +2 -4
  986. package/dist/types/inputUtils.d.ts.map +1 -1
  987. package/dist/types/labs/AppTile.d.ts.map +1 -1
  988. package/dist/types/labs/DataFilters.d.ts +9 -20
  989. package/dist/types/labs/DataFilters.d.ts.map +1 -1
  990. package/dist/types/labs/DataTable.d.ts +10 -21
  991. package/dist/types/labs/DataTable.d.ts.map +1 -1
  992. package/dist/types/labs/DataView/BulkActionsMenu.d.ts.map +1 -1
  993. package/dist/types/labs/DataView/CardLayoutContent.d.ts +1 -1
  994. package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
  995. package/dist/types/labs/DataView/DataCard.d.ts +1 -2
  996. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  997. package/dist/types/labs/DataView/DataTable.d.ts +1 -0
  998. package/dist/types/labs/DataView/DataTable.d.ts.map +1 -1
  999. package/dist/types/labs/DataView/DataView.d.ts +1 -0
  1000. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  1001. package/dist/types/labs/DataView/RowActions.d.ts.map +1 -1
  1002. package/dist/types/labs/DataView/TableLayoutContent.d.ts +1 -1
  1003. package/dist/types/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  1004. package/dist/types/labs/DataView/TableSettings.d.ts +1 -1
  1005. package/dist/types/labs/DataView/TableSettings.d.ts.map +1 -1
  1006. package/dist/types/labs/DataView/componentTypes.d.ts +4 -13
  1007. package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
  1008. package/dist/types/labs/DataView/tableConstants.d.ts.map +1 -1
  1009. package/dist/types/labs/DataView/testSupportData.d.ts.map +1 -1
  1010. package/dist/types/labs/DataView/useFilterConversion.d.ts.map +1 -1
  1011. package/dist/types/labs/OdysseyPickers/PickerVirtualizationListBox.d.ts.map +1 -1
  1012. package/dist/types/labs/PageTemplate/Layout.d.ts +1 -2
  1013. package/dist/types/labs/PageTemplate/Layout.d.ts.map +1 -1
  1014. package/dist/types/message-bus/createBrowserMessageBus.d.ts +56 -0
  1015. package/dist/types/message-bus/createBrowserMessageBus.d.ts.map +1 -0
  1016. package/dist/types/message-bus/createMessageChannel.d.ts +81 -0
  1017. package/dist/types/message-bus/createMessageChannel.d.ts.map +1 -0
  1018. package/dist/types/message-bus/fullscreen/createFullscreenId.d.ts +22 -0
  1019. package/dist/types/message-bus/fullscreen/createFullscreenId.d.ts.map +1 -0
  1020. package/dist/types/message-bus/fullscreen/createFullscreenModeHost.d.ts +44 -0
  1021. package/dist/types/message-bus/fullscreen/createFullscreenModeHost.d.ts.map +1 -0
  1022. package/dist/types/message-bus/fullscreen/createFullscreenModeMessageBus.d.ts +55 -0
  1023. package/dist/types/message-bus/fullscreen/createFullscreenModeMessageBus.d.ts.map +1 -0
  1024. package/dist/types/message-bus/fullscreen/fullscreenMessageChannel.d.ts +49 -0
  1025. package/dist/types/message-bus/fullscreen/fullscreenMessageChannel.d.ts.map +1 -0
  1026. package/dist/types/message-bus/fullscreen/fullscreenState.d.ts +66 -0
  1027. package/dist/types/message-bus/fullscreen/fullscreenState.d.ts.map +1 -0
  1028. package/dist/types/message-bus/fullscreen/watchElementDisconnection.d.ts +31 -0
  1029. package/dist/types/message-bus/fullscreen/watchElementDisconnection.d.ts.map +1 -0
  1030. package/dist/types/message-bus/index.d.ts +21 -0
  1031. package/dist/types/message-bus/index.d.ts.map +1 -0
  1032. package/dist/types/message-bus/messageGuards.d.ts +24 -0
  1033. package/dist/types/message-bus/messageGuards.d.ts.map +1 -0
  1034. package/dist/types/pendingDesignTokens/fullscreenTransitionTokens.d.ts +21 -0
  1035. package/dist/types/pendingDesignTokens/fullscreenTransitionTokens.d.ts.map +1 -0
  1036. package/dist/types/properties/ts/odyssey-react-mui.d.ts +4 -0
  1037. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  1038. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +4 -0
  1039. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  1040. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +4 -0
  1041. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  1042. package/dist/types/test-utils/appendToSandbox.d.ts +3 -16
  1043. package/dist/types/test-utils/appendToSandbox.d.ts.map +1 -1
  1044. package/dist/types/test-utils/getControlledElement.d.ts +1 -2
  1045. package/dist/types/test-utils/getControlledElement.d.ts.map +1 -1
  1046. package/dist/types/test-utils/renderWithOdysseyProvider.d.ts.map +1 -1
  1047. package/dist/types/test-utils/viewportTestSizes.d.ts.map +1 -1
  1048. package/dist/types/theme/components/Autocomplete.d.ts.map +1 -1
  1049. package/dist/types/theme/components/Button.d.ts.map +1 -1
  1050. package/dist/types/theme/components/CircularProgress.d.ts.map +1 -1
  1051. package/dist/types/theme/components/Drawer.d.ts.map +1 -1
  1052. package/dist/types/theme/components/Form.d.ts.map +1 -1
  1053. package/dist/types/theme/components/Input.d.ts.map +1 -1
  1054. package/dist/types/theme/components/Table.d.ts.map +1 -1
  1055. package/dist/types/theme/useAppElementContainerQuery.d.ts +1 -7
  1056. package/dist/types/theme/useAppElementContainerQuery.d.ts.map +1 -1
  1057. package/dist/types/theme/useContainerQuery.d.ts +2 -8
  1058. package/dist/types/theme/useContainerQuery.d.ts.map +1 -1
  1059. package/dist/types/theme/useMediaQuery.d.ts +12 -38
  1060. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  1061. package/dist/types/tools/addSpecificity.d.ts +1 -2
  1062. package/dist/types/tools/addSpecificity.d.ts.map +1 -1
  1063. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  1064. package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
  1065. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
  1066. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts +1 -3
  1067. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts.map +1 -1
  1068. package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts.map +1 -1
  1069. package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts.map +1 -1
  1070. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts +1 -3
  1071. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts.map +1 -1
  1072. package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts.map +1 -1
  1073. package/dist/types/ui-shell/SideNav/types.d.ts +6 -13
  1074. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  1075. package/dist/types/ui-shell/SkipToContent.d.ts.map +1 -1
  1076. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts +1 -2
  1077. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts.map +1 -1
  1078. package/dist/types/ui-shell/UiShell.d.ts +11 -9
  1079. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  1080. package/dist/types/ui-shell/UiShellProvider.d.ts +2 -4
  1081. package/dist/types/ui-shell/UiShellProvider.d.ts.map +1 -1
  1082. package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -1
  1083. package/dist/types/ui-shell/createUiShellFullscreenState.d.ts +50 -0
  1084. package/dist/types/ui-shell/createUiShellFullscreenState.d.ts.map +1 -0
  1085. package/dist/types/ui-shell/renderUiShell.d.ts +27 -5
  1086. package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
  1087. package/dist/types/ui-shell/uiShellContentTypes.d.ts +1 -2
  1088. package/dist/types/ui-shell/uiShellContentTypes.d.ts.map +1 -1
  1089. package/dist/types/ui-shell/uiShellSharedConstants.d.ts.map +1 -1
  1090. package/dist/types/ui-shell/useFullscreenChromeCollapse.d.ts +29 -0
  1091. package/dist/types/ui-shell/useFullscreenChromeCollapse.d.ts.map +1 -0
  1092. package/dist/types/useContrastMode.d.ts +2 -7
  1093. package/dist/types/useContrastMode.d.ts.map +1 -1
  1094. package/dist/types/useStableCallback.d.ts +5 -16
  1095. package/dist/types/useStableCallback.d.ts.map +1 -1
  1096. package/dist/types/useThemeCache.d.ts.map +1 -1
  1097. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  1098. package/dist/types/web-component/renderReactInWebComponent.d.ts +6 -12
  1099. package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
  1100. package/package.json +19 -9
@@ -1 +1 @@
1
- {"version":3,"file":"UiShellProvider.cjs","names":["_react","require","_createContrastColors","_OdysseyDesignTokensContext","_createMessageBus","_jsxRuntime","defaultCloseSideNavMessageBus","exports","createMessageBus","defaultSubscribeToCloseRightSideMenu","UiShellContext","createContext","undefined","useUiShellContext","useContext","UiShellProvider","appBackgroundColor","appBackgroundContrastMode","children","closeSideNavMenu","sideNavBackgroundColor","sideNavBackgroundContrastColor","subscribeToCloseRightSideMenu","subscribeToCloseSideNavMenu","topNavBackgroundColor","odysseyDesignTokens","useOdysseyDesignTokens","defaultedSideNavBackgroundColor","HueNeutralWhite","sideNavContrastColors","generateContrastColors","backgroundColor","backgroundContrastColor","isAppBackgroundHightContrast","defaultTopAndAppBackgroundColor","HueNeutral50","topNavColor","appContentBackgroundColor","memoizedContextValue","useMemo","publish","subscribe","jsx","Provider","value","MemoizedUiShellProvider","memo"],"sources":["../../../src/ui-shell/UiShellProvider.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-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 {\n createContext,\n memo,\n PropsWithChildren,\n useContext,\n useMemo,\n} from \"react\";\n\nimport {\n ContrastColors,\n generateContrastColors,\n} from \"../createContrastColors.js\";\nimport { useOdysseyDesignTokens } from \"../OdysseyDesignTokensContext.js\";\nimport { createMessageBus, MessageBus } from \"../tools/createMessageBus.js\";\nimport { ContrastMode } from \"../useContrastMode.js\";\n\nexport const defaultCloseSideNavMessageBus = createMessageBus();\nexport const defaultSubscribeToCloseRightSideMenu = () => () => {};\n\nexport type UiShellColors = {\n /**\n * Custom background color for the app content area.\n */\n appBackgroundColor: string;\n /**\n * Custom background color for the side nav area.\n */\n sideNavBackgroundColor: string;\n /**\n * Custom color for fonts and other contrasted colors in the side nav area. Other contrast colors are derived from this one.\n *\n * If not passed, it gets computed from Odyssey.\n */\n sideNavBackgroundContrastColor?: string;\n sideNavContrastColors?: ContrastColors;\n /**\n * Custom background color for the top nav area.\n */\n topNavBackgroundColor: string;\n};\n\nexport type UiShellContext = {\n /**\n * This is a callback that publishes a change to all subscribers listening for when to close the side nav.\n */\n closeSideNavMenu: MessageBus<void>[\"publish\"];\n /**\n * This is a callback that provides a subscriber callback to listen for changes to state.\n * It allows UI Shell to listen for a publisher that asks us to close the right-side menu.\n */\n subscribeToCloseRightSideMenu: MessageBus<void>[\"subscribe\"];\n /**\n * This is a callback that provides a subscriber callback to listen for changes to state.\n * It allows UI Shell to listen for a publisher that asks us to close the side nav.\n */\n subscribeToCloseSideNavMenu: MessageBus<void>[\"subscribe\"];\n} & UiShellColors;\n\nconst UiShellContext = createContext<UiShellContext | undefined>(undefined);\n\nexport const useUiShellContext = () => {\n return useContext(UiShellContext);\n};\n\nexport type UiShellProviderProps = {\n /**\n * Sets either a gray or white background color for the app content area.\n */\n appBackgroundContrastMode?: ContrastMode;\n} & Partial<UiShellContext>;\n\nconst UiShellProvider = ({\n appBackgroundColor,\n appBackgroundContrastMode = \"lowContrast\",\n children,\n closeSideNavMenu,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n subscribeToCloseRightSideMenu,\n subscribeToCloseSideNavMenu,\n topNavBackgroundColor,\n}: PropsWithChildren<UiShellProviderProps>) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const defaultedSideNavBackgroundColor =\n sideNavBackgroundColor || odysseyDesignTokens.HueNeutralWhite;\n\n const sideNavContrastColors =\n defaultedSideNavBackgroundColor !== odysseyDesignTokens.HueNeutralWhite\n ? generateContrastColors({\n backgroundColor:\n sideNavBackgroundColor || defaultedSideNavBackgroundColor,\n backgroundContrastColor: sideNavBackgroundContrastColor,\n odysseyDesignTokens,\n })\n : undefined;\n\n const isAppBackgroundHightContrast =\n appBackgroundContrastMode === \"highContrast\";\n\n const defaultTopAndAppBackgroundColor = isAppBackgroundHightContrast\n ? odysseyDesignTokens.HueNeutralWhite\n : odysseyDesignTokens.HueNeutral50;\n\n const topNavColor = topNavBackgroundColor || defaultTopAndAppBackgroundColor;\n\n const appContentBackgroundColor =\n appBackgroundColor || defaultTopAndAppBackgroundColor;\n\n const memoizedContextValue = useMemo(\n () => ({\n appBackgroundColor: appContentBackgroundColor,\n closeSideNavMenu:\n closeSideNavMenu ?? defaultCloseSideNavMessageBus.publish,\n sideNavBackgroundColor:\n sideNavBackgroundColor || odysseyDesignTokens.HueNeutralWhite,\n sideNavContrastColors,\n subscribeToCloseSideNavMenu:\n subscribeToCloseSideNavMenu ?? defaultCloseSideNavMessageBus.subscribe,\n subscribeToCloseRightSideMenu:\n subscribeToCloseRightSideMenu ?? defaultSubscribeToCloseRightSideMenu,\n topNavBackgroundColor: topNavColor,\n }),\n [\n appContentBackgroundColor,\n odysseyDesignTokens.HueNeutralWhite,\n closeSideNavMenu,\n sideNavBackgroundColor,\n sideNavContrastColors,\n subscribeToCloseRightSideMenu,\n subscribeToCloseSideNavMenu,\n topNavColor,\n ],\n );\n\n return (\n <UiShellContext.Provider value={memoizedContextValue}>\n {children}\n </UiShellContext.Provider>\n );\n};\n\nconst MemoizedUiShellProvider = memo(UiShellProvider);\n\nexport { MemoizedUiShellProvider as UiShellProvider };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,qBAAA,GAAAD,OAAA;AAIA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAA4E,IAAAI,WAAA,GAAAJ,OAAA;AAzB5E;AACA;A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AG,IAAAC,cAAO,EAClC,OAAO;IACLvB,kBAAkB,EAAEqB,yBAAyB;IAC7ClB,gBAAgB,EACdA,gBAAgB,IAAIb,6BAA6B,CAACkC,OAAO;IAC3DpB,sBAAsB,EACpBA,sBAAsB,IAAIK,mBAAmB,CAACG,eAAe;IAC/DC,qBAAqB;IACrBN,2BAA2B,EACzBA,2BAA2B,IAAIjB,6BAA6B,CAACmC,SAAS;IACxEnB,6BAA6B,EAC3BA,6BAA6B,IAAIb,oCAAoC;IACvEe,qBAAqB,EAAEY;EACzB,CAAC,CAAC,EACF,CACEC,yBAAyB,EACzBZ,mBAAmB,CAACG,eAAe,EACnCT,gBAAgB,EAChBC,sBAAsB,EACtBS,qBAAqB,EACrBP,6BAA6B,EAC7BC,2BAA2B,EAC3Ba,WAAW,CAEf,CAAC;EAED,OACE,IAAA/B,WAAA,CAAAqC,GAAA,EAAChC,cAAc,CAACiC,QAAQ;IAACC,KAAK,EAAEN,oBAAqB;IAAApB,QAAA,EAClDA;EAAQ,CACc,CAAC;AAE9B,CAAC;AAED,MAAM2B,uBAAuB,GAAAtC,OAAA,CAAAQ,eAAA,GAAG,IAAA+B,WAAI,EAAC/B,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"UiShellProvider.cjs","names":["_react","require","_createContrastColors","_OdysseyDesignTokensContext","_createMessageBus","_jsxRuntime","defaultCloseSideNavMessageBus","exports","createMessageBus","defaultSubscribeToCloseRightSideMenu","UiShellContext","createContext","undefined","useUiShellContext","useContext","UiShellProvider","appBackgroundColor","appBackgroundContrastMode","children","closeSideNavMenu","sideNavBackgroundColor","sideNavBackgroundContrastColor","subscribeToCloseRightSideMenu","subscribeToCloseSideNavMenu","topNavBackgroundColor","odysseyDesignTokens","useOdysseyDesignTokens","defaultedSideNavBackgroundColor","HueNeutralWhite","sideNavContrastColors","generateContrastColors","backgroundColor","backgroundContrastColor","isAppBackgroundHightContrast","defaultTopAndAppBackgroundColor","HueNeutral50","topNavColor","appContentBackgroundColor","memoizedContextValue","useMemo","publish","subscribe","jsx","Provider","value","MemoizedUiShellProvider","memo"],"sources":["../../../src/ui-shell/UiShellProvider.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-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 {\n createContext,\n memo,\n PropsWithChildren,\n useContext,\n useMemo,\n} from \"react\";\n\nimport {\n ContrastColors,\n generateContrastColors,\n} from \"../createContrastColors.js\";\nimport { useOdysseyDesignTokens } from \"../OdysseyDesignTokensContext.js\";\nimport { createMessageBus, MessageBus } from \"../tools/createMessageBus.js\";\nimport { ContrastMode } from \"../useContrastMode.js\";\n\nexport const defaultCloseSideNavMessageBus = createMessageBus();\nexport const defaultSubscribeToCloseRightSideMenu = () => () => {};\n\nexport type UiShellColors = {\n /**\n * Custom background color for the app content area.\n */\n appBackgroundColor: string;\n /**\n * Custom background color for the side nav area.\n */\n sideNavBackgroundColor: string;\n /**\n * Custom color for fonts and other contrasted colors in the side nav area. Other contrast colors are derived from this one.\n *\n * If not passed, it gets computed from Odyssey.\n */\n sideNavBackgroundContrastColor?: string;\n sideNavContrastColors?: ContrastColors;\n /**\n * Custom background color for the top nav area.\n */\n topNavBackgroundColor: string;\n};\n\nexport type UiShellContext = {\n /**\n * This is a callback that publishes a change to all subscribers listening for when to close the side nav.\n */\n closeSideNavMenu: MessageBus<void>[\"publish\"];\n /**\n * This is a callback that provides a subscriber callback to listen for changes to state. It allows UI Shell to listen for a publisher that asks us to close the right-side menu.\n */\n subscribeToCloseRightSideMenu: MessageBus<void>[\"subscribe\"];\n /**\n * This is a callback that provides a subscriber callback to listen for changes to state. It allows UI Shell to listen for a publisher that asks us to close the side nav.\n */\n subscribeToCloseSideNavMenu: MessageBus<void>[\"subscribe\"];\n} & UiShellColors;\n\nconst UiShellContext = createContext<UiShellContext | undefined>(undefined);\n\nexport const useUiShellContext = () => {\n return useContext(UiShellContext);\n};\n\nexport type UiShellProviderProps = {\n /**\n * Sets either a gray or white background color for the app content area.\n */\n appBackgroundContrastMode?: ContrastMode;\n} & Partial<UiShellContext>;\n\nconst UiShellProvider = ({\n appBackgroundColor,\n appBackgroundContrastMode = \"lowContrast\",\n children,\n closeSideNavMenu,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n subscribeToCloseRightSideMenu,\n subscribeToCloseSideNavMenu,\n topNavBackgroundColor,\n}: PropsWithChildren<UiShellProviderProps>) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const defaultedSideNavBackgroundColor =\n sideNavBackgroundColor || odysseyDesignTokens.HueNeutralWhite;\n\n const sideNavContrastColors =\n defaultedSideNavBackgroundColor !== odysseyDesignTokens.HueNeutralWhite\n ? generateContrastColors({\n backgroundColor:\n sideNavBackgroundColor || defaultedSideNavBackgroundColor,\n backgroundContrastColor: sideNavBackgroundContrastColor,\n odysseyDesignTokens,\n })\n : undefined;\n\n const isAppBackgroundHightContrast =\n appBackgroundContrastMode === \"highContrast\";\n\n const defaultTopAndAppBackgroundColor = isAppBackgroundHightContrast\n ? odysseyDesignTokens.HueNeutralWhite\n : odysseyDesignTokens.HueNeutral50;\n\n const topNavColor = topNavBackgroundColor || defaultTopAndAppBackgroundColor;\n\n const appContentBackgroundColor =\n appBackgroundColor || defaultTopAndAppBackgroundColor;\n\n const memoizedContextValue = useMemo(\n () => ({\n appBackgroundColor: appContentBackgroundColor,\n closeSideNavMenu:\n closeSideNavMenu ?? defaultCloseSideNavMessageBus.publish,\n sideNavBackgroundColor:\n sideNavBackgroundColor || odysseyDesignTokens.HueNeutralWhite,\n sideNavContrastColors,\n subscribeToCloseSideNavMenu:\n subscribeToCloseSideNavMenu ?? defaultCloseSideNavMessageBus.subscribe,\n subscribeToCloseRightSideMenu:\n subscribeToCloseRightSideMenu ?? defaultSubscribeToCloseRightSideMenu,\n topNavBackgroundColor: topNavColor,\n }),\n [\n appContentBackgroundColor,\n odysseyDesignTokens.HueNeutralWhite,\n closeSideNavMenu,\n sideNavBackgroundColor,\n sideNavContrastColors,\n subscribeToCloseRightSideMenu,\n subscribeToCloseSideNavMenu,\n topNavColor,\n ],\n );\n\n return (\n <UiShellContext.Provider value={memoizedContextValue}>\n {children}\n </UiShellContext.Provider>\n );\n};\n\nconst MemoizedUiShellProvider = memo(UiShellProvider);\n\nexport { MemoizedUiShellProvider as UiShellProvider };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,qBAAA,GAAAD,OAAA;AAIA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAA4E,IAAAI,WAAA,GAAAJ,OAAA;AAzB5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBO,MAAMK,6BAA6B,GAAAC,OAAA,CAAAD,6BAAA,GAAG,IAAAE,kCAAgB,EAAC,CAAC;AACxD,MAAMC,oCAAoC,GAAGA,CAAA,KAAM,MAAM,CAAC,CAAC;AAACF,OAAA,CAAAE,oCAAA,GAAAA,oCAAA;AAuCnE,MAAMC,cAAc,GAAG,IAAAC,oBAAa,EAA6BC,SAAS,CAAC;AAEpE,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,OAAO,IAAAC,iBAAU,EAACJ,cAAc,CAAC;AACnC,CAAC;AAACH,OAAA,CAAAM,iBAAA,GAAAA,iBAAA;AASF,MAAME,eAAe,GAAGA,CAAC;EACvBC,kBAAkB;EAClBC,yBAAyB,GAAG,aAAa;EACzCC,QAAQ;EACRC,gBAAgB;EAChBC,sBAAsB;EACtBC,8BAA8B;EAC9BC,6BAA6B;EAC7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EAAEN,oBAAqB;IAAApB,QAAA,EAClDA;EAAQ,CACc,CAAC;AAE9B,CAAC;AAED,MAAM2B,uBAAuB,GAAAtC,OAAA,CAAAQ,eAAA,GAAG,IAAA+B,WAAI,EAAC/B,eAAe,CAAC","ignoreList":[]}
@@ -7,6 +7,7 @@ exports.WideUiShellContent = void 0;
7
7
  var _styled = _interopRequireDefault(require("@emotion/styled"));
8
8
  var _react = require("react");
9
9
  var _reactErrorBoundary = require("react-error-boundary");
10
+ var _useFullscreen = require("../fullscreen/useFullscreen.cjs");
10
11
  var _OdysseyDesignTokensContext = require("../OdysseyDesignTokensContext.cjs");
11
12
  var _AppSwitcher = require("./AppSwitcher/AppSwitcher.cjs");
12
13
  var _InnerAppContainer = require("./InnerAppContainer.cjs");
@@ -16,6 +17,7 @@ var _TopNav = require("./TopNav/TopNav.cjs");
16
17
  var _uiShellContentTypes = require("./uiShellContentTypes.cjs");
17
18
  var _UiShellProvider = require("./UiShellProvider.cjs");
18
19
  var _uiShellSharedConstants = require("./uiShellSharedConstants.cjs");
20
+ var _useFullscreenChromeCollapse = require("./useFullscreenChromeCollapse.cjs");
19
21
  var _useMatchAppElementToUiShellAppArea = require("./useMatchAppElementToUiShellAppArea.cjs");
20
22
  var _useScrollState = require("./useScrollState.cjs");
21
23
  var _jsxRuntime = require("react/jsx-runtime");
@@ -86,12 +88,43 @@ const WideUiShellContent = ({
86
88
  }) => {
87
89
  const odysseyDesignTokens = (0, _OdysseyDesignTokensContext.useOdysseyDesignTokens)();
88
90
  const uiShellContext = (0, _UiShellProvider.useUiShellContext)();
91
+ const hasActiveFullscreen = (0, _useFullscreen.useHasActiveFullscreen)();
89
92
  const {
90
93
  isContentScrolled
91
94
  } = (0, _useScrollState.useScrollState)(appElement);
95
+ const appSwitcherContainerRef = (0, _react.useRef)(null);
96
+ const bannersContainerRef = (0, _react.useRef)(null);
92
97
  const sideNavContainerRef = (0, _react.useRef)(null);
93
98
  const topNavContainerRef = (0, _react.useRef)(null);
94
99
  const uiShellAppAreaRef = (0, _react.useRef)(null);
100
+ const {
101
+ isChromeHidden: isAppSwitcherHidden
102
+ } = (0, _useFullscreenChromeCollapse.useFullscreenChromeCollapse)({
103
+ chromeElementRef: appSwitcherContainerRef,
104
+ collapsedDimension: "width",
105
+ isCollapsed: hasActiveFullscreen
106
+ });
107
+ const {
108
+ isChromeHidden: isBannersHidden
109
+ } = (0, _useFullscreenChromeCollapse.useFullscreenChromeCollapse)({
110
+ chromeElementRef: bannersContainerRef,
111
+ collapsedDimension: "height",
112
+ isCollapsed: hasActiveFullscreen
113
+ });
114
+ const {
115
+ isChromeHidden: isSideNavHidden
116
+ } = (0, _useFullscreenChromeCollapse.useFullscreenChromeCollapse)({
117
+ chromeElementRef: sideNavContainerRef,
118
+ collapsedDimension: "width",
119
+ isCollapsed: hasActiveFullscreen
120
+ });
121
+ const {
122
+ isChromeHidden: isTopNavHidden
123
+ } = (0, _useFullscreenChromeCollapse.useFullscreenChromeCollapse)({
124
+ chromeElementRef: topNavContainerRef,
125
+ collapsedDimension: "height",
126
+ isCollapsed: hasActiveFullscreen
127
+ });
95
128
  const {
96
129
  parentContainerRef
97
130
  } = (0, _useMatchAppElementToUiShellAppArea.useMatchAppElementToUiShellAppArea)({
@@ -107,8 +140,12 @@ const WideUiShellContent = ({
107
140
  children: [(0, _jsxRuntime.jsx)(_SkipToContent.SkipToContent, {
108
141
  appElement: appElement
109
142
  }), (0, _jsxRuntime.jsx)(StyledBannersContainer, {
143
+ hidden: isBannersHidden,
144
+ ref: bannersContainerRef,
110
145
  children: optionalComponents?.banners
111
146
  }), (0, _jsxRuntime.jsxs)(StyledAppSwitcherContainer, {
147
+ hidden: isAppSwitcherHidden,
148
+ ref: appSwitcherContainerRef,
112
149
  children: [initialVisibleSections?.includes("AppSwitcher") && !appSwitcherProps && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
113
150
  fallback: null,
114
151
  onError: onError,
@@ -125,6 +162,7 @@ const WideUiShellContent = ({
125
162
  })
126
163
  })]
127
164
  }), (0, _jsxRuntime.jsxs)(StyledSideNavContainer, {
165
+ hidden: isSideNavHidden,
128
166
  ref: sideNavContainerRef,
129
167
  children: [initialVisibleSections?.includes("SideNav") && !hasSideNavProps && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
130
168
  fallback: null,
@@ -149,6 +187,7 @@ const WideUiShellContent = ({
149
187
  })
150
188
  })]
151
189
  }), (0, _jsxRuntime.jsxs)(StyledTopNavContainer, {
190
+ hidden: isTopNavHidden,
152
191
  ref: topNavContainerRef,
153
192
  children: [initialVisibleSections?.includes("TopNav") && topNavProps === undefined && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
154
193
  fallback: null,
@@ -177,5 +216,5 @@ const WideUiShellContent = ({
177
216
  });
178
217
  };
179
218
  const MemoizedWideUiShellContent = exports.WideUiShellContent = (0, _react.memo)(WideUiShellContent);
180
- MemoizedWideUiShellContent.displayName = "WideUiShellContent::pkg=odyssey&odysseyV=1.70.1";
219
+ MemoizedWideUiShellContent.displayName = "WideUiShellContent::pkg=odyssey&odysseyV=1.71.1";
181
220
  //# sourceMappingURL=WideUiShellContent.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"WideUiShellContent.cjs","names":["_styled","_interopRequireDefault","require","_react","_reactErrorBoundary","_OdysseyDesignTokensContext","_AppSwitcher","_InnerAppContainer","_SideNav","_SkipToContent","_TopNav","_uiShellContentTypes","_UiShellProvider","_uiShellSharedConstants","_useMatchAppElementToUiShellAppArea","_useScrollState","_jsxRuntime","e","__esModule","default","appSwitcherDefaultAppIcons","StyledAppContainer","styled","shouldForwardProp","prop","appBackgroundColor","backgroundColor","gridArea","position","StyledAppSwitcherContainer","StyledBannersContainer","StyledSideNavContainer","StyledShellContainer","odysseyDesignTokens","HueNeutral50","display","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","width","StyledTopNavContainer","WideUiShellContent","appElement","appElementScrollingMode","appSwitcherProps","hasStandardAppContentPadding","hasSideNavProps","initialVisibleSections","onError","console","error","optionalComponents","sideNavProps","topNavProps","useOdysseyDesignTokens","uiShellContext","useUiShellContext","isContentScrolled","useScrollState","sideNavContainerRef","useRef","topNavContainerRef","uiShellAppAreaRef","parentContainerRef","useMatchAppElementToUiShellAppArea","paddingMode","uiShellResizableRefs","jsxs","ref","children","jsx","SkipToContent","banners","includes","ErrorBoundary","fallback","AppSwitcher","appIcons","isLoading","selectedAppName","TURN_OFF_APP_SWITCHER","SideNav","sideNavItems","emptySideNavItems","hasCustomFooter","sideNavFooter","footerComponent","footerItems","undefined","TopNav","leftSideComponent","topNavLeftSide","rightSideComponent","topNavRightSide","tabIndex","InnerAppContainer","MemoizedWideUiShellContent","exports","memo","displayName"],"sources":["../../../src/ui-shell/WideUiShellContent.tsx"],"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 styled from \"@emotion/styled\";\nimport { memo, useRef } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport {\n type DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { AppSwitcher } from \"./AppSwitcher/AppSwitcher.js\";\nimport { AppSwitcherAppIconData } from \"./AppSwitcher/AppSwitcherApp.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport { SideNav } from \"./SideNav/SideNav.js\";\nimport { SkipToContent } from \"./SkipToContent.js\";\nimport { TopNav } from \"./TopNav/TopNav.js\";\nimport {\n TURN_OFF_APP_SWITCHER,\n UiShellContentProps,\n UiShellNavComponentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport { emptySideNavItems } from \"./uiShellSharedConstants.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport { useScrollState } from \"./useScrollState.js\";\n\nconst appSwitcherDefaultAppIcons = [] satisfies AppSwitcherAppIconData[];\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n gridArea: \"app-content\",\n position: \"relative\",\n}));\n\nconst StyledAppSwitcherContainer = styled(\"div\")({\n gridArea: \"app-switcher\",\n});\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n});\n\nconst StyledSideNavContainer = styled(\"div\")({\n gridArea: \"side-nav\",\n});\n\nconst StyledShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners banners banners\"\n \"app-switcher side-nav top-nav\"\n \"app-switcher side-nav app-content\"\n `,\n gridTemplateColumns: \"auto auto 1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n width: \"100vw\",\n}));\n\nconst StyledTopNavContainer = styled(\"div\")({\n gridArea: \"top-nav\",\n});\n\nexport type WideUiShellContentProps = UiShellNavComponentProps &\n UiShellContentProps;\n\n/**\n * Our new Unified Platform UI Shell.\n *\n * This includes the top and side navigation as well as the footer and provides a spot for your app to render into.\n *\n * If an error occurs, this will revert to only showing the app.\n */\nconst WideUiShellContent = ({\n appElement,\n appElementScrollingMode,\n appSwitcherProps,\n hasStandardAppContentPadding = true,\n hasSideNavProps,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: WideUiShellContentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"comfortable\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <StyledShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <SkipToContent appElement={appElement} />\n\n <StyledBannersContainer>\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n <StyledAppSwitcherContainer>\n {\n /* If AppSwitcher should be initially visible and we have not yet received props, render AppSwitcher in the loading state */\n initialVisibleSections?.includes(\"AppSwitcher\") &&\n !appSwitcherProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher\n appIcons={appSwitcherDefaultAppIcons}\n isLoading\n selectedAppName=\"\"\n />\n </ErrorBoundary>\n )\n }\n\n {appSwitcherProps && appSwitcherProps !== TURN_OFF_APP_SWITCHER && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher {...appSwitcherProps} />\n </ErrorBoundary>\n )}\n </StyledAppSwitcherContainer>\n\n <StyledSideNavContainer ref={sideNavContainerRef}>\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") && !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav\n {...{\n ...sideNavProps,\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n />\n </ErrorBoundary>\n )}\n </StyledSideNavContainer>\n\n <StyledTopNavContainer ref={topNavContainerRef}>\n {\n /* If TopNav should be initially visible and we have not yet received props, render Topnav with minimal inputs */\n initialVisibleSections?.includes(\"TopNav\") &&\n topNavProps === undefined && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )\n }\n\n {topNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n {...topNavProps}\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )}\n </StyledTopNavContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n ref={uiShellAppAreaRef}\n tabIndex={0}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledShellContainer>\n );\n};\n\nconst MemoizedWideUiShellContent = memo(WideUiShellContent);\nMemoizedWideUiShellContent.displayName = \"WideUiShellContent\";\n\nexport { MemoizedWideUiShellContent as WideUiShellContent };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,2BAAA,GAAAH,OAAA;AAIA,IAAAI,Y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;QAAAqB,QAAA,EAC9C,IAAAvD,WAAA,CAAAwD,GAAA,EAAC9D,OAAA,CAAAiF,MAAM;UACLC,iBAAiB,EAAEvC,kBAAkB,EAAEwC,cAAe;UACtDC,kBAAkB,EAAEzC,kBAAkB,EAAE0C;QAAgB,CACzD;MAAC,CACW,CAChB,EAGJxC,WAAW,IACV,IAAAvC,WAAA,CAAAwD,GAAA,EAACpE,mBAAA,CAAAwE,aAAa;QAACC,QAAQ,EAAE,IAAK;QAAC3B,OAAO,EAAEA,OAAQ;QAAAqB,QAAA,EAC9C,IAAAvD,WAAA,CAAAwD,GAAA,EAAC9D,OAAA,CAAAiF,MAAM;UAAA,GACDpC,WAAW;UACfqC,iBAAiB,EAAEvC,kBAAkB,EAAEwC,cAAe;UACtDC,kBAAkB,EAAEzC,kBAAkB,EAAE0C;QAAgB,CACzD;MAAC,CACW,CAChB;IAAA,CACoB,CAAC,EAExB,IAAA/E,WAAA,CAAAwD,GAAA,EAACnD,kBAAkB;MACjBI,kBAAkB,EAAEgC,cAAc,EAAEhC,kBAAmB;MACvD6C,GAAG,EAAEN,iBAAkB;MACvBgC,QAAQ,EAAE,CAAE;MAAAzB,QAAA,EAEZ,IAAAvD,WAAA,CAAAwD,GAAA,EAACjE,kBAAA,CAAA0F,iBAAiB;QAACtC,iBAAiB,EAAEA;MAAkB,CAAE;IAAC,CACzC,CAAC;EAAA,CACD,CAAC;AAE3B,CAAC;AAED,MAAMuC,0BAA0B,GAAAC,OAAA,CAAAxD,kBAAA,GAAG,IAAAyD,WAAI,EAACzD,kBAAkB,CAAC;AAC3DuD,0BAA0B,CAACG,WAAW,oDAAuB","ignoreList":[]}
1
+ {"version":3,"file":"WideUiShellContent.cjs","names":["_styled","_interopRequireDefault","require","_react","_reactErrorBoundary","_useFullscreen","_OdysseyDesignTokensContext","_AppSwitcher","_InnerAppContainer","_SideNav","_SkipToContent","_TopNav","_uiShellContentTypes","_UiShellProvider","_uiShellSharedConstants","_useFullscreenChromeCollapse","_useMatchAppElementToUiShellAppArea","_useScrollState","_jsxRuntime","e","__esModule","default","appSwitcherDefaultAppIcons","StyledAppContainer","styled","shouldForwardProp","prop","appBackgroundColor","backgroundColor","gridArea","position","StyledAppSwitcherContainer","StyledBannersContainer","StyledSideNavContainer","StyledShellContainer","odysseyDesignTokens","HueNeutral50","display","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","width","StyledTopNavContainer","WideUiShellContent","appElement","appElementScrollingMode","appSwitcherProps","hasStandardAppContentPadding","hasSideNavProps","initialVisibleSections","onError","console","error","optionalComponents","sideNavProps","topNavProps","useOdysseyDesignTokens","uiShellContext","useUiShellContext","hasActiveFullscreen","useHasActiveFullscreen","isContentScrolled","useScrollState","appSwitcherContainerRef","useRef","bannersContainerRef","sideNavContainerRef","topNavContainerRef","uiShellAppAreaRef","isChromeHidden","isAppSwitcherHidden","useFullscreenChromeCollapse","chromeElementRef","collapsedDimension","isCollapsed","isBannersHidden","isSideNavHidden","isTopNavHidden","parentContainerRef","useMatchAppElementToUiShellAppArea","paddingMode","uiShellResizableRefs","jsxs","ref","children","jsx","SkipToContent","hidden","banners","includes","ErrorBoundary","fallback","AppSwitcher","appIcons","isLoading","selectedAppName","TURN_OFF_APP_SWITCHER","SideNav","sideNavItems","emptySideNavItems","hasCustomFooter","sideNavFooter","footerComponent","footerItems","undefined","TopNav","leftSideComponent","topNavLeftSide","rightSideComponent","topNavRightSide","tabIndex","InnerAppContainer","MemoizedWideUiShellContent","exports","memo","displayName"],"sources":["../../../src/ui-shell/WideUiShellContent.tsx"],"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 styled from \"@emotion/styled\";\nimport { memo, useRef } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { useHasActiveFullscreen } from \"../fullscreen/useFullscreen.js\";\nimport {\n type DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { AppSwitcher } from \"./AppSwitcher/AppSwitcher.js\";\nimport { AppSwitcherAppIconData } from \"./AppSwitcher/AppSwitcherApp.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport { SideNav } from \"./SideNav/SideNav.js\";\nimport { SkipToContent } from \"./SkipToContent.js\";\nimport { TopNav } from \"./TopNav/TopNav.js\";\nimport {\n TURN_OFF_APP_SWITCHER,\n UiShellContentProps,\n UiShellNavComponentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport { emptySideNavItems } from \"./uiShellSharedConstants.js\";\nimport { useFullscreenChromeCollapse } from \"./useFullscreenChromeCollapse.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport { useScrollState } from \"./useScrollState.js\";\n\nconst appSwitcherDefaultAppIcons = [] satisfies AppSwitcherAppIconData[];\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n gridArea: \"app-content\",\n position: \"relative\",\n}));\n\nconst StyledAppSwitcherContainer = styled(\"div\")({\n gridArea: \"app-switcher\",\n});\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n});\n\nconst StyledSideNavContainer = styled(\"div\")({\n gridArea: \"side-nav\",\n});\n\nconst StyledShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners banners banners\"\n \"app-switcher side-nav top-nav\"\n \"app-switcher side-nav app-content\"\n `,\n gridTemplateColumns: \"auto auto 1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n width: \"100vw\",\n}));\n\nconst StyledTopNavContainer = styled(\"div\")({\n gridArea: \"top-nav\",\n});\n\nexport type WideUiShellContentProps = UiShellNavComponentProps &\n UiShellContentProps;\n\n/**\n * Our new Unified Platform UI Shell.\n *\n * This includes the top and side navigation as well as the footer and provides a spot for your app to render into.\n *\n * If an error occurs, this will revert to only showing the app.\n */\nconst WideUiShellContent = ({\n appElement,\n appElementScrollingMode,\n appSwitcherProps,\n hasStandardAppContentPadding = true,\n hasSideNavProps,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: WideUiShellContentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n const hasActiveFullscreen = useHasActiveFullscreen();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const appSwitcherContainerRef = useRef<HTMLDivElement>(null);\n const bannersContainerRef = useRef<HTMLDivElement>(null);\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const { isChromeHidden: isAppSwitcherHidden } = useFullscreenChromeCollapse({\n chromeElementRef: appSwitcherContainerRef,\n collapsedDimension: \"width\",\n isCollapsed: hasActiveFullscreen,\n });\n\n const { isChromeHidden: isBannersHidden } = useFullscreenChromeCollapse({\n chromeElementRef: bannersContainerRef,\n collapsedDimension: \"height\",\n isCollapsed: hasActiveFullscreen,\n });\n\n const { isChromeHidden: isSideNavHidden } = useFullscreenChromeCollapse({\n chromeElementRef: sideNavContainerRef,\n collapsedDimension: \"width\",\n isCollapsed: hasActiveFullscreen,\n });\n\n const { isChromeHidden: isTopNavHidden } = useFullscreenChromeCollapse({\n chromeElementRef: topNavContainerRef,\n collapsedDimension: \"height\",\n isCollapsed: hasActiveFullscreen,\n });\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"comfortable\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <StyledShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <SkipToContent appElement={appElement} />\n\n <StyledBannersContainer\n hidden={isBannersHidden}\n ref={bannersContainerRef}\n >\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n <StyledAppSwitcherContainer\n hidden={isAppSwitcherHidden}\n ref={appSwitcherContainerRef}\n >\n {\n /* If AppSwitcher should be initially visible and we have not yet received props, render AppSwitcher in the loading state */\n initialVisibleSections?.includes(\"AppSwitcher\") &&\n !appSwitcherProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher\n appIcons={appSwitcherDefaultAppIcons}\n isLoading\n selectedAppName=\"\"\n />\n </ErrorBoundary>\n )\n }\n\n {appSwitcherProps && appSwitcherProps !== TURN_OFF_APP_SWITCHER && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher {...appSwitcherProps} />\n </ErrorBoundary>\n )}\n </StyledAppSwitcherContainer>\n\n <StyledSideNavContainer\n hidden={isSideNavHidden}\n ref={sideNavContainerRef}\n >\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") && !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav\n {...{\n ...sideNavProps,\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n />\n </ErrorBoundary>\n )}\n </StyledSideNavContainer>\n\n <StyledTopNavContainer hidden={isTopNavHidden} ref={topNavContainerRef}>\n {\n /* If TopNav should be initially visible and we have not yet received props, render Topnav with minimal inputs */\n initialVisibleSections?.includes(\"TopNav\") &&\n topNavProps === undefined && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )\n }\n\n {topNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n {...topNavProps}\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )}\n </StyledTopNavContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n ref={uiShellAppAreaRef}\n tabIndex={0}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledShellContainer>\n );\n};\n\nconst MemoizedWideUiShellContent = memo(WideUiShellContent);\nMemoizedWideUiShellContent.displayName = \"WideUiShellContent\";\n\nexport { MemoizedWideUiShellContent as WideUiShellContent };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,2BAA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kBAAkB,EAAEvD,kBAAkB,EAAEwD;QAAgB,CACzD;MAAC,CACW,CAChB,EAGJtD,WAAW,IACV,IAAAvC,WAAA,CAAAqE,GAAA,EAACnF,mBAAA,CAAAwF,aAAa;QAACC,QAAQ,EAAE,IAAK;QAACzC,OAAO,EAAEA,OAAQ;QAAAkC,QAAA,EAC9C,IAAApE,WAAA,CAAAqE,GAAA,EAAC5E,OAAA,CAAAgG,MAAM;UAAA,GACDlD,WAAW;UACfmD,iBAAiB,EAAErD,kBAAkB,EAAEsD,cAAe;UACtDC,kBAAkB,EAAEvD,kBAAkB,EAAEwD;QAAgB,CACzD;MAAC,CACW,CAChB;IAAA,CACoB,CAAC,EAExB,IAAA7F,WAAA,CAAAqE,GAAA,EAAChE,kBAAkB;MACjBI,kBAAkB,EAAEgC,cAAc,EAAEhC,kBAAmB;MACvD0D,GAAG,EAAEf,iBAAkB;MACvB0C,QAAQ,EAAE,CAAE;MAAA1B,QAAA,EAEZ,IAAApE,WAAA,CAAAqE,GAAA,EAAC/E,kBAAA,CAAAyG,iBAAiB;QAAClD,iBAAiB,EAAEA;MAAkB,CAAE;IAAC,CACzC,CAAC;EAAA,CACD,CAAC;AAE3B,CAAC;AAED,MAAMmD,0BAA0B,GAAAC,OAAA,CAAAtE,kBAAA,GAAG,IAAAuE,WAAI,EAACvE,kBAAkB,CAAC;AAC3DqE,0BAA0B,CAACG,WAAW,oDAAuB","ignoreList":[]}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createUiShellFullscreenState = void 0;
7
+ var _index = require("../message-bus/index.cjs");
8
+ var _createMessageBus = require("../tools/createMessageBus.cjs");
9
+ var _createStore = require("../tools/createStore.cjs");
10
+ /*!
11
+ * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
12
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
13
+ *
14
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ *
19
+ * See the License for the specific language governing permissions and limitations under the License.
20
+ */const createUiShellFullscreenState = ({
21
+ createFullscreenModeMessageBus = _index.createFullscreenModeMessageBus
22
+ } = {}) => {
23
+ const appFullscreenId = (0, _index.createFullscreenId)();
24
+ const store = (0, _createStore.createStore)({
25
+ connection: {}
26
+ });
27
+ const fullscreenStateBus = (0, _createMessageBus.createMessageBus)();
28
+ const getFullscreenModeMessageBus = () => store.getState("connection")?.fullscreenModeMessageBus;
29
+ const getFullscreenState = () => getFullscreenModeMessageBus()?.getFullscreenState() ?? _index.emptyFullscreenState;
30
+ const exitAppFullscreen = () => {
31
+ getFullscreenModeMessageBus()?.exitFullscreen({
32
+ fullscreenId: appFullscreenId
33
+ });
34
+ };
35
+ const connect = () => {
36
+ const fullscreenModeMessageBus = createFullscreenModeMessageBus();
37
+ const unsubscribeFromFullscreenState = fullscreenModeMessageBus.subscribeToFullscreenState(fullscreenStateBus.publish);
38
+ store.setState("connection", {
39
+ fullscreenModeMessageBus
40
+ });
41
+ fullscreenModeMessageBus.requestFullscreenState();
42
+ return () => {
43
+ exitAppFullscreen();
44
+ unsubscribeFromFullscreenState();
45
+ const hasUnreportedFullscreen = (0, _index.getHasActiveFullscreen)(fullscreenModeMessageBus.getFullscreenState());
46
+ fullscreenModeMessageBus.destroy();
47
+ store.setState("connection", {});
48
+ if (hasUnreportedFullscreen) {
49
+ fullscreenStateBus.publish(_index.emptyFullscreenState);
50
+ }
51
+ };
52
+ };
53
+ return {
54
+ connect,
55
+ enterAppFullscreen: () => {
56
+ getFullscreenModeMessageBus()?.enterFullscreen({
57
+ fullscreenId: appFullscreenId
58
+ });
59
+ },
60
+ exitAppFullscreen,
61
+ getFullscreenState,
62
+ subscribeToFullscreenState: fullscreenStateBus.subscribe
63
+ };
64
+ };
65
+ exports.createUiShellFullscreenState = createUiShellFullscreenState;
66
+ //# sourceMappingURL=createUiShellFullscreenState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createUiShellFullscreenState.cjs","names":["_index","require","_createMessageBus","_createStore","createUiShellFullscreenState","createFullscreenModeMessageBus","defaultCreateFullscreenModeMessageBus","appFullscreenId","createFullscreenId","store","createStore","connection","fullscreenStateBus","createMessageBus","getFullscreenModeMessageBus","getState","fullscreenModeMessageBus","getFullscreenState","emptyFullscreenState","exitAppFullscreen","exitFullscreen","fullscreenId","connect","unsubscribeFromFullscreenState","subscribeToFullscreenState","publish","setState","requestFullscreenState","hasUnreportedFullscreen","getHasActiveFullscreen","destroy","enterAppFullscreen","enterFullscreen","subscribe","exports"],"sources":["../../../src/ui-shell/createUiShellFullscreenState.ts"],"sourcesContent":["/*!\n * Copyright (c) 2026-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 {\n createFullscreenId,\n createFullscreenModeMessageBus as defaultCreateFullscreenModeMessageBus,\n emptyFullscreenState,\n type FullscreenModeMessageBus,\n type FullscreenState,\n getHasActiveFullscreen,\n} from \"../message-bus/index.js\";\nimport { createMessageBus } from \"../tools/createMessageBus.js\";\nimport { createStore } from \"../tools/createStore.js\";\n\nexport type DisconnectUiShellFullscreenState = () => void;\n\nexport type UiShellFullscreenState = {\n /**\n * Start listening for the page's fullscreen stack. UI Shell calls this when it mounts, and the function it returns when it unmounts, so the shell never leaves a listener on the page after it's gone.\n *\n * Disconnecting takes the app area out of fullscreen and reports an empty stack, since nothing is listening anymore.\n */\n connect: () => DisconnectUiShellFullscreenState;\n /**\n * Put the whole app area in fullscreen. UI Shell hides its top nav, side nav, and banners so the app fills the page. Does nothing while disconnected.\n */\n enterAppFullscreen: () => void;\n /**\n * Take the app area out of fullscreen. A `FullscreenRegion` that entered on top of it stays in fullscreen.\n */\n exitAppFullscreen: () => void;\n getFullscreenState: FullscreenModeMessageBus[\"getFullscreenState\"];\n /**\n * Listen for fullscreen changes. Listeners stay subscribed while UI Shell is removed and added back.\n */\n subscribeToFullscreenState: FullscreenModeMessageBus[\"subscribeToFullscreenState\"];\n};\n\nexport type CreateUiShellFullscreenStateArgs = {\n /**\n * Creates the message bus that reads and changes the page's fullscreen stack.\n * @default createFullscreenModeMessageBus\n */\n createFullscreenModeMessageBus?: () => FullscreenModeMessageBus;\n};\n\n/**\n * Create the fullscreen mode instance `renderUiShell` hands to apps not built with Odyssey's React components, so a non-React app can put its whole app area in fullscreen.\n *\n * The app area is one more id in the page's fullscreen stack, so a `FullscreenRegion` can still enter on top of it and Escape goes back one step at a time.\n *\n * It only listens to the page while connected. `renderUiShell` has no dispose call, so the shell's own mount and unmount are the only reliable signal that it's gone.\n */\nexport const createUiShellFullscreenState = ({\n createFullscreenModeMessageBus = defaultCreateFullscreenModeMessageBus,\n}: CreateUiShellFullscreenStateArgs = {}): UiShellFullscreenState => {\n const appFullscreenId = createFullscreenId();\n\n const store = createStore<{\n connection: { fullscreenModeMessageBus?: FullscreenModeMessageBus };\n }>({ connection: {} });\n\n // Listeners subscribe here rather than on the connection, so they outlive a shell removed and added back.\n const fullscreenStateBus = createMessageBus<FullscreenState>();\n\n const getFullscreenModeMessageBus = () =>\n store.getState(\"connection\")?.fullscreenModeMessageBus;\n\n const getFullscreenState = (): FullscreenState =>\n getFullscreenModeMessageBus()?.getFullscreenState() ?? emptyFullscreenState;\n\n const exitAppFullscreen = () => {\n getFullscreenModeMessageBus()?.exitFullscreen({\n fullscreenId: appFullscreenId,\n });\n };\n\n const connect = () => {\n const fullscreenModeMessageBus = createFullscreenModeMessageBus();\n\n const unsubscribeFromFullscreenState =\n fullscreenModeMessageBus.subscribeToFullscreenState(\n fullscreenStateBus.publish,\n );\n\n store.setState(\"connection\", { fullscreenModeMessageBus });\n fullscreenModeMessageBus.requestFullscreenState();\n\n return () => {\n exitAppFullscreen();\n unsubscribeFromFullscreenState();\n\n const hasUnreportedFullscreen = getHasActiveFullscreen(\n fullscreenModeMessageBus.getFullscreenState(),\n );\n\n fullscreenModeMessageBus.destroy();\n store.setState(\"connection\", {});\n\n // The host's next snapshot can't reach a bus that's already closed, so listeners hear the empty stack from here.\n if (hasUnreportedFullscreen) {\n fullscreenStateBus.publish(emptyFullscreenState);\n }\n };\n };\n\n return {\n connect,\n enterAppFullscreen: () => {\n getFullscreenModeMessageBus()?.enterFullscreen({\n fullscreenId: appFullscreenId,\n });\n },\n exitAppFullscreen,\n getFullscreenState,\n subscribeToFullscreenState: fullscreenStateBus.subscribe,\n };\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAoDO,MAAMG,4BAA4B,GAAGA,CAAC;EAC3CC,8BAA8B,GAAGC;AACD,CAAC,GAAG,CAAC,CAAC,KAA6B;EACnE,MAAMC,eAAe,GAAG,IAAAC,yBAAkB,EAAC,CAAC;EAE5C,MAAMC,KAAK,GAAG,IAAAC,wBAAW,EAEtB;IAAEC,UAAU,EAAE,CAAC;EAAE,CAAC,CAAC;EAGtB,MAAMC,kBAAkB,GAAG,IAAAC,kCAAgB,EAAkB,CAAC;EAE9D,MAAMC,2BAA2B,GAAGA,CAAA,KAClCL,KAAK,CAACM,QAAQ,CAAC,YAAY,CAAC,EAAEC,wBAAwB;EAExD,MAAMC,kBAAkB,GAAGA,CAAA,KACzBH,2BAA2B,CA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atest = require("../tools/bufferLatest.cjs");
9
9
  var _createMessageBus = require("../tools/createMessageBus.cjs");
10
10
  var _renderReactInWebComponent = require("../web-component/renderReactInWebComponent.cjs");
11
+ var _createUiShellFullscreenState = require("./createUiShellFullscreenState.cjs");
11
12
  var _UiShell = require("./UiShell.cjs");
12
13
  var _useHasUiShell = require("./useHasUiShell.cjs");
13
14
  var _jsxRuntime = require("react/jsx-runtime");
@@ -82,6 +83,19 @@ const renderUiShell = ({
82
83
  publish: closeSideNavMenu,
83
84
  subscribe: subscribeToCloseSideNavMenu
84
85
  } = (0, _createMessageBus.createMessageBus)();
86
+ const {
87
+ connect: connectFullscreenState,
88
+ enterAppFullscreen: enterAppFullscreenNow,
89
+ exitAppFullscreen: exitAppFullscreenNow,
90
+ getFullscreenState,
91
+ subscribeToFullscreenState
92
+ } = (0, _createUiShellFullscreenState.createUiShellFullscreenState)();
93
+ const requestAfterReactAppReady = (0, _bufferLatest.bufferLatest)({
94
+ publish: sendFullscreenRequest => sendFullscreenRequest(),
95
+ subscribe: subscribeToReactAppSubscribed
96
+ });
97
+ const enterAppFullscreen = () => requestAfterReactAppReady(enterAppFullscreenNow);
98
+ const exitAppFullscreen = () => requestAfterReactAppReady(exitAppFullscreenNow);
85
99
  const slottedElements = Object.fromEntries(Object.entries(optionalComponentSlotNames).map(([optionalComponentKey, slotName]) => {
86
100
  const element = document.createElement("div");
87
101
  element.setAttribute("slot", slotName);
@@ -101,6 +115,7 @@ const renderUiShell = ({
101
115
  appElementScrollingMode: appElementScrollingMode,
102
116
  breakpointConfig: breakpointConfig,
103
117
  closeSideNavMenu: closeSideNavMenu,
118
+ connectFullscreenState: connectFullscreenState,
104
119
  hasStandardAppContentPadding: hasStandardAppContentPadding,
105
120
  initialVisibleSections: initialVisibleSections,
106
121
  onError: onError,
@@ -129,9 +144,13 @@ const renderUiShell = ({
129
144
  appElement,
130
145
  closeRightSideMenu,
131
146
  closeSideNavMenu,
147
+ enterAppFullscreen,
148
+ exitAppFullscreen,
149
+ getFullscreenState,
132
150
  setComponentProps: publishAfterReactAppReadyForProps,
133
151
  setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,
134
152
  slottedElements,
153
+ subscribeToFullscreenState,
135
154
  uiShellElement
136
155
  });
137
156
  });
@@ -140,9 +159,13 @@ const renderUiShell = ({
140
159
  appElement,
141
160
  closeRightSideMenu,
142
161
  closeSideNavMenu,
162
+ enterAppFullscreen,
163
+ exitAppFullscreen,
164
+ getFullscreenState,
143
165
  setComponentProps: publishAfterReactAppReadyForProps,
144
166
  setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,
145
167
  slottedElements,
168
+ subscribeToFullscreenState,
146
169
  uiShellElement
147
170
  };
148
171
  };
@@ -1 +1 @@
1
- {"version":3,"file":"renderUiShell.cjs","names":["_reactErrorBoundary","require","_bufferLatest","_createMessageBus","_renderReactInWebComponent","_UiShell","_useHasUiShell","_jsxRuntime","optionalComponentSlotNames","exports","banners","rightSideMenu","sideNavFooter","topNavLeftSide","topNavRightSide","renderUiShell","appBackgroundColor","appBackgroundContrastMode","appElement","providedAppElement","appElementScrollingMode","breakpointConfig","hasStandardAppContentPadding","initialVisibleSections","languageCode","onError","console","error","onRender","parentElement","sideNavBackgroundColor","sideNavBackgroundContrastColor","topNavBackgroundColor","translationOverrides","nonce","window","cspNonce","document","createElement","setAttribute","uiShellDataAttribute","publish","publishPropChanges","subscribe","subscribeToPropChanges","createMessageBus","publishTranslationSettings","subscribeToTranslationSettings","publishSubscriptionCreated","subscribeToReactAppSubscribed","publishAfterReactAppReadyForProps","bufferLatest","publishAfterReactAppReadyForTranslationSettings","closeRightSideMenu","subscribeToCloseRightSideMenu","closeSideNavMenu","subscribeToCloseSideNavMenu","slottedElements","Object","fromEntries","entries","map","optionalComponentKey","slotName","element","webComponentChildren","values","uiShellElement","renderReactInWebComponent","getReactComponent","reactRootElements","jsx","ErrorBoundary","fallback","children","UiShell","onSubscriptionCreated","optionalComponents","name","uiShellAppElement","appRootElement","uiShellStylesElement","stylesRootElement","webComponentParentElement","unsubscribeFromUnifiedUiShellRendered","setComponentProps","setTranslationSettings","appendChild"],"sources":["../../../src/ui-shell/renderUiShell.tsx"],"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 { type SetStateAction } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { bufferLatest } from \"../tools/bufferLatest.js\";\nimport { createMessageBus, PublishMessage } from \"../tools/createMessageBus.js\";\nimport { renderReactInWebComponent } from \"../web-component/renderReactInWebComponent.js\";\nimport {\n UiShell,\n UiShellProps,\n UiShellTranslationSettings,\n} from \"./UiShell.js\";\nimport { UiShellNavComponentProps } from \"./uiShellContentTypes.js\";\nimport { uiShellDataAttribute } from \"./useHasUiShell.js\";\n\nexport const optionalComponentSlotNames: Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n string\n> = {\n banners: \"banners\",\n rightSideMenu: \"right-side-menu\",\n sideNavFooter: \"side-nav-footer\",\n topNavLeftSide: \"top-nav-left-side\",\n topNavRightSide: \"top-nav-right-side\",\n};\n\nexport type SlottedElements = Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n HTMLDivElement\n>;\n\nexport type RenderedUiShell = {\n closeRightSideMenu: PublishMessage<void>;\n closeSideNavMenu: PublishMessage<void>;\n setComponentProps: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellNavComponentProps>>\n >;\n /**\n * Update the shell's translation settings (`languageCode`, `translationOverrides`) at runtime.\n *\n * Call this after the consumer's locale changes to re-localize shell-rendered chrome\n * (skip-to-content link, top nav icons, side nav toggle) without re-rendering UI Shell.\n *\n * Accepts a React `SetStateAction`: passing a plain object **replaces** the entire\n * settings value (so omitting `translationOverrides` clears it). Pass an updater\n * function — `(previous) => ({ ...previous, languageCode: \"es\" })` — to merge with\n * the previous value.\n */\n setTranslationSettings: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellTranslationSettings>>\n >;\n slottedElements: SlottedElements;\n uiShellElement: ReturnType<typeof renderReactInWebComponent>;\n} & Partial<Pick<UiShellProps, \"appElement\">>;\n\n/**\n * This function renders UI Shell in a web component.\n * This function is agnostic to the UI framework for your app is using. Your application can be another web component, a React app, or even vanilla HTML.\n *\n * **All styles are self-contained.** Even though your application visually renders as children of the web component, its within the global `document` scope, not the web component's `ShadowRoot`. That means any global styles will not affect UI Shell but will affect your application.\n *\n * It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.\n * It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**\n */\nexport const renderUiShell = ({\n appBackgroundColor,\n appBackgroundContrastMode,\n appElement: providedAppElement,\n appElementScrollingMode,\n breakpointConfig,\n hasStandardAppContentPadding,\n initialVisibleSections,\n languageCode,\n onError = console.error,\n onRender,\n parentElement,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n topNavBackgroundColor,\n translationOverrides,\n nonce = window.cspNonce,\n}: {\n /**\n * Optional nonce for CSP compliance.\n */\n nonce?: string;\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, reporting priority 0 issues, and recovering UI Shell when errors occur.\n */\n onError?: () => void;\n /**\n * Notify once when React has rendered UI Shell the first time.\n */\n onRender?: (renderedUiShell: RenderedUiShell) => void;\n /**\n * HTML element used as the container for UI Shell and the App. They're siblings inside this element.\n */\n parentElement: HTMLElement;\n} & Pick<\n UiShellProps,\n | \"appBackgroundColor\"\n | \"appBackgroundContrastMode\"\n | \"appElementScrollingMode\"\n | \"breakpointConfig\"\n | \"hasStandardAppContentPadding\"\n | \"initialVisibleSections\"\n | \"sideNavBackgroundColor\"\n | \"sideNavBackgroundContrastColor\"\n | \"topNavBackgroundColor\"\n> &\n Partial<UiShellTranslationSettings> &\n Partial<Pick<UiShellProps, \"appElement\">>) => {\n const appElement = providedAppElement || document.createElement(\"div\");\n\n // Add this attribute so `PageTemplate` and potentially other components will know if they're in UI Shell with special padding already available.\n parentElement.setAttribute(uiShellDataAttribute, \"\");\n\n const { publish: publishPropChanges, subscribe: subscribeToPropChanges } =\n createMessageBus<SetStateAction<UiShellNavComponentProps>>();\n\n const {\n publish: publishTranslationSettings,\n subscribe: subscribeToTranslationSettings,\n } = createMessageBus<SetStateAction<UiShellTranslationSettings>>();\n\n const {\n publish: publishSubscriptionCreated,\n subscribe: subscribeToReactAppSubscribed,\n } = createMessageBus();\n\n const publishAfterReactAppReadyForProps = bufferLatest({\n publish: publishPropChanges,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const publishAfterReactAppReadyForTranslationSettings = bufferLatest({\n publish: publishTranslationSettings,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n publishAfterReactAppReadyForTranslationSettings({\n languageCode,\n translationOverrides,\n });\n\n const {\n publish: closeRightSideMenu,\n subscribe: subscribeToCloseRightSideMenu,\n } = createMessageBus();\n\n const { publish: closeSideNavMenu, subscribe: subscribeToCloseSideNavMenu } =\n createMessageBus();\n\n const slottedElements = Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => {\n const element = document.createElement(\"div\");\n\n element.setAttribute(\"slot\", slotName);\n\n return [optionalComponentKey, element];\n },\n ),\n ) as SlottedElements;\n\n const webComponentChildren = Object.values(slottedElements);\n\n const uiShellElement = renderReactInWebComponent({\n getReactComponent: (reactRootElements) => (\n <ErrorBoundary fallback={<div data-error />} onError={onError}>\n <UiShell\n appBackgroundColor={appBackgroundColor}\n appBackgroundContrastMode={appBackgroundContrastMode}\n appElement={appElement}\n appElementScrollingMode={appElementScrollingMode}\n breakpointConfig={breakpointConfig}\n closeSideNavMenu={closeSideNavMenu}\n hasStandardAppContentPadding={hasStandardAppContentPadding}\n initialVisibleSections={initialVisibleSections}\n onError={onError}\n onSubscriptionCreated={publishSubscriptionCreated}\n // `optionalComponents` doesn't need to be memoized because gets passed in once, and this isn't a React component.\n optionalComponents={Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => [\n optionalComponentKey,\n <slot name={slotName} />,\n ],\n ),\n )}\n sideNavBackgroundColor={sideNavBackgroundColor}\n sideNavBackgroundContrastColor={sideNavBackgroundContrastColor}\n subscribeToCloseRightSideMenu={subscribeToCloseRightSideMenu}\n subscribeToCloseSideNavMenu={subscribeToCloseSideNavMenu}\n subscribeToPropChanges={subscribeToPropChanges}\n subscribeToTranslationSettings={subscribeToTranslationSettings}\n topNavBackgroundColor={topNavBackgroundColor}\n uiShellAppElement={reactRootElements.appRootElement}\n uiShellStylesElement={reactRootElements.stylesRootElement}\n />\n </ErrorBoundary>\n ),\n webComponentChildren,\n webComponentParentElement: parentElement,\n nonce,\n });\n\n const unsubscribeFromUnifiedUiShellRendered = subscribeToReactAppSubscribed(\n () => {\n unsubscribeFromUnifiedUiShellRendered();\n\n onRender?.({\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n uiShellElement,\n });\n },\n );\n\n parentElement.appendChild(appElement);\n\n return {\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n uiShellElement,\n };\n};\n"],"mappings":";;;;;;AAaA,IAAAA,mBAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAMA,IA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AAO;IACLA,UAAU;IACVmC,kBAAkB;IAClBE,gBAAgB;IAChB8B,iBAAiB,EAAEnC,iCAAiC;IACpDoC,sBAAsB,EAAElC,+CAA+C;IACvEK,eAAe;IACfU;EACF,CAAC;AACH,CAAC;AAAC1D,OAAA,CAAAM,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"renderUiShell.cjs","names":["_reactErrorBoundary","require","_bufferLatest","_createMessageBus","_renderReactInWebComponent","_createUiShellFullscreenState","_UiShell","_useHasUiShell","_jsxRuntime","optionalComponentSlotNames","exports","banners","rightSideMenu","sideNavFooter","topNavLeftSide","topNavRightSide","renderUiShell","appBackgroundColor","appBackgroundContrastMode","appElement","providedAppElement","appElementScrollingMode","breakpointConfig","hasStandardAppContentPadding","initialVisibleSections","languageCode","onError","console","error","onRender","parentElement","sideNavBackgroundColor","sideNavBackgroundContrastColor","topNavBackgroundColor","translationOverrides","nonce","window","cspNonce","document","createElement","setAttribute","uiShellDataAttribute","publish","publishPropChanges","subscribe","subscribeToPropChanges","createMessageBus","publishTranslationSettings","subscribeToTranslationSettings","publishSubscriptionCreated","subscribeToReactAppSubscribed","publishAfterReactAppReadyForProps","bufferLatest","publishAfterReactAppReadyForTranslationSettings","closeRightSideMenu","subscribeToCloseRightSideMenu","closeSideNavMenu","subscribeToCloseSideNavMenu","connect","connectFullscreenState","enterAppFullscreen","enterAppFullscreenNow","exitAppFullscreen","exitAppFullscreenNow","getFullscreenState","subscribeToFullscreenState","createUiShellFullscreenState","requestAfterReactAppReady","sendFullscreenRequest","slottedElements","Object","fromEntries","entries","map","optionalComponentKey","slotName","element","webComponentChildren","values","uiShellElement","renderReactInWebComponent","getReactComponent","reactRootElements","jsx","ErrorBoundary","fallback","children","UiShell","onSubscriptionCreated","optionalComponents","name","uiShellAppElement","appRootElement","uiShellStylesElement","stylesRootElement","webComponentParentElement","unsubscribeFromUnifiedUiShellRendered","setComponentProps","setTranslationSettings","appendChild"],"sources":["../../../src/ui-shell/renderUiShell.tsx"],"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 { type SetStateAction } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { type FullscreenModeMessageBus } from \"../message-bus/index.js\";\nimport { bufferLatest } from \"../tools/bufferLatest.js\";\nimport { createMessageBus, PublishMessage } from \"../tools/createMessageBus.js\";\nimport { renderReactInWebComponent } from \"../web-component/renderReactInWebComponent.js\";\nimport { createUiShellFullscreenState } from \"./createUiShellFullscreenState.js\";\nimport {\n UiShell,\n UiShellProps,\n UiShellTranslationSettings,\n} from \"./UiShell.js\";\nimport { UiShellNavComponentProps } from \"./uiShellContentTypes.js\";\nimport { uiShellDataAttribute } from \"./useHasUiShell.js\";\n\nexport const optionalComponentSlotNames: Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n string\n> = {\n banners: \"banners\",\n rightSideMenu: \"right-side-menu\",\n sideNavFooter: \"side-nav-footer\",\n topNavLeftSide: \"top-nav-left-side\",\n topNavRightSide: \"top-nav-right-side\",\n};\n\nexport type SlottedElements = Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n HTMLDivElement\n>;\n\nexport type RenderedUiShell = {\n closeRightSideMenu: PublishMessage<void>;\n closeSideNavMenu: PublishMessage<void>;\n /**\n * Put the whole app area in fullscreen. UI Shell hides its top nav, side nav, and banners so the app fills the page.\n *\n * Use this when your app isn't built with Odyssey's `FullscreenButton`, for example a non-React app.\n *\n * The app area is one more entry in the page's fullscreen stack, so a `FullscreenRegion` can enter on top of it, and Escape goes back one step at a time. Removing `uiShellElement` from the page clears the stack.\n */\n enterAppFullscreen: () => void;\n /**\n * Take the app area out of fullscreen. A `FullscreenRegion` that entered on top of it stays in fullscreen.\n */\n exitAppFullscreen: () => void;\n /**\n * The page's current fullscreen state.\n */\n getFullscreenState: FullscreenModeMessageBus[\"getFullscreenState\"];\n setComponentProps: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellNavComponentProps>>\n >;\n /**\n * Update the shell's translation settings (`languageCode`, `translationOverrides`) at runtime.\n *\n * Call this after the consumer's locale changes to re-localize shell-rendered chrome (skip-to-content link, top nav icons, side nav toggle) without re-rendering UI Shell.\n *\n * Accepts a React `SetStateAction`: passing a plain object **replaces** the entire settings value (so omitting `translationOverrides` clears it). Pass an updater function — `(previous) => ({ ...previous, languageCode: \"es\" })` — to merge with\n * the previous value.\n */\n setTranslationSettings: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellTranslationSettings>>\n >;\n slottedElements: SlottedElements;\n /**\n * Listen for fullscreen changes anywhere on the page, including ones from other apps. Returns a function that stops listening.\n */\n subscribeToFullscreenState: FullscreenModeMessageBus[\"subscribeToFullscreenState\"];\n uiShellElement: ReturnType<typeof renderReactInWebComponent>;\n} & Partial<Pick<UiShellProps, \"appElement\">>;\n\n/**\n * This function renders UI Shell in a web component.\n * This function is agnostic to the UI framework for your app is using. Your application can be another web component, a React app, or even vanilla HTML.\n *\n * **All styles are self-contained.** Even though your application visually renders as children of the web component, its within the global `document` scope, not the web component's `ShadowRoot`. That means any global styles will not affect UI Shell but will affect your application.\n *\n * It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.\n * It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**\n */\nexport const renderUiShell = ({\n appBackgroundColor,\n appBackgroundContrastMode,\n appElement: providedAppElement,\n appElementScrollingMode,\n breakpointConfig,\n hasStandardAppContentPadding,\n initialVisibleSections,\n languageCode,\n onError = console.error,\n onRender,\n parentElement,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n topNavBackgroundColor,\n translationOverrides,\n nonce = window.cspNonce,\n}: {\n /**\n * Optional nonce for CSP compliance.\n */\n nonce?: string;\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, reporting priority 0 issues, and recovering UI Shell when errors occur.\n */\n onError?: () => void;\n /**\n * Notify once when React has rendered UI Shell the first time.\n */\n onRender?: (renderedUiShell: RenderedUiShell) => void;\n /**\n * HTML element used as the container for UI Shell and the App. They're siblings inside this element.\n */\n parentElement: HTMLElement;\n} & Pick<\n UiShellProps,\n | \"appBackgroundColor\"\n | \"appBackgroundContrastMode\"\n | \"appElementScrollingMode\"\n | \"breakpointConfig\"\n | \"hasStandardAppContentPadding\"\n | \"initialVisibleSections\"\n | \"sideNavBackgroundColor\"\n | \"sideNavBackgroundContrastColor\"\n | \"topNavBackgroundColor\"\n> &\n Partial<UiShellTranslationSettings> &\n Partial<Pick<UiShellProps, \"appElement\">>) => {\n const appElement = providedAppElement || document.createElement(\"div\");\n\n // Add this attribute so `PageTemplate` and potentially other components will know if they're in UI Shell with special padding already available.\n parentElement.setAttribute(uiShellDataAttribute, \"\");\n\n const { publish: publishPropChanges, subscribe: subscribeToPropChanges } =\n createMessageBus<SetStateAction<UiShellNavComponentProps>>();\n\n const {\n publish: publishTranslationSettings,\n subscribe: subscribeToTranslationSettings,\n } = createMessageBus<SetStateAction<UiShellTranslationSettings>>();\n\n const {\n publish: publishSubscriptionCreated,\n subscribe: subscribeToReactAppSubscribed,\n } = createMessageBus();\n\n const publishAfterReactAppReadyForProps = bufferLatest({\n publish: publishPropChanges,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const publishAfterReactAppReadyForTranslationSettings = bufferLatest({\n publish: publishTranslationSettings,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n publishAfterReactAppReadyForTranslationSettings({\n languageCode,\n translationOverrides,\n });\n\n const {\n publish: closeRightSideMenu,\n subscribe: subscribeToCloseRightSideMenu,\n } = createMessageBus();\n\n const { publish: closeSideNavMenu, subscribe: subscribeToCloseSideNavMenu } =\n createMessageBus();\n\n const {\n connect: connectFullscreenState,\n enterAppFullscreen: enterAppFullscreenNow,\n exitAppFullscreen: exitAppFullscreenNow,\n getFullscreenState,\n subscribeToFullscreenState,\n } = createUiShellFullscreenState();\n\n // The page's fullscreen host starts when UI Shell's React tree renders, so a request made before then would reach no one. Like props, only the latest request is kept, so an enter followed by an exit leaves the app where it was.\n const requestAfterReactAppReady = bufferLatest<() => void>({\n publish: (sendFullscreenRequest) => sendFullscreenRequest(),\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const enterAppFullscreen = () =>\n requestAfterReactAppReady(enterAppFullscreenNow);\n\n const exitAppFullscreen = () =>\n requestAfterReactAppReady(exitAppFullscreenNow);\n\n const slottedElements = Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => {\n const element = document.createElement(\"div\");\n\n element.setAttribute(\"slot\", slotName);\n\n return [optionalComponentKey, element];\n },\n ),\n ) as SlottedElements;\n\n const webComponentChildren = Object.values(slottedElements);\n\n const uiShellElement = renderReactInWebComponent({\n getReactComponent: (reactRootElements) => (\n <ErrorBoundary fallback={<div data-error />} onError={onError}>\n <UiShell\n appBackgroundColor={appBackgroundColor}\n appBackgroundContrastMode={appBackgroundContrastMode}\n appElement={appElement}\n appElementScrollingMode={appElementScrollingMode}\n breakpointConfig={breakpointConfig}\n closeSideNavMenu={closeSideNavMenu}\n connectFullscreenState={connectFullscreenState}\n hasStandardAppContentPadding={hasStandardAppContentPadding}\n initialVisibleSections={initialVisibleSections}\n onError={onError}\n onSubscriptionCreated={publishSubscriptionCreated}\n // `optionalComponents` doesn't need to be memoized because gets passed in once, and this isn't a React component.\n optionalComponents={Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => [\n optionalComponentKey,\n <slot name={slotName} />,\n ],\n ),\n )}\n sideNavBackgroundColor={sideNavBackgroundColor}\n sideNavBackgroundContrastColor={sideNavBackgroundContrastColor}\n subscribeToCloseRightSideMenu={subscribeToCloseRightSideMenu}\n subscribeToCloseSideNavMenu={subscribeToCloseSideNavMenu}\n subscribeToPropChanges={subscribeToPropChanges}\n subscribeToTranslationSettings={subscribeToTranslationSettings}\n topNavBackgroundColor={topNavBackgroundColor}\n uiShellAppElement={reactRootElements.appRootElement}\n uiShellStylesElement={reactRootElements.stylesRootElement}\n />\n </ErrorBoundary>\n ),\n webComponentChildren,\n webComponentParentElement: parentElement,\n nonce,\n });\n\n const unsubscribeFromUnifiedUiShellRendered = subscribeToReactAppSubscribed(\n () => {\n unsubscribeFromUnifiedUiShellRendered();\n\n onRender?.({\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n enterAppFullscreen,\n exitAppFullscreen,\n getFullscreenState,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n subscribeToFullscreenState,\n uiShellElement,\n });\n },\n );\n\n parentElement.appendChild(appElement);\n\n return {\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n enterAppFullscreen,\n exitAppFullscreen,\n getFullscreenState,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n subscribeToFullscreenState,\n uiShellElement,\n } satisfies RenderedUiShell;\n};\n"],"mappings":";;;;;;AAaA,IAAAA,mBAAA,GAAAC,OAAA;AAGA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,6BAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAMA,IAAAM,cAAA,GAAAN,OAAA;AAA0D,IAAAO,WAAA,GAAAP,OAAA;AA1B1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBO,MAAMQ,0BAGZ,GAAAC,OAAA,CAAAD,0BAAA,G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AC,CAAC;EAEF,MAAM6D,qCAAqC,GAAG9C,6BAA6B,CACzE,MAAM;IACJ8C,qCAAqC,CAAC,CAAC;IAEvCnE,QAAQ,GAAG;MACTV,UAAU;MACVmC,kBAAkB;MAClBE,gBAAgB;MAChBI,kBAAkB;MAClBE,iBAAiB;MACjBE,kBAAkB;MAClBiC,iBAAiB,EAAE9C,iCAAiC;MACpD+C,sBAAsB,EAAE7C,+CAA+C;MACvEgB,eAAe;MACfJ,0BAA0B;MAC1Bc;IACF,CAAC,CAAC;EACJ,CACF,CAAC;EAEDjD,aAAa,CAACqE,WAAW,CAAChF,UAAU,CAAC;EAErC,OAAO;IACLA,UAAU;IACVmC,kBAAkB;IAClBE,gBAAgB;IAChBI,kBAAkB;IAClBE,iBAAiB;IACjBE,kBAAkB;IAClBiC,iBAAiB,EAAE9C,iCAAiC;IACpD+C,sBAAsB,EAAE7C,+CAA+C;IACvEgB,eAAe;IACfJ,0BAA0B;IAC1Bc;EACF,CAAC;AACH,CAAC;AAACrE,OAAA,CAAAM,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"uiShellContentTypes.cjs","names":["subComponentNames","exports","TURN_OFF_APP_SWITCHER","Symbol"],"sources":["../../../src/ui-shell/uiShellContentTypes.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\nimport { ReactElement } from \"react\";\nimport { ErrorBoundaryProps } from \"react-error-boundary\";\n\nimport { AppSwitcherProps } from \"./AppSwitcher/AppSwitcher.js\";\nimport { SideNavProps } from \"./SideNav/types.js\";\nimport { TopNavProps } from \"./TopNav/TopNav.js\";\nimport { UiShellLogoProps } from \"./UiShellLogo.js\";\n\nexport const subComponentNames = [\"TopNav\", \"SideNav\", \"AppSwitcher\"] as const;\nexport type SubComponentName = (typeof subComponentNames)[number];\n\nexport const TURN_OFF_APP_SWITCHER = Symbol(\n \"Turn off AppSwitcher in the event of an error.\",\n);\n\nexport type UiShellNavComponentProps = {\n /**\n * Object that gets pass directly to the app switcher component.\n *\n * In this special case, a value of `TURN_OFF_APP_SWITCHER` tells the `appSwitcher` to not appear. This can occur if there's an error loading the items. In that case, we don't want it to appear.\n */\n appSwitcherProps?: AppSwitcherProps | typeof TURN_OFF_APP_SWITCHER;\n /**\n * Logo that displays in the side nav header and narrow top nav.\n *\n * This used to be `sideNavProps.logoProps`, but the logo is used both in the side nav and narrow top nav. If you don't have a side nav, you still need a logo in narrow view.\n */\n logoProps?: UiShellLogoProps;\n /**\n * Object that gets pass directly to the side nav component. If `undefined` and in `initialVisibleSections`, SideNav will be initially rendered. Pass `null` to hide a previously-visible SideNav.\n */\n sideNavProps?: Omit<SideNavProps, \"footerComponent\"> | null;\n /**\n * Object that gets pass directly to the top nav component. If `undefined` and in `initialVisibleSections`, TopNav will be initially rendered. Pass `null` to hide a previously-visible TopNav.\n */\n topNavProps?: Omit<\n TopNavProps,\n \"leftSideComponent\" | \"rightSideComponent\"\n > | null;\n};\n\nexport type UiShellContentProps = {\n /**\n * **WARNING:** UI Shell will modify the styling of this element.\n * HTML element where the app gets rendered. This typically called the React root element for your app.\n *\n * When passed, the app is expected to render into this element, not the Shadow DOM.\n *\n * UI Shell will position this element appropriately to match the content area inside the Shadow DOM.\n *\n * A major benefit to having this element separate from UI Shell is related to encapsulation. UI Shell has the capability of rendering inside a web component, but in doing so, the app would be subject to the styles in the web component and not the page itself.\n * The app should either be in its own web component or use the global styles, and having this separate element allows us to accomplish that goal.\n */\n appElement: HTMLDivElement;\n /**\n * Controls the scrolling behavior of the app element area.\n *\n * In the case of an app wanting to control their own scrolling, use `\"none\"`.\n *\n * Most apps will want to use `\"vertical\"` and let UI Shell manage scrolling behavior.\n */\n appElementScrollingMode: \"none\" | \"horizontal\" | \"vertical\" | \"both\";\n /**\n * Says if `sideNavProps` has been passed in. This is important for rendering as we will override `sideNavProps` internally, but we need to know if they were passed in for showing the loading state.\n */\n hasSideNavProps: boolean;\n /**\n * Defaults to `true`.\n *\n * If `false`, the content area will have no padding provided. This is for the case where an app wants to manage this separate from UI Shell.\n */\n hasStandardAppContentPadding?: boolean;\n /**\n * Parts of UI Shell that are visible when rendered.\n *\n * For example, if `sideNavProps` is `undefined`, should there be a space left for side nav or should that space not exist?\n */\n initialVisibleSections?: SubComponentName[];\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, flagging \"p0\"s, and recovering UI Shell when errors occur.\n */\n onError?: ErrorBoundaryProps[\"onError\"];\n /**\n * Components that will render as children of various other components such as the top nav or side nav.\n */\n optionalComponents?: {\n /**\n * Spot for banners to go at the top of the page.\n */\n banners?: ReactElement;\n /**\n * In narrow view, this is the right-side menu area.\n */\n rightSideMenu?: ReactElement;\n /**\n * Footer in the side nav.\n */\n sideNavFooter?: SideNavProps[\"footerComponent\"];\n /**\n * Top nav is divided into 2 parts. This is the left-aligned half.\n */\n topNavLeftSide?: TopNavProps[\"leftSideComponent\"];\n /**\n * Top nav is divided into 2 parts. This is the right-aligned half.\n */\n topNavRightSide?: TopNavProps[\"rightSideComponent\"];\n };\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUO,MAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAU;AAGvE,MAAME,qBAAqB,GAAAD,OAAA,CAAAC,qBAAA,GAAGC,MAAM,CACzC,gDACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"uiShellContentTypes.cjs","names":["subComponentNames","exports","TURN_OFF_APP_SWITCHER","Symbol"],"sources":["../../../src/ui-shell/uiShellContentTypes.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\nimport { ReactElement } from \"react\";\nimport { ErrorBoundaryProps } from \"react-error-boundary\";\n\nimport { AppSwitcherProps } from \"./AppSwitcher/AppSwitcher.js\";\nimport { SideNavProps } from \"./SideNav/types.js\";\nimport { TopNavProps } from \"./TopNav/TopNav.js\";\nimport { UiShellLogoProps } from \"./UiShellLogo.js\";\n\nexport const subComponentNames = [\"TopNav\", \"SideNav\", \"AppSwitcher\"] as const;\nexport type SubComponentName = (typeof subComponentNames)[number];\n\nexport const TURN_OFF_APP_SWITCHER = Symbol(\n \"Turn off AppSwitcher in the event of an error.\",\n);\n\nexport type UiShellNavComponentProps = {\n /**\n * Object that gets pass directly to the app switcher component.\n *\n * In this special case, a value of `TURN_OFF_APP_SWITCHER` tells the `appSwitcher` to not appear. This can occur if there's an error loading the items. In that case, we don't want it to appear.\n */\n appSwitcherProps?: AppSwitcherProps | typeof TURN_OFF_APP_SWITCHER;\n /**\n * Logo that displays in the side nav header and narrow top nav.\n *\n * This used to be `sideNavProps.logoProps`, but the logo is used both in the side nav and narrow top nav. If you don't have a side nav, you still need a logo in narrow view.\n */\n logoProps?: UiShellLogoProps;\n /**\n * Object that gets pass directly to the side nav component. If `undefined` and in `initialVisibleSections`, SideNav will be initially rendered. Pass `null` to hide a previously-visible SideNav.\n */\n sideNavProps?: Omit<SideNavProps, \"footerComponent\"> | null;\n /**\n * Object that gets pass directly to the top nav component. If `undefined` and in `initialVisibleSections`, TopNav will be initially rendered. Pass `null` to hide a previously-visible TopNav.\n */\n topNavProps?: Omit<\n TopNavProps,\n \"leftSideComponent\" | \"rightSideComponent\"\n > | null;\n};\n\nexport type UiShellContentProps = {\n /**\n * **WARNING:** UI Shell will modify the styling of this element.\n * HTML element where the app gets rendered. This typically called the React root element for your app.\n *\n * When passed, the app is expected to render into this element, not the Shadow DOM.\n *\n * UI Shell will position this element appropriately to match the content area inside the Shadow DOM.\n *\n * A major benefit to having this element separate from UI Shell is related to encapsulation. UI Shell has the capability of rendering inside a web component, but in doing so, the app would be subject to the styles in the web component and not the page itself. The app should either be in its own web component or use the global styles, and having this separate element allows us to accomplish that goal.\n */\n appElement: HTMLDivElement;\n /**\n * Controls the scrolling behavior of the app element area.\n *\n * In the case of an app wanting to control their own scrolling, use `\"none\"`.\n *\n * Most apps will want to use `\"vertical\"` and let UI Shell manage scrolling behavior.\n */\n appElementScrollingMode: \"none\" | \"horizontal\" | \"vertical\" | \"both\";\n /**\n * Says if `sideNavProps` has been passed in. This is important for rendering as we will override `sideNavProps` internally, but we need to know if they were passed in for showing the loading state.\n */\n hasSideNavProps: boolean;\n /**\n * Defaults to `true`.\n *\n * If `false`, the content area will have no padding provided. This is for the case where an app wants to manage this separate from UI Shell.\n */\n hasStandardAppContentPadding?: boolean;\n /**\n * Parts of UI Shell that are visible when rendered.\n *\n * For example, if `sideNavProps` is `undefined`, should there be a space left for side nav or should that space not exist?\n */\n initialVisibleSections?: SubComponentName[];\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, flagging \"p0\"s, and recovering UI Shell when errors occur.\n */\n onError?: ErrorBoundaryProps[\"onError\"];\n /**\n * Components that will render as children of various other components such as the top nav or side nav.\n */\n optionalComponents?: {\n /**\n * Spot for banners to go at the top of the page.\n */\n banners?: ReactElement;\n /**\n * In narrow view, this is the right-side menu area.\n */\n rightSideMenu?: ReactElement;\n /**\n * Footer in the side nav.\n */\n sideNavFooter?: SideNavProps[\"footerComponent\"];\n /**\n * Top nav is divided into 2 parts. This is the left-aligned half.\n */\n topNavLeftSide?: TopNavProps[\"leftSideComponent\"];\n /**\n * Top nav is divided into 2 parts. This is the right-aligned half.\n */\n topNavRightSide?: TopNavProps[\"rightSideComponent\"];\n };\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUO,MAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAU;AAGvE,MAAME,qBAAqB,GAAAD,OAAA,CAAAC,qBAAA,GAAGC,MAAM,CACzC,gDACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"uiShellSharedConstants.cjs","names":["SIDE_NAV_VISIBILITY_TOGGLE_ICON_POSITION","exports","SIDE_NAV_WIDTH","TOP_NAV_HEIGHT","UI_SHELL_BASE_Z_INDEX","UI_SHELL_RAISED_Z_INDEX","UI_SHELL_OVERLAY_Z_INDEX","SKIP_LINKS_Z_INDEX","emptySideNavItems"],"sources":["../../../src/ui-shell/uiShellSharedConstants.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\nimport { SideNavProps } from \"./SideNav/types.js\";\n\n// It's important to bring all our constant values together, so we can change them in one location and ensure the values are all correct relative to each other.\n// This also lends us the capability of swapping these out for a more robust solution in the future.\n\n/* The side nav collapse icon is placed absolutely from the top (Logo container + nav header height) to align it in the middle of the nav header text */\nexport const SIDE_NAV_VISIBILITY_TOGGLE_ICON_POSITION = \"77px\";\n\nexport const SIDE_NAV_WIDTH = \"300px\";\n\nexport const TOP_NAV_HEIGHT = `${64 / 14}rem`;\n\nexport const UI_SHELL_BASE_Z_INDEX = 100;\n\nexport const UI_SHELL_RAISED_Z_INDEX = 101;\n\nexport const UI_SHELL_OVERLAY_Z_INDEX = 200;\n\nexport const SKIP_LINKS_Z_INDEX = 300;\n\nexport const emptySideNavItems = [] satisfies SideNavProps[\"sideNavItems\"];\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAQO,MAAMA,wCAAwC,GAAAC,OAAA,CAAAD,wCAAA,GAAG,MAAM;AAEvD,MAAME,cAAc,GAAAD,OAAA,CAAAC,cAAA,GAAG,OAAO;AAE9B,MAAMC,cAAc,GAAAF,OAAA,CAAAE,cAAA,GAAG,GAAG,EAAE,GAAG,EAAE,KAAK;AAEtC,MAAMC,qBAAqB,GAAAH,OAAA,CAAAG,qBAAA,GAAG,GAAG;AAEjC,MAAMC,uBAAuB,GAAAJ,OAAA,CAAAI,uBAAA,GAAG,GAAG;AAEnC,MAAMC,wBAAwB,GAAAL,OAAA,CAAAK,wBAAA,GAAG,GAAG;AAEpC,MAAMC,kBAAkB,GAAAN,OAAA,CAAAM,kBAAA,GAAG,GAAG;AAE9B,MAAMC,iBAAiB,GAAAP,OAAA,CAAAO,iBAAA,GAAG,EAAyC","ignoreList":[]}
1
+ {"version":3,"file":"uiShellSharedConstants.cjs","names":["SIDE_NAV_VISIBILITY_TOGGLE_ICON_POSITION","exports","SIDE_NAV_WIDTH","TOP_NAV_HEIGHT","UI_SHELL_BASE_Z_INDEX","UI_SHELL_RAISED_Z_INDEX","UI_SHELL_OVERLAY_Z_INDEX","SKIP_LINKS_Z_INDEX","emptySideNavItems"],"sources":["../../../src/ui-shell/uiShellSharedConstants.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\nimport { SideNavProps } from \"./SideNav/types.js\";\n\n// It's important to bring all our constant values together, so we can change them in one location and ensure the values are all correct relative to each other. This also lends us the capability of swapping these out for a more robust solution in the future.\n\n/* The side nav collapse icon is placed absolutely from the top (Logo container + nav header height) to align it in the middle of the nav header text */\nexport const SIDE_NAV_VISIBILITY_TOGGLE_ICON_POSITION = \"77px\";\n\nexport const SIDE_NAV_WIDTH = \"300px\";\n\nexport const TOP_NAV_HEIGHT = `${64 / 14}rem`;\n\nexport const UI_SHELL_BASE_Z_INDEX = 100;\n\nexport const UI_SHELL_RAISED_Z_INDEX = 101;\n\nexport const UI_SHELL_OVERLAY_Z_INDEX = 200;\n\nexport const SKIP_LINKS_Z_INDEX = 300;\n\nexport const emptySideNavItems = [] satisfies SideNavProps[\"sideNavItems\"];\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAOO,MAAMA,wCAAwC,GAAAC,OAAA,CAAAD,wCAAA,GAAG,MAAM;AAEvD,MAAME,cAAc,GAAAD,OAAA,CAAAC,cAAA,GAAG,OAAO;AAE9B,MAAMC,cAAc,GAAAF,OAAA,CAAAE,cAAA,GAAG,GAAG,EAAE,GAAG,EAAE,KAAK;AAEtC,MAAMC,qBAAqB,GAAAH,OAAA,CAAAG,qBAAA,GAAG,GAAG;AAEjC,MAAMC,uBAAuB,GAAAJ,OAAA,CAAAI,uBAAA,GAAG,GAAG;AAEnC,MAAMC,wBAAwB,GAAAL,OAAA,CAAAK,wBAAA,GAAG,GAAG;AAEpC,MAAMC,kBAAkB,GAAAN,OAAA,CAAAM,kBAAA,GAAG,GAAG;AAE9B,MAAMC,iBAAiB,GAAAP,OAAA,CAAAO,iBAAA,GAAG,EAAyC","ignoreList":[]}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useFullscreenChromeCollapse = void 0;
7
+ var _react = require("react");
8
+ var _AnimationContext = require("../AnimationContext.cjs");
9
+ var _fullscreenTransitionTokens = require("../pendingDesignTokens/fullscreenTransitionTokens.cjs");
10
+ /*!
11
+ * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
12
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
13
+ *
14
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ *
19
+ * See the License for the specific language governing permissions and limitations under the License.
20
+ */const useFullscreenChromeCollapse = ({
21
+ chromeElementRef,
22
+ collapsedDimension,
23
+ isCollapsed
24
+ }) => {
25
+ const hasAnimations = (0, _AnimationContext.useAnimation)();
26
+ const [hasFinishedCollapsing, setHasFinishedCollapsing] = (0, _react.useState)(isCollapsed);
27
+ const previousIsCollapsedRef = (0, _react.useRef)(isCollapsed);
28
+ const interruptedSizeRef = (0, _react.useRef)(undefined);
29
+ (0, _react.useLayoutEffect)(() => {
30
+ const hasCollapseChanged = previousIsCollapsedRef.current !== isCollapsed;
31
+ previousIsCollapsedRef.current = isCollapsed;
32
+ if (!isCollapsed) {
33
+ setHasFinishedCollapsing(false);
34
+ }
35
+ const chromeElement = chromeElementRef.current;
36
+ if (!hasCollapseChanged || !hasAnimations || !chromeElement) {
37
+ return;
38
+ }
39
+ const expandedKeyframe = {
40
+ [collapsedDimension]: `${chromeElement.getBoundingClientRect()[collapsedDimension]}px`,
41
+ overflow: "hidden"
42
+ };
43
+ const collapsedKeyframe = {
44
+ [collapsedDimension]: "0px",
45
+ overflow: "hidden"
46
+ };
47
+ const interruptedSize = interruptedSizeRef.current;
48
+ interruptedSizeRef.current = undefined;
49
+ const restingStartKeyframe = isCollapsed ? expandedKeyframe : collapsedKeyframe;
50
+ const startKeyframe = interruptedSize === undefined ? restingStartKeyframe : {
51
+ [collapsedDimension]: `${interruptedSize}px`,
52
+ overflow: "hidden"
53
+ };
54
+ const chromeAnimation = chromeElement.animate(isCollapsed ? [startKeyframe, collapsedKeyframe] : [startKeyframe, expandedKeyframe], {
55
+ duration: _fullscreenTransitionTokens.fullscreenTransitionTokens.durationMilliseconds,
56
+ easing: _fullscreenTransitionTokens.fullscreenTransitionTokens.easing,
57
+ fill: isCollapsed ? "forwards" : "none"
58
+ });
59
+ if (isCollapsed) {
60
+ chromeAnimation.addEventListener("finish", () => {
61
+ setHasFinishedCollapsing(true);
62
+ });
63
+ }
64
+ return () => {
65
+ interruptedSizeRef.current = chromeAnimation.playState === "running" ? chromeElement.getBoundingClientRect()[collapsedDimension] : undefined;
66
+ chromeAnimation.cancel();
67
+ };
68
+ }, [chromeElementRef, collapsedDimension, hasAnimations, isCollapsed]);
69
+ return {
70
+ isChromeHidden: isCollapsed && (hasFinishedCollapsing || !hasAnimations)
71
+ };
72
+ };
73
+ exports.useFullscreenChromeCollapse = useFullscreenChromeCollapse;
74
+ //# sourceMappingURL=useFullscreenChromeCollapse.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFullscreenChromeCollapse.cjs","names":["_react","require","_AnimationContext","_fullscreenTransitionTokens","useFullscreenChromeCollapse","chromeElementRef","collapsedDimension","isCollapsed","hasAnimations","useAnimation","hasFinishedCollapsing","setHasFinishedCollapsing","useState","previousIsCollapsedRef","useRef","interruptedSizeRef","undefined","useLayoutEffect","hasCollapseChanged","current","chromeElement","expandedKeyframe","getBoundingClientRect","overflow","collapsedKeyframe","interruptedSize","restingStartKeyframe","startKeyframe","chromeAnimation","animate","duration","fullscreenTransitionTokens","durationMilliseconds","easing","fill","addEventListener","playState","cancel","isChromeHidden","exports"],"sources":["../../../src/ui-shell/useFullscreenChromeCollapse.ts"],"sourcesContent":["/*!\n * Copyright (c) 2026-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 { type RefObject, useLayoutEffect, useRef, useState } from \"react\";\n\nimport { useAnimation } from \"../AnimationContext.js\";\nimport { fullscreenTransitionTokens } from \"../pendingDesignTokens/fullscreenTransitionTokens.js\";\n\nexport type UseFullscreenChromeCollapseArgs = {\n /** The part of the shell that shrinks away while fullscreen is active. */\n chromeElementRef: RefObject<HTMLElement | null>;\n /** The side that shrinks: `height` for a bar across the shell, `width` for a column beside the app. */\n collapsedDimension: \"height\" | \"width\";\n /** If `true`, fullscreen is active and the chrome collapses. */\n isCollapsed: boolean;\n};\n\n/**\n * Shrinks a part of the shell to nothing when fullscreen starts, and grows it back when fullscreen ends, so the user can see where the navigation went.\n *\n * Returns `isChromeHidden`, which turns `true` only once the collapse has finished.\n */\nexport const useFullscreenChromeCollapse = ({\n chromeElementRef,\n collapsedDimension,\n isCollapsed,\n}: UseFullscreenChromeCollapseArgs) => {\n const hasAnimations = useAnimation();\n const [hasFinishedCollapsing, setHasFinishedCollapsing] =\n useState(isCollapsed);\n const previousIsCollapsedRef = useRef(isCollapsed);\n const interruptedSizeRef = useRef<number>(undefined);\n\n // A layout effect, so the first keyframe applies before the browser paints the new state.\n useLayoutEffect(() => {\n const hasCollapseChanged = previousIsCollapsedRef.current !== isCollapsed;\n previousIsCollapsedRef.current = isCollapsed;\n\n if (!isCollapsed) {\n setHasFinishedCollapsing(false);\n }\n\n const chromeElement = chromeElementRef.current;\n\n if (!hasCollapseChanged || !hasAnimations || !chromeElement) {\n return;\n }\n\n const expandedKeyframe = {\n [collapsedDimension]: `${chromeElement.getBoundingClientRect()[collapsedDimension]}px`,\n overflow: \"hidden\",\n };\n const collapsedKeyframe = {\n [collapsedDimension]: \"0px\",\n overflow: \"hidden\",\n };\n // Fullscreen can end before the collapse finishes. Starting from the size the chrome had reached keeps it from snapping shut before it grows back.\n const interruptedSize = interruptedSizeRef.current;\n interruptedSizeRef.current = undefined;\n const restingStartKeyframe = isCollapsed\n ? expandedKeyframe\n : collapsedKeyframe;\n const startKeyframe =\n interruptedSize === undefined\n ? restingStartKeyframe\n : { [collapsedDimension]: `${interruptedSize}px`, overflow: \"hidden\" };\n\n const chromeAnimation = chromeElement.animate(\n isCollapsed\n ? [startKeyframe, collapsedKeyframe]\n : [startKeyframe, expandedKeyframe],\n {\n duration: fullscreenTransitionTokens.durationMilliseconds,\n easing: fullscreenTransitionTokens.easing,\n // Holds the collapsed size until React hides the element. Without it, the chrome springs back to full size for a frame after the animation ends.\n fill: isCollapsed ? \"forwards\" : \"none\",\n },\n );\n\n if (isCollapsed) {\n chromeAnimation.addEventListener(\"finish\", () => {\n setHasFinishedCollapsing(true);\n });\n }\n\n return () => {\n // Read before cancelling, while the animation still holds the in-between size.\n interruptedSizeRef.current =\n chromeAnimation.playState === \"running\"\n ? chromeElement.getBoundingClientRect()[collapsedDimension]\n : undefined;\n chromeAnimation.cancel();\n };\n }, [chromeElementRef, collapsedDimension, hasAnimations, isCollapsed]);\n\n return {\n isChromeHidden: isCollapsed && (hasFinishedCollapsing || !hasAnimations),\n };\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AAfA;AACA;AACA;AACA;A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