@oxy.so/bloom 7.7.0 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/docs/admonition.mdx +12 -3
  2. package/docs/adoption-matrix.mdx +3 -3
  3. package/docs/app-shell.mdx +34 -0
  4. package/docs/chat-composer.mdx +12 -0
  5. package/docs/motion.mdx +11 -0
  6. package/docs/page-footer.mdx +16 -2
  7. package/lib/commonjs/admonition/Admonition.js +53 -31
  8. package/lib/commonjs/admonition/Admonition.js.map +1 -1
  9. package/lib/commonjs/app-shell/AppShellSplit.js +52 -38
  10. package/lib/commonjs/app-shell/AppShellSplit.js.map +1 -1
  11. package/lib/commonjs/app-shell/AppShellSplitMotion.js +199 -0
  12. package/lib/commonjs/app-shell/AppShellSplitMotion.js.map +1 -0
  13. package/lib/commonjs/app-shell/SplitPane.js +47 -0
  14. package/lib/commonjs/app-shell/SplitPane.js.map +1 -0
  15. package/lib/commonjs/app-shell/context.js +9 -1
  16. package/lib/commonjs/app-shell/context.js.map +1 -1
  17. package/lib/commonjs/app-shell/index.js +6 -0
  18. package/lib/commonjs/app-shell/index.js.map +1 -1
  19. package/lib/commonjs/app-shell/index.web.js +6 -0
  20. package/lib/commonjs/app-shell/index.web.js.map +1 -1
  21. package/lib/commonjs/chat-composer/create-chat-composer.js +8 -6
  22. package/lib/commonjs/chat-composer/create-chat-composer.js.map +1 -1
  23. package/lib/commonjs/chat-composer/create-suggestion-list.js +7 -0
  24. package/lib/commonjs/chat-composer/create-suggestion-list.js.map +1 -1
  25. package/lib/commonjs/hooks/use-prefers-reduced-motion.js +28 -0
  26. package/lib/commonjs/hooks/use-prefers-reduced-motion.js.map +1 -0
  27. package/lib/commonjs/page-footer/PageFooter.js +50 -36
  28. package/lib/commonjs/page-footer/PageFooter.js.map +1 -1
  29. package/lib/commonjs/page-footer/use-document-anchor.js +68 -0
  30. package/lib/commonjs/page-footer/use-document-anchor.js.map +1 -0
  31. package/lib/module/admonition/Admonition.js +53 -31
  32. package/lib/module/admonition/Admonition.js.map +1 -1
  33. package/lib/module/app-shell/AppShellSplit.js +50 -38
  34. package/lib/module/app-shell/AppShellSplit.js.map +1 -1
  35. package/lib/module/app-shell/AppShellSplitMotion.js +194 -0
  36. package/lib/module/app-shell/AppShellSplitMotion.js.map +1 -0
  37. package/lib/module/app-shell/SplitPane.js +42 -0
  38. package/lib/module/app-shell/SplitPane.js.map +1 -0
  39. package/lib/module/app-shell/context.js +7 -0
  40. package/lib/module/app-shell/context.js.map +1 -1
  41. package/lib/module/app-shell/index.js +1 -1
  42. package/lib/module/app-shell/index.js.map +1 -1
  43. package/lib/module/app-shell/index.web.js +1 -1
  44. package/lib/module/app-shell/index.web.js.map +1 -1
  45. package/lib/module/chat-composer/create-chat-composer.js +8 -6
  46. package/lib/module/chat-composer/create-chat-composer.js.map +1 -1
  47. package/lib/module/chat-composer/create-suggestion-list.js +7 -0
  48. package/lib/module/chat-composer/create-suggestion-list.js.map +1 -1
  49. package/lib/module/hooks/use-prefers-reduced-motion.js +25 -0
  50. package/lib/module/hooks/use-prefers-reduced-motion.js.map +1 -0
  51. package/lib/module/page-footer/PageFooter.js +51 -37
  52. package/lib/module/page-footer/PageFooter.js.map +1 -1
  53. package/lib/module/page-footer/use-document-anchor.js +65 -0
  54. package/lib/module/page-footer/use-document-anchor.js.map +1 -0
  55. package/lib/typescript/commonjs/admonition/Admonition.d.ts.map +1 -1
  56. package/lib/typescript/commonjs/app-shell/AppShellSplit.d.ts.map +1 -1
  57. package/lib/typescript/commonjs/app-shell/AppShellSplitMotion.d.ts +16 -0
  58. package/lib/typescript/commonjs/app-shell/AppShellSplitMotion.d.ts.map +1 -0
  59. package/lib/typescript/commonjs/app-shell/SplitPane.d.ts +12 -0
  60. package/lib/typescript/commonjs/app-shell/SplitPane.d.ts.map +1 -0
  61. package/lib/typescript/commonjs/app-shell/context.d.ts +4 -0
  62. package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/app-shell/index.d.ts +1 -1
  64. package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
  65. package/lib/typescript/commonjs/app-shell/index.web.d.ts +1 -1
  66. package/lib/typescript/commonjs/app-shell/index.web.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/app-shell/types.d.ts +8 -0
  68. package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/chat-composer/create-chat-composer.d.ts.map +1 -1
  70. package/lib/typescript/commonjs/chat-composer/create-suggestion-list.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/chat-composer/types.d.ts +2 -1
  72. package/lib/typescript/commonjs/chat-composer/types.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/hooks/use-prefers-reduced-motion.d.ts +3 -0
  74. package/lib/typescript/commonjs/hooks/use-prefers-reduced-motion.d.ts.map +1 -0
  75. package/lib/typescript/commonjs/page-footer/PageFooter.d.ts +1 -1
  76. package/lib/typescript/commonjs/page-footer/PageFooter.d.ts.map +1 -1
  77. package/lib/typescript/commonjs/page-footer/types.d.ts +4 -0
  78. package/lib/typescript/commonjs/page-footer/types.d.ts.map +1 -1
  79. package/lib/typescript/commonjs/page-footer/use-document-anchor.d.ts +9 -0
  80. package/lib/typescript/commonjs/page-footer/use-document-anchor.d.ts.map +1 -0
  81. package/lib/typescript/module/admonition/Admonition.d.ts.map +1 -1
  82. package/lib/typescript/module/app-shell/AppShellSplit.d.ts.map +1 -1
  83. package/lib/typescript/module/app-shell/AppShellSplitMotion.d.ts +16 -0
  84. package/lib/typescript/module/app-shell/AppShellSplitMotion.d.ts.map +1 -0
  85. package/lib/typescript/module/app-shell/SplitPane.d.ts +12 -0
  86. package/lib/typescript/module/app-shell/SplitPane.d.ts.map +1 -0
  87. package/lib/typescript/module/app-shell/context.d.ts +4 -0
  88. package/lib/typescript/module/app-shell/context.d.ts.map +1 -1
  89. package/lib/typescript/module/app-shell/index.d.ts +1 -1
  90. package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
  91. package/lib/typescript/module/app-shell/index.web.d.ts +1 -1
  92. package/lib/typescript/module/app-shell/index.web.d.ts.map +1 -1
  93. package/lib/typescript/module/app-shell/types.d.ts +8 -0
  94. package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
  95. package/lib/typescript/module/chat-composer/create-chat-composer.d.ts.map +1 -1
  96. package/lib/typescript/module/chat-composer/create-suggestion-list.d.ts.map +1 -1
  97. package/lib/typescript/module/chat-composer/types.d.ts +2 -1
  98. package/lib/typescript/module/chat-composer/types.d.ts.map +1 -1
  99. package/lib/typescript/module/hooks/use-prefers-reduced-motion.d.ts +3 -0
  100. package/lib/typescript/module/hooks/use-prefers-reduced-motion.d.ts.map +1 -0
  101. package/lib/typescript/module/page-footer/PageFooter.d.ts +1 -1
  102. package/lib/typescript/module/page-footer/PageFooter.d.ts.map +1 -1
  103. package/lib/typescript/module/page-footer/types.d.ts +4 -0
  104. package/lib/typescript/module/page-footer/types.d.ts.map +1 -1
  105. package/lib/typescript/module/page-footer/use-document-anchor.d.ts +9 -0
  106. package/lib/typescript/module/page-footer/use-document-anchor.d.ts.map +1 -0
  107. package/package.json +1 -1
  108. package/src/admonition/Admonition.tsx +49 -28
  109. package/src/app-shell/AppShellSplit.tsx +24 -29
  110. package/src/app-shell/AppShellSplitMotion.tsx +133 -0
  111. package/src/app-shell/SplitPane.tsx +30 -0
  112. package/src/app-shell/context.ts +7 -0
  113. package/src/app-shell/index.ts +1 -1
  114. package/src/app-shell/index.web.ts +1 -1
  115. package/src/app-shell/types.ts +8 -0
  116. package/src/chat-composer/create-chat-composer.tsx +8 -6
  117. package/src/chat-composer/create-suggestion-list.tsx +8 -1
  118. package/src/chat-composer/types.ts +2 -1
  119. package/src/hooks/use-prefers-reduced-motion.ts +22 -0
  120. package/src/page-footer/PageFooter.tsx +13 -2
  121. package/src/page-footer/types.ts +4 -0
  122. package/src/page-footer/use-document-anchor.ts +52 -0
@@ -40,16 +40,25 @@ import {
40
40
  </AdmonitionRoot>
41
41
  ```
42
42
 
43
- ## `type` picks the icon and the border together
43
+ ## `type` picks the icon, tint and border together
44
44
 
45
45
  | `type` | for |
46
46
  | --------- | ------------------------------------------------------- |
47
- | `info` | a neutral note |
48
- | `tip` | a suggestion — painted in the brand colour |
47
+ | `info` | an information note |
48
+ | `tip` | a suggestion — success tint and a lightbulb |
49
49
  | `warning` | something that could go wrong if they continue |
50
50
  | `error` | something that has gone wrong |
51
51
  | `apology` | a limitation on our side, not the reader's mistake |
52
52
 
53
+ The shared design uses 16px padding and corners, a 12px icon gap, a soft
54
+ status surface and a subtle outline. The icon reads the matching text token;
55
+ text remains the normal foreground. The outline alone has 30% opacity, so
56
+ its token stays valid on native and web and never dims the content.
57
+
58
+ `AdmonitionContent` accepts rich content directly. Use the compound API for
59
+ a heading and Markdown blocks instead of putting block elements inside
60
+ `AdmonitionText`.
61
+
53
62
  `AdmonitionIcon` reads the type from context, so the icon and the border cannot
54
63
  disagree — which is how an `error` callout ends up with a warning icon when the
55
64
  two are set by hand.
@@ -112,7 +112,7 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
112
112
  | `activity-feed` | `@oxy.so/bloom/activity-feed` + barrel | universal | `activity-feed.mdx` | yes | 1 | | | | |
113
113
  | `activity-heatmap` | `@oxy.so/bloom/activity-heatmap` + barrel | universal | `activity-heatmap.mdx` | yes | 1 | | | | |
114
114
  | `address` | `@oxy.so/bloom/address` + barrel | universal | `address.mdx` | yes | 2 | n/a¹ | | | |
115
- | `admonition` | `@oxy.so/bloom/admonition` + barrel | universal | `admonition.mdx` | yes | 1 | | | | |
115
+ | `admonition` | `@oxy.so/bloom/admonition` + barrel | universal | `admonition.mdx` | yes | 2 | | | | |
116
116
  | `agent-avatar` | `@oxy.so/bloom/agent-avatar` + barrel | universal | `agent-avatar.mdx` | yes | 15 | | | | |
117
117
  | `agent-chat` | `@oxy.so/bloom/agent-chat` + barrel | web fork | `agent-chat.mdx` | yes | 3 | n/a¹ | | | reads |
118
118
  | `agent-creator` | `@oxy.so/bloom/agent-creator` + barrel | web fork | `agent-creator.mdx` | yes | 5 | reads | | | |
@@ -125,7 +125,7 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
125
125
  | `alert-dialog` | `@oxy.so/bloom/alert-dialog` + barrel | web fork | `alert-dialog.mdx` | yes | 2 | | | | |
126
126
  | `animated-check` | `@oxy.so/bloom/animated-check` + barrel | universal | `animated-check.mdx` | yes | 2 | | | | |
127
127
  | `announcement` | `@oxy.so/bloom/announcement` + barrel | universal | `announcement.mdx` | yes | 2 | | | | |
128
- | `app-shell` | `@oxy.so/bloom/app-shell` + barrel | web fork | `app-shell.mdx` | yes | 7 | | | | reads |
128
+ | `app-shell` | `@oxy.so/bloom/app-shell` + barrel | web fork | `app-shell.mdx` | yes | 8 | | | | reads |
129
129
  | `appearance` | `@oxy.so/bloom/appearance` + barrel | universal | `composition.mdx` | yes | 12 | | reads | | |
130
130
  | `aspect-ratio` | `@oxy.so/bloom/aspect-ratio` + barrel | universal | `aspect-ratio.mdx` | yes | 1 | | | | |
131
131
  | `auth-card` | `@oxy.so/bloom/auth-card` + barrel | universal | `auth-card.mdx` | yes | 2 | | | | |
@@ -308,7 +308,7 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
308
308
  | `tenancy` | `@oxy.so/bloom/tenancy` + barrel | universal | `tenancy.mdx` | yes | 5 | | reads | | |
309
309
  | `text-field` | `@oxy.so/bloom/text-field` + barrel | universal | `text-field.mdx` | yes | 17 | reads | reads | | |
310
310
  | `textarea` | `@oxy.so/bloom/textarea` + barrel | universal | `textarea.mdx` | yes | 4 | reads | reads | | n/a¹ |
311
- | `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 360 | | | n/a¹ | reads |
311
+ | `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 362 | | | n/a¹ | reads |
312
312
  | `theme-toggle` | `@oxy.so/bloom/theme-toggle` + barrel | universal | `theme-toggle.mdx` | yes | 2 | n/a¹ | | | |
313
313
  | `toast` | `@oxy.so/bloom/toast` + barrel | universal | `toast.mdx` | yes | 17 | | | | |
314
314
  | `tooltip` | `@oxy.so/bloom/tooltip` + barrel | web fork | `tooltip.mdx` | yes | 1 | | | | |
@@ -692,6 +692,40 @@ content; omitting it preserves the existing 12px frame and wider-screen top gap.
692
692
 
693
693
  ### Pane error recovery
694
694
 
695
+ ### Animated list/detail visibility
696
+
697
+ `transition="slide"` opts into coordinated pane motion. Keep `showList` true
698
+ when opening detail to shrink the list and reveal detail beside it. Set
699
+ `showList={!selected}` and `showDetail={selected}` on compact layouts to slide
700
+ between full-width panes. The last open layout determines the return direction.
701
+ Existing callers default to `transition="none"` and keep their immediate layout.
702
+
703
+ ```tsx
704
+ <AppShellSplitPanes
705
+ variant="separated"
706
+ transition="slide"
707
+ list={<Results />}
708
+ detail={selected ? <Details /> : undefined}
709
+ showList={wide || !selected}
710
+ showDetail={selected}
711
+ paneScroll={false}
712
+ />
713
+ ```
714
+
715
+ The expansion transition moves the actual panes with full opacity; it does not make
716
+ screenshots or float an overlay above the list. The list retains its component
717
+ state while it remains visible. Exiting panes stay mounted only until the transition
718
+ settles, become inert immediately, then unmount. Rapid reversals continue from the
719
+ current live position. System reduced motion settles immediately. Pane widths remain
720
+ resizable; the optional info column keeps its existing immediate behavior.
721
+
722
+ Use `useAppShellPaneActive()` inside a pane to suspend window-level shortcuts,
723
+ subscriptions or screen effects as soon as that pane becomes logically hidden,
724
+ including during its retained exit. The hook returns true outside split panes.
725
+ DOM focus/pointer input and native accessibility are already disabled by the
726
+ pane itself. Motion owns no scroll view: `paneScroll={false}` continues to leave
727
+ scrolling to the surrounding document or to the pane's own virtualized list.
728
+
695
729
  `AppShellSplitPanes` isolates list, detail and info rendering failures independently.
696
730
  The default localized, themed EmptyState offers retry while the other panes and
697
731
  shell navigation keep working. Pass options per pane to customize the presentation
@@ -244,3 +244,15 @@ All of them take `style` and `testID`.
244
244
  The composer controls compose Bloom Button, including its press-in/out recording lifecycle. Each public component has a thin platform binding; shared factories receive Button, Surface, and overlay components explicitly. Web bindings name their `.web` dependencies, so built browser packages work without Metro-style extension resolution. No additional layout wrappers are introduced.
245
245
 
246
246
  Interactive controls use canonical `sm`/`md`/`lg` sizes and inherit `BloomScope` when omitted. Their geometry remains family-specific; unsupported `xs` uses the compact rung. ReactionPicker has only `sm`/`md`, mapping scoped `lg` to `md`. Display badges and read-only rating sizes retain their existing vocabulary.
247
+
248
+ ## Optional recording and suggestion focus
249
+
250
+ Recording controls appear only when at least one mic callback is supplied.
251
+ Without recording support, an empty draft shows a disabled send button;
252
+ `canSend` controls whether submission is permitted, independently of the visible
253
+ control. It is not necessary to enable empty sends to hide recording.
254
+
255
+ Mouse selection in `SuggestionList` preserves input focus until the option's
256
+ click is delivered, so callers may hide suggestions directly in `onBlur`.
257
+ Native suggestion scrolling uses `keyboardShouldPersistTaps="handled"`, allowing
258
+ the first tap to choose an option while the keyboard is open.
package/docs/motion.mdx CHANGED
@@ -121,3 +121,14 @@ spatial transitions under reduced motion. Native Screen initializes keyboard
121
121
  visibility before reserving bottom chrome, including inherited shell clearance.
122
122
  Portaled overlays isolate screen navigation state while preserving theme and
123
123
  locale; scrolling their content cannot collapse the navigation behind them.
124
+
125
+
126
+ `AppShellSplitPanes transition="slide"` uses the expansion duration with a
127
+ cubic ease-out timing animation for live pane geometry. Reanimated 3's
128
+ **duration** spring integrates at most 64ms per frame, but compares its forced
129
+ completion against the full elapsed wall time. Expensive layout frames can
130
+ leave the spring far behind and then jump hundreds of pixels at the deadline.
131
+ Timing evaluates elapsed time directly, avoiding that accumulated deficit.
132
+ Retargeting still starts from the current pane position. Verify the last moving
133
+ frame as well as intermediate frames in a browser; counting intermediate frames
134
+ alone does not catch a large final snap.
@@ -54,8 +54,22 @@ controls let pointer events pass through. The gradient has no motion, including
54
54
  when reduced motion is enabled. `scrim="none"` removes it; `scrimColor` overrides
55
55
  the inherited opaque surface color. `style` and `testID` address the outer host.
56
56
 
57
- This is page chrome, always absolutely positioned inside a bounded parent.
58
- Place it beside the scroller, never inside its scrolling content. A purchase
57
+ The default `position="absolute"` anchors this page chrome inside a bounded parent.
58
+ Place it beside the scroller, never inside its scrolling content.
59
+
60
+ For web pages that scroll the document, use `position="document"`. Bloom pins
61
+ its controls to the viewport bottom while an invisible, zero-height anchor
62
+ tracks the actual content column. Sidebar widths, responsive layout and RTL
63
+ remain owned by the page layout; consumers need no fixed styles or measured
64
+ coordinates. Mount it in the column, outside transformed/animated containers
65
+ (which establish a different fixed-position containing block). Resize observers
66
+ follow its ancestor frames, and horizontal scrolling updates the viewport
67
+ coordinate without rendering again for unchanged bounds. Native keeps the
68
+ existing absolute positioning within its bounded screen.
69
+
70
+ Both positions publish the same measured `usePageFooterInset()` clearance.
71
+ Wrap the page and footer in `PageFooterProvider` and use that value as bottom
72
+ padding, instead of a guessed spacer. A purchase
59
73
  summary with price and booking controls belongs to `ActionBar`, which has a
60
74
  different opaque, in-flow layout contract.
61
75
 
@@ -16,7 +16,9 @@ var _useTheme = require("../theme/use-theme.js");
16
16
  var _index = require("../typography/index.js");
17
17
  var _button = require("../button");
18
18
  var _RiInformationLine = require("../icons/remix/RiInformationLine.js");
19
- var _RiCloseCircleLine = require("../icons/remix/RiCloseCircleLine.js");
19
+ var _RiForbidLine = require("../icons/remix/RiForbidLine.js");
20
+ var _RiLightbulbLine = require("../icons/remix/RiLightbulbLine.js");
21
+ var _accentColors = require("../theme/accent-colors.js");
20
22
  var _RiAlertLine = require("../icons/remix/RiAlertLine.js");
21
23
  var _RiEmotionUnhappyLine = require("../icons/remix/RiEmotionUnhappyLine.js");
22
24
  var _jsxRuntime = require("react/jsx-runtime");
@@ -27,27 +29,33 @@ const AdmonitionContext = /*#__PURE__*/(0, _react.createContext)({
27
29
  AdmonitionContext.displayName = 'AdmonitionContext';
28
30
  const ICON_MAP = {
29
31
  info: _RiInformationLine.RiInformationLine,
30
- tip: _RiInformationLine.RiInformationLine,
32
+ tip: _RiLightbulbLine.RiLightbulbLine,
31
33
  warning: _RiAlertLine.RiAlertLine,
32
- error: _RiCloseCircleLine.RiCloseCircleLine,
34
+ error: _RiForbidLine.RiForbidLine,
33
35
  apology: _RiEmotionUnhappyLine.RiEmotionUnhappyLine
34
36
  };
37
+ const TONE_MAP = {
38
+ info: 'info',
39
+ tip: 'success',
40
+ warning: 'warning',
41
+ error: 'error',
42
+ apology: 'default'
43
+ };
35
44
  function AdmonitionIcon() {
36
45
  const theme = (0, _useTheme.useTheme)();
37
46
  const {
38
47
  type
39
48
  } = (0, _react.useContext)(AdmonitionContext);
40
49
  const IconComponent = ICON_MAP[type];
41
- const fillMap = {
42
- info: theme.colors.textSecondary,
43
- tip: theme.colors.primary,
44
- warning: theme.colors.warning,
45
- error: theme.colors.error,
46
- apology: theme.colors.textSecondary
47
- };
48
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(IconComponent, {
49
- fill: fillMap[type],
50
- size: "md"
50
+ const colors = (0, _accentColors.resolveAccentColors)(theme.colors, TONE_MAP[type], 'subtle');
51
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
52
+ "aria-hidden": true,
53
+ style: styles.icon,
54
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconComponent, {
55
+ fill: colors.foreground,
56
+ width: 20,
57
+ height: 20
58
+ })
51
59
  });
52
60
  }
53
61
  AdmonitionIcon.displayName = 'AdmonitionIcon';
@@ -98,23 +106,24 @@ function AdmonitionRoot({
98
106
  style
99
107
  }) {
100
108
  const theme = (0, _useTheme.useTheme)();
101
- const borderColorMap = {
102
- info: theme.colors.border,
103
- tip: theme.colors.primary,
104
- warning: theme.colors.warning,
105
- error: theme.colors.error,
106
- apology: theme.colors.border
107
- };
109
+ const tone = TONE_MAP[type];
110
+ const colors = (0, _accentColors.resolveAccentColors)(theme.colors, tone, 'subtle');
111
+ const border = (0, _accentColors.resolveAccentColors)(theme.colors, tone, 'solid').border;
108
112
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(AdmonitionContext.Provider, {
109
113
  value: {
110
114
  type
111
115
  },
112
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
116
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
113
117
  style: [styles.outer, {
114
- borderColor: borderColorMap[type],
115
- backgroundColor: theme.colors.background
118
+ backgroundColor: colors.background
116
119
  }, style],
117
- children: children
120
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
121
+ pointerEvents: "none",
122
+ "aria-hidden": true,
123
+ style: [styles.border, {
124
+ borderColor: border
125
+ }]
126
+ }), children]
118
127
  })
119
128
  });
120
129
  }
@@ -145,26 +154,39 @@ function Admonition({
145
154
  Admonition.displayName = 'Admonition';
146
155
  const styles = _reactNative.StyleSheet.create({
147
156
  outer: {
148
- padding: 12,
149
- borderRadius: 8,
150
- borderWidth: 1
157
+ padding: 16,
158
+ borderRadius: 16,
159
+ position: 'relative'
160
+ },
161
+ border: {
162
+ position: 'absolute',
163
+ top: 0,
164
+ right: 0,
165
+ bottom: 0,
166
+ left: 0,
167
+ borderRadius: 16,
168
+ borderWidth: 1,
169
+ opacity: 0.3
170
+ },
171
+ icon: {
172
+ flexShrink: 0
151
173
  },
152
174
  row: {
153
175
  width: '100%',
154
176
  flexDirection: 'row',
155
177
  alignItems: 'flex-start',
156
- gap: 8
178
+ gap: 12
157
179
  },
158
180
  content: {
159
- gap: 8,
181
+ gap: 4,
160
182
  flex: 1,
183
+ minWidth: 0,
161
184
  minHeight: 20,
162
185
  justifyContent: 'center'
163
186
  },
164
187
  text: {
165
188
  fontSize: 14,
166
- lineHeight: 20,
167
- paddingRight: 12
189
+ lineHeight: 22
168
190
  }
169
191
  });
170
192
  //# sourceMappingURL=Admonition.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_index","_button","_RiInformationLine","_RiCloseCircleLine","_RiAlertLine","_RiEmotionUnhappyLine","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AdmonitionContext","createContext","type","displayName","ICON_MAP","info","CircleInfoIcon","tip","warning","WarningIcon","error","CircleXIcon","apology","EmojiSadIcon","AdmonitionIcon","theme","useTheme","useContext","IconComponent","fillMap","colors","textSecondary","primary","jsx","fill","size","AdmonitionContent","children","style","View","styles","content","AdmonitionText","Text","text","AdmonitionButton","props","Button","AdmonitionRow","row","AdmonitionRoot","borderColorMap","border","Provider","value","outer","borderColor","backgroundColor","background","Admonition","jsxs","StyleSheet","create","padding","borderRadius","borderWidth","width","flexDirection","alignItems","gap","flex","minHeight","justifyContent","fontSize","lineHeight","paddingRight"],"sourceRoot":"../../../src","sources":["admonition/Admonition.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,qBAAA,GAAAR,OAAA;AAA2F,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAW,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV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gBAAgB;;AAE7C;AACA;AACA;AACA;AACA;AACO,SAAS8C,UAAUA,CAAC;EACzBtB,QAAQ;EACRzB,IAAI;EACJ0B;AAKF,CAAC,EAAE;EACD,oBACE,IAAAhD,WAAA,CAAA2C,GAAA,EAACiB,cAAc;IAACtC,IAAI,EAAEA,IAAK;IAAC0B,KAAK,EAAEA,KAAM;IAAAD,QAAA,eACvC,IAAA/C,WAAA,CAAAsE,IAAA,EAACZ,aAAa;MAAAX,QAAA,gBACZ,IAAA/C,WAAA,CAAA2C,GAAA,EAACT,cAAc,IAAE,CAAC,eAClB,IAAAlC,WAAA,CAAA2C,GAAA,EAACG,iBAAiB;QAAAC,QAAA,eAChB,IAAA/C,WAAA,CAAA2C,GAAA,EAACS,cAAc;UAAAL,QAAA,EAAEA;QAAQ,CAAiB;MAAC,CAC1B,CAAC;IAAA,CACP;EAAC,CACF,CAAC;AAErB;AACAsB,UAAU,CAAC9C,WAAW,GAAG,YAAY;AAErC,MAAM2B,MAAM,GAAGqB,uBAAU,CAACC,MAAM,CAAC;EAC/BP,KAAK,EAAE;IACLQ,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE;EACf,CAAC;EACDhB,GAAG,EAAE;IACHiB,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBC,GAAG,EAAE;EACP,CAAC;EACD5B,OAAO,EAAE;IACP4B,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,SAAS,EAAE,EAAE;IACbC,cAAc,EAAE;EAClB,CAAC;EACD5B,IAAI,EAAE;IACJ6B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_index","_button","_RiInformationLine","_RiForbidLine","_RiLightbulbLine","_accentColors","_RiAlertLine","_RiEmotionUnhappyLine","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AdmonitionContext","createContext","type","displayName","ICON_MAP","info","CircleInfoIcon","tip","LightbulbIcon","warning","WarningIcon","error","ForbidIcon","apology","EmojiSadIcon","TONE_MAP","AdmonitionIcon","theme","useTheme","useContext","IconComponent","colors","resolveAccentColors","jsx","View","style","styles","icon","children","fill","foreground","width","height","AdmonitionContent","content","AdmonitionText","Text","text","AdmonitionButton","props","Button","size","AdmonitionRow","row","AdmonitionRoot","tone","border","Provider","value","jsxs","outer","backgroundColor","background","pointerEvents","borderColor","Admonition","StyleSheet","create","padding","borderRadius","position","top","right","bottom","left","borderWidth","opacity","flexShrink","flexDirection","alignItems","gap","flex","minWidth","minHeight","justifyContent","fontSize","lineHeight"],"sourceRoot":"../../../src","sources":["admonition/Admonition.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AAA2F,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAD,wBAAAa,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAa,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,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Y,EAAE,EAAE;IAChBM,WAAW,EAAE,CAAC;IACdC,OAAO,EAAE;EACX,CAAC;EACDvC,IAAI,EAAE;IACJwC,UAAU,EAAE;EACd,CAAC;EACDxB,GAAG,EAAE;IACHZ,KAAK,EAAE,MAAM;IACbqC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBC,GAAG,EAAE;EACP,CAAC;EACDpC,OAAO,EAAE;IACPoC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,CAAC;IACXC,SAAS,EAAE,EAAE;IACbC,cAAc,EAAE;EAClB,CAAC;EACDrC,IAAI,EAAE;IACJsC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -7,13 +7,14 @@ exports.AppShellSplitPanes = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _AiChatResizeHandle = require("../ai-chat/AiChatResizeHandle.js");
10
- var _PanelErrorBoundary = require("../error-boundary/PanelErrorBoundary.js");
11
10
  var _zIndex = require("../styles/z-index.js");
12
11
  var _tokens = require("../styles/tokens.js");
13
12
  var _useTheme = require("../theme/use-theme.js");
14
13
  var _messages = require("../locale/messages.js");
15
14
  var _messages2 = require("./messages.js");
16
15
  var _constants = require("./constants.js");
16
+ var _SplitPane = require("./SplitPane.js");
17
+ var _AppShellSplitMotion = require("./AppShellSplitMotion.js");
17
18
  var _jsxRuntime = require("react/jsx-runtime");
18
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
20
  /**
@@ -33,42 +34,9 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
33
34
  * set of the same three bugs.
34
35
  */
35
36
 
36
- /** One pane: a bounded column that scrolls its own overflow. */function Pane({
37
- children,
38
- scroll,
39
- errorBoundary,
40
- style,
41
- testID
42
- }) {
43
- const content = scroll ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
44
- style: {
45
- flex: 1
46
- },
47
- contentContainerStyle: {
48
- flexGrow: 1
49
- },
50
- children: children
51
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
52
- style: {
53
- flex: 1,
54
- minHeight: 0
55
- },
56
- children: children
57
- });
58
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
59
- testID: testID,
60
- style: [{
61
- minWidth: 0,
62
- alignSelf: 'stretch'
63
- }, style],
64
- children: errorBoundary === false ? content : /*#__PURE__*/(0, _jsxRuntime.jsx)(_PanelErrorBoundary.PanelErrorBoundary, {
65
- ...errorBoundary,
66
- children: content
67
- })
68
- });
69
- }
70
37
  const AppShellSplitPanesComponent = ({
71
38
  variant = 'joined',
39
+ transition = 'none',
72
40
  listErrorBoundary,
73
41
  detailErrorBoundary,
74
42
  infoErrorBoundary,
@@ -127,6 +95,52 @@ const AppShellSplitPanesComponent = ({
127
95
  };
128
96
  // Only the panes that are actually drawn count: alone, a pane fills the row.
129
97
  const solo = [showList, showDetail, showInfo].filter(Boolean).length === 1;
98
+ if (transition === 'slide') {
99
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
100
+ style: {
101
+ flexGrow: 1,
102
+ flexShrink: 1,
103
+ minWidth: 0,
104
+ flexDirection: 'row'
105
+ },
106
+ children: [(showList || showDetail) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppShellSplitMotion.AppShellSplitMotion, {
107
+ list: list,
108
+ detail: detail,
109
+ showList: showList,
110
+ showDetail: showDetail,
111
+ width: width,
112
+ gap: divider.width,
113
+ paneScroll: paneScroll,
114
+ listErrorBoundary: listErrorBoundary,
115
+ detailErrorBoundary: detailErrorBoundary,
116
+ dividerStyle: divider,
117
+ testID: testID,
118
+ resizeHandle: resizable ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_AiChatResizeHandle.AiChatResizeHandle, {
119
+ label: resizeLabel,
120
+ onResizeStart: onResizeStart,
121
+ onResize: onResize,
122
+ onNudge: onNudge,
123
+ testID: testID ? `${testID}-divider` : undefined
124
+ }) : null
125
+ }), showInfo && (showList || showDetail) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
126
+ style: divider,
127
+ testID: testID ? `${testID}-info-gap` : undefined
128
+ }) : null, showInfo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplitPane.SplitPane, {
129
+ testID: testID ? `${testID}-pane-info` : undefined,
130
+ errorBoundary: infoErrorBoundary,
131
+ scroll: paneScroll,
132
+ style: solo ? {
133
+ flexGrow: 1,
134
+ flexShrink: 1,
135
+ flexBasis: 0
136
+ } : {
137
+ width: infoWidth,
138
+ flexShrink: 0
139
+ },
140
+ children: info
141
+ }) : null]
142
+ });
143
+ }
130
144
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
131
145
  style: {
132
146
  flexGrow: 1,
@@ -134,7 +148,7 @@ const AppShellSplitPanesComponent = ({
134
148
  minWidth: 0,
135
149
  flexDirection: 'row'
136
150
  },
137
- children: [showList ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Pane, {
151
+ children: [showList ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplitPane.SplitPane, {
138
152
  testID: testID ? `${testID}-pane-list` : undefined,
139
153
  errorBoundary: listErrorBoundary,
140
154
  scroll: paneScroll,
@@ -171,7 +185,7 @@ const AppShellSplitPanesComponent = ({
171
185
  testID: testID ? `${testID}-divider` : undefined
172
186
  })
173
187
  }) : null
174
- }) : null, showDetail ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Pane, {
188
+ }) : null, showDetail ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplitPane.SplitPane, {
175
189
  testID: testID ? `${testID}-pane-detail` : undefined,
176
190
  errorBoundary: detailErrorBoundary,
177
191
  scroll: paneScroll,
@@ -184,7 +198,7 @@ const AppShellSplitPanesComponent = ({
184
198
  }) : null, showInfo && showDetail && !solo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
185
199
  style: divider,
186
200
  testID: testID ? `${testID}-info-gap` : undefined
187
- }) : null, showInfo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Pane, {
201
+ }) : null, showInfo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplitPane.SplitPane, {
188
202
  testID: testID ? `${testID}-pane-info` : undefined,
189
203
  errorBoundary: infoErrorBoundary,
190
204
  scroll: paneScroll,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_AiChatResizeHandle","_PanelErrorBoundary","_zIndex","_tokens","_useTheme","_messages","_messages2","_constants","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Pane","children","scroll","errorBoundary","style","testID","content","jsx","ScrollView","flex","contentContainerStyle","flexGrow","View","minHeight","minWidth","alignSelf","PanelErrorBoundary","AppShellSplitPanesComponent","variant","listErrorBoundary","detailErrorBoundary","infoErrorBoundary","list","detail","info","showList","showDetail","showInfo","listWidth","D","listMinWidth","listMaxWidth","onListWidthChange","infoWidth","resizable","paneScroll","resizeLabel","resizeLabelProp","theme","useTheme","messages","useMessages","APP_SHELL_MESSAGES","resizePanes","width","setWidth","useState","widthAtDragStart","useRef","clamp","useCallback","next","Math","min","max","commit","clamped","onResizeStart","current","onResize","dx","onNudge","separated","divider","space","md","flexShrink","zIndex","Z_INDEX","floating","backgroundColor","colors","border","solo","filter","Boolean","length","jsxs","flexDirection","undefined","flexBasis","pointerEvents","position","top","bottom","left","right","AiChatResizeHandle","label","AppShellSplitPanes","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["app-shell/AppShellSplit.tsx"],"mappings":";;;;;;AAgBA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAGA,IAAAS,UAAA,GAAAT,OAAA;AAAsD,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAA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2B,CAAC;AACnEwE,kBAAkB,CAACG,WAAW,GAAG,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_AiChatResizeHandle","_zIndex","_tokens","_useTheme","_messages","_messages2","_constants","_SplitPane","_AppShellSplitMotion","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AppShellSplitPanesComponent","variant","transition","listErrorBoundary","detailErrorBoundary","infoErrorBoundary","list","detail","info","showList","showDetail","showInfo","listWidth","D","listMinWidth","listMaxWidth","onListWidthChange","infoWidth","resizable","paneScroll","resizeLabel","resizeLabelProp","testID","theme","useTheme","messages","useMessages","APP_SHELL_MESSAGES","resizePanes","width","setWidth","useState","widthAtDragStart","useRef","clamp","useCallback","next","Math","min","max","commit","clamped","onResizeStart","current","onResize","dx","onNudge","separated","divider","space","md","flexShrink","alignSelf","zIndex","Z_INDEX","floating","backgroundColor","colors","border","solo","filter","Boolean","length","jsxs","View","style","flexGrow","minWidth","flexDirection","children","jsx","AppShellSplitMotion","gap","dividerStyle","resizeHandle","AiChatResizeHandle","label","undefined","SplitPane","errorBoundary","scroll","flexBasis","pointerEvents","position","top","bottom","left","right","flex","AppShellSplitPanes","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["app-shell/AppShellSplit.tsx"],"mappings":";;;;;;AAgBA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAGA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,oBAAA,GAA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