@platforma-sdk/ui-vue 1.40.6 → 1.41.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.
Files changed (98) hide show
  1. package/.turbo/turbo-build.log +49 -22
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +12 -0
  4. package/dist/AgGridVue/useAgGridOptions.js +54 -53
  5. package/dist/AgGridVue/useAgGridOptions.js.map +1 -1
  6. package/dist/components/BlockLayout.vue.d.ts.map +1 -1
  7. package/dist/components/BlockLayout.vue.js +7 -50
  8. package/dist/components/BlockLayout.vue.js.map +1 -1
  9. package/dist/components/BlockLayout.vue2.js +53 -2
  10. package/dist/components/BlockLayout.vue2.js.map +1 -1
  11. package/dist/components/BlockLayout.vue3.js +9 -0
  12. package/dist/components/BlockLayout.vue3.js.map +1 -0
  13. package/dist/components/NotFound.vue.d.ts.map +1 -1
  14. package/dist/components/NotFound.vue.js +12 -14
  15. package/dist/components/NotFound.vue.js.map +1 -1
  16. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js +7 -6
  17. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js.map +1 -1
  18. package/dist/components/PlAgDataTable/sources/table-source-v2.js +12 -12
  19. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js +10 -9
  20. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js.map +1 -1
  21. package/dist/components/PlAgRowNumHeader.vue.js +3 -2
  22. package/dist/components/PlAgRowNumHeader.vue.js.map +1 -1
  23. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +10 -10
  24. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue.d.ts +1 -1
  25. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue.d.ts.map +1 -1
  26. package/dist/components/PlMultiSequenceAlignment/data.js +51 -51
  27. package/dist/composition/fileContent.js +16 -16
  28. package/dist/defineApp.d.ts +19 -6
  29. package/dist/defineApp.d.ts.map +1 -1
  30. package/dist/defineApp.js +50 -30
  31. package/dist/defineApp.js.map +1 -1
  32. package/dist/internal/UpdateSerializer.d.ts +26 -0
  33. package/dist/internal/UpdateSerializer.d.ts.map +1 -0
  34. package/dist/internal/UpdateSerializer.js +65 -0
  35. package/dist/internal/UpdateSerializer.js.map +1 -0
  36. package/dist/internal/createAppModel.d.ts +1 -1
  37. package/dist/internal/createAppModel.d.ts.map +1 -1
  38. package/dist/internal/createAppModel.js +43 -51
  39. package/dist/internal/createAppModel.js.map +1 -1
  40. package/dist/internal/{createApp.d.ts → createAppV1.d.ts} +4 -4
  41. package/dist/internal/createAppV1.d.ts.map +1 -0
  42. package/dist/internal/{createApp.js → createAppV1.js} +17 -18
  43. package/dist/internal/createAppV1.js.map +1 -0
  44. package/dist/internal/createAppV2.d.ts +56 -0
  45. package/dist/internal/createAppV2.d.ts.map +1 -0
  46. package/dist/internal/createAppV2.js +158 -0
  47. package/dist/internal/createAppV2.js.map +1 -0
  48. package/dist/internal/test-helpers/BlockMock.d.ts +28 -0
  49. package/dist/internal/test-helpers/BlockMock.d.ts.map +1 -0
  50. package/dist/internal/test-helpers/createMockApi.d.ts +4 -0
  51. package/dist/internal/test-helpers/createMockApi.d.ts.map +1 -0
  52. package/dist/internal/test-helpers/utils.d.ts +4 -0
  53. package/dist/internal/test-helpers/utils.d.ts.map +1 -0
  54. package/dist/{types.static-test.d.ts → internal/v1.static-test.d.ts} +3 -3
  55. package/dist/internal/v1.static-test.d.ts.map +1 -0
  56. package/dist/internal/v2.static-test.d.ts +7 -0
  57. package/dist/internal/v2.static-test.d.ts.map +1 -0
  58. package/dist/lib/model/common/dist/index.js +214 -199
  59. package/dist/lib/model/common/dist/index.js.map +1 -1
  60. package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
  61. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +1 -0
  62. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  63. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
  64. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +64 -43
  65. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  66. package/dist/lib/util/helpers/dist/index.js +67 -56
  67. package/dist/lib/util/helpers/dist/index.js.map +1 -1
  68. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/index.js +29 -0
  69. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/index.js.map +1 -0
  70. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.js +208 -0
  71. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.js.map +1 -0
  72. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/duplex.js +95 -0
  73. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/duplex.js.map +1 -0
  74. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/helpers.js +112 -0
  75. package/dist/node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/helpers.js.map +1 -0
  76. package/dist/sdk/model/dist/index.js +151 -131
  77. package/dist/sdk/model/dist/index.js.map +1 -1
  78. package/dist/types.d.ts +2 -2
  79. package/dist/types.d.ts.map +1 -1
  80. package/package.json +8 -5
  81. package/src/components/BlockLayout.vue +9 -1
  82. package/src/components/NotFound.vue +1 -3
  83. package/src/defineApp.ts +134 -36
  84. package/src/internal/UpdateSerializer.ts +112 -0
  85. package/src/internal/createAppModel.ts +7 -20
  86. package/src/internal/{createApp.ts → createAppV1.ts} +10 -6
  87. package/src/internal/createAppV2.test.ts +158 -0
  88. package/src/internal/createAppV2.ts +309 -0
  89. package/src/internal/test-helpers/BlockMock.ts +144 -0
  90. package/src/internal/test-helpers/createMockApi.ts +92 -0
  91. package/src/internal/test-helpers/utils.ts +65 -0
  92. package/src/{types.static-test.ts → internal/v1.static-test.ts} +5 -9
  93. package/src/internal/v2.static-test.ts +98 -0
  94. package/src/types.ts +2 -2
  95. package/dist/internal/createApp.d.ts.map +0 -1
  96. package/dist/internal/createApp.js.map +0 -1
  97. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
  98. package/dist/types.static-test.d.ts.map +0 -1
@@ -344,7 +344,7 @@ function Q(n, e, t) {
344
344
  return r.axes && (r.axes = r.axes.map((i) => K(n, i))), r;
345
345
  }
346
346
  function K(n, e) {
347
- if (!D(e))
347
+ if (!T(e))
348
348
  return e;
349
349
  const t = e.anchor, r = n[t];
350
350
  if (!r)
@@ -370,17 +370,17 @@ function K(n, e) {
370
370
  }
371
371
  throw new Error("Unsupported axis reference type");
372
372
  }
373
- function D(n) {
373
+ function T(n) {
374
374
  return typeof n == "object" && "anchor" in n;
375
375
  }
376
376
  function h(n) {
377
377
  return n.kind === "PColumn";
378
378
  }
379
- function T(n) {
379
+ function D(n) {
380
380
  return h(n.spec);
381
381
  }
382
382
  function X(n) {
383
- if (!T(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
383
+ if (!D(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
384
384
  return n;
385
385
  }
386
386
  function Y(n, e) {
@@ -513,11 +513,11 @@ function rn(n, e = !0) {
513
513
  function on(n, e) {
514
514
  return n.ok ? { ok: !0, value: e(n.value) } : n;
515
515
  }
516
- const B = 24;
517
- u.string().length(B).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
516
+ const F = 24;
517
+ u.string().length(F).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
518
518
  export {
519
519
  G as AnchoredIdDeriver,
520
- B as PlIdLength,
520
+ F as PlIdLength,
521
521
  W as canonicalizeAxisId,
522
522
  q as dataInfoToEntries,
523
523
  en as deriveNativeId,
@@ -532,7 +532,7 @@ export {
532
532
  E as isDataInfoEntries,
533
533
  J as isImportFileHandleIndex,
534
534
  I as isImportFileHandleUpload,
535
- T as isPColumn,
535
+ D as isPColumn,
536
536
  h as isPColumnSpec,
537
537
  H as isPartitionedDataInfoEntries,
538
538
  tn as isPlRef,
@@ -3,11 +3,11 @@ import { PlIdLength as bt, getAxesId as _t, getFileNameFromHandle as wt, getFile
3
3
  import we from "../../../_virtual/canonicalize.js";
4
4
  import K from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
5
5
  import { BasePlErrorLike as Ft, ErrorLike as Ot, PlErrorLike as kt, StandardErrorLike as Rt } from "../../../lib/model/pl-error-like/dist/index.js";
6
- var Be = Object.defineProperty, Ue = (i, e, t) => e in i ? Be(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, I = (i, e, t) => Ue(i, typeof e != "symbol" ? e + "" : e, t);
6
+ var Be = Object.defineProperty, Ve = (i, e, t) => e in i ? Be(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, I = (i, e, t) => Ve(i, typeof e != "symbol" ? e + "" : e, t);
7
7
  function X(i) {
8
8
  return { type: "Immediate", value: i };
9
9
  }
10
- function Je() {
10
+ function Ue() {
11
11
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
12
12
  }
13
13
  function Pe(i) {
@@ -16,15 +16,15 @@ function Pe(i) {
16
16
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
17
17
  throw new Error("Can't get platforma instance.");
18
18
  }
19
- function Ve() {
19
+ function Je() {
20
20
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
21
21
  }
22
22
  function c() {
23
23
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
24
24
  throw new Error("Not in config rendering context");
25
25
  }
26
- function J(i, e) {
27
- const t = Ve();
26
+ function U(i, e) {
27
+ const t = Je();
28
28
  if (t === void 0) return !1;
29
29
  if (i in t.callbackRegistry) throw new Error(`Callback with key ${i} already registered.`);
30
30
  return t.callbackRegistry[i] = e, !0;
@@ -357,7 +357,7 @@ function Ae(i, e, t = {}) {
357
357
  }
358
358
  return j(/* @__PURE__ */ new Set([...a, ...l]), !0);
359
359
  }
360
- const H = "PColumnData/", ie = H + "ResourceMap", se = H + "Partitioned/ResourceMap", V = H + "JsonPartitioned", N = H + "BinaryPartitioned", xe = H + "Partitioned/", Q = xe + "JsonPartitioned", M = xe + "BinaryPartitioned", ne = (i) => {
360
+ const H = "PColumnData/", ie = H + "ResourceMap", se = H + "Partitioned/ResourceMap", J = H + "JsonPartitioned", N = H + "BinaryPartitioned", xe = H + "Partitioned/", Q = xe + "JsonPartitioned", M = xe + "BinaryPartitioned", ne = (i) => {
361
361
  if (i.endsWith(".index"))
362
362
  return { baseKey: i.substring(0, i.length - 6), type: "index" };
363
363
  if (i.endsWith(".values"))
@@ -375,7 +375,7 @@ function Ze(i) {
375
375
  case se:
376
376
  s = t.partitionKeyLength + t.keyLength;
377
377
  break;
378
- case V:
378
+ case J:
379
379
  case N:
380
380
  s = t.partitionKeyLength;
381
381
  break;
@@ -386,7 +386,7 @@ function Ze(i) {
386
386
  }
387
387
  switch (e) {
388
388
  case ie:
389
- case V:
389
+ case J:
390
390
  case N:
391
391
  for (let n of i.listInputFields()) {
392
392
  e === N && (n = ne(n).baseKey);
@@ -455,7 +455,7 @@ function oe(i, e = []) {
455
455
  case ie:
456
456
  case se:
457
457
  throw new Error(`Only data columns are supported, got: ${t}`);
458
- case V: {
458
+ case J: {
459
459
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
460
460
  throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
461
461
  const s = [];
@@ -505,8 +505,8 @@ function oe(i, e = []) {
505
505
  for (const o of i.listInputFields()) {
506
506
  const a = i.resolve({ field: o, assertFieldType: "Input" });
507
507
  if (a === void 0) return;
508
- if (a.resourceType.name !== V)
509
- throw new Error(`Expected ${V} inside ${t}, but got ${a.resourceType.name}`);
508
+ if (a.resourceType.name !== J)
509
+ throw new Error(`Expected ${J} inside ${t}, but got ${a.resourceType.name}`);
510
510
  const l = oe(a, JSON.parse(o));
511
511
  if (l === void 0) return;
512
512
  if (l.type !== "JsonPartitioned")
@@ -737,13 +737,13 @@ class me {
737
737
  const T = tt(m), x = p[p.length - 1];
738
738
  if (x >= m.partitionKeyLength)
739
739
  throw new Error(`Not enough partition keys (${m.partitionKeyLength}) for requested split axes (max index ${x}) in column ${g.name}`);
740
- const B = p.map((b) => this.findLabels(de(g.axesSpec[b]))), k = [], D = (b, U) => {
741
- if (U >= p.length) {
742
- if (k.push([...b]), k.length > 1e4)
740
+ const B = p.map((_) => this.findLabels(de(g.axesSpec[_]))), k = [], D = (_, V) => {
741
+ if (V >= p.length) {
742
+ if (k.push([..._]), k.length > 1e4)
743
743
  throw new Error("Too many key combinations, aborting.");
744
744
  return;
745
745
  }
746
- const R = p[U];
746
+ const R = p[V];
747
747
  if (R >= T.length)
748
748
  throw new Error(`Axis index ${R} out of bounds for unique keys array (length ${T.length}) during split key generation for column ${d.id}`);
749
749
  const $ = T[R];
@@ -752,16 +752,16 @@ class me {
752
752
  return;
753
753
  }
754
754
  for (const q of $)
755
- b.push(q), D(b, U + 1), b.pop();
755
+ _.push(q), D(_, V + 1), _.pop();
756
756
  };
757
757
  if (D([], 0), k.length === 0)
758
758
  continue;
759
- const O = [...g.axesSpec], Ie = p.map((b) => b);
760
- for (let b = p.length - 1; b >= 0; b--)
761
- O.splice(p[b], 1);
759
+ const O = [...g.axesSpec], Ie = p.map((_) => _);
760
+ for (let _ = p.length - 1; _ >= 0; _--)
761
+ O.splice(p[_], 1);
762
762
  const Le = { ...g, axesSpec: O };
763
- for (const b of k) {
764
- const U = b.map((R, $) => {
763
+ for (const _ of k) {
764
+ const V = _.map((R, $) => {
765
765
  const q = Ie[$], Se = de(g.axesSpec[q]), ue = B[$], Ce = (ue == null ? void 0 : ue[R]) ?? String(R);
766
766
  return { axisIdx: q, axisId: Se, value: R, label: Ce };
767
767
  });
@@ -771,7 +771,7 @@ class me {
771
771
  spec: g,
772
772
  adjustedSpec: Le,
773
773
  dataEntries: m,
774
- axisFilters: U
774
+ axisFilters: V
775
775
  });
776
776
  }
777
777
  } else
@@ -1256,7 +1256,7 @@ class G {
1256
1256
  this.ctx.logError(e);
1257
1257
  }
1258
1258
  }
1259
- const Y = "1.40.6";
1259
+ const Y = "1.41.0";
1260
1260
  function ht(i) {
1261
1261
  return i.__renderLambda === !0;
1262
1262
  }
@@ -1264,12 +1264,12 @@ function te(i) {
1264
1264
  if (i !== void 0)
1265
1265
  return ht(i) ? i.handle : i;
1266
1266
  }
1267
- const pt = class _ {
1267
+ const pt = class b {
1268
1268
  constructor(e, t, r, s, n, o, a, l, y) {
1269
1269
  this._renderingMode = e, this._initialArgs = t, this._initialUiState = r, this._outputs = s, this._inputsValid = n, this._sections = o, this._title = a, this._enrichmentTargets = l, this._featureFlags = y;
1270
1270
  }
1271
1271
  static create(e = "Heavy") {
1272
- return new _(
1272
+ return new b(
1273
1273
  e,
1274
1274
  void 0,
1275
1275
  {},
@@ -1278,13 +1278,13 @@ const pt = class _ {
1278
1278
  X([]),
1279
1279
  void 0,
1280
1280
  void 0,
1281
- { ..._.INITIAL_BLOCK_FEATURE_FLAGS }
1281
+ { ...b.INITIAL_BLOCK_FEATURE_FLAGS }
1282
1282
  );
1283
1283
  }
1284
1284
  output(e, t, r = {}) {
1285
1285
  if (typeof t == "function") {
1286
1286
  const s = `output#${e}`;
1287
- return J(s, () => t(new G())), new _(
1287
+ return U(s, () => t(new G())), new b(
1288
1288
  this._renderingMode,
1289
1289
  this._initialArgs,
1290
1290
  this._initialUiState,
@@ -1303,7 +1303,7 @@ const pt = class _ {
1303
1303
  this._featureFlags
1304
1304
  );
1305
1305
  } else
1306
- return new _(
1306
+ return new b(
1307
1307
  this._renderingMode,
1308
1308
  this._initialArgs,
1309
1309
  this._initialUiState,
@@ -1323,7 +1323,7 @@ const pt = class _ {
1323
1323
  return this.output(e, t, { retentive: !0 });
1324
1324
  }
1325
1325
  argsValid(e) {
1326
- return typeof e == "function" ? (J("inputsValid", () => e(new G())), new _(
1326
+ return typeof e == "function" ? (U("inputsValid", () => e(new G())), new b(
1327
1327
  this._renderingMode,
1328
1328
  this._initialArgs,
1329
1329
  this._initialUiState,
@@ -1336,7 +1336,7 @@ const pt = class _ {
1336
1336
  this._title,
1337
1337
  this._enrichmentTargets,
1338
1338
  this._featureFlags
1339
- )) : new _(
1339
+ )) : new b(
1340
1340
  this._renderingMode,
1341
1341
  this._initialArgs,
1342
1342
  this._initialUiState,
@@ -1349,7 +1349,7 @@ const pt = class _ {
1349
1349
  );
1350
1350
  }
1351
1351
  sections(e) {
1352
- return Array.isArray(e) ? this.sections(X(e)) : typeof e == "function" ? (J("sections", () => e(new G())), new _(
1352
+ return Array.isArray(e) ? this.sections(X(e)) : typeof e == "function" ? (U("sections", () => e(new G())), new b(
1353
1353
  this._renderingMode,
1354
1354
  this._initialArgs,
1355
1355
  this._initialUiState,
@@ -1359,7 +1359,7 @@ const pt = class _ {
1359
1359
  this._title,
1360
1360
  this._enrichmentTargets,
1361
1361
  this._featureFlags
1362
- )) : new _(
1362
+ )) : new b(
1363
1363
  this._renderingMode,
1364
1364
  this._initialArgs,
1365
1365
  this._initialUiState,
@@ -1373,7 +1373,7 @@ const pt = class _ {
1373
1373
  }
1374
1374
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1375
1375
  title(e) {
1376
- return J("title", () => e(new G())), new _(
1376
+ return U("title", () => e(new G())), new b(
1377
1377
  this._renderingMode,
1378
1378
  this._initialArgs,
1379
1379
  this._initialUiState,
@@ -1390,7 +1390,7 @@ const pt = class _ {
1390
1390
  * @deprecated use {@link withArgs}
1391
1391
  * */
1392
1392
  initialArgs(e) {
1393
- return new _(
1393
+ return new b(
1394
1394
  this._renderingMode,
1395
1395
  e,
1396
1396
  this._initialUiState,
@@ -1404,7 +1404,7 @@ const pt = class _ {
1404
1404
  }
1405
1405
  /** Sets initial args for the block, this value must be specified. */
1406
1406
  withArgs(e) {
1407
- return new _(
1407
+ return new b(
1408
1408
  this._renderingMode,
1409
1409
  e,
1410
1410
  this._initialUiState,
@@ -1418,7 +1418,7 @@ const pt = class _ {
1418
1418
  }
1419
1419
  /** Defines type and sets initial value for block UiState. */
1420
1420
  withUiState(e) {
1421
- return new _(
1421
+ return new b(
1422
1422
  this._renderingMode,
1423
1423
  this._initialArgs,
1424
1424
  e,
@@ -1430,12 +1430,26 @@ const pt = class _ {
1430
1430
  this._featureFlags
1431
1431
  );
1432
1432
  }
1433
+ /** Sets or overrides feature flags for the block. */
1434
+ withFeatureFlags(e) {
1435
+ return new b(
1436
+ this._renderingMode,
1437
+ this._initialArgs,
1438
+ this._initialUiState,
1439
+ this._outputs,
1440
+ this._inputsValid,
1441
+ this._sections,
1442
+ this._title,
1443
+ this._enrichmentTargets,
1444
+ { ...this._featureFlags, ...e }
1445
+ );
1446
+ }
1433
1447
  /**
1434
1448
  * Defines how to derive list of upstream references this block is meant to enrich with its exports from block args.
1435
1449
  * Influences dependency graph construction.
1436
1450
  */
1437
1451
  enriches(e) {
1438
- return J("enrichmentTargets", e), new _(
1452
+ return U("enrichmentTargets", e), new b(
1439
1453
  this._renderingMode,
1440
1454
  this._initialArgs,
1441
1455
  this._initialUiState,
@@ -1450,9 +1464,16 @@ const pt = class _ {
1450
1464
  /** Renders all provided block settings into a pre-configured platforma API
1451
1465
  * instance, that can be used in frontend to interact with block state, and
1452
1466
  * other features provided by the platforma to the block. */
1453
- done() {
1467
+ done(e) {
1468
+ const t = e ?? 1;
1469
+ return this.withFeatureFlags({
1470
+ ...this._featureFlags,
1471
+ requiresUIAPIVersion: t
1472
+ })._done(t);
1473
+ }
1474
+ _done(e) {
1454
1475
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
1455
- const e = {
1476
+ const t = {
1456
1477
  v3: {
1457
1478
  sdkVersion: Y,
1458
1479
  renderingMode: this._renderingMode,
@@ -1472,10 +1493,10 @@ const pt = class _ {
1472
1493
  inputsValid: te(this._inputsValid),
1473
1494
  sections: te(this._sections),
1474
1495
  outputs: Object.fromEntries(
1475
- Object.entries(this._outputs).map(([t, r]) => [t, te(r)])
1496
+ Object.entries(this._outputs).map(([r, s]) => [r, te(s)])
1476
1497
  )
1477
1498
  };
1478
- return Je() ? Pe({ sdkVersion: Y }) : { config: e };
1499
+ return globalThis.platformaApiVersion = e, Ue() ? Pe({ sdkVersion: Y, apiVersion: platformaApiVersion }) : { config: t };
1479
1500
  }
1480
1501
  };
1481
1502
  I(pt, "INITIAL_BLOCK_FEATURE_FLAGS", {
@@ -1484,7 +1505,7 @@ I(pt, "INITIAL_BLOCK_FEATURE_FLAGS", {
1484
1505
  requiresModelAPIVersion: 1
1485
1506
  });
1486
1507
  function mt() {
1487
- return Pe({ sdkVersion: Y });
1508
+ return Pe({ sdkVersion: Y, apiVersion: platformaApiVersion });
1488
1509
  }
1489
1510
  export {
1490
1511
  he as AnchoredIdDeriver,
@@ -1498,7 +1519,7 @@ export {
1498
1519
  bt as PlIdLength,
1499
1520
  N as RT_BINARY_PARTITIONED,
1500
1521
  M as RT_BINARY_SUPER_PARTITIONED,
1501
- V as RT_JSON_PARTITIONED,
1522
+ J as RT_JSON_PARTITIONED,
1502
1523
  Q as RT_JSON_SUPER_PARTITIONED,
1503
1524
  ie as RT_RESOURCE_MAP,
1504
1525
  se as RT_RESOURCE_MAP_PARTITIONED,