@ankhorage/zora 28.7.3 → 28.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 (181) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.d.ts +6 -1
  4. package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.d.ts.map +1 -1
  5. package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.js +4 -3
  6. package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.js.map +1 -1
  7. package/dist/features/selection/adapters/inbound/RuntimeAuthoringOverlay.d.ts +8 -0
  8. package/dist/features/selection/adapters/inbound/RuntimeAuthoringOverlay.d.ts.map +1 -0
  9. package/dist/features/selection/adapters/inbound/RuntimeAuthoringOverlay.js +46 -0
  10. package/dist/features/selection/adapters/inbound/RuntimeAuthoringOverlay.js.map +1 -0
  11. package/dist/features/selection/public.d.ts +2 -1
  12. package/dist/features/selection/public.d.ts.map +1 -1
  13. package/dist/features/selection/public.js +1 -0
  14. package/dist/features/selection/public.js.map +1 -1
  15. package/dist/readerFree.d.ts +2 -2
  16. package/dist/readerFree.d.ts.map +1 -1
  17. package/dist/readerFree.js +1 -1
  18. package/dist/readerFree.js.map +1 -1
  19. package/dist/types/selection.d.ts +12 -0
  20. package/dist/types/selection.d.ts.map +1 -1
  21. package/dist/types/selection.js.map +1 -1
  22. package/package.json +2 -2
  23. package/src/features/layout/adapters/inbound/ZoraWebStyleSheet.tsx +4 -5
  24. package/src/features/registry/registry.test.ts +1 -0
  25. package/src/features/selection/adapters/inbound/RuntimeAuthoringOverlay.test.tsx +117 -0
  26. package/src/features/selection/adapters/inbound/RuntimeAuthoringOverlay.tsx +94 -0
  27. package/src/features/selection/public.ts +6 -0
  28. package/src/readerFree.ts +9 -1
  29. package/src/types/selection.ts +14 -0
  30. package/web-dist/chunks/{Accordion-92py9m3m.js → Accordion-25v2vczc.js} +1 -1
  31. package/web-dist/chunks/{Accordion-4gfrfgh5.js → Accordion-2berhsg5.js} +5 -5
  32. package/web-dist/chunks/{Accordion-t9v6kw4n.js → Accordion-2jcas7qq.js} +4 -4
  33. package/web-dist/chunks/{Accordion-se0pee16.js → Accordion-3e60xwvy.js} +24 -7
  34. package/web-dist/chunks/{Accordion-vhr7js3e.js → Accordion-3xfqmr1r.js} +1 -1
  35. package/web-dist/chunks/{Accordion-ddzm7pnp.js → Accordion-457amtv7.js} +5 -5
  36. package/web-dist/chunks/{Accordion-w35n9p3n.js → Accordion-73p2mg3h.js} +2 -2
  37. package/web-dist/chunks/{Accordion-kgfw6vj3.js → Accordion-778fjjsh.js} +1 -1
  38. package/web-dist/chunks/{Accordion-ysy3ezf0.js → Accordion-7pgh8q4h.js} +1 -1
  39. package/web-dist/chunks/{Accordion-6sa9z92t.js → Accordion-9dq115tn.js} +1 -1
  40. package/web-dist/chunks/{Accordion-c781654t.js → Accordion-casb2ndy.js} +3 -3
  41. package/web-dist/chunks/{Accordion-6n2r35qh.js → Accordion-dcjzxzv3.js} +1 -1
  42. package/web-dist/chunks/{Accordion-jf0vrgw4.js → Accordion-e6ettgh0.js} +1 -1
  43. package/web-dist/chunks/{Accordion-gtsxpnxf.js → Accordion-g5pvs1aa.js} +1 -1
  44. package/web-dist/chunks/{Accordion-f7czh00h.js → Accordion-hg4db1sk.js} +1 -1
  45. package/web-dist/chunks/{Accordion-xfwdh07r.js → Accordion-k9n1yse4.js} +4 -5
  46. package/web-dist/chunks/{Accordion-2gvv7h5p.js → Accordion-m3tq2vcc.js} +3 -3
  47. package/web-dist/chunks/{Accordion-f8dj4gbw.js → Accordion-mw8zh0vs.js} +1 -1
  48. package/web-dist/chunks/{Accordion-a6a0za8s.js → Accordion-pvcdvh3w.js} +1 -1
  49. package/web-dist/chunks/{Accordion-wcref68q.js → Accordion-q8ymmar7.js} +3 -3
  50. package/web-dist/chunks/{Accordion-knd9nb8v.js → Accordion-qwftammh.js} +2 -2
  51. package/web-dist/chunks/{Accordion-zdwbxeq1.js → Accordion-rsw5jt7m.js} +1 -1
  52. package/web-dist/chunks/{Accordion-nkv2pzj8.js → Accordion-tb0vc91c.js} +1 -1
  53. package/web-dist/chunks/{Accordion-53c30cqa.js → Accordion-tj4fe6wk.js} +2 -2
  54. package/web-dist/chunks/{Accordion-jn70wf9s.js → Accordion-v3bmbnfh.js} +2 -2
  55. package/web-dist/chunks/{Accordion-ce2r66e1.js → Accordion-vbz1mjm6.js} +2 -2
  56. package/web-dist/chunks/{Accordion-sam71gw6.js → Accordion-vdzyhtyd.js} +4 -4
  57. package/web-dist/chunks/{Accordion-jqk96gt9.js → Accordion-vtbs98r4.js} +1 -1
  58. package/web-dist/chunks/{Accordion-h7ae9ybw.js → Accordion-vwqf8kn1.js} +1 -1
  59. package/web-dist/chunks/{Accordion-772gn1m6.js → Accordion-w2kx944a.js} +1 -1
  60. package/web-dist/chunks/{Accordion-kjv0pfyp.js → Accordion-wbf7gqrm.js} +1 -1
  61. package/web-dist/chunks/{Accordion-wf6pk2j9.js → Accordion-xqkkfwkm.js} +1 -1
  62. package/web-dist/chunks/{Accordion-ycatfb1v.js → Accordion-yca8r7kx.js} +1 -1
  63. package/web-dist/chunks/{Accordion-enfevvwv.js → Accordion-zmrbktd8.js} +4 -4
  64. package/web-dist/chunks/{RichTextClient-tsah5t7v.js → RichTextClient-w75r2x97.js} +7 -7
  65. package/web-dist/chunks/{Video.native-y947mrfb.js → Video.native-bb9g33nd.js} +3 -3
  66. package/web-dist/components/accordion/Accordion.js +2 -2
  67. package/web-dist/components/accordion-item/AccordionItem.js +2 -2
  68. package/web-dist/components/app-bar/AppBar.js +4 -4
  69. package/web-dist/components/app-header/AppHeader.js +4 -4
  70. package/web-dist/components/app-shell/AppShell.js +1 -1
  71. package/web-dist/components/audio/Audio.js +3 -3
  72. package/web-dist/components/auth-screen/AuthScreen.js +6 -6
  73. package/web-dist/components/avatar/Avatar.js +2 -2
  74. package/web-dist/components/avatar-group/AvatarGroup.js +2 -2
  75. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +6 -6
  76. package/web-dist/components/bottom-sheet/BottomSheet.js +2 -2
  77. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +2 -2
  78. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +2 -2
  79. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +2 -2
  80. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +2 -2
  81. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +2 -2
  82. package/web-dist/components/breadcrumbs/Breadcrumbs.js +2 -2
  83. package/web-dist/components/button/Button.js +2 -2
  84. package/web-dist/components/button-group/ButtonGroup.js +2 -2
  85. package/web-dist/components/calendar/Calendar.js +3 -3
  86. package/web-dist/components/camera-permission-view/CameraPermissionView.js +6 -6
  87. package/web-dist/components/card/Card.js +5 -5
  88. package/web-dist/components/chat-list-item/ChatListItem.js +3 -3
  89. package/web-dist/components/checkbox/Checkbox.js +2 -2
  90. package/web-dist/components/checkbox-group/CheckboxGroup.js +2 -2
  91. package/web-dist/components/chip/Chip.js +2 -2
  92. package/web-dist/components/chip-group/ChipGroup.js +2 -2
  93. package/web-dist/components/collection-editor/CollectionEditor.js +5 -5
  94. package/web-dist/components/color-hue-scale/ColorHueScale.js +10 -10
  95. package/web-dist/components/color-picker/ColorPicker.js +10 -10
  96. package/web-dist/components/color-tone/ColorTone.js +10 -10
  97. package/web-dist/components/color-wheel/ColorWheel.js +10 -10
  98. package/web-dist/components/content-rail/ContentRail.js +2 -2
  99. package/web-dist/components/data-table/DataTable.js +11 -11
  100. package/web-dist/components/date-picker/DatePicker.js +4 -4
  101. package/web-dist/components/dialog/Dialog.js +2 -2
  102. package/web-dist/components/divider/Divider.js +1 -1
  103. package/web-dist/components/empty-state/EmptyState.js +6 -6
  104. package/web-dist/components/explorer/Explorer.js +3 -3
  105. package/web-dist/components/field/Field.js +2 -2
  106. package/web-dist/components/file-explorer/FileExplorer.js +3 -3
  107. package/web-dist/components/flat-list/FlatList.js +3 -3
  108. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +6 -6
  109. package/web-dist/components/form/Form.js +4 -4
  110. package/web-dist/components/form-actions/FormActions.js +4 -4
  111. package/web-dist/components/form-error/FormError.js +4 -4
  112. package/web-dist/components/game/Game.js +2 -2
  113. package/web-dist/components/game-entity/GameEntity.js +2 -2
  114. package/web-dist/components/game-field/GameField.js +2 -2
  115. package/web-dist/components/game-input-zone/GameInputZone.js +2 -2
  116. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +2 -2
  117. package/web-dist/components/game-overlay/GameOverlay.js +2 -2
  118. package/web-dist/components/gradient/Gradient.js +2 -2
  119. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +2 -2
  120. package/web-dist/components/grid/Grid.js +1 -1
  121. package/web-dist/components/hero/Hero.js +5 -5
  122. package/web-dist/components/icon-button/IconButton.js +2 -2
  123. package/web-dist/components/image/Image.js +2 -2
  124. package/web-dist/components/list/List.js +3 -3
  125. package/web-dist/components/list-item/ListItem.js +3 -3
  126. package/web-dist/components/list-section/ListSection.js +3 -3
  127. package/web-dist/components/master-detail/MasterDetail.js +1 -1
  128. package/web-dist/components/matrix-grid/MatrixGrid.js +2 -1
  129. package/web-dist/components/media-card/MediaCard.js +5 -5
  130. package/web-dist/components/media-explorer/MediaExplorer.js +3 -3
  131. package/web-dist/components/message-bubble/MessageBubble.js +3 -3
  132. package/web-dist/components/metric-card/MetricCard.js +5 -5
  133. package/web-dist/components/missing-element/MissingElement.js +1 -1
  134. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +6 -6
  135. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +6 -6
  136. package/web-dist/components/otp-form/OtpForm.js +6 -6
  137. package/web-dist/components/pagination/Pagination.js +2 -2
  138. package/web-dist/components/palette-item/PaletteItem.js +5 -5
  139. package/web-dist/components/popover-menu/PopoverMenu.js +2 -2
  140. package/web-dist/components/post-card/PostCard.js +5 -5
  141. package/web-dist/components/product-card/ProductCard.js +5 -5
  142. package/web-dist/components/progress/Progress.js +2 -2
  143. package/web-dist/components/progress-ring/ProgressRing.js +2 -2
  144. package/web-dist/components/radio/Radio.js +2 -2
  145. package/web-dist/components/radio-group/RadioGroup.js +2 -2
  146. package/web-dist/components/rating/Rating.js +1 -1
  147. package/web-dist/components/reader/Reader.js +6 -6
  148. package/web-dist/components/rich-text/RichText.js +2 -2
  149. package/web-dist/components/runtime-authoring-overlay/RuntimeAuthoringOverlay.d.ts +7 -0
  150. package/web-dist/components/runtime-authoring-overlay/RuntimeAuthoringOverlay.js +11 -0
  151. package/web-dist/components/runtime-authoring-overlay/RuntimeAuthoringOverlay.types-0.d.ts +16 -0
  152. package/web-dist/components/runtime-authoring-overlay/index.d.ts +2 -0
  153. package/web-dist/components/runtime-authoring-overlay/index.js +2 -0
  154. package/web-dist/components/scan-overlay/ScanOverlay.js +6 -6
  155. package/web-dist/components/screen/Screen.js +1 -1
  156. package/web-dist/components/screen-section/ScreenSection.js +2 -2
  157. package/web-dist/components/scroll-view/ScrollView.js +1 -1
  158. package/web-dist/components/search-input/SearchInput.js +4 -4
  159. package/web-dist/components/section-header/SectionHeader.js +2 -2
  160. package/web-dist/components/section-list/SectionList.js +3 -3
  161. package/web-dist/components/select/Select.js +6 -6
  162. package/web-dist/components/selectable-item/SelectableItem.js +3 -1
  163. package/web-dist/components/selection-provider/SelectionProvider.js +3 -1
  164. package/web-dist/components/sign-in-form/SignInForm.js +6 -6
  165. package/web-dist/components/sign-up-form/SignUpForm.js +6 -6
  166. package/web-dist/components/skeleton/Skeleton.js +8 -8
  167. package/web-dist/components/skeleton-card/SkeletonCard.js +8 -8
  168. package/web-dist/components/skeleton-list/SkeletonList.js +8 -8
  169. package/web-dist/components/skeleton-text/SkeletonText.js +8 -8
  170. package/web-dist/components/text-input/TextInput.js +3 -3
  171. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +2 -2
  172. package/web-dist/components/time-picker/TimePicker.js +3 -3
  173. package/web-dist/components/timeline/Timeline.js +2 -2
  174. package/web-dist/components/toolbar/Toolbar.js +6 -6
  175. package/web-dist/components/tree-item/TreeItem.js +5 -5
  176. package/web-dist/components/uploader/Uploader.js +8 -8
  177. package/web-dist/components/video/Video.js +4 -4
  178. package/web-dist/components/view/View.js +1 -1
  179. package/web-dist/components/zora-web-style-sheet/ZoraWebStyleSheet.d.ts +6 -1
  180. package/web-dist/components/zora-web-style-sheet/ZoraWebStyleSheet.js +1 -1
  181. package/web-dist/manifest.json +440 -415
@@ -0,0 +1,94 @@
1
+ import type {
2
+ RuntimeAuthoringOverlayAdapter,
3
+ RuntimeAuthoringOverlayNodeArgs,
4
+ } from '@ankhorage/runtime';
5
+ import { Pressable } from '@ankhorage/surface';
6
+ import React from 'react';
7
+
8
+ import type {
9
+ CreateRuntimeAuthoringOverlayAdapterOptions,
10
+ RuntimeAuthoringOverlayProps,
11
+ } from '../../../../types/selection';
12
+ import { View } from '../../../layout/public';
13
+ import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
14
+ import { SelectionProvider, useSelection } from './SelectionProvider';
15
+
16
+ /*** Provides controlled, single-node selection to Runtime-rendered content without creating a second renderer tree. */
17
+ export function RuntimeAuthoringOverlay({
18
+ children,
19
+ mode,
20
+ onSelectionChange,
21
+ selectedComponentId,
22
+ }: RuntimeAuthoringOverlayProps) {
23
+ return (
24
+ <SelectionProvider
25
+ disabled={mode === 'preview'}
26
+ mode="single"
27
+ onSelectionChange={(ids) => onSelectionChange?.(ids[0])}
28
+ selectedIds={selectedComponentId === undefined ? [] : [selectedComponentId]}
29
+ >
30
+ {children}
31
+ </SelectionProvider>
32
+ );
33
+ }
34
+
35
+ /*** Creates ZORA's visual and input adapter for Runtime's generic authoring-overlay hook. */
36
+ export function createRuntimeAuthoringOverlayAdapter({
37
+ mode,
38
+ }: CreateRuntimeAuthoringOverlayAdapterOptions): RuntimeAuthoringOverlayAdapter {
39
+ return {
40
+ mode,
41
+ getComponentId: (node) => node.id,
42
+ hitTest: () => mode === 'edit',
43
+ wrapNode: (args) => <RuntimeAuthoringOverlayNode {...args} mode={mode} />,
44
+ };
45
+ }
46
+
47
+ /*** Wraps one rendered target node with edit-mode selection input while retaining its subtree across modes. */
48
+ function RuntimeAuthoringOverlayNode({
49
+ component,
50
+ mode,
51
+ rendered,
52
+ select,
53
+ }: RuntimeAuthoringOverlayNodeArgs & { readonly mode: 'edit' | 'preview' }) {
54
+ const { theme } = useZoraTheme();
55
+ const selection = useSelection();
56
+ const selected = selection.isSelected(component.componentId);
57
+ const handlePress = (event: unknown) => {
58
+ if (mode !== 'edit' || !select(event)) return;
59
+ selection.select(component.componentId);
60
+ };
61
+
62
+ return (
63
+ <Pressable
64
+ accessibilityLabel={`Select ${component.node.type}`}
65
+ accessibilityRole="button"
66
+ accessibilityState={{ selected }}
67
+ interactionPolicy={mode === 'edit' ? 'enabled' : 'passive'}
68
+ onPress={handlePress}
69
+ style={styles.wrapper}
70
+ testID={`runtime-authoring-node-${component.componentId}`}
71
+ >
72
+ {rendered}
73
+ {selected ? (
74
+ <View
75
+ borderColor={theme.semantics.highlight}
76
+ borderWidth={2}
77
+ pointerEvents="none"
78
+ style={styles.highlight}
79
+ />
80
+ ) : null}
81
+ </Pressable>
82
+ );
83
+ }
84
+
85
+ const styles = {
86
+ highlight: {
87
+ bottom: 0,
88
+ left: 0,
89
+ position: 'absolute' as const,
90
+ right: 0,
91
+ top: 0,
92
+ },
93
+ wrapper: { position: 'relative' as const },
94
+ };
@@ -1,4 +1,6 @@
1
1
  export type {
2
+ CreateRuntimeAuthoringOverlayAdapterOptions,
3
+ RuntimeAuthoringOverlayProps,
2
4
  SelectableItemProps,
3
5
  SelectableItemState,
4
6
  SelectionMode,
@@ -6,6 +8,10 @@ export type {
6
8
  SelectionTrigger,
7
9
  UseSelectionResult,
8
10
  } from '../../types/selection';
11
+ export {
12
+ createRuntimeAuthoringOverlayAdapter,
13
+ RuntimeAuthoringOverlay,
14
+ } from './adapters/inbound/RuntimeAuthoringOverlay';
9
15
  export { SelectableItem } from './adapters/inbound/SelectableItem';
10
16
  export { SelectionProvider, useSelection } from './adapters/inbound/SelectionProvider';
11
17
  export { resolveSelectionEventIntent } from './application/resolveSelectionEventIntent';
package/src/readerFree.ts CHANGED
@@ -433,6 +433,8 @@ export {
433
433
  type SectionHeaderProps,
434
434
  } from './features/section/public';
435
435
  export type {
436
+ CreateRuntimeAuthoringOverlayAdapterOptions,
437
+ RuntimeAuthoringOverlayProps,
436
438
  SelectableItemProps,
437
439
  SelectableItemState,
438
440
  SelectionIntent,
@@ -441,7 +443,13 @@ export type {
441
443
  SelectionTrigger,
442
444
  UseSelectionResult,
443
445
  } from './features/selection/public';
444
- export { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';
446
+ export {
447
+ createRuntimeAuthoringOverlayAdapter,
448
+ RuntimeAuthoringOverlay,
449
+ SelectableItem,
450
+ SelectionProvider,
451
+ useSelection,
452
+ } from './features/selection/public';
445
453
  export {
446
454
  Skeleton,
447
455
  SkeletonCard,
@@ -1,3 +1,4 @@
1
+ import type { RuntimeAuthoringMode } from '@ankhorage/runtime';
1
2
  import type { InteractionPolicy } from '@ankhorage/surface';
2
3
  import type { SelectionIntent } from '@ankhorage/utility/selection';
3
4
  import type React from 'react';
@@ -49,3 +50,16 @@ export interface SelectableItemProps extends ZoraBaseProps {
49
50
  interactionPolicy?: InteractionPolicy;
50
51
  children: React.ReactNode | ((state: SelectableItemState) => React.ReactNode);
51
52
  }
53
+
54
+ /** Controls generic Runtime node selection without assigning application policy to ZORA. */
55
+ export interface RuntimeAuthoringOverlayProps {
56
+ children: React.ReactNode;
57
+ mode: RuntimeAuthoringMode;
58
+ selectedComponentId?: string;
59
+ onSelectionChange?: (componentId: string | undefined) => void;
60
+ }
61
+
62
+ /** Creates Runtime's toolkit-neutral authoring adapter from ZORA's controlled visual overlay. */
63
+ export interface CreateRuntimeAuthoringOverlayAdapterOptions {
64
+ mode: RuntimeAuthoringMode;
65
+ }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  useZoraTheme2
10
10
  } from "./Accordion-x1ze1wvk.js";
@@ -9,7 +9,7 @@ import {
9
9
  View2,
10
10
  Divider2,
11
11
  ScrollView2
12
- } from "./Accordion-xfwdh07r.js";
12
+ } from "./Accordion-k9n1yse4.js";
13
13
  import {
14
14
  Surface2
15
15
  } from "./Accordion-pr1tv6jx.js";
@@ -18,19 +18,19 @@ import {
18
18
  } from "./Accordion-6gc0jw1n.js";
19
19
  import {
20
20
  Button2
21
- } from "./Accordion-jf0vrgw4.js";
21
+ } from "./Accordion-e6ettgh0.js";
22
22
  import {
23
23
  FormActions2,
24
24
  FormError2,
25
25
  hasRequiredRule,
26
26
  useFormController
27
- } from "./Accordion-w35n9p3n.js";
27
+ } from "./Accordion-73p2mg3h.js";
28
28
  import {
29
29
  Field2
30
- } from "./Accordion-772gn1m6.js";
30
+ } from "./Accordion-w2kx944a.js";
31
31
  import {
32
32
  TextInput2
33
- } from "./Accordion-wf6pk2j9.js";
33
+ } from "./Accordion-xqkkfwkm.js";
34
34
 
35
35
  // src/features/auth/adapters/inbound/AuthScreen.tsx
36
36
  import { Platform } from "react-native-web";
@@ -4,19 +4,19 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  useZoraTheme2
10
10
  } from "./Accordion-x1ze1wvk.js";
11
11
  import {
12
12
  ButtonGroup2
13
- } from "./Accordion-jf0vrgw4.js";
13
+ } from "./Accordion-e6ettgh0.js";
14
14
  import {
15
15
  Card2
16
- } from "./Accordion-enfevvwv.js";
16
+ } from "./Accordion-zmrbktd8.js";
17
17
  import {
18
18
  List2
19
- } from "./Accordion-ce2r66e1.js";
19
+ } from "./Accordion-vbz1mjm6.js";
20
20
 
21
21
  // src/features/skeleton/adapters/inbound/Skeleton.tsx
22
22
  import { jsx } from "react/jsx-runtime";
@@ -9,10 +9,8 @@ import {
9
9
  applySelectionIntent
10
10
  } from "./Accordion-n4et7etk.js";
11
11
 
12
- // src/features/selection/adapters/inbound/SelectableItem.tsx
12
+ // src/features/selection/adapters/inbound/RuntimeAuthoringOverlay.tsx
13
13
  import { Pressable } from "@ankhorage/surface/web";
14
- import React2 from "react";
15
- import { Platform } from "react-native-web";
16
14
 
17
15
  // src/features/selection/adapters/inbound/SelectionProvider.tsx
18
16
  import React from "react";
@@ -139,8 +137,27 @@ function SelectionProvider2({
139
137
  });
140
138
  }
141
139
 
140
+ // src/features/selection/adapters/inbound/RuntimeAuthoringOverlay.tsx
141
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
142
+ function RuntimeAuthoringOverlay2({
143
+ children,
144
+ mode,
145
+ onSelectionChange,
146
+ selectedComponentId
147
+ }) {
148
+ return /* @__PURE__ */ jsx2(SelectionProvider2, {
149
+ disabled: mode === "preview",
150
+ mode: "single",
151
+ onSelectionChange: (ids) => onSelectionChange?.(ids[0]),
152
+ selectedIds: selectedComponentId === undefined ? [] : [selectedComponentId],
153
+ children
154
+ });
155
+ }
142
156
  // src/features/selection/adapters/inbound/SelectableItem.tsx
143
- import { jsx as jsx2, Fragment } from "react/jsx-runtime";
157
+ import { Pressable as Pressable2 } from "@ankhorage/surface/web";
158
+ import React2 from "react";
159
+ import { Platform } from "react-native-web";
160
+ import { jsx as jsx3, Fragment } from "react/jsx-runtime";
144
161
  function resolveTrigger(trigger) {
145
162
  return trigger ?? "manual";
146
163
  }
@@ -191,7 +208,7 @@ function SelectableItemInner({
191
208
  }), [activate, clear, id, resolvedDisabled, select, selected, selection.mode, toggle]);
192
209
  const content = isRenderProp(children) ? children(itemState) : children;
193
210
  if (resolvedTrigger === "manual")
194
- return /* @__PURE__ */ jsx2(Fragment, {
211
+ return /* @__PURE__ */ jsx3(Fragment, {
195
212
  children: content
196
213
  });
197
214
  const handleActivation = (event) => {
@@ -200,7 +217,7 @@ function SelectableItemInner({
200
217
  return;
201
218
  selection.activate(id, resolveSelectionEventIntent(event, Platform.OS === "web" ? "pointer" : "touch"));
202
219
  };
203
- return /* @__PURE__ */ jsx2(Pressable, {
220
+ return /* @__PURE__ */ jsx3(Pressable2, {
204
221
  interactionPolicy,
205
222
  accessibilityRole: "button",
206
223
  accessibilityState: { disabled: resolvedDisabled, selected },
@@ -210,4 +227,4 @@ function SelectableItemInner({
210
227
  children: content
211
228
  });
212
229
  }
213
- export { SelectionProvider2, SelectableItem2 };
230
+ export { SelectionProvider2, RuntimeAuthoringOverlay2, SelectableItem2 };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  TextInput2
7
- } from "./Accordion-wf6pk2j9.js";
7
+ } from "./Accordion-xqkkfwkm.js";
8
8
 
9
9
  // src/features/form/search-input/adapters/inbound/SearchInput.tsx
10
10
  import { jsx } from "react/jsx-runtime";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  View2,
15
15
  Divider2
16
- } from "./Accordion-xfwdh07r.js";
16
+ } from "./Accordion-k9n1yse4.js";
17
17
  import {
18
18
  useZoraTheme2
19
19
  } from "./Accordion-x1ze1wvk.js";
@@ -23,19 +23,19 @@ import {
23
23
  } from "./Accordion-6gc0jw1n.js";
24
24
  import {
25
25
  IconButton2
26
- } from "./Accordion-jf0vrgw4.js";
26
+ } from "./Accordion-e6ettgh0.js";
27
27
  import {
28
28
  Card2
29
- } from "./Accordion-enfevvwv.js";
29
+ } from "./Accordion-zmrbktd8.js";
30
30
  import {
31
31
  Icon2
32
32
  } from "./Accordion-t9w365ke.js";
33
33
  import {
34
34
  Select2
35
- } from "./Accordion-sam71gw6.js";
35
+ } from "./Accordion-vdzyhtyd.js";
36
36
  import {
37
37
  Gradient2
38
- } from "./Accordion-a6a0za8s.js";
38
+ } from "./Accordion-pvcdvh3w.js";
39
39
  import {
40
40
  require_registry
41
41
  } from "./Accordion-2ej7s27r.js";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  useZoraTheme2
10
10
  } from "./Accordion-x1ze1wvk.js";
11
11
  import {
12
12
  Button2
13
- } from "./Accordion-jf0vrgw4.js";
13
+ } from "./Accordion-e6ettgh0.js";
14
14
  import {
15
15
  Text2
16
16
  } from "./Accordion-6gc0jw1n.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  Text2
10
10
  } from "./Accordion-6gc0jw1n.js";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  View2
4
- } from "./Accordion-xfwdh07r.js";
4
+ } from "./Accordion-k9n1yse4.js";
5
5
  import {
6
6
  Text2
7
7
  } from "./Accordion-6gc0jw1n.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  Heading2,
10
10
  Text2
@@ -7,13 +7,13 @@ import {
7
7
  } from "./Accordion-x1ze1wvk.js";
8
8
  import {
9
9
  IconButton2
10
- } from "./Accordion-jf0vrgw4.js";
10
+ } from "./Accordion-e6ettgh0.js";
11
11
  import {
12
12
  View2
13
- } from "./Accordion-xfwdh07r.js";
13
+ } from "./Accordion-k9n1yse4.js";
14
14
  import {
15
15
  PopoverMenu2
16
- } from "./Accordion-h7ae9ybw.js";
16
+ } from "./Accordion-vwqf8kn1.js";
17
17
  import {
18
18
  Heading2,
19
19
  Text2
@@ -7,7 +7,7 @@ import {
7
7
  } from "./Accordion-zhgty1ae.js";
8
8
  import {
9
9
  View2
10
- } from "./Accordion-xfwdh07r.js";
10
+ } from "./Accordion-k9n1yse4.js";
11
11
  import {
12
12
  useZoraTheme2
13
13
  } from "./Accordion-x1ze1wvk.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./Accordion-fkftnxgw.js";
9
9
  import {
10
10
  View2
11
- } from "./Accordion-xfwdh07r.js";
11
+ } from "./Accordion-k9n1yse4.js";
12
12
 
13
13
  // src/features/button/adapters/inbound/Button.tsx
14
14
  import { Button as SurfaceButton } from "@ankhorage/surface/web";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./Accordion-x1ze1wvk.js";
14
14
  import {
15
15
  Image2
16
- } from "./Accordion-kjv0pfyp.js";
16
+ } from "./Accordion-wbf7gqrm.js";
17
17
  import {
18
18
  Text2
19
19
  } from "./Accordion-6gc0jw1n.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  useZoraThemeRecipe,
10
10
  ZORA_COLORS
@@ -215,16 +215,15 @@ function ScreenInner({
215
215
  }
216
216
  var Screen2 = withZoraThemeScope(ScreenInner);
217
217
  // src/features/layout/adapters/inbound/ZoraWebStyleSheet.tsx
218
+ import React4 from "react";
218
219
  import { Platform, StyleSheet } from "react-native-web";
219
- import { jsx as jsx7 } from "react/jsx-runtime";
220
220
  function ZoraWebStyleSheet2() {
221
221
  const sheet = getReactNativeWebStyleSheet();
222
222
  if (sheet === null)
223
223
  return null;
224
- return /* @__PURE__ */ jsx7("style", {
225
- id: sheet.id,
226
- precedence: "react-native-web",
227
- children: sheet.textContent
224
+ return React4.createElement("style", {
225
+ dangerouslySetInnerHTML: { __html: sheet.textContent },
226
+ id: sheet.id
228
227
  });
229
228
  }
230
229
  function getReactNativeWebStyleSheet() {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  useZoraTheme2
10
10
  } from "./Accordion-x1ze1wvk.js";
@@ -13,13 +13,13 @@ import {
13
13
  } from "./Accordion-6gc0jw1n.js";
14
14
  import {
15
15
  Card2
16
- } from "./Accordion-enfevvwv.js";
16
+ } from "./Accordion-zmrbktd8.js";
17
17
  import {
18
18
  Badge2
19
19
  } from "./Accordion-gnkzvj03.js";
20
20
  import {
21
21
  Button2
22
- } from "./Accordion-jf0vrgw4.js";
22
+ } from "./Accordion-e6ettgh0.js";
23
23
 
24
24
  // src/features/scanner/adapters/inbound/BarcodeScannerView.tsx
25
25
  import { StyleSheet as StyleSheet2 } from "react-native-web";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./Accordion-t9w365ke.js";
8
8
  import {
9
9
  View2
10
- } from "./Accordion-xfwdh07r.js";
10
+ } from "./Accordion-k9n1yse4.js";
11
11
  import {
12
12
  useZoraTheme2
13
13
  } from "./Accordion-x1ze1wvk.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
 
9
9
  // src/features/gradient/adapters/inbound/Gradient.tsx
10
10
  import React2 from "react";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  Button2
7
- } from "./Accordion-jf0vrgw4.js";
7
+ } from "./Accordion-e6ettgh0.js";
8
8
  import {
9
9
  View2
10
- } from "./Accordion-xfwdh07r.js";
10
+ } from "./Accordion-k9n1yse4.js";
11
11
  import {
12
12
  Card2
13
- } from "./Accordion-enfevvwv.js";
13
+ } from "./Accordion-zmrbktd8.js";
14
14
 
15
15
  // src/features/empty-state/adapters/inbound/EmptyState.tsx
16
16
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  useZoraTheme2
10
10
  } from "./Accordion-x1ze1wvk.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./Accordion-6gc0jw1n.js";
14
14
  import {
15
15
  Avatar2
16
- } from "./Accordion-jqk96gt9.js";
16
+ } from "./Accordion-vtbs98r4.js";
17
17
  import {
18
18
  Badge2
19
19
  } from "./Accordion-gnkzvj03.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
 
9
9
  // src/features/game/adapters/inbound/Game.tsx
10
10
  import { RuntimeRendererConfigProvider } from "@ankhorage/runtime";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  View2,
10
10
  Divider2
11
- } from "./Accordion-xfwdh07r.js";
11
+ } from "./Accordion-k9n1yse4.js";
12
12
  import {
13
13
  Heading2,
14
14
  Text2
@@ -4,10 +4,10 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  View2
7
- } from "./Accordion-xfwdh07r.js";
7
+ } from "./Accordion-k9n1yse4.js";
8
8
  import {
9
9
  Card2
10
- } from "./Accordion-enfevvwv.js";
10
+ } from "./Accordion-zmrbktd8.js";
11
11
 
12
12
  // src/features/toolbar/adapters/inbound/Toolbar.tsx
13
13
  import { jsx } from "react/jsx-runtime";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./Accordion-zhgty1ae.js";
5
5
  import {
6
6
  Button2
7
- } from "./Accordion-jf0vrgw4.js";
7
+ } from "./Accordion-e6ettgh0.js";
8
8
  import {
9
9
  View2
10
- } from "./Accordion-xfwdh07r.js";
10
+ } from "./Accordion-k9n1yse4.js";
11
11
  import {
12
12
  GridView2
13
13
  } from "./Accordion-0zk0xp73.js";
@@ -11,10 +11,10 @@ import {
11
11
  import {
12
12
  View2,
13
13
  Divider2
14
- } from "./Accordion-xfwdh07r.js";
14
+ } from "./Accordion-k9n1yse4.js";
15
15
  import {
16
16
  SectionHeader2
17
- } from "./Accordion-ycatfb1v.js";
17
+ } from "./Accordion-yca8r7kx.js";
18
18
 
19
19
  // src/features/list/adapters/inbound/FlatList.tsx
20
20
  import React2 from "react";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  View2,
7
7
  ScrollView2
8
- } from "./Accordion-xfwdh07r.js";
8
+ } from "./Accordion-k9n1yse4.js";
9
9
  import {
10
10
  Surface2
11
11
  } from "./Accordion-pr1tv6jx.js";
@@ -14,19 +14,19 @@ import {
14
14
  } from "./Accordion-x1ze1wvk.js";
15
15
  import {
16
16
  Button2
17
- } from "./Accordion-jf0vrgw4.js";
17
+ } from "./Accordion-e6ettgh0.js";
18
18
  import {
19
19
  Icon2
20
20
  } from "./Accordion-t9w365ke.js";
21
21
  import {
22
22
  Image2
23
- } from "./Accordion-kjv0pfyp.js";
23
+ } from "./Accordion-wbf7gqrm.js";
24
24
  import {
25
25
  Text2
26
26
  } from "./Accordion-6gc0jw1n.js";
27
27
  import {
28
28
  SearchInput2
29
- } from "./Accordion-vhr7js3e.js";
29
+ } from "./Accordion-3xfqmr1r.js";
30
30
 
31
31
  // src/features/form/select/adapters/inbound/Select.web.tsx
32
32
  import { Popover } from "@ankhorage/surface/web";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./Accordion-t9w365ke.js";
8
8
  import {
9
9
  View2
10
- } from "./Accordion-xfwdh07r.js";
10
+ } from "./Accordion-k9n1yse4.js";
11
11
  import {
12
12
  useZoraTheme2
13
13
  } from "./Accordion-x1ze1wvk.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./Accordion-t9w365ke.js";
8
8
  import {
9
9
  View2
10
- } from "./Accordion-xfwdh07r.js";
10
+ } from "./Accordion-k9n1yse4.js";
11
11
  import {
12
12
  useZoraTheme2
13
13
  } from "./Accordion-x1ze1wvk.js";