@plitzi/sdk-authoring 0.35.10 → 0.36.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 CHANGED
@@ -1,5 +1,49 @@
1
1
  # @plitzi/sdk-authoring
2
2
 
3
+ ## 0.36.0
4
+
5
+ ### Minor Changes
6
+
7
+ - - **An `apiContainer` can keep its browser requests in a query cache, the way react-query does.** Moving between
8
+ sections or pages used to ask the API again every time a provider was shown: a provider in a hidden section is
9
+ mounted but disabled, so showing it fired a fresh request, and a page navigation remounted it and did the same.
10
+ With the new `cache: true` an answer is kept for `staleTime` seconds (30 by default) and shared by every cached
11
+ provider asking the same thing — same method, URL, credentials and headers, the token included, so two visitors
12
+ never share one. Past its time the answer is still drawn at once and a fresh one is fetched behind it; an answer
13
+ nobody shows is forgotten after `gcTime` seconds (300 by default). A refused request (`4xx`/`5xx`) is shown but
14
+ never kept. **The cache is off unless an element asks for it**: an uncached provider behaves as before, asking on
15
+ every mount and sharing nothing.
16
+
17
+ The cache is `@plitzi/sdk-shared/queries` (`queryCache`, `useQuery`, `invalidateQueries`,
18
+ `invalidateQueriesForWrite`), a nexus store written with the per-path `ttl` of `@plitzi/nexus` 1.2.0, which every
19
+ consumer now requires. It reacts to the store's own freshness events, so anything that expires a query's path
20
+ makes the providers on screen ask again.
21
+
22
+ An answer stops counting as current before its time when the element's `performQuery` runs (it always asks
23
+ again), when a flow runs the new global `invalidateQueries` step (source `queries`: `elements`, api container ids
24
+ — a container's requests are tagged with its own id — and/or a `url` prefix), and after a write. Both write steps
25
+ gained `invalidateQueries` / `invalidateElements`: a `webHook` sent with anything but `GET`/`HEAD` refreshes the
26
+ requests to its own site by default, a completed `runServerAction` refreshes all of them by default, and either
27
+ can name containers instead or refresh nothing. A `writeRecord` refreshes all. Providers on screen ask again at
28
+ once; the rest when they are next shown. A sign-in, sign-out or change of account drops everything held. Server-driven
29
+ providers and RSC are untouched.
30
+
31
+ - **A `webHook` that reads can be cached** (`cache`, `staleTime`), in the same cache and under the same key as an api
32
+ container asking the same thing. Its declaration now lives beside it (`utility/webHookSpec`) and the authoring
33
+ catalog gathers it instead of keeping a copy. A `HEAD` is no longer sent with a body, which `fetch` refused.
34
+
35
+ - **Step params can pick several elements.** A new param type, `elementIds` (with an `elementType` filter), is drawn
36
+ in the flow editor as a picker: the matching elements of the space to add, and the picked ones as chips to remove —
37
+ an id no element answers to any more is kept and flagged. The value is a list of ids, so nobody types a
38
+ comma-separated list; `invalidateQueries.elements` and the write steps' `invalidateElements` use it, and the MCP
39
+ catalog says which element type each such param takes.
40
+
41
+ - The dev-tools' Store tab lists the paths a store holds with a TTL — how long ago each was written, what is left
42
+ of it, and a button to expire one or all of them. The query cache appears there as "Queries".
43
+
44
+ - `useApi` no longer takes `params`: nothing passed them, and a GET cannot carry a body anyway. A mock now answers
45
+ synchronously, without a loading frame, and a provider whose URL has not resolved asks for nothing.
46
+
3
47
  ## 0.35.10
4
48
 
5
49
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -291,6 +291,18 @@ declare type ApiContainerProps = {
291
291
  pageParam?: string;
292
292
  /** Renders children while the first client-side request is still in flight, so a loading state can be bound. */
293
293
  renderWhileLoading?: boolean;
294
+ /**
295
+ * Keep a browser request's answer in the page's query cache, shared with every provider asking the same thing.
296
+ * Off by default: an author opts in knowing the page may show an answer up to `staleTime` old.
297
+ */
298
+ cache?: boolean;
299
+ /**
300
+ * With `cache`: seconds an answer is served without asking again. A stale answer is still shown while the new one
301
+ * is fetched; `0` asks on every mount. A text field in the builder, hence the string.
302
+ */
303
+ staleTime?: number | string;
304
+ /** With `cache`: seconds an answer nobody renders is kept, so coming back within it paints at once. */
305
+ gcTime?: number | string;
294
306
  };
295
307
 
296
308
  /**
@@ -621,7 +633,7 @@ export declare const BUILTIN_ELEMENT_CALLBACKS: Record<string, BuiltinElementCal
621
633
  /**
622
634
  * Every built-in `globalCallback`, gathered from the sources that implement them.
623
635
  *
624
- * A global callback registers under a fixed module id — `space`, `state`, `navigation`, `auth`, `actions` — and NOT
636
+ * A global callback registers under a fixed module id — `space`, `state`, `navigation`, `auth`, `actions`, `queries` — and NOT
625
637
  * under the element hosting the flow: the runtime resolves one as `callbacksAvailables[elementId][action]` (see
626
638
  * `InteractionsHelper`), so a node that stored the host element's id here would resolve to nothing and the flow
627
639
  * would silently do nothing. That is what `source` below is for.
@@ -676,7 +688,7 @@ export declare interface BuiltinGlobalCallback extends BuiltinActionSpec {
676
688
  export declare interface BuiltinParam {
677
689
  type: BuiltinParamType;
678
690
  description: string;
679
- default?: string | number | boolean;
691
+ default?: string | number | boolean | string[];
680
692
  options?: string[];
681
693
  when?: (params: Record<string, unknown>) => boolean;
682
694
  required?: boolean;
@@ -691,9 +703,11 @@ export declare interface BuiltinParam {
691
703
  builderType?: InteractionParamType | ((params: Record<string, unknown>) => InteractionParamType);
692
704
  /** Whether the editor offers to bind this param to a data source. Bindable unless a param says otherwise. */
693
705
  canBind?: boolean;
706
+ /** For `elementIds`: the element type the editor offers (e.g. `apiContainer`); every element without one. */
707
+ elementType?: string;
694
708
  }
695
709
 
696
- export declare type BuiltinParamType = 'text' | 'textarea' | 'select' | 'boolean' | 'number' | 'scalar';
710
+ export declare type BuiltinParamType = 'text' | 'textarea' | 'select' | 'boolean' | 'number' | 'scalar' | 'elementIds';
697
711
 
698
712
  export declare interface BuiltinTransformer {
699
713
  title: string;
@@ -1013,6 +1027,9 @@ declare const elementDeclarations: {
1013
1027
  readonly pagination: "none";
1014
1028
  readonly pageParam: "page";
1015
1029
  readonly renderWhileLoading: false;
1030
+ readonly cache: false;
1031
+ readonly staleTime: 30;
1032
+ readonly gcTime: 300;
1016
1033
  };
1017
1034
  readonly definition: {
1018
1035
  readonly label: "Api Container";
@@ -4579,6 +4596,14 @@ declare type InteractionCallbackParam<T extends Record<string, unknown> = Record
4579
4596
  } | {
4580
4597
  type: 'boolean';
4581
4598
  defaultValue?: boolean;
4599
+ } | {
4600
+ /**
4601
+ * Several elements of the space, stored as their ids. The editor offers the elements of `elementType` to pick
4602
+ * from — it is the one that knows the page — so a step never asks for ids typed by hand.
4603
+ */
4604
+ type: 'elements';
4605
+ defaultValue?: string[];
4606
+ elementType?: string;
4582
4607
  } | {
4583
4608
  type: 'select';
4584
4609
  defaultValue?: string;
@@ -4591,7 +4616,7 @@ declare type InteractionCallbackParam<T extends Record<string, unknown> = Record
4591
4616
  }[]);
4592
4617
  } | {
4593
4618
  type: (params: InteractionCallbackParamValues<T>) => InteractionParamType;
4594
- defaultValue?: string | number | boolean;
4619
+ defaultValue?: string | number | boolean | string[];
4595
4620
  options?: {
4596
4621
  label: string;
4597
4622
  value: string;
@@ -4609,10 +4634,21 @@ declare type InteractionCallbackPreviews = Record<string, InteractionCallbackPre
4609
4634
 
4610
4635
  declare type InteractionCallbackType = 'trigger' | 'globalCallback' | 'callback' | 'utility' | 'task';
4611
4636
 
4612
- declare type InteractionParamType = 'boolean' | 'select' | 'text' | 'textarea' | 'codemirror-text' | 'codemirror-json';
4637
+ declare type InteractionParamType = 'boolean' | 'select' | 'text' | 'textarea' | 'codemirror-text' | 'codemirror-json' | 'elements';
4613
4638
 
4614
4639
  declare type InteractionPostCallback<T extends Record<string, unknown> = Record<string, unknown>> = (params: InteractionCallbackParamValues<T>, callbackResult?: unknown) => unknown;
4615
4640
 
4641
+ /**
4642
+ * Tells the page's browser requests the data behind them changed, so the api containers showing them ask again.
4643
+ *
4644
+ * `elements` names the containers by id — the way to reach one whose URL is a template — and `url` the requests
4645
+ * whose URL starts with it; given both, a request must match both. With neither, every request on the page.
4646
+ */
4647
+ export declare const invalidateQueries: (params?: {
4648
+ elements?: string[];
4649
+ url?: string;
4650
+ }) => StepSpec;
4651
+
4616
4652
  /** A param the agent supplied whose VALUE does not match its declared type — a boolean given as the string "true",
4617
4653
  * a number given as a string, a `select` value outside its options, a null placeholder left behind. `expected` is
4618
4654
  * the declared type, `got` the JS typeof (or "null"), and `options` the allowed values for a `select`. */
@@ -5386,6 +5422,13 @@ export declare const runServerAction: (params: {
5386
5422
  input?: string | Record<string, unknown>;
5387
5423
  mode?: "await" | "detached" | "stream";
5388
5424
  idempotencyKey?: string;
5425
+ /**
5426
+ * What a completed run refreshes among the page's browser requests: `all` (the default — only the server knows
5427
+ * what an action wrote), the containers named in `invalidateElements`, or `none` for an action that only reads.
5428
+ */
5429
+ invalidateQueries?: "all" | "elements" | "none";
5430
+ /** Api container ids — with `invalidateQueries: 'elements'`. */
5431
+ invalidateElements?: string[];
5389
5432
  }) => StepSpec;
5390
5433
 
5391
5434
  /** Whether two normalised rule sets say the same thing, whatever order they were written in. */
@@ -6130,7 +6173,7 @@ export declare interface TransformerInfo {
6130
6173
  name: string;
6131
6174
  type: string;
6132
6175
  description: string;
6133
- default?: string | number | boolean;
6176
+ default?: string | number | boolean | string[];
6134
6177
  options?: string[];
6135
6178
  }[];
6136
6179
  }
@@ -6221,6 +6264,16 @@ export declare const webHook: (params: {
6221
6264
  body?: string | Record<string, unknown>;
6222
6265
  authorizationToken?: string;
6223
6266
  credentials?: "include" | "omit" | "same-origin";
6267
+ /** A read only: serve it from the page's query cache for `staleTime` seconds, shared with api containers. */
6268
+ cache?: boolean;
6269
+ staleTime?: number;
6270
+ /**
6271
+ * A write only: what to refresh once it succeeded — the requests to the same site (the default), all of them,
6272
+ * the containers named in `invalidateElements`, or `none`.
6273
+ */
6274
+ invalidateQueries?: "origin" | "all" | "elements" | "none";
6275
+ /** Api container ids — with `invalidateQueries: 'elements'`. */
6276
+ invalidateElements?: string[];
6224
6277
  }) => StepSpec;
6225
6278
 
6226
6279
  /**
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  var e = () => (e) => e;
3
3
  //#endregion
4
4
  //#region ../sdk-elements/dist/elements/advanced/BlockHtml/declaration.mjs
5
- var t$46 = e()({
5
+ var t$49 = e()({
6
6
  type: "blockHtml",
7
7
  content: {
8
8
  attributes: { content: "" },
@@ -42,7 +42,7 @@ var t$46 = e()({
42
42
  });
43
43
  //#endregion
44
44
  //#region ../sdk-elements/dist/elements/advanced/BlockJsx/declaration.mjs
45
- var t$45 = e()({
45
+ var t$48 = e()({
46
46
  type: "blockJsx",
47
47
  content: {
48
48
  attributes: {
@@ -87,7 +87,7 @@ var t$45 = e()({
87
87
  });
88
88
  //#endregion
89
89
  //#region ../sdk-elements/dist/elements/advanced/Custom/declaration.mjs
90
- var t$44 = e()({
90
+ var t$47 = e()({
91
91
  type: "custom",
92
92
  content: {
93
93
  attributes: {
@@ -133,7 +133,7 @@ var t$44 = e()({
133
133
  });
134
134
  //#endregion
135
135
  //#region ../sdk-elements/dist/elements/advanced/NodeHtml/declaration.mjs
136
- var t$43 = e()({
136
+ var t$46 = e()({
137
137
  type: "nodeHtml",
138
138
  content: {
139
139
  attributes: { subType: "div" },
@@ -179,7 +179,7 @@ var t$43 = e()({
179
179
  });
180
180
  //#endregion
181
181
  //#region ../sdk-elements/dist/elements/advanced/Reference/declaration.mjs
182
- var t$42 = e()({
182
+ var t$45 = e()({
183
183
  type: "reference",
184
184
  content: {
185
185
  attributes: {
@@ -224,7 +224,7 @@ var t$42 = e()({
224
224
  });
225
225
  //#endregion
226
226
  //#region ../sdk-elements/dist/elements/basic/Button/declaration.mjs
227
- var t$41 = e()({
227
+ var t$44 = e()({
228
228
  type: "button",
229
229
  content: {
230
230
  attributes: {
@@ -323,7 +323,7 @@ var t$41 = e()({
323
323
  });
324
324
  //#endregion
325
325
  //#region ../sdk-elements/dist/elements/basic/Dropdown/declaration.mjs
326
- var t$40 = e()({
326
+ var t$43 = e()({
327
327
  type: "dropdown",
328
328
  content: {
329
329
  attributes: {
@@ -391,7 +391,7 @@ var t$40 = e()({
391
391
  });
392
392
  //#endregion
393
393
  //#region ../sdk-elements/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs
394
- var t$39 = e()({
394
+ var t$42 = e()({
395
395
  type: "dropdownPopup",
396
396
  content: {
397
397
  attributes: {},
@@ -449,7 +449,7 @@ var t$39 = e()({
449
449
  });
450
450
  //#endregion
451
451
  //#region ../sdk-elements/dist/elements/basic/Heading/declaration.mjs
452
- var t$38 = e()({
452
+ var t$41 = e()({
453
453
  type: "heading",
454
454
  content: {
455
455
  attributes: {
@@ -560,7 +560,7 @@ var t$38 = e()({
560
560
  });
561
561
  //#endregion
562
562
  //#region ../sdk-elements/dist/elements/basic/Link/declaration.mjs
563
- var t$37 = e()({
563
+ var t$40 = e()({
564
564
  type: "link",
565
565
  content: {
566
566
  attributes: {
@@ -610,7 +610,7 @@ var t$37 = e()({
610
610
  });
611
611
  //#endregion
612
612
  //#region ../sdk-elements/dist/elements/basic/Markdown/declaration.mjs
613
- var t$36 = e()({
613
+ var t$39 = e()({
614
614
  type: "markdown",
615
615
  content: {
616
616
  attributes: { content: "Markdown" },
@@ -653,7 +653,7 @@ var t$36 = e()({
653
653
  });
654
654
  //#endregion
655
655
  //#region ../sdk-elements/dist/elements/basic/Paragraph/declaration.mjs
656
- var t$35 = e()({
656
+ var t$38 = e()({
657
657
  type: "paragraph",
658
658
  content: {
659
659
  attributes: { content: "Paragraph" },
@@ -696,7 +696,7 @@ var t$35 = e()({
696
696
  });
697
697
  //#endregion
698
698
  //#region ../sdk-elements/dist/elements/basic/RichText/declaration.mjs
699
- var t$34 = e()({
699
+ var t$37 = e()({
700
700
  type: "richText",
701
701
  content: {
702
702
  attributes: {
@@ -742,7 +742,7 @@ var t$34 = e()({
742
742
  });
743
743
  //#endregion
744
744
  //#region ../sdk-elements/dist/elements/basic/Text/declaration.mjs
745
- var t$33 = e()({
745
+ var t$36 = e()({
746
746
  type: "text",
747
747
  content: {
748
748
  attributes: { content: "Text" },
@@ -786,7 +786,7 @@ var t$33 = e()({
786
786
  });
787
787
  //#endregion
788
788
  //#region ../sdk-elements/dist/elements/basic/ThemeToggle/declaration.mjs
789
- var t$32 = e()({
789
+ var t$35 = e()({
790
790
  type: "themeToggle",
791
791
  content: {
792
792
  attributes: {
@@ -842,7 +842,7 @@ var t$32 = e()({
842
842
  });
843
843
  //#endregion
844
844
  //#region ../sdk-elements/dist/elements/form/Form/declaration.mjs
845
- var t$31 = e()({
845
+ var t$34 = e()({
846
846
  type: "form",
847
847
  sourceType: "apiContainer",
848
848
  content: {
@@ -890,7 +890,7 @@ var t$31 = e()({
890
890
  });
891
891
  //#endregion
892
892
  //#region ../sdk-elements/dist/elements/form/FormControl/declaration.mjs
893
- var t$30 = {
893
+ var t$33 = {
894
894
  width: "100%",
895
895
  display: "flex",
896
896
  "align-items": "center",
@@ -920,7 +920,7 @@ var t$30 = {
920
920
  outline: "none",
921
921
  position: "relative"
922
922
  };
923
- var n$11 = {
923
+ var n$12 = {
924
924
  display: "flex",
925
925
  cursor: "pointer",
926
926
  "font-weight": "600",
@@ -930,7 +930,7 @@ var n$11 = {
930
930
  "user-select": "none"
931
931
  };
932
932
  var r$10 = {
933
- ...n$11,
933
+ ...n$12,
934
934
  "margin-bottom": "4px"
935
935
  };
936
936
  var i$9 = {
@@ -1013,7 +1013,7 @@ var a$7 = e()({
1013
1013
  displayMode: "desktop",
1014
1014
  style: {
1015
1015
  base: { default: {} },
1016
- input: { default: t$30 },
1016
+ input: { default: t$33 },
1017
1017
  label: { default: r$10 },
1018
1018
  error: { default: i$9 }
1019
1019
  }
@@ -1023,7 +1023,7 @@ var a$7 = e()({
1023
1023
  displayMode: "desktop",
1024
1024
  style: {
1025
1025
  base: { default: {} },
1026
- input: { default: t$30 },
1026
+ input: { default: t$33 },
1027
1027
  label: { default: r$10 },
1028
1028
  error: { default: i$9 }
1029
1029
  }
@@ -1033,7 +1033,7 @@ var a$7 = e()({
1033
1033
  displayMode: "desktop",
1034
1034
  style: {
1035
1035
  base: { default: {} },
1036
- input: { default: t$30 },
1036
+ input: { default: t$33 },
1037
1037
  label: { default: r$10 },
1038
1038
  error: { default: i$9 }
1039
1039
  }
@@ -1043,7 +1043,7 @@ var a$7 = e()({
1043
1043
  displayMode: "desktop",
1044
1044
  style: {
1045
1045
  base: { default: {} },
1046
- input: { default: t$30 },
1046
+ input: { default: t$33 },
1047
1047
  label: { default: r$10 },
1048
1048
  error: { default: i$9 }
1049
1049
  }
@@ -1053,7 +1053,7 @@ var a$7 = e()({
1053
1053
  displayMode: "desktop",
1054
1054
  style: {
1055
1055
  base: { default: {} },
1056
- input: { default: t$30 },
1056
+ input: { default: t$33 },
1057
1057
  label: { default: r$10 },
1058
1058
  error: { default: i$9 }
1059
1059
  }
@@ -1069,7 +1069,7 @@ var a$7 = e()({
1069
1069
  "margin-left": "0px",
1070
1070
  "margin-right": "4px"
1071
1071
  } },
1072
- label: { default: n$11 },
1072
+ label: { default: n$12 },
1073
1073
  error: { default: i$9 }
1074
1074
  }
1075
1075
  },
@@ -1079,7 +1079,7 @@ var a$7 = e()({
1079
1079
  style: {
1080
1080
  base: { default: {} },
1081
1081
  input: { default: {
1082
- ...t$30,
1082
+ ...t$33,
1083
1083
  cursor: "pointer"
1084
1084
  } },
1085
1085
  label: r$10,
@@ -1093,7 +1093,7 @@ var a$7 = e()({
1093
1093
  });
1094
1094
  //#endregion
1095
1095
  //#region ../sdk-elements/dist/elements/internal/LayoutContainer/declaration.mjs
1096
- var t$29 = e()({
1096
+ var t$32 = e()({
1097
1097
  type: "layoutContainer",
1098
1098
  content: {
1099
1099
  attributes: { subType: "div" },
@@ -1135,7 +1135,7 @@ var t$29 = e()({
1135
1135
  });
1136
1136
  //#endregion
1137
1137
  //#region ../sdk-elements/dist/elements/internal/Loading/declaration.mjs
1138
- var t$28 = e()({
1138
+ var t$31 = e()({
1139
1139
  type: "loading",
1140
1140
  content: {
1141
1141
  attributes: {},
@@ -1175,7 +1175,7 @@ var t$28 = e()({
1175
1175
  });
1176
1176
  //#endregion
1177
1177
  //#region ../sdk-elements/dist/elements/internal/NotFound/declaration.mjs
1178
- var t$27 = e()({
1178
+ var t$30 = e()({
1179
1179
  type: "notFound",
1180
1180
  content: {
1181
1181
  attributes: {},
@@ -1215,7 +1215,7 @@ var t$27 = e()({
1215
1215
  });
1216
1216
  //#endregion
1217
1217
  //#region ../sdk-elements/dist/elements/internal/Page/declaration.mjs
1218
- var t$26 = e()({
1218
+ var t$29 = e()({
1219
1219
  type: "page",
1220
1220
  content: {
1221
1221
  attributes: {
@@ -1278,7 +1278,7 @@ var t$26 = e()({
1278
1278
  });
1279
1279
  //#endregion
1280
1280
  //#region ../sdk-elements/dist/elements/media/FontAwesome/declaration.mjs
1281
- var t$25 = e()({
1281
+ var t$28 = e()({
1282
1282
  type: "fontAwesome",
1283
1283
  content: {
1284
1284
  attributes: {
@@ -1325,7 +1325,7 @@ var t$25 = e()({
1325
1325
  });
1326
1326
  //#endregion
1327
1327
  //#region ../sdk-elements/dist/elements/media/Image/declaration.mjs
1328
- var t$24 = e()({
1328
+ var t$27 = e()({
1329
1329
  type: "image",
1330
1330
  content: {
1331
1331
  attributes: {
@@ -1374,7 +1374,7 @@ var t$24 = e()({
1374
1374
  });
1375
1375
  //#endregion
1376
1376
  //#region ../sdk-elements/dist/elements/media/Video/declaration.mjs
1377
- var t$23 = e()({
1377
+ var t$26 = e()({
1378
1378
  type: "video",
1379
1379
  content: {
1380
1380
  attributes: {
@@ -1443,12 +1443,15 @@ var F = {
1443
1443
  filters: [],
1444
1444
  pagination: "none",
1445
1445
  pageParam: "page",
1446
- renderWhileLoading: !1
1446
+ renderWhileLoading: !1,
1447
+ cache: !1,
1448
+ staleTime: 30,
1449
+ gcTime: 300
1447
1450
  },
1448
1451
  definition: {
1449
1452
  label: "Api Container",
1450
1453
  type: "apiContainer",
1451
- description: "Fetches data from a backend HTTP API (its `query`/`method`/`credentials`) and exposes the response as a data source ITS DESCENDANTS bind to (source `apiContainer_<id>.data`; only elements inside it can consume it). This is how you get backend data into the frontend. Its `mockData` prop is builder-only sample data — the published runtime fetches the real `query`, so always set a real query for production.",
1454
+ description: "Fetches data from a backend HTTP API (its `query`/`method`/`credentials`) and exposes the response as a data source ITS DESCENDANTS bind to (source `apiContainer_<id>.data`; only elements inside it can consume it). This is how you get backend data into the frontend. Its `mockData` prop is builder-only sample data — the published runtime fetches the real `query`, so always set a real query for production. With `cache: true` a browser request is kept for `staleTime` seconds (default 30) and shared with every provider asking the same thing; it is off unless set. A flow refreshes it with `performQuery` or the global `invalidateQueries` step.",
1452
1455
  items: [],
1453
1456
  bindings: {},
1454
1457
  styleSelectors: { base: "" },
@@ -1481,9 +1484,9 @@ var F = {
1481
1484
  settings: {}
1482
1485
  }
1483
1486
  }),
1484
- BlockHtml: t$46,
1485
- BlockJsx: t$45,
1486
- Button: t$41,
1487
+ BlockHtml: t$49,
1488
+ BlockJsx: t$48,
1489
+ Button: t$44,
1487
1490
  Container: e()({
1488
1491
  type: "container",
1489
1492
  content: {
@@ -1524,7 +1527,7 @@ var F = {
1524
1527
  settings: {}
1525
1528
  }
1526
1529
  }),
1527
- Custom: t$44,
1530
+ Custom: t$47,
1528
1531
  DialogContainer: e()({
1529
1532
  type: "dialogContainer",
1530
1533
  sourceType: "dialogContainer",
@@ -1651,15 +1654,15 @@ var F = {
1651
1654
  },
1652
1655
  initialItems: ["container"]
1653
1656
  }),
1654
- Dropdown: t$40,
1655
- DropdownPopup: t$39,
1656
- FontAwesome: t$25,
1657
- Form: t$31,
1657
+ Dropdown: t$43,
1658
+ DropdownPopup: t$42,
1659
+ FontAwesome: t$28,
1660
+ Form: t$34,
1658
1661
  FormControl: a$7,
1659
- Heading: t$38,
1660
- Image: t$24,
1661
- LayoutContainer: t$29,
1662
- Link: t$37,
1662
+ Heading: t$41,
1663
+ Image: t$27,
1664
+ LayoutContainer: t$32,
1665
+ Link: t$40,
1663
1666
  List: e()({
1664
1667
  type: "list",
1665
1668
  sourceType: "list",
@@ -1768,8 +1771,8 @@ var F = {
1768
1771
  settings: {}
1769
1772
  }
1770
1773
  }),
1771
- Loading: t$28,
1772
- Markdown: t$36,
1774
+ Loading: t$31,
1775
+ Markdown: t$39,
1773
1776
  ModalContainer: e()({
1774
1777
  type: "modalContainer",
1775
1778
  sourceType: "modalContainer",
@@ -1894,9 +1897,9 @@ var F = {
1894
1897
  },
1895
1898
  initialItems: ["container"]
1896
1899
  }),
1897
- NodeHtml: t$43,
1898
- NotFound: t$27,
1899
- Page: t$26,
1900
+ NodeHtml: t$46,
1901
+ NotFound: t$30,
1902
+ Page: t$29,
1900
1903
  Pagination: e()({
1901
1904
  type: "pagination",
1902
1905
  content: {
@@ -1951,9 +1954,9 @@ var F = {
1951
1954
  settings: {}
1952
1955
  }
1953
1956
  }),
1954
- Paragraph: t$35,
1955
- Reference: t$42,
1956
- RichText: t$34,
1957
+ Paragraph: t$38,
1958
+ Reference: t$45,
1959
+ RichText: t$37,
1957
1960
  TabContainer: e()({
1958
1961
  type: "tabContainer",
1959
1962
  content: {
@@ -2129,9 +2132,9 @@ var F = {
2129
2132
  settings: {}
2130
2133
  }
2131
2134
  }),
2132
- Text: t$33,
2133
- ThemeToggle: t$32,
2134
- Video: t$23
2135
+ Text: t$36,
2136
+ ThemeToggle: t$35,
2137
+ Video: t$26
2135
2138
  };
2136
2139
  //#endregion
2137
2140
  //#region src/elements/catalog.ts
@@ -2278,7 +2281,7 @@ var elementsFromManifest = (manifest) => Object.fromEntries(Object.entries(manif
2278
2281
  })]));
2279
2282
  //#endregion
2280
2283
  //#region ../sdk-elements/dist/Element/helpers/elementConstants.mjs
2281
- var e$13 = {
2284
+ var e$14 = {
2282
2285
  onLoad: {
2283
2286
  action: "onLoad",
2284
2287
  title: "On Load",
@@ -2404,7 +2407,7 @@ var e$13 = {
2404
2407
  * the builders useless for exactly the flows that matter most.
2405
2408
  */
2406
2409
  var on = (trigger, params = {}) => {
2407
- const declared = Object.hasOwn(e$13, trigger) ? e$13[trigger] : void 0;
2410
+ const declared = Object.hasOwn(e$14, trigger) ? e$14[trigger] : void 0;
2408
2411
  return {
2409
2412
  type: "trigger",
2410
2413
  action: trigger,
@@ -2492,8 +2495,36 @@ var toggleElement = (params, target) => ({
2492
2495
  params
2493
2496
  });
2494
2497
  //#endregion
2498
+ //#region ../sdk-interactions/dist/sources/QueriesSource/writeParams.mjs
2499
+ var e$13 = {
2500
+ origin: "Requests to the same site",
2501
+ all: "All cached requests",
2502
+ elements: "Only these containers",
2503
+ none: "None — this only reads"
2504
+ };
2505
+ var t$14 = (t, n = () => !0) => ({
2506
+ invalidateQueries: {
2507
+ type: "select",
2508
+ description: "What to refresh once the write succeeded, so the page shows the new data: the cached requests to the same site, all of them, only the api containers named in `invalidateElements`, or none for a step that only reads. Containers on screen ask again at once; the rest when they are shown.",
2509
+ default: t[0],
2510
+ options: [...t],
2511
+ optionLabels: Object.fromEntries(t.map((t) => [t, e$13[t]])),
2512
+ label: "Refresh cached requests",
2513
+ canBind: !1,
2514
+ when: n
2515
+ },
2516
+ invalidateElements: {
2517
+ type: "elementIds",
2518
+ elementType: "apiContainer",
2519
+ description: "The api containers to refresh, by element id.",
2520
+ default: [],
2521
+ label: "Containers (ids)",
2522
+ when: (e) => n(e) && e.invalidateQueries === "elements"
2523
+ }
2524
+ });
2525
+ //#endregion
2495
2526
  //#region ../sdk-interactions/dist/sources/ActionsSource/callbacks.mjs
2496
- var e$12 = {
2527
+ var t$13 = {
2497
2528
  runServerAction: {
2498
2529
  source: "actions",
2499
2530
  title: "Run Server Action",
@@ -2533,7 +2564,12 @@ var e$12 = {
2533
2564
  description: "Makes a repeat of the same intent answer with the first run instead of running again.",
2534
2565
  default: "",
2535
2566
  when: (e) => e.mode !== "detached"
2536
- }
2567
+ },
2568
+ ...t$14([
2569
+ "all",
2570
+ "elements",
2571
+ "none"
2572
+ ])
2537
2573
  },
2538
2574
  preview: {
2539
2575
  runId: "",
@@ -2555,7 +2591,7 @@ var e$12 = {
2555
2591
  };
2556
2592
  //#endregion
2557
2593
  //#region ../sdk-interactions/dist/sources/AuthSource/callbacks.mjs
2558
- var e$11 = {
2594
+ var e$12 = {
2559
2595
  login: {
2560
2596
  source: "auth",
2561
2597
  title: "Auth Login",
@@ -2625,7 +2661,7 @@ var e$11 = {
2625
2661
  };
2626
2662
  //#endregion
2627
2663
  //#region ../sdk-interactions/dist/sources/HostSource/callbacks.mjs
2628
- var e$10 = { hostAction: {
2664
+ var e$11 = { hostAction: {
2629
2665
  source: "host",
2630
2666
  title: "Host Action",
2631
2667
  strictParams: !0,
@@ -2644,7 +2680,7 @@ var e$10 = { hostAction: {
2644
2680
  } };
2645
2681
  //#endregion
2646
2682
  //#region ../sdk-interactions/dist/sources/NavigationSource/callbacks.mjs
2647
- var e$9 = { navigate: {
2683
+ var e$10 = { navigate: {
2648
2684
  source: "navigation",
2649
2685
  title: "Navigate",
2650
2686
  strictParams: !0,
@@ -2672,6 +2708,29 @@ var e$9 = { navigate: {
2672
2708
  }
2673
2709
  } };
2674
2710
  //#endregion
2711
+ //#region ../sdk-interactions/dist/sources/QueriesSource/callbacks.mjs
2712
+ var e$9 = { invalidateQueries: {
2713
+ source: "queries",
2714
+ title: "Invalidate Queries",
2715
+ strictParams: !0,
2716
+ params: {
2717
+ elements: {
2718
+ type: "elementIds",
2719
+ elementType: "apiContainer",
2720
+ description: "The api containers to refresh, by element id — the way to name a request whose URL is a template. Leave both this and `url` empty to refresh every cached request on the page.",
2721
+ default: [],
2722
+ label: "Containers (ids)"
2723
+ },
2724
+ url: {
2725
+ type: "text",
2726
+ description: "Only the requests whose URL starts with this — `/api/orders` covers `/api/orders?page=2`. With `elements` too, a request must match both.",
2727
+ default: "",
2728
+ label: "URL prefix"
2729
+ }
2730
+ },
2731
+ preview: {}
2732
+ } };
2733
+ //#endregion
2675
2734
  //#region ../sdk-interactions/dist/sources/StateSource/callbacks.mjs
2676
2735
  var e$8 = {
2677
2736
  setState: {
@@ -2824,16 +2883,16 @@ var e$8 = {
2824
2883
  //#endregion
2825
2884
  //#region ../sdk-shared/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs
2826
2885
  var e$7 = "[a-zA-Z_][a-zA-Z0-9_]*(?:-[a-zA-Z0-9_]+)*";
2827
- var t$11 = `(?:${e$7}|\\d+)`;
2828
- var n$10 = `\\[\\s*(?:\\d+|'[^']*'|"[^"]*"|${e$7}(?:\\.${t$11})*)\\s*\\]`;
2829
- var r$9 = `${`${e$7}(?:${n$10})*(?:\\??\\.${t$11}(?:${n$10})*)*`}(?:\\s*\\?\\?\\s*[^|{}]+?)?(?:\\s*\\|\\s*[a-zA-Z_]+(?:\\([^)]*\\))?)*`;
2886
+ var t$12 = `(?:${e$7}|\\d+)`;
2887
+ var n$11 = `\\[\\s*(?:\\d+|'[^']*'|"[^"]*"|${e$7}(?:\\.${t$12})*)\\s*\\]`;
2888
+ var r$9 = `${`${e$7}(?:${n$11})*(?:\\??\\.${t$12}(?:${n$11})*)*`}(?:\\s*\\?\\?\\s*[^|{}]+?)?(?:\\s*\\|\\s*[a-zA-Z_]+(?:\\([^)]*\\))?)*`;
2830
2889
  var i$8 = `\\{\\{\\s*${r$9}\\s*\\}\\}`;
2831
2890
  var a$6 = `(?:${`\\{\\{\\{\\s*${r$9}\\s*\\}\\}\\}`}|${i$8})`;
2832
2891
  var o$5 = new RegExp(a$6, "g");
2833
2892
  var s$4 = RegExp(`^${a$6}$`);
2834
2893
  //#endregion
2835
2894
  //#region ../sdk-shared/dist/helpers/twigWrapper/tokens/hasValidToken.mjs
2836
- var n$9 = (n, r = !1) => {
2895
+ var n$10 = (n, r = !1) => {
2837
2896
  if (typeof n != "string") return !1;
2838
2897
  let i = r ? s$4 : o$5;
2839
2898
  return i.lastIndex = 0, i.test(n.trim());
@@ -2851,7 +2910,7 @@ var n$1 = (e, t, n) => {
2851
2910
  return r;
2852
2911
  };
2853
2912
  var r$8 = (e) => e.trim() !== "" && Number.isFinite(Number(e));
2854
- var i$7 = (t) => typeof t == "string" && n$9(t);
2913
+ var i$7 = (t) => typeof t == "string" && n$10(t);
2855
2914
  var a$5 = (e, t) => {
2856
2915
  switch (t.type) {
2857
2916
  case "boolean": return typeof e == "boolean";
@@ -2860,6 +2919,7 @@ var a$5 = (e, t) => {
2860
2919
  case "scalar": return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
2861
2920
  case "text":
2862
2921
  case "textarea": return typeof e == "string";
2922
+ case "elementIds": return Array.isArray(e) && e.every((e) => typeof e == "string");
2863
2923
  default: return !0;
2864
2924
  }
2865
2925
  };
@@ -2937,7 +2997,7 @@ var e$1 = { addNotification: {
2937
2997
  /**
2938
2998
  * Every built-in `globalCallback`, gathered from the sources that implement them.
2939
2999
  *
2940
- * A global callback registers under a fixed module id — `space`, `state`, `navigation`, `auth`, `actions` — and NOT
3000
+ * A global callback registers under a fixed module id — `space`, `state`, `navigation`, `auth`, `actions`, `queries` — and NOT
2941
3001
  * under the element hosting the flow: the runtime resolves one as `callbacksAvailables[elementId][action]` (see
2942
3002
  * `InteractionsHelper`), so a node that stored the host element's id here would resolve to nothing and the flow
2943
3003
  * would silently do nothing. That is what `source` below is for.
@@ -2952,10 +3012,11 @@ var e$1 = { addNotification: {
2952
3012
  var BUILTIN_GLOBAL_CALLBACKS = {
2953
3013
  ...e$1,
2954
3014
  ...e$8,
2955
- ...e$10,
2956
- ...e$9,
2957
3015
  ...e$11,
2958
- ...e$12
3016
+ ...e$10,
3017
+ ...e$12,
3018
+ ...t$13,
3019
+ ...e$9
2959
3020
  };
2960
3021
  /** The built-in globalCallback for an action, or undefined when the action is not a known built-in (a plugin
2961
3022
  * callback whose source/schema is not knowable here). */
@@ -3078,6 +3139,17 @@ var runServerAction = (params) => globalStep("runServerAction", {
3078
3139
  });
3079
3140
  var cancelServerAction = (params) => globalStep("cancelServerAction", params);
3080
3141
  /**
3142
+ * Tells the page's browser requests the data behind them changed, so the api containers showing them ask again.
3143
+ *
3144
+ * `elements` names the containers by id — the way to reach one whose URL is a template — and `url` the requests
3145
+ * whose URL starts with it; given both, a request must match both. With neither, every request on the page.
3146
+ */
3147
+ var invalidateQueries = (params = {}) => globalStep("invalidateQueries", {
3148
+ url: "",
3149
+ elements: [],
3150
+ ...params
3151
+ });
3152
+ /**
3081
3153
  * A utility runs on nothing: the runtime resolves it by action alone, so it carries no `on` at all — the one kind
3082
3154
  * of step where naming an element is the mistake.
3083
3155
  */
@@ -3102,6 +3174,12 @@ var delay = (time) => utilityStep("delayTime", { time });
3102
3174
  var webHook = (params) => utilityStep("webHook", params);
3103
3175
  var twigTemplate = (params) => utilityStep("twigTemplate", params);
3104
3176
  //#endregion
3177
+ //#region ../sdk-interactions/dist/utility/webHookSpec.mjs
3178
+ var t$11 = (e) => {
3179
+ let t = typeof e.method == "string" ? e.method.toLowerCase() : "get";
3180
+ return t === "get" || t === "head";
3181
+ };
3182
+ //#endregion
3105
3183
  //#region src/interactions/utilities.ts
3106
3184
  var BUILTIN_UTILITIES = {
3107
3185
  delayTime: {
@@ -3137,11 +3215,13 @@ var BUILTIN_UTILITIES = {
3137
3215
  webHook: {
3138
3216
  title: "Webhook",
3139
3217
  type: "utility",
3140
- strictParams: true,
3218
+ strictParams: !0,
3141
3219
  params: {
3142
3220
  url: {
3143
3221
  type: "text",
3144
- description: "The URL to call."
3222
+ description: "The URL to call.",
3223
+ default: "",
3224
+ label: "Url"
3145
3225
  },
3146
3226
  method: {
3147
3227
  type: "select",
@@ -3154,15 +3234,18 @@ var BUILTIN_UTILITIES = {
3154
3234
  "delete",
3155
3235
  "patch",
3156
3236
  "head"
3157
- ]
3237
+ ],
3238
+ canBind: !1
3158
3239
  },
3159
3240
  body: {
3160
3241
  type: "textarea",
3161
- description: "Request body."
3242
+ description: "Request body.",
3243
+ default: ""
3162
3244
  },
3163
3245
  authorizationToken: {
3164
3246
  type: "text",
3165
- description: "Value sent as the Authorization header."
3247
+ description: "Value sent as the Authorization header.",
3248
+ default: ""
3166
3249
  },
3167
3250
  credentials: {
3168
3251
  type: "select",
@@ -3172,9 +3255,34 @@ var BUILTIN_UTILITIES = {
3172
3255
  "include",
3173
3256
  "omit",
3174
3257
  "same-origin"
3175
- ]
3176
- }
3177
- }
3258
+ ],
3259
+ optionLabels: { "same-origin": "Same Origin" }
3260
+ },
3261
+ cache: {
3262
+ type: "boolean",
3263
+ description: "Serve a GET from the page’s query cache while it is fresh, and keep the answer there — shared with any api container asking the same thing.",
3264
+ default: !1,
3265
+ label: "Cache response",
3266
+ when: t$11
3267
+ },
3268
+ staleTime: {
3269
+ type: "number",
3270
+ description: "With `cache`: seconds the answer is served without asking again.",
3271
+ default: 30,
3272
+ label: "Fresh for (s)",
3273
+ when: (e) => t$11(e) && (e.cache === !0 || e.cache === "true")
3274
+ },
3275
+ ...t$14([
3276
+ "origin",
3277
+ "all",
3278
+ "elements",
3279
+ "none"
3280
+ ], (e) => !t$11(e))
3281
+ },
3282
+ preview: { response: {
3283
+ status: "",
3284
+ data: ""
3285
+ } }
3178
3286
  }
3179
3287
  };
3180
3288
  /** The built-in utility for an action, or undefined when the action is not a known built-in utility. */
@@ -7081,7 +7189,8 @@ var e$2 = {
7081
7189
  select: "select",
7082
7190
  boolean: "boolean",
7083
7191
  number: "text",
7084
- scalar: "text"
7192
+ scalar: "text",
7193
+ elementIds: "elements"
7085
7194
  };
7086
7195
  var t$2 = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[-_\s]+/).map((e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(" ");
7087
7196
  var n$2 = (n, r) => ({
@@ -7093,7 +7202,8 @@ var n$2 = (n, r) => ({
7093
7202
  label: r.optionLabels?.[e] ?? t$2(e)
7094
7203
  })) } : {},
7095
7204
  ...r.when ? { when: r.when } : {},
7096
- ...r.canBind === void 0 ? {} : { canBind: r.canBind }
7205
+ ...r.canBind === void 0 ? {} : { canBind: r.canBind },
7206
+ ...r.elementType === void 0 ? {} : { elementType: r.elementType }
7097
7207
  });
7098
7208
  var r$1 = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, n$2(e, t)]));
7099
7209
  var i = (e, t, n, i = {}) => ({
@@ -7235,4 +7345,4 @@ var validateTemplate = (template, options = {}) => validateTemplate$1(template,
7235
7345
  ...options
7236
7346
  });
7237
7347
  //#endregion
7238
- export { BREAKPOINTS, t as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, GLOBAL_SOURCES, addNotification, apiContainer, appendState, applyBuiltinCallback, r as applyElementCallback, applyUtility, assertSpaceValid, assertTemplateValid, authLogin, authLogout, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSpace, authorTemplate, blankSpace, blankSpaceSource, space as blankSpaceSpec, blockHtml, blockJsx, buildHandles, button, cancelServerAction, className, clearState, column, container, css, cssProperties, cssShorthands, custom, defineAction, defineElement, delay, dialogContainer, digest, dropdown, dropdownPopup, element, elementCatalog, e as elementDeclaration, elementSourceTypes, elementTypeNames, elementsFromManifest, expandShorthand, expandShorthandPatch, fontAwesome, form, formControl, n as getElementCallback, getGlobalCallback, getTransformer, getUtility, grid, groupBindings, heading, t$1 as hiddenParams, hiddenWhen, hostAction, image, o as invalidParams, isCssProperty, isCustomProperty, link, list, listItem, locate, markdown, n$1 as missingRequiredParams, modalContainer, moveState, named, navigate, nodeHtml, on, onClick, onFlowEnd, onFlowError, onFlowProgress, onLoad, onSubmit, pagination, paragraph, pathForSlug, s as reconcileParams, reference, reloadApi, removeState, resetForm, resolveSource, richText, row, runServerAction, sameRules, selectorFor, setState, shorthandLonghands, slugify, e$1 as spaceCallbacks, styles, suggestCssProperty, suggestTransformer, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, text, themeToggle, toBindingSpecs, r$1 as toBuilderParams, i as toInteractionCallback, a as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, transformerCatalog, twigTemplate, updateElement, validateSpace, validateTemplate, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, withVisibility };
7348
+ export { BREAKPOINTS, t as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, GLOBAL_SOURCES, addNotification, apiContainer, appendState, applyBuiltinCallback, r as applyElementCallback, applyUtility, assertSpaceValid, assertTemplateValid, authLogin, authLogout, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSpace, authorTemplate, blankSpace, blankSpaceSource, space as blankSpaceSpec, blockHtml, blockJsx, buildHandles, button, cancelServerAction, className, clearState, column, container, css, cssProperties, cssShorthands, custom, defineAction, defineElement, delay, dialogContainer, digest, dropdown, dropdownPopup, element, elementCatalog, e as elementDeclaration, elementSourceTypes, elementTypeNames, elementsFromManifest, expandShorthand, expandShorthandPatch, fontAwesome, form, formControl, n as getElementCallback, getGlobalCallback, getTransformer, getUtility, grid, groupBindings, heading, t$1 as hiddenParams, hiddenWhen, hostAction, image, o as invalidParams, invalidateQueries, isCssProperty, isCustomProperty, link, list, listItem, locate, markdown, n$1 as missingRequiredParams, modalContainer, moveState, named, navigate, nodeHtml, on, onClick, onFlowEnd, onFlowError, onFlowProgress, onLoad, onSubmit, pagination, paragraph, pathForSlug, s as reconcileParams, reference, reloadApi, removeState, resetForm, resolveSource, richText, row, runServerAction, sameRules, selectorFor, setState, shorthandLonghands, slugify, e$1 as spaceCallbacks, styles, suggestCssProperty, suggestTransformer, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, text, themeToggle, toBindingSpecs, r$1 as toBuilderParams, i as toInteractionCallback, a as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, transformerCatalog, twigTemplate, updateElement, validateSpace, validateTemplate, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, withVisibility };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-authoring",
3
- "version": "0.35.10",
3
+ "version": "0.36.0",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist/index.js",
@@ -44,11 +44,11 @@
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.59.1",
46
46
  "@plitzi/plitzi-ui": "^1.6.21",
47
- "@plitzi/sdk-elements": "0.35.10",
48
- "@plitzi/sdk-interactions": "0.35.10",
49
- "@plitzi/sdk-schema": "0.35.10",
50
- "@plitzi/sdk-shared": "0.35.10",
51
- "@plitzi/sdk-style": "0.35.10",
47
+ "@plitzi/sdk-elements": "0.36.0",
48
+ "@plitzi/sdk-interactions": "0.36.0",
49
+ "@plitzi/sdk-schema": "0.36.0",
50
+ "@plitzi/sdk-shared": "0.36.0",
51
+ "@plitzi/sdk-style": "0.36.0",
52
52
  "@types/react": "^19.3.0",
53
53
  "eslint": "^9.39.5",
54
54
  "typescript": "^6.0.3",