@ankhorage/zora 27.1.13 → 27.2.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.
- 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-v79xc8mb.js → Accordion-ebcg2kyw.js} +0 -1
- package/web-dist/components/matrix-grid/MatrixGrid.js +2 -1
- package/web-dist/components/selectable-item/SelectableItem.js +2 -1
- package/web-dist/components/selection-provider/SelectionProvider.js +2 -1
- package/web-dist/components/tree-item/TreeItem.js +1 -1
- package/web-dist/manifest.json +7 -4
|
@@ -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
|