@adminiumjs/add-on-contracts 0.2.9 → 0.3.0-rc.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/dist/add-on-block.d.ts +134 -6
- package/dist/add-on-block.d.ts.map +1 -1
- package/dist/add-on-block.js +173 -7
- package/dist/add-on-block.js.map +1 -1
- package/dist/artwork-source.d.ts +2 -2
- package/dist/artwork-source.js +2 -2
- package/dist/contracts.d.ts +3 -3
- package/dist/contracts.js +16 -16
- package/dist/document-render.d.ts +17 -17
- package/dist/document-render.d.ts.map +1 -1
- package/dist/document-render.js +11 -11
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/nav-groups.d.ts +28 -0
- package/dist/nav-groups.d.ts.map +1 -0
- package/dist/nav-groups.js +28 -0
- package/dist/nav-groups.js.map +1 -0
- package/dist/product-personalizer.d.ts +3 -3
- package/dist/product-personalizer.js +3 -3
- package/dist/runtime/app-types.d.ts +165 -0
- package/dist/runtime/app-types.d.ts.map +1 -0
- package/dist/runtime/app-types.js +2 -0
- package/dist/runtime/app-types.js.map +1 -0
- package/dist/runtime/app.d.ts +31 -0
- package/dist/runtime/app.d.ts.map +1 -0
- package/dist/runtime/app.js +29 -0
- package/dist/runtime/app.js.map +1 -0
- package/dist/runtime/compiler-runtime.d.ts +7 -0
- package/dist/runtime/compiler-runtime.d.ts.map +1 -0
- package/dist/runtime/compiler-runtime.js +10 -0
- package/dist/runtime/compiler-runtime.js.map +1 -0
- package/dist/runtime/i18n.d.ts +15 -0
- package/dist/runtime/i18n.d.ts.map +1 -0
- package/dist/runtime/i18n.js +17 -0
- package/dist/runtime/i18n.js.map +1 -0
- package/dist/runtime/index.d.ts +189 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +272 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/jsx-runtime.d.ts +12 -0
- package/dist/runtime/jsx-runtime.d.ts.map +1 -0
- package/dist/runtime/jsx-runtime.js +15 -0
- package/dist/runtime/jsx-runtime.js.map +1 -0
- package/dist/runtime/query.d.ts +19 -0
- package/dist/runtime/query.d.ts.map +1 -0
- package/dist/runtime/query.js +21 -0
- package/dist/runtime/query.js.map +1 -0
- package/dist/runtime/react-dom.d.ts +22 -0
- package/dist/runtime/react-dom.d.ts.map +1 -0
- package/dist/runtime/react-dom.js +28 -0
- package/dist/runtime/react-dom.js.map +1 -0
- package/dist/runtime/react.d.ts +56 -0
- package/dist/runtime/react.d.ts.map +1 -0
- package/dist/runtime/react.js +58 -0
- package/dist/runtime/react.js.map +1 -0
- package/dist/runtime/router.d.ts +18 -0
- package/dist/runtime/router.d.ts.map +1 -0
- package/dist/runtime/router.js +20 -0
- package/dist/runtime/router.js.map +1 -0
- package/dist/runtime/ui.d.ts +36 -0
- package/dist/runtime/ui.d.ts.map +1 -0
- package/dist/runtime/ui.js +38 -0
- package/dist/runtime/ui.js.map +1 -0
- package/dist/shipping-carrier.d.ts +2 -2
- package/dist/shipping-carrier.js +2 -2
- package/dist/slots.d.ts +2 -3
- package/dist/slots.d.ts.map +1 -1
- package/dist/slots.js +13 -15
- package/dist/slots.js.map +1 -1
- package/dist/testing/index.d.ts +6 -6
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +8 -8
- package/dist/testing/index.js.map +1 -1
- package/package.json +45 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `react` shim a bundle build aliases `react` to (see `./index.ts`).
|
|
3
|
+
*
|
|
4
|
+
* Every export is read from the host runtime when this module initialises, so
|
|
5
|
+
* a built bundle carries these lines instead of a bare `import … from 'react'`.
|
|
6
|
+
* Types are not re-exported and need not be: TypeScript erases type imports,
|
|
7
|
+
* and `tsc` still checks them against the real `react` types.
|
|
8
|
+
*/
|
|
9
|
+
declare const react: Record<string, unknown>;
|
|
10
|
+
export declare const Activity: never;
|
|
11
|
+
export declare const Children: never;
|
|
12
|
+
export declare const Component: never;
|
|
13
|
+
export declare const Fragment: never;
|
|
14
|
+
export declare const Profiler: never;
|
|
15
|
+
export declare const PureComponent: never;
|
|
16
|
+
export declare const StrictMode: never;
|
|
17
|
+
export declare const Suspense: never;
|
|
18
|
+
export declare const __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE: never;
|
|
19
|
+
export declare const __COMPILER_RUNTIME: never;
|
|
20
|
+
export declare const act: never;
|
|
21
|
+
export declare const cache: never;
|
|
22
|
+
export declare const cacheSignal: never;
|
|
23
|
+
export declare const captureOwnerStack: never;
|
|
24
|
+
export declare const cloneElement: never;
|
|
25
|
+
export declare const createContext: never;
|
|
26
|
+
export declare const createElement: never;
|
|
27
|
+
export declare const createRef: never;
|
|
28
|
+
export declare const forwardRef: never;
|
|
29
|
+
export declare const isValidElement: never;
|
|
30
|
+
export declare const lazy: never;
|
|
31
|
+
export declare const memo: never;
|
|
32
|
+
export declare const startTransition: never;
|
|
33
|
+
export declare const unstable_useCacheRefresh: never;
|
|
34
|
+
export declare const use: never;
|
|
35
|
+
export declare const useActionState: never;
|
|
36
|
+
export declare const useCallback: never;
|
|
37
|
+
export declare const useContext: never;
|
|
38
|
+
export declare const useDebugValue: never;
|
|
39
|
+
export declare const useDeferredValue: never;
|
|
40
|
+
export declare const useEffect: never;
|
|
41
|
+
export declare const useEffectEvent: never;
|
|
42
|
+
export declare const useId: never;
|
|
43
|
+
export declare const useImperativeHandle: never;
|
|
44
|
+
export declare const useInsertionEffect: never;
|
|
45
|
+
export declare const useLayoutEffect: never;
|
|
46
|
+
export declare const useMemo: never;
|
|
47
|
+
export declare const useOptimistic: never;
|
|
48
|
+
export declare const useReducer: never;
|
|
49
|
+
export declare const useRef: never;
|
|
50
|
+
export declare const useState: never;
|
|
51
|
+
export declare const useSyncExternalStore: never;
|
|
52
|
+
export declare const useTransition: never;
|
|
53
|
+
export declare const version: never;
|
|
54
|
+
/** The classic JSX transform calls `React.createElement` on the default export. */
|
|
55
|
+
export default react;
|
|
56
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/runtime/react.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAIH,QAAA,MAAM,KAAK,EAAkC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAErE,eAAO,MAAM,QAAQ,EAAwB,KAAK,CAAC;AACnD,eAAO,MAAM,QAAQ,EAAwB,KAAK,CAAC;AACnD,eAAO,MAAM,SAAS,EAAyB,KAAK,CAAC;AACrD,eAAO,MAAM,QAAQ,EAAwB,KAAK,CAAC;AACnD,eAAO,MAAM,QAAQ,EAAwB,KAAK,CAAC;AACnD,eAAO,MAAM,aAAa,EAA6B,KAAK,CAAC;AAC7D,eAAO,MAAM,UAAU,EAA0B,KAAK,CAAC;AACvD,eAAO,MAAM,QAAQ,EAAwB,KAAK,CAAC;AACnD,eAAO,MAAM,+DAA+D,EAA+E,KAAK,CAAC;AACjK,eAAO,MAAM,kBAAkB,EAAkC,KAAK,CAAC;AACvE,eAAO,MAAM,GAAG,EAAmB,KAAK,CAAC;AACzC,eAAO,MAAM,KAAK,EAAqB,KAAK,CAAC;AAC7C,eAAO,MAAM,WAAW,EAA2B,KAAK,CAAC;AACzD,eAAO,MAAM,iBAAiB,EAAiC,KAAK,CAAC;AACrE,eAAO,MAAM,YAAY,EAA4B,KAAK,CAAC;AAC3D,eAAO,MAAM,aAAa,EAA6B,KAAK,CAAC;AAC7D,eAAO,MAAM,aAAa,EAA6B,KAAK,CAAC;AAC7D,eAAO,MAAM,SAAS,EAAyB,KAAK,CAAC;AACrD,eAAO,MAAM,UAAU,EAA0B,KAAK,CAAC;AACvD,eAAO,MAAM,cAAc,EAA8B,KAAK,CAAC;AAC/D,eAAO,MAAM,IAAI,EAAoB,KAAK,CAAC;AAC3C,eAAO,MAAM,IAAI,EAAoB,KAAK,CAAC;AAC3C,eAAO,MAAM,eAAe,EAA+B,KAAK,CAAC;AACjE,eAAO,MAAM,wBAAwB,EAAwC,KAAK,CAAC;AACnF,eAAO,MAAM,GAAG,EAAmB,KAAK,CAAC;AACzC,eAAO,MAAM,cAAc,EAA8B,KAAK,CAAC;AAC/D,eAAO,MAAM,WAAW,EAA2B,KAAK,CAAC;AACzD,eAAO,MAAM,UAAU,EAA0B,KAAK,CAAC;AACvD,eAAO,MAAM,aAAa,EAA6B,KAAK,CAAC;AAC7D,eAAO,MAAM,gBAAgB,EAAgC,KAAK,CAAC;AACnE,eAAO,MAAM,SAAS,EAAyB,KAAK,CAAC;AACrD,eAAO,MAAM,cAAc,EAA8B,KAAK,CAAC;AAC/D,eAAO,MAAM,KAAK,EAAqB,KAAK,CAAC;AAC7C,eAAO,MAAM,mBAAmB,EAAmC,KAAK,CAAC;AACzE,eAAO,MAAM,kBAAkB,EAAkC,KAAK,CAAC;AACvE,eAAO,MAAM,eAAe,EAA+B,KAAK,CAAC;AACjE,eAAO,MAAM,OAAO,EAAuB,KAAK,CAAC;AACjD,eAAO,MAAM,aAAa,EAA6B,KAAK,CAAC;AAC7D,eAAO,MAAM,UAAU,EAA0B,KAAK,CAAC;AACvD,eAAO,MAAM,MAAM,EAAsB,KAAK,CAAC;AAC/C,eAAO,MAAM,QAAQ,EAAwB,KAAK,CAAC;AACnD,eAAO,MAAM,oBAAoB,EAAoC,KAAK,CAAC;AAC3E,eAAO,MAAM,aAAa,EAA6B,KAAK,CAAC;AAC7D,eAAO,MAAM,OAAO,EAAuB,KAAK,CAAC;AAEjD,mFAAmF;AACnF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
/**
|
|
3
|
+
* The `react` shim a bundle build aliases `react` to (see `./index.ts`).
|
|
4
|
+
*
|
|
5
|
+
* Every export is read from the host runtime when this module initialises, so
|
|
6
|
+
* a built bundle carries these lines instead of a bare `import … from 'react'`.
|
|
7
|
+
* Types are not re-exported and need not be: TypeScript erases type imports,
|
|
8
|
+
* and `tsc` still checks them against the real `react` types.
|
|
9
|
+
*/
|
|
10
|
+
import { requireAddOnRuntime } from './index.js';
|
|
11
|
+
const react = requireAddOnRuntime().react;
|
|
12
|
+
export const Activity = react['Activity'];
|
|
13
|
+
export const Children = react['Children'];
|
|
14
|
+
export const Component = react['Component'];
|
|
15
|
+
export const Fragment = react['Fragment'];
|
|
16
|
+
export const Profiler = react['Profiler'];
|
|
17
|
+
export const PureComponent = react['PureComponent'];
|
|
18
|
+
export const StrictMode = react['StrictMode'];
|
|
19
|
+
export const Suspense = react['Suspense'];
|
|
20
|
+
export const __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = react['__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE'];
|
|
21
|
+
export const __COMPILER_RUNTIME = react['__COMPILER_RUNTIME'];
|
|
22
|
+
export const act = react['act'];
|
|
23
|
+
export const cache = react['cache'];
|
|
24
|
+
export const cacheSignal = react['cacheSignal'];
|
|
25
|
+
export const captureOwnerStack = react['captureOwnerStack'];
|
|
26
|
+
export const cloneElement = react['cloneElement'];
|
|
27
|
+
export const createContext = react['createContext'];
|
|
28
|
+
export const createElement = react['createElement'];
|
|
29
|
+
export const createRef = react['createRef'];
|
|
30
|
+
export const forwardRef = react['forwardRef'];
|
|
31
|
+
export const isValidElement = react['isValidElement'];
|
|
32
|
+
export const lazy = react['lazy'];
|
|
33
|
+
export const memo = react['memo'];
|
|
34
|
+
export const startTransition = react['startTransition'];
|
|
35
|
+
export const unstable_useCacheRefresh = react['unstable_useCacheRefresh'];
|
|
36
|
+
export const use = react['use'];
|
|
37
|
+
export const useActionState = react['useActionState'];
|
|
38
|
+
export const useCallback = react['useCallback'];
|
|
39
|
+
export const useContext = react['useContext'];
|
|
40
|
+
export const useDebugValue = react['useDebugValue'];
|
|
41
|
+
export const useDeferredValue = react['useDeferredValue'];
|
|
42
|
+
export const useEffect = react['useEffect'];
|
|
43
|
+
export const useEffectEvent = react['useEffectEvent'];
|
|
44
|
+
export const useId = react['useId'];
|
|
45
|
+
export const useImperativeHandle = react['useImperativeHandle'];
|
|
46
|
+
export const useInsertionEffect = react['useInsertionEffect'];
|
|
47
|
+
export const useLayoutEffect = react['useLayoutEffect'];
|
|
48
|
+
export const useMemo = react['useMemo'];
|
|
49
|
+
export const useOptimistic = react['useOptimistic'];
|
|
50
|
+
export const useReducer = react['useReducer'];
|
|
51
|
+
export const useRef = react['useRef'];
|
|
52
|
+
export const useState = react['useState'];
|
|
53
|
+
export const useSyncExternalStore = react['useSyncExternalStore'];
|
|
54
|
+
export const useTransition = react['useTransition'];
|
|
55
|
+
export const version = react['version'];
|
|
56
|
+
/** The classic JSX transform calls `React.createElement` on the default export. */
|
|
57
|
+
export default react;
|
|
58
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/runtime/react.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;GAOG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC,KAAgC,CAAC;AAErE,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAU,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAU,CAAC;AACnD,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAU,CAAC;AACrD,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAU,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAU,CAAC;AACnD,MAAM,CAAC,MAAM,aAAa,GA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C,sBAAsB,CAAU,CAAC;AAC3E,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,eAAe,CAAU,CAAC;AAC7D,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAU,CAAC;AAEjD,mFAAmF;AACnF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@tanstack/react-router` shim a page bundle's build aliases that specifier to
|
|
3
|
+
* (see `./index.ts`), so the page uses the HOST's copy of
|
|
4
|
+
* the host's router.
|
|
5
|
+
*
|
|
6
|
+
* A second router is a second history: `useNavigate` would push onto a tree the page is not mounted in, and nothing would move.
|
|
7
|
+
*
|
|
8
|
+
* The names are `ADD_ON_ROUTER_EXPORTS` and nothing else: an ES module cannot export a
|
|
9
|
+
* name it does not spell, which is what makes this list the API rather than a
|
|
10
|
+
* description of one. `add-on-host.test.ts` holds the two equal.
|
|
11
|
+
*/
|
|
12
|
+
declare const router: Readonly<Record<string, unknown>>;
|
|
13
|
+
export declare const useBlocker: never;
|
|
14
|
+
export declare const useNavigate: never;
|
|
15
|
+
export declare const useParams: never;
|
|
16
|
+
export declare const useSearch: never;
|
|
17
|
+
export default router;
|
|
18
|
+
//# sourceMappingURL=router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/runtime/router.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AAIH,QAAA,MAAM,MAAM,mCAA4B,CAAC;AAEzC,eAAO,MAAM,UAAU,EAA2B,KAAK,CAAC;AACxD,eAAO,MAAM,WAAW,EAA4B,KAAK,CAAC;AAC1D,eAAO,MAAM,SAAS,EAA0B,KAAK,CAAC;AACtD,eAAO,MAAM,SAAS,EAA0B,KAAK,CAAC;AAEtD,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
/**
|
|
3
|
+
* The `@tanstack/react-router` shim a page bundle's build aliases that specifier to
|
|
4
|
+
* (see `./index.ts`), so the page uses the HOST's copy of
|
|
5
|
+
* the host's router.
|
|
6
|
+
*
|
|
7
|
+
* A second router is a second history: `useNavigate` would push onto a tree the page is not mounted in, and nothing would move.
|
|
8
|
+
*
|
|
9
|
+
* The names are `ADD_ON_ROUTER_EXPORTS` and nothing else: an ES module cannot export a
|
|
10
|
+
* name it does not spell, which is what makes this list the API rather than a
|
|
11
|
+
* description of one. `add-on-host.test.ts` holds the two equal.
|
|
12
|
+
*/
|
|
13
|
+
import { requireAddOnHost } from './index.js';
|
|
14
|
+
const router = requireAddOnHost().router;
|
|
15
|
+
export const useBlocker = router['useBlocker'];
|
|
16
|
+
export const useNavigate = router['useNavigate'];
|
|
17
|
+
export const useParams = router['useParams'];
|
|
18
|
+
export const useSearch = router['useSearch'];
|
|
19
|
+
export default router;
|
|
20
|
+
//# sourceMappingURL=router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../src/runtime/router.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,MAAM,GAAG,gBAAgB,EAAE,CAAC,MAAM,CAAC;AAEzC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAU,CAAC;AACxD,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAU,CAAC;AAC1D,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAAU,CAAC;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAAU,CAAC;AAEtD,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@adminium/ui` shim a page bundle's build aliases that specifier to
|
|
3
|
+
* (see `./index.ts`), so the page uses the HOST's copy of
|
|
4
|
+
* the UI kit.
|
|
5
|
+
*
|
|
6
|
+
* A second copy of the kit would render unstyled — the dashboard's CSS is generated from the sources it scans, and an add-on's bundled copy is not among them.
|
|
7
|
+
*
|
|
8
|
+
* The names are `ADD_ON_UI_EXPORTS` and nothing else: an ES module cannot export a
|
|
9
|
+
* name it does not spell, which is what makes this list the API rather than a
|
|
10
|
+
* description of one. `add-on-host.test.ts` holds the two equal.
|
|
11
|
+
*/
|
|
12
|
+
declare const ui: Readonly<Record<string, unknown>>;
|
|
13
|
+
export declare const Alert: never;
|
|
14
|
+
export declare const AutosaveIndicator: never;
|
|
15
|
+
export declare const Badge: never;
|
|
16
|
+
export declare const Button: never;
|
|
17
|
+
export declare const EmptyState: never;
|
|
18
|
+
export declare const IconButton: never;
|
|
19
|
+
export declare const Modal: never;
|
|
20
|
+
export declare const ModalBody: never;
|
|
21
|
+
export declare const ModalFooter: never;
|
|
22
|
+
export declare const ModalHeader: never;
|
|
23
|
+
export declare const Popover: never;
|
|
24
|
+
export declare const PopoverContent: never;
|
|
25
|
+
export declare const PopoverTrigger: never;
|
|
26
|
+
export declare const SearchInput: never;
|
|
27
|
+
export declare const SegmentedControl: never;
|
|
28
|
+
export declare const Spinner: never;
|
|
29
|
+
export declare const Tabs: never;
|
|
30
|
+
export declare const TabsContent: never;
|
|
31
|
+
export declare const TabsList: never;
|
|
32
|
+
export declare const TabsTrigger: never;
|
|
33
|
+
export declare const Tag: never;
|
|
34
|
+
export declare const cn: never;
|
|
35
|
+
export default ui;
|
|
36
|
+
//# sourceMappingURL=ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/runtime/ui.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AAIH,QAAA,MAAM,EAAE,mCAAwB,CAAC;AAEjC,eAAO,MAAM,KAAK,EAAkB,KAAK,CAAC;AAC1C,eAAO,MAAM,iBAAiB,EAA8B,KAAK,CAAC;AAClE,eAAO,MAAM,KAAK,EAAkB,KAAK,CAAC;AAC1C,eAAO,MAAM,MAAM,EAAmB,KAAK,CAAC;AAC5C,eAAO,MAAM,UAAU,EAAuB,KAAK,CAAC;AACpD,eAAO,MAAM,UAAU,EAAuB,KAAK,CAAC;AACpD,eAAO,MAAM,KAAK,EAAkB,KAAK,CAAC;AAC1C,eAAO,MAAM,SAAS,EAAsB,KAAK,CAAC;AAClD,eAAO,MAAM,WAAW,EAAwB,KAAK,CAAC;AACtD,eAAO,MAAM,WAAW,EAAwB,KAAK,CAAC;AACtD,eAAO,MAAM,OAAO,EAAoB,KAAK,CAAC;AAC9C,eAAO,MAAM,cAAc,EAA2B,KAAK,CAAC;AAC5D,eAAO,MAAM,cAAc,EAA2B,KAAK,CAAC;AAC5D,eAAO,MAAM,WAAW,EAAwB,KAAK,CAAC;AACtD,eAAO,MAAM,gBAAgB,EAA6B,KAAK,CAAC;AAChE,eAAO,MAAM,OAAO,EAAoB,KAAK,CAAC;AAC9C,eAAO,MAAM,IAAI,EAAiB,KAAK,CAAC;AACxC,eAAO,MAAM,WAAW,EAAwB,KAAK,CAAC;AACtD,eAAO,MAAM,QAAQ,EAAqB,KAAK,CAAC;AAChD,eAAO,MAAM,WAAW,EAAwB,KAAK,CAAC;AACtD,eAAO,MAAM,GAAG,EAAgB,KAAK,CAAC;AACtC,eAAO,MAAM,EAAE,EAAe,KAAK,CAAC;AAEpC,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
/**
|
|
3
|
+
* The `@adminium/ui` shim a page bundle's build aliases that specifier to
|
|
4
|
+
* (see `./index.ts`), so the page uses the HOST's copy of
|
|
5
|
+
* the UI kit.
|
|
6
|
+
*
|
|
7
|
+
* A second copy of the kit would render unstyled — the dashboard's CSS is generated from the sources it scans, and an add-on's bundled copy is not among them.
|
|
8
|
+
*
|
|
9
|
+
* The names are `ADD_ON_UI_EXPORTS` and nothing else: an ES module cannot export a
|
|
10
|
+
* name it does not spell, which is what makes this list the API rather than a
|
|
11
|
+
* description of one. `add-on-host.test.ts` holds the two equal.
|
|
12
|
+
*/
|
|
13
|
+
import { requireAddOnHost } from './index.js';
|
|
14
|
+
const ui = requireAddOnHost().ui;
|
|
15
|
+
export const Alert = ui['Alert'];
|
|
16
|
+
export const AutosaveIndicator = ui['AutosaveIndicator'];
|
|
17
|
+
export const Badge = ui['Badge'];
|
|
18
|
+
export const Button = ui['Button'];
|
|
19
|
+
export const EmptyState = ui['EmptyState'];
|
|
20
|
+
export const IconButton = ui['IconButton'];
|
|
21
|
+
export const Modal = ui['Modal'];
|
|
22
|
+
export const ModalBody = ui['ModalBody'];
|
|
23
|
+
export const ModalFooter = ui['ModalFooter'];
|
|
24
|
+
export const ModalHeader = ui['ModalHeader'];
|
|
25
|
+
export const Popover = ui['Popover'];
|
|
26
|
+
export const PopoverContent = ui['PopoverContent'];
|
|
27
|
+
export const PopoverTrigger = ui['PopoverTrigger'];
|
|
28
|
+
export const SearchInput = ui['SearchInput'];
|
|
29
|
+
export const SegmentedControl = ui['SegmentedControl'];
|
|
30
|
+
export const Spinner = ui['Spinner'];
|
|
31
|
+
export const Tabs = ui['Tabs'];
|
|
32
|
+
export const TabsContent = ui['TabsContent'];
|
|
33
|
+
export const TabsList = ui['TabsList'];
|
|
34
|
+
export const TabsTrigger = ui['TabsTrigger'];
|
|
35
|
+
export const Tag = ui['Tag'];
|
|
36
|
+
export const cn = ui['cn'];
|
|
37
|
+
export default ui;
|
|
38
|
+
//# sourceMappingURL=ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/runtime/ui.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,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,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,aAAa,CAAU,CAAC;AACtD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAC,UAAU,CAAU,CAAC;AAChD,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,aAAa,CAAU,CAAC;AACtD,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,CAAU,CAAC;AACtC,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAU,CAAC;AAEpC,eAAe,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `shipping-carrier@1`
|
|
3
|
-
*
|
|
2
|
+
* `shipping-carrier@1` — one delivery company, shaped so the second one is a
|
|
3
|
+
* copy.
|
|
4
4
|
*
|
|
5
5
|
* The claim "each shipping company is its own add-on, and the next is this repo
|
|
6
6
|
* with one file replaced" rests entirely on the conformance suite in
|
package/dist/shipping-carrier.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
2
|
/**
|
|
3
|
-
* `shipping-carrier@1`
|
|
4
|
-
*
|
|
3
|
+
* `shipping-carrier@1` — one delivery company, shaped so the second one is a
|
|
4
|
+
* copy.
|
|
5
5
|
*
|
|
6
6
|
* The claim "each shipping company is its own add-on, and the next is this repo
|
|
7
7
|
* with one file replaced" rests entirely on the conformance suite in
|
package/dist/slots.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Slot registry v1 — CLOSED (
|
|
3
|
-
*
|
|
4
|
-
* bought).
|
|
2
|
+
* Slot registry v1 — CLOSED (eleven slots, plus two bought since and named at
|
|
3
|
+
* the end of the list, in the order they were bought).
|
|
5
4
|
*
|
|
6
5
|
* A slot is a named place in a host surface, its payload, and its fill rule.
|
|
7
6
|
* The registry is closed for the same reason the widget-id vocabulary is: an
|
package/dist/slots.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../src/slots.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../src/slots.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iDAAiD;AACjD,eAAO,MAAM,aAAa,iDAAkD,CAAC;AAC7E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,4CAA6C,CAAC;AACrE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmPoB,CAAC;AAE/C,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAE1D,eAAO,MAAM,QAAQ,EAAqC,SAAS,MAAM,EAAE,CAAC;AAE5E,eAAO,MAAM,YAAY;;;;;;;;;;;;;;EAAuD,CAAC;AAIjF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAEhD;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,CAKzD"}
|
package/dist/slots.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
2
|
/**
|
|
3
|
-
* Slot registry v1 — CLOSED (
|
|
4
|
-
*
|
|
5
|
-
* bought).
|
|
3
|
+
* Slot registry v1 — CLOSED (eleven slots, plus two bought since and named at
|
|
4
|
+
* the end of the list, in the order they were bought).
|
|
6
5
|
*
|
|
7
6
|
* A slot is a named place in a host surface, its payload, and its fill rule.
|
|
8
7
|
* The registry is closed for the same reason the widget-id vocabulary is: an
|
|
@@ -140,7 +139,7 @@ export const SLOT_REGISTRY = [
|
|
|
140
139
|
},
|
|
141
140
|
{
|
|
142
141
|
/*
|
|
143
|
-
* THE TWELFTH, BOUGHT ON 2026-08-28
|
|
142
|
+
* THE TWELFTH, BOUGHT ON 2026-08-28.
|
|
144
143
|
*
|
|
145
144
|
* ── IT IS NOT THE TWELFTH THIS FILE'S HEADER REFUSES ────────────────────
|
|
146
145
|
*
|
|
@@ -167,7 +166,7 @@ export const SLOT_REGISTRY = [
|
|
|
167
166
|
* 6. the post-resolution satisfaction action
|
|
168
167
|
* 7. attach-a-room to a session record
|
|
169
168
|
*
|
|
170
|
-
*
|
|
169
|
+
* This same shape was declined once, with what would change that stated:
|
|
171
170
|
* two independent implementations' worth of evidence. That is the bar this
|
|
172
171
|
* cleared, and the ruling is recorded rather than inferred.
|
|
173
172
|
*
|
|
@@ -188,10 +187,9 @@ export const SLOT_REGISTRY = [
|
|
|
188
187
|
* STUDENT's own page (`learning-platform/src/screens/Certificate.tsx`
|
|
189
188
|
* opens "the student's completion sheet") and the wallet pass is the
|
|
190
189
|
* ticket-holder's. Ruling the id `staff` would have put the two exhibits
|
|
191
|
-
* everyone actually wants to demo outside the thing bought to carry them
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* end.
|
|
190
|
+
* everyone actually wants to demo outside the thing bought to carry them.
|
|
191
|
+
* That no slot yet covers a customer surface is a known gap, and this is
|
|
192
|
+
* the same observation from the other end.
|
|
195
193
|
*
|
|
196
194
|
* There is nothing in the payload that a customer looking at their own
|
|
197
195
|
* record makes dishonest: it is a record and a way to write back to it,
|
|
@@ -217,7 +215,7 @@ export const SLOT_REGISTRY = [
|
|
|
217
215
|
},
|
|
218
216
|
{
|
|
219
217
|
/*
|
|
220
|
-
* THE THIRTEENTH, BOUGHT ON 2026-09-01
|
|
218
|
+
* THE THIRTEENTH, BOUGHT ON 2026-09-01.
|
|
221
219
|
*
|
|
222
220
|
* The first slot on a CUSTOMER SHELL. Every other customer id in this list
|
|
223
221
|
* is a place inside a flow — a product being configured, a basket line, a
|
|
@@ -276,7 +274,7 @@ export const SLOT_REGISTRY = [
|
|
|
276
274
|
* an example app running on fixtures has no Adminium to inject anything —
|
|
277
275
|
* and a second mount mechanism is the duplication this layer exists to
|
|
278
276
|
* prevent. It stays on file as the way to reach OPERATOR-BUILT customer
|
|
279
|
-
* pages, which have no seam to mount into
|
|
277
|
+
* pages, which have no seam to mount into.
|
|
280
278
|
*
|
|
281
279
|
* ── THE ONE THING A READER SHOULD HOLD AGAINST IT ───────────────────────
|
|
282
280
|
*
|
|
@@ -284,10 +282,10 @@ export const SLOT_REGISTRY = [
|
|
|
284
282
|
* than one. A second overlay add-on would want to open A PARTICULAR fill
|
|
285
283
|
* from a host entry point, and the payload's `openRequest` is a bare
|
|
286
284
|
* counter that opens every one of them. That is recorded as un-purchased
|
|
287
|
-
* standing evidence
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
285
|
+
* standing evidence rather than pre-solved with a `target` field nothing
|
|
286
|
+
* would pass: `multi` is right because two overlays must coexist without
|
|
287
|
+
* one of them winning, and the day a second one exists the request widens.
|
|
288
|
+
* Until then a host with one fill gets the behaviour it wants.
|
|
291
289
|
*/
|
|
292
290
|
id: 'shell.overlay',
|
|
293
291
|
surface: 'customer',
|
package/dist/slots.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../src/slots.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC
|
|
1
|
+
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../src/slots.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iDAAiD;AACjD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAU,CAAC;AAG7E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC;AAarE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B;QACE,EAAE,EAAE,iBAAiB;QACrB,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,sEAAsE;QAC/E,OAAO,EAAE,uDAAuD;KACjE;IACD;QACE,EAAE,EAAE,2BAA2B;QAC/B,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,+BAA+B;QACxC,OAAO,EAAE,sBAAsB;KAChC;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,2BAA2B;KACrC;IACD;QACE,0EAA0E;QAC1E,sEAAsE;QACtE,EAAE,EAAE,wBAAwB;QAC5B,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,iCAAiC;QAC1C,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,uBAAuB;QA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AA6C;KACvD;IACD;QACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAwEG;QACH,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,OAAO;QACb,OAAO,EACL,4KAA4K;QAC9K,OAAO,EAAE,uEAAuE;KACjF;CAC2C,CAAC;AAI/C,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAsB,CAAC;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,QAA4C,CAAC,CAAC;AAEjF,MAAM,KAAK,GAAG,IAAI,GAAG,CAAyB,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnF,MAAM,UAAU,QAAQ,CAAC,CAAU;IACjC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC5B,oBAAoB;IACpB,IAAI,KAAK,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACnE,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Conformance suites — part of the contract, not a courtesy
|
|
2
|
+
* Conformance suites — part of the contract, not a courtesy.
|
|
3
3
|
*
|
|
4
4
|
* Every provider implementation runs the suite for the contract it claims, in
|
|
5
5
|
* its own repo, against its own transport. The claim "the next carrier is a
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* This is the ONLY entry point in the package that may import vitest — the
|
|
11
11
|
* types-and-validators half stays free of test and `node:` imports so the
|
|
12
|
-
* storefront, the SPAs and Electron can all use it
|
|
12
|
+
* storefront, the SPAs and Electron can all use it.
|
|
13
13
|
*/
|
|
14
14
|
import { type ArtworkSource, type JobSpec } from '../artwork-source.js';
|
|
15
15
|
import { type DocumentKind, type DocumentRenderer, type DocumentSubject } from '../document-render.js';
|
|
@@ -62,7 +62,7 @@ export interface DocumentRendererFixtures {
|
|
|
62
62
|
settings: Readonly<Record<string, unknown>>;
|
|
63
63
|
/** One subject the provider renders happily, per kind. */
|
|
64
64
|
subject: (kind: DocumentKind) => DocumentSubject;
|
|
65
|
-
/** The authored composition, for a provider that takes one
|
|
65
|
+
/** The authored composition, for a provider that takes one. */
|
|
66
66
|
body?: (kind: DocumentKind) => Readonly<Record<string, unknown>> | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* The id of a slot whose value the renderer DRAWS VERBATIM — where the suite
|
|
@@ -80,7 +80,7 @@ export interface DocumentRendererFixtures {
|
|
|
80
80
|
* is the row key, which is a lookup and appears nowhere on the sheet, so
|
|
81
81
|
* the accented subject rendered perfectly happily and the coverage
|
|
82
82
|
* assertion failed with the provider being entirely correct (found
|
|
83
|
-
*
|
|
83
|
+
* 2026-09-10).
|
|
84
84
|
*
|
|
85
85
|
* A provider with no drawn free-text slot at all returns `undefined` and the
|
|
86
86
|
* escaping and coverage assertions skip — loudly, in the name.
|
|
@@ -94,8 +94,8 @@ export interface DocumentRendererFixtures {
|
|
|
94
94
|
* the table is a BYTE offset, so a writer that computed them from
|
|
95
95
|
* `String.length` over a stream containing one multi-byte character produces a
|
|
96
96
|
* file every viewer opens and every parser mis-seeks — the exact failure 34's
|
|
97
|
-
*
|
|
98
|
-
*
|
|
97
|
+
* trap 8 sends the invoices writer over byte buffers to avoid. Seeking to each
|
|
98
|
+
* offset and requiring `<n> 0 obj` there catches it on the first render.
|
|
99
99
|
*
|
|
100
100
|
* Exported so a writer's own tests can walk its table with the same rules the
|
|
101
101
|
* suite applies, rather than re-deriving a second walker that drifts from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAAoB,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAOL,KAAK,YAAY,EAEjB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EAGrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,QAAQ,EACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAKL,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,eAAe,EACrB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,GAAG,EAAE,OAAO,CAAC;IACb,yEAAyE;IACzE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,qBAAqB,GAC9B,IAAI,CA2CN;AAID,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,8EAA8E;IAC9E,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,uBAAuB,GAChC,IAAI,CAoHN;AAID,MAAM,WAAW,2BAA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MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CA0CvF;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,gBAAgB,EACtB,QAAQ,EAAE,wBAAwB,GACjC,IAAI,CAoSN"}
|
package/dist/testing/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
2
|
/**
|
|
3
|
-
* Conformance suites — part of the contract, not a courtesy
|
|
3
|
+
* Conformance suites — part of the contract, not a courtesy.
|
|
4
4
|
*
|
|
5
5
|
* Every provider implementation runs the suite for the contract it claims, in
|
|
6
6
|
* its own repo, against its own transport. The claim "the next carrier is a
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* This is the ONLY entry point in the package that may import vitest — the
|
|
12
12
|
* types-and-validators half stays free of test and `node:` imports so the
|
|
13
|
-
* storefront, the SPAs and Electron can all use it
|
|
13
|
+
* storefront, the SPAs and Electron can all use it.
|
|
14
14
|
*/
|
|
15
15
|
import { describe, expect, it } from 'vitest';
|
|
16
16
|
import { artworkRefSchema } from '../artwork-source.js';
|
|
@@ -90,7 +90,7 @@ export function describeShippingCarrier(impl, fixtures) {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
/*
|
|
93
|
-
* ── THE INBOUND DIRECTION (
|
|
93
|
+
* ── THE INBOUND DIRECTION (ruled 2026-09-01) ────────────────────────────
|
|
94
94
|
*
|
|
95
95
|
* The contract is direction-agnostic and these two cases are what that
|
|
96
96
|
* sentence means executably. A RETURN — a customer sending a parcel back to
|
|
@@ -254,8 +254,8 @@ function expectRefused(outcome, message) {
|
|
|
254
254
|
* the table is a BYTE offset, so a writer that computed them from
|
|
255
255
|
* `String.length` over a stream containing one multi-byte character produces a
|
|
256
256
|
* file every viewer opens and every parser mis-seeks — the exact failure 34's
|
|
257
|
-
*
|
|
258
|
-
*
|
|
257
|
+
* trap 8 sends the invoices writer over byte buffers to avoid. Seeking to each
|
|
258
|
+
* offset and requiring `<n> 0 obj` there catches it on the first render.
|
|
259
259
|
*
|
|
260
260
|
* Exported so a writer's own tests can walk its table with the same rules the
|
|
261
261
|
* suite applies, rather than re-deriving a second walker that drifts from
|
|
@@ -401,7 +401,7 @@ export function describeDocumentRenderer(impl, fixtures) {
|
|
|
401
401
|
// The wire law, asserted on the FIXTURE — the provider never sees a
|
|
402
402
|
// decimal, so a fixture carrying 12.5 would be testing a shape the
|
|
403
403
|
// engine does not produce. The invoice rounding law is NOT here: it is
|
|
404
|
-
// the invoices package's own
|
|
404
|
+
// the invoices package's own, because it is arithmetic a
|
|
405
405
|
// label-sheet renderer has no opinion about.
|
|
406
406
|
for (const kind of kinds) {
|
|
407
407
|
const outline = impl.describe(kind.id);
|
|
@@ -448,7 +448,7 @@ export function describeDocumentRenderer(impl, fixtures) {
|
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
450
|
it('renders one subject to the same bytes twice — and so reads no clock of its own', async () => {
|
|
451
|
-
//
|
|
451
|
+
// Two renders separated by real time: identical bytes are the
|
|
452
452
|
// proof that `Date.now()` is not in the code path, which is why this one
|
|
453
453
|
// assertion carries the whole "byte-identical from a pinned clock" claim.
|
|
454
454
|
for (const kind of kinds) {
|
|
@@ -491,7 +491,7 @@ export function describeDocumentRenderer(impl, fixtures) {
|
|
|
491
491
|
* Two subjects, and the SECOND one is the assertion that has teeth.
|
|
492
492
|
*
|
|
493
493
|
* A writer that collects its cross-reference offsets from
|
|
494
|
-
* `String.length` over the document text —
|
|
494
|
+
* `String.length` over the document text — a known trap, and the
|
|
495
495
|
* shape `barcode-labels`' scaffold is written in (`sheet.ts:441-449`)
|
|
496
496
|
* — produces a perfectly valid file for as long as every character is
|
|
497
497
|
* ASCII, because there one character is one byte. It breaks the first
|