@optiaxiom/proteus 0.1.16 → 0.1.18
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/esm/proteus-document/ProteusDocumentPathContext.js +1 -0
- package/dist/esm/proteus-document/ProteusDocumentShell.js +14 -27
- package/dist/esm/proteus-document/resolveProteusProp.js +7 -4
- package/dist/esm/proteus-document/resolveProteusValue.js +44 -21
- package/dist/esm/proteus-document/useResolveProteusValues.js +2 -2
- package/dist/esm/proteus-element/ProteusElement.js +2 -2
- package/dist/esm/proteus-map/ProteusMap.js +2 -1
- package/dist/esm/proteus-show/ProteusShow.js +2 -2
- package/dist/esm/schema/public-schema.json.js +170 -115
- package/dist/esm/schema/runtime-schema.json.js +169 -115
- package/dist/index.d.ts +9 -1
- package/dist/spec.d.ts +479 -451
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -163,6 +163,8 @@ type ProteusCondition = {
|
|
|
163
163
|
or: ProteusCondition[];
|
|
164
164
|
};
|
|
165
165
|
type ComparisonValue = boolean | null | number | string | {
|
|
166
|
+
$type: "MapIndex";
|
|
167
|
+
} | {
|
|
166
168
|
$type: "Value";
|
|
167
169
|
path: string;
|
|
168
170
|
};
|
|
@@ -221,6 +223,12 @@ type ProteusDocumentShellProps = Pick<ComponentPropsWithoutRef<typeof Disclosure
|
|
|
221
223
|
* Callback when form fields change
|
|
222
224
|
*/
|
|
223
225
|
onDataChange?: (data: Record<string, unknown>) => void;
|
|
226
|
+
/**
|
|
227
|
+
* Callback when user triggers a download action; receives the resolved URL(s).
|
|
228
|
+
* When provided, the host is responsible for the actual download/zip.
|
|
229
|
+
* Falls back to built-in window.open behaviour when absent.
|
|
230
|
+
*/
|
|
231
|
+
onDownload?: (urls: string[]) => Promise<void> | void;
|
|
224
232
|
/**
|
|
225
233
|
* Callback when user clicks a Action button with interaction handler
|
|
226
234
|
*/
|
|
@@ -248,7 +256,7 @@ type ProteusDocument$2 = {
|
|
|
248
256
|
title?: ReactNode;
|
|
249
257
|
titleIcon?: string;
|
|
250
258
|
};
|
|
251
|
-
declare function ProteusDocumentShell({ collapsible: collapsibleProp, data, defaultOpen, element, onDataChange, onInteraction, onMessage, onOpenChange, open: openProp, readOnly, strict, }: ProteusDocumentShellProps): react_jsx_runtime.JSX.Element;
|
|
259
|
+
declare function ProteusDocumentShell({ collapsible: collapsibleProp, data, defaultOpen, element, onDataChange, onDownload, onInteraction, onMessage, onOpenChange, open: openProp, readOnly, strict, }: ProteusDocumentShellProps): react_jsx_runtime.JSX.Element;
|
|
252
260
|
declare namespace ProteusDocumentShell {
|
|
253
261
|
var displayName: string;
|
|
254
262
|
}
|