@platforma-sdk/model 1.38.0 → 1.39.6

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 (39) hide show
  1. package/dist/bconfig/index.d.ts +2 -3
  2. package/dist/bconfig/index.d.ts.map +1 -1
  3. package/dist/bconfig/normalization.d.ts +1 -7
  4. package/dist/bconfig/normalization.d.ts.map +1 -1
  5. package/dist/bconfig/types.d.ts +0 -4
  6. package/dist/bconfig/types.d.ts.map +1 -1
  7. package/dist/bconfig/{utils.d.ts → util.d.ts} +1 -1
  8. package/dist/bconfig/util.d.ts.map +1 -0
  9. package/dist/bconfig/v3.d.ts +3 -32
  10. package/dist/bconfig/v3.d.ts.map +1 -1
  11. package/dist/builder.d.ts +3 -1
  12. package/dist/builder.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +607 -597
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/pframe.d.ts.map +1 -1
  18. package/dist/render/api.d.ts +4 -2
  19. package/dist/render/api.d.ts.map +1 -1
  20. package/dist/render/internal.d.ts +4 -3
  21. package/dist/render/internal.d.ts.map +1 -1
  22. package/dist/render/util/pframe_upgraders.d.ts +3 -0
  23. package/dist/render/util/pframe_upgraders.d.ts.map +1 -0
  24. package/dist/version.d.ts +1 -1
  25. package/package.json +5 -5
  26. package/src/bconfig/index.ts +2 -3
  27. package/src/bconfig/normalization.ts +2 -105
  28. package/src/bconfig/types.ts +0 -5
  29. package/src/bconfig/v3.ts +3 -41
  30. package/src/builder.ts +21 -2
  31. package/src/pframe.ts +7 -0
  32. package/src/render/api.ts +36 -8
  33. package/src/render/internal.ts +15 -3
  34. package/src/render/util/pframe_upgraders.ts +54 -0
  35. package/dist/bconfig/container.d.ts +0 -46
  36. package/dist/bconfig/container.d.ts.map +0 -1
  37. package/dist/bconfig/utils.d.ts.map +0 -1
  38. package/src/bconfig/container.ts +0 -58
  39. /package/src/bconfig/{utils.ts → util.ts} +0 -0
@@ -1,46 +0,0 @@
1
- import { BlockRenderingMode } from '@milaboratories/pl-model-common';
2
- import { Code, TypedConfigOrString } from './types';
3
- import { BlockConfigV3 } from './v3';
4
- /** Container simplifying maintenance of forward and backward compatibility */
5
- export type BlockConfigContainer = {
6
- /** Actual config */
7
- readonly v3: Omit<BlockConfigV3, 'code'>;
8
- /** Config code bundle */
9
- readonly code?: Code;
10
- /**
11
- * For backward compatibility
12
- * @deprecated
13
- */
14
- readonly sdkVersion?: string;
15
- /**
16
- * For backward compatibility
17
- * @deprecated
18
- */
19
- readonly renderingMode?: BlockRenderingMode;
20
- /**
21
- * For backward compatibility
22
- * @deprecated
23
- */
24
- readonly initialArgs?: unknown;
25
- /**
26
- * For backward compatibility
27
- * @deprecated
28
- */
29
- readonly canRun?: TypedConfigOrString;
30
- /**
31
- * For backward compatibility
32
- * @deprecated
33
- */
34
- readonly inputsValid?: TypedConfigOrString;
35
- /**
36
- * For backward compatibility
37
- * @deprecated
38
- */
39
- readonly sections?: TypedConfigOrString;
40
- /**
41
- * For backward compatibility
42
- * @deprecated
43
- */
44
- readonly outputs?: Record<string, TypedConfigOrString>;
45
- };
46
- //# sourceMappingURL=container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/bconfig/container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAE1C,8EAA8E;AAC9E,MAAM,MAAM,oBAAoB,GAAG;IACjC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAEzC,yBAAyB;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;IAMrB;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAE5C;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAE/B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAEtC;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACxD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/bconfig/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;AAG/C,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,YAAY,EAAE,GACzD,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GACxD,KAAK,CAAC"}
@@ -1,58 +0,0 @@
1
- import type { BlockRenderingMode } from '@milaboratories/pl-model-common';
2
- import type { Code, TypedConfigOrString } from './types';
3
- import type { BlockConfigV3 } from './v3';
4
-
5
- /** Container simplifying maintenance of forward and backward compatibility */
6
- export type BlockConfigContainer = {
7
- /** Actual config */
8
- readonly v3: Omit<BlockConfigV3, 'code'>;
9
-
10
- /** Config code bundle */
11
- readonly code?: Code;
12
-
13
- //
14
- // Fields below are used to read previous config versions
15
- //
16
-
17
- /**
18
- * For backward compatibility
19
- * @deprecated
20
- */
21
- readonly sdkVersion?: string;
22
-
23
- /**
24
- * For backward compatibility
25
- * @deprecated
26
- */
27
- readonly renderingMode?: BlockRenderingMode;
28
-
29
- /**
30
- * For backward compatibility
31
- * @deprecated
32
- */
33
- readonly initialArgs?: unknown;
34
-
35
- /**
36
- * For backward compatibility
37
- * @deprecated
38
- */
39
- readonly canRun?: TypedConfigOrString;
40
-
41
- /**
42
- * For backward compatibility
43
- * @deprecated
44
- */
45
- readonly inputsValid?: TypedConfigOrString;
46
-
47
- /**
48
- * For backward compatibility
49
- * @deprecated
50
- */
51
- readonly sections?: TypedConfigOrString;
52
-
53
- /**
54
- * For backward compatibility
55
- * @deprecated
56
- */
57
- readonly outputs?: Record<string, TypedConfigOrString>;
58
- };
File without changes