@integry/sdk 4.8.76 → 4.8.78
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/README.md +20 -0
- package/dist/esm/index.csm.d.ts +26 -2
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +26 -2
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/umd/index.umd.d.ts
CHANGED
|
@@ -10,6 +10,18 @@ declare enum RenderModes {
|
|
|
10
10
|
MODAL = "MODAL",
|
|
11
11
|
INLINE = "INLINE"
|
|
12
12
|
}
|
|
13
|
+
type CustomFunctionSelection = {
|
|
14
|
+
id: number | string;
|
|
15
|
+
isActivity?: boolean;
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
+
preloadedValue?: any;
|
|
18
|
+
};
|
|
19
|
+
type CustomFunctionSelectionHandler = {
|
|
20
|
+
(id: number | string,
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
|
+
preloadedValue?: any, selectActivity?: boolean): void | Promise<void>;
|
|
23
|
+
(selection: CustomFunctionSelection): void | Promise<void>;
|
|
24
|
+
};
|
|
13
25
|
type IntegrySDKEventPayloads = {
|
|
14
26
|
ready: {
|
|
15
27
|
isReady: boolean;
|
|
@@ -274,7 +286,12 @@ type RenderFlowStepOptions = {
|
|
|
274
286
|
containerId: string;
|
|
275
287
|
}) => void;
|
|
276
288
|
functionsListContainerId?: string;
|
|
277
|
-
|
|
289
|
+
/**
|
|
290
|
+
* Pass a handler to receive selections from custom function/activity pickers.
|
|
291
|
+
* Clients can call the handler with `(id, preloadedValue?, true)` for activities,
|
|
292
|
+
* or with `{ id, isActivity: true, preloadedValue }`.
|
|
293
|
+
*/
|
|
294
|
+
onCustomFunctionSelect?: (handler: CustomFunctionSelectionHandler) => void;
|
|
278
295
|
enableExpandedTextarea?: boolean;
|
|
279
296
|
requireAuthentication?: boolean;
|
|
280
297
|
};
|
|
@@ -282,6 +299,9 @@ type RenderFunctionFormOptions = {
|
|
|
282
299
|
containerId: string;
|
|
283
300
|
functionName: string | null;
|
|
284
301
|
activity_id?: number | string | null;
|
|
302
|
+
/**
|
|
303
|
+
* When true, the saved json_schema.meta mirrors the activity details meta shape.
|
|
304
|
+
*/
|
|
285
305
|
is_activity?: boolean;
|
|
286
306
|
onChange?: (val: any) => void;
|
|
287
307
|
value?: any;
|
|
@@ -688,7 +708,11 @@ interface FunctionFieldType {
|
|
|
688
708
|
containerId: string;
|
|
689
709
|
}) => void;
|
|
690
710
|
functionsListContainerId?: string;
|
|
691
|
-
|
|
711
|
+
/**
|
|
712
|
+
* Provide a handler that can receive function or activity selections.
|
|
713
|
+
* Call it as `(id, preloadedValue?, true)` or `{ id, isActivity: true, preloadedValue }`.
|
|
714
|
+
*/
|
|
715
|
+
onCustomFunctionSelect?: (handler: CustomFunctionSelectionHandler) => void;
|
|
692
716
|
}
|
|
693
717
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
694
718
|
type EventSet = Record<string, (...args: any[]) => void>;
|