@ankhorage/zora 27.1.12 → 27.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -3
- package/dist/authoring.browser.d.ts +8 -0
- package/dist/authoring.browser.d.ts.map +1 -0
- package/dist/authoring.browser.js +6 -0
- package/dist/authoring.browser.js.map +1 -0
- package/dist/authoring.d.ts +2 -0
- package/dist/authoring.d.ts.map +1 -1
- package/dist/authoring.js +1 -0
- package/dist/authoring.js.map +1 -1
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +1 -1
- package/dist/features/registry/adapters/inbound/AuthoringBindingEditorAdapter.d.ts.map +1 -1
- package/dist/features/registry/adapters/inbound/AuthoringBindingEditorAdapter.js +2 -3
- package/dist/features/registry/adapters/inbound/AuthoringBindingEditorAdapter.js.map +1 -1
- package/dist/features/registry/adapters/inbound/AuthoringPropertyInspectorAdapter.d.ts.map +1 -1
- package/dist/features/registry/adapters/inbound/AuthoringPropertyInspectorAdapter.js +2 -3
- package/dist/features/registry/adapters/inbound/AuthoringPropertyInspectorAdapter.js.map +1 -1
- package/dist/features/registry/adapters/inbound/ThemeEditorAdapter.d.ts.map +1 -1
- package/dist/features/registry/adapters/inbound/ThemeEditorAdapter.js +5 -5
- package/dist/features/registry/adapters/inbound/ThemeEditorAdapter.js.map +1 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.js +1 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.js.map +1 -1
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +1 -1
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +1 -1
- package/dist/features/typography/utils/resolveTypographyThemeRecipeFields.d.ts +1 -1
- package/package.json +6 -5
- package/src/authoring.browser.ts +36 -0
- package/src/authoring.ts +22 -0
- package/src/features/registry/adapters/inbound/AuthoringBindingEditorAdapter.tsx +2 -3
- package/src/features/registry/adapters/inbound/AuthoringPropertyInspectorAdapter.tsx +2 -3
- package/src/features/registry/adapters/inbound/ThemeEditorAdapter.tsx +5 -5
- package/src/features/registry/adapters/inbound/authoringAdapters.test.tsx +9 -3
- package/src/features/selection/adapters/inbound/SelectableItem.tsx +1 -1
- package/src/packedWebConsumerAcceptance.test.ts +24 -0
- package/src/webPackageExports.test.ts +18 -0
- package/web-dist/authoring/index.d.ts +8 -0
- package/web-dist/authoring/index.js +24141 -0
- package/web-dist/chunks/{Accordion-rwk4marz.js → Accordion-5dava2tw.js} +2 -2
- package/web-dist/chunks/{Accordion-dska91jj.js → Accordion-5fnvak2f.js} +4 -4
- package/web-dist/chunks/{Accordion-f2ce5m3x.js → Accordion-7stdyzb2.js} +2 -2
- package/web-dist/chunks/{Accordion-109vh7aq.js → Accordion-dzm870qy.js} +1 -1
- package/web-dist/chunks/{Accordion-v79xc8mb.js → Accordion-ebcg2kyw.js} +0 -1
- package/web-dist/chunks/{Accordion-z11jhrng.js → Accordion-fav5ysdt.js} +2 -2
- package/web-dist/chunks/{Accordion-pv1432kr.js → Accordion-gze50cz3.js} +1 -1
- package/web-dist/chunks/{Accordion-aqqx878d.js → Accordion-hzjpf45g.js} +1 -1
- package/web-dist/chunks/{Accordion-k3mcnzzz.js → Accordion-k8te4bkw.js} +1 -1
- package/web-dist/chunks/{Accordion-55axaf49.js → Accordion-mx44fvc6.js} +1 -1
- package/web-dist/chunks/{Accordion-2gx0rh1s.js → Accordion-n5ph4b52.js} +3 -3
- package/web-dist/chunks/{Accordion-bn0e6xt0.js → Accordion-ny2p6mkq.js} +2 -2
- package/web-dist/chunks/{Accordion-y0kg8p9s.js → Accordion-q5f4tv3t.js} +1 -1
- package/web-dist/chunks/{Accordion-vmbaw3e9.js → Accordion-qgw1xvqt.js} +1 -1
- package/web-dist/chunks/{Accordion-xwg44t8y.js → Accordion-s5xn38jm.js} +1 -1
- package/web-dist/chunks/{Accordion-ecknv9v4.js → Accordion-smgdhcxa.js} +2 -2
- package/web-dist/chunks/{Accordion-2d49mqp7.js → Accordion-w2tyyyf0.js} +1 -1
- package/web-dist/chunks/{Accordion-9j3x1ccv.js → Accordion-y47gqp58.js} +2 -2
- package/web-dist/chunks/{Accordion-xyx98xnk.js → Accordion-zm4hxqya.js} +1 -1
- package/web-dist/components/accordion/Accordion.js +3 -4
- package/web-dist/components/accordion-item/AccordionItem.js +3 -4
- package/web-dist/components/app-bar/AppBar.js +5 -6
- package/web-dist/components/app-header/AppHeader.js +5 -6
- package/web-dist/components/auth-screen/AuthScreen.js +5 -6
- package/web-dist/components/avatar/Avatar.js +3 -4
- package/web-dist/components/avatar-group/AvatarGroup.js +3 -4
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +7 -8
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +3 -4
- package/web-dist/components/button/Button.js +2 -3
- package/web-dist/components/button-group/ButtonGroup.js +2 -3
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +7 -8
- package/web-dist/components/card/Card.js +6 -7
- package/web-dist/components/chat-list-item/ChatListItem.js +4 -5
- package/web-dist/components/checkbox/Checkbox.js +0 -1
- package/web-dist/components/checkbox-group/CheckboxGroup.js +0 -1
- package/web-dist/components/chip/Chip.js +3 -4
- package/web-dist/components/chip-group/ChipGroup.js +3 -4
- package/web-dist/components/collection-editor/CollectionEditor.js +6 -7
- package/web-dist/components/content-rail/ContentRail.js +2 -3
- package/web-dist/components/data-table/DataTable.js +9 -10
- package/web-dist/components/date-picker/DatePicker.js +2 -3
- package/web-dist/components/dialog/Dialog.js +0 -1
- package/web-dist/components/empty-state/EmptyState.js +7 -8
- package/web-dist/components/explorer/Explorer.js +4 -5
- package/web-dist/components/field/Field.js +0 -1
- package/web-dist/components/file-explorer/FileExplorer.js +4 -5
- package/web-dist/components/flat-list/FlatList.js +0 -1
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +5 -6
- package/web-dist/components/form/Form.js +3 -4
- package/web-dist/components/form-actions/FormActions.js +3 -4
- package/web-dist/components/form-error/FormError.js +3 -4
- package/web-dist/components/heading/Heading.js +0 -1
- package/web-dist/components/hero/Hero.js +6 -7
- package/web-dist/components/icon/Icon.js +2 -3
- package/web-dist/components/icon-button/IconButton.js +2 -3
- package/web-dist/components/image/Image.js +3 -4
- package/web-dist/components/list/List.js +0 -1
- package/web-dist/components/list-item/ListItem.js +0 -1
- package/web-dist/components/list-section/ListSection.js +0 -1
- package/web-dist/components/matrix-grid/MatrixGrid.js +2 -1
- package/web-dist/components/media-card/MediaCard.js +6 -7
- package/web-dist/components/media-explorer/MediaExplorer.js +4 -5
- package/web-dist/components/message-bubble/MessageBubble.js +4 -5
- package/web-dist/components/metric-card/MetricCard.js +6 -7
- package/web-dist/components/missing-element/MissingElement.js +0 -1
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +5 -6
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +5 -6
- package/web-dist/components/otp-form/OtpForm.js +5 -6
- package/web-dist/components/pagination/Pagination.js +2 -3
- package/web-dist/components/palette-item/PaletteItem.js +6 -7
- package/web-dist/components/popover-menu/PopoverMenu.js +3 -4
- package/web-dist/components/post-card/PostCard.js +6 -7
- package/web-dist/components/product-card/ProductCard.js +6 -7
- package/web-dist/components/progress/Progress.js +0 -1
- package/web-dist/components/progress-ring/ProgressRing.js +0 -1
- package/web-dist/components/radio/Radio.js +3 -4
- package/web-dist/components/radio-group/RadioGroup.js +3 -4
- package/web-dist/components/rating/Rating.js +2 -3
- package/web-dist/components/reader/Reader.js +6 -7
- package/web-dist/components/scan-overlay/ScanOverlay.js +7 -8
- package/web-dist/components/screen-section/ScreenSection.js +0 -1
- package/web-dist/components/search-input/SearchInput.js +3 -4
- package/web-dist/components/section-header/SectionHeader.js +0 -1
- package/web-dist/components/section-list/SectionList.js +0 -1
- package/web-dist/components/select/Select.js +2 -3
- package/web-dist/components/selectable-item/SelectableItem.js +2 -1
- package/web-dist/components/selection-provider/SelectionProvider.js +2 -1
- package/web-dist/components/sign-in-form/SignInForm.js +5 -6
- package/web-dist/components/sign-up-form/SignUpForm.js +5 -6
- package/web-dist/components/skeleton/Skeleton.js +7 -8
- package/web-dist/components/skeleton-card/SkeletonCard.js +7 -8
- package/web-dist/components/skeleton-list/SkeletonList.js +7 -8
- package/web-dist/components/skeleton-text/SkeletonText.js +7 -8
- package/web-dist/components/text/Text.js +0 -1
- package/web-dist/components/text-input/TextInput.js +3 -4
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +2 -3
- package/web-dist/components/time-picker/TimePicker.js +2 -3
- package/web-dist/components/timeline/Timeline.js +2 -3
- package/web-dist/components/toolbar/Toolbar.js +6 -7
- package/web-dist/components/tree-item/TreeItem.js +4 -5
- package/web-dist/components/uploader/Uploader.js +6 -7
- package/web-dist/manifest.json +297 -294
- package/web-dist/chunks/{Accordion-3p43xhk7.js → Accordion-ysz1t6jz.js} +3 -3
|
@@ -12,6 +12,16 @@ const forbiddenWebDependencies = [
|
|
|
12
12
|
'react-native-gesture-handler',
|
|
13
13
|
] as const;
|
|
14
14
|
|
|
15
|
+
const authoringControls = [
|
|
16
|
+
'Button',
|
|
17
|
+
'Card',
|
|
18
|
+
'Field',
|
|
19
|
+
'Pressable',
|
|
20
|
+
'Text',
|
|
21
|
+
'TextInput',
|
|
22
|
+
'View',
|
|
23
|
+
] as const;
|
|
24
|
+
|
|
15
25
|
/** Verifies that stable package web subpaths resolve only their requested UI graph. */
|
|
16
26
|
test('publishes SSR-safe ordinary UI through canonical web subpaths', async () => {
|
|
17
27
|
const packageJson = (await Bun.file('package.json').json()) as {
|
|
@@ -107,3 +117,11 @@ test('SSR-renders ordinary UI from its public web subpaths', async () => {
|
|
|
107
117
|
expect(markup).toContain('Web entrypoint');
|
|
108
118
|
expect(markup).toContain('Continue');
|
|
109
119
|
});
|
|
120
|
+
|
|
121
|
+
/** Verifies that the authoring boundary delegates its portable controls to released Surface. */
|
|
122
|
+
test('publishes browser-safe authoring controls through the released Surface boundary', async () => {
|
|
123
|
+
const entrypoint = await Bun.file(join('src', 'authoring.ts')).text();
|
|
124
|
+
expect(entrypoint).toContain("from '@ankhorage/surface/authoring-controls'");
|
|
125
|
+
for (const control of authoringControls) expect(entrypoint).toContain(control);
|
|
126
|
+
expect(entrypoint).not.toContain("from './features/theme/runtime'");
|
|
127
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { AuthoringBindingEditorAdapter } from './features/registry/adapters/inbound/AuthoringBindingEditorAdapter';
|
|
2
|
+
export { AuthoringPropertyInspectorAdapter } from './features/registry/adapters/inbound/AuthoringPropertyInspectorAdapter';
|
|
3
|
+
export { AuthoringSelectionAdapter } from './features/registry/adapters/inbound/AuthoringSelectionAdapter';
|
|
4
|
+
export { ThemeEditorAdapter } from './features/registry/adapters/inbound/ThemeEditorAdapter';
|
|
5
|
+
export type { AuthoringBindingControlState, AuthoringBindingEditorAdapterProps, AuthoringPropertyControlState, AuthoringPropertyInspectorAdapterProps, AuthoringSelectionAdapterProps, AuthoringSelectionItemState, ThemeEditorAdapterProps, ThemeRecipeFieldControlState, } from './types/authoring-adapters';
|
|
6
|
+
export type { ButtonProps, CardProps, FieldProps, PressableProps, TextInputProps, TextProps, ThemeProviderProps, ThemeRuntime, ViewProps, } from '@ankhorage/surface/authoring-controls';
|
|
7
|
+
export { Button, Card, Field, Pressable, Text, TextInput, ThemeProvider, useTheme, View, } from '@ankhorage/surface/authoring-controls';
|
|
8
|
+
//# sourceMappingURL=authoring.browser.d.ts.map
|