@milaboratories/pl-model-middle-layer 1.31.0 → 1.32.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/dist/block_meta/block_description.cjs +5 -1
- package/dist/block_meta/block_description.cjs.map +1 -1
- package/dist/block_meta/block_description.d.ts +13 -2
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_description.js +5 -2
- package/dist/block_meta/block_description.js.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +12 -0
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/index.cjs +1 -0
- package/dist/block_meta/index.d.ts +2 -2
- package/dist/block_meta/index.js +2 -2
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +6 -6
- package/src/block_meta/block_description.ts +11 -1
|
@@ -14,12 +14,15 @@ const BlockPackDescriptionFromPackageJsonRaw = zod.z.object({
|
|
|
14
14
|
meta: require_block_meta.BlockPackMetaDescriptionRaw
|
|
15
15
|
});
|
|
16
16
|
const FeatureFlags = zod.z.record(zod.z.string(), zod.z.union([zod.z.boolean(), zod.z.number()])).transform((flags) => flags);
|
|
17
|
+
/** Block-kind reference schema — a plain `{name}@{version}` string at rest. */
|
|
18
|
+
const BlockKindRef = zod.z.string().transform((s) => s);
|
|
17
19
|
function CreateBlockPackDescriptionSchema(components, meta) {
|
|
18
20
|
return zod.z.object({
|
|
19
21
|
id: require_block_id.BlockPackId,
|
|
20
22
|
components,
|
|
21
23
|
meta,
|
|
22
|
-
featureFlags: FeatureFlags.optional()
|
|
24
|
+
featureFlags: FeatureFlags.optional(),
|
|
25
|
+
kind: BlockKindRef.optional()
|
|
23
26
|
}).passthrough();
|
|
24
27
|
}
|
|
25
28
|
const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(require_block_components.BlockComponentsDescriptionRaw, require_block_meta.BlockPackMetaDescriptionRaw);
|
|
@@ -27,6 +30,7 @@ function overrideDescriptionVersion(manifest, newVersion) {
|
|
|
27
30
|
return (0, es_toolkit.toMerged)(manifest, { id: { version: newVersion } });
|
|
28
31
|
}
|
|
29
32
|
//#endregion
|
|
33
|
+
exports.BlockKindRef = BlockKindRef;
|
|
30
34
|
exports.BlockPackDescriptionFromPackageJsonRaw = BlockPackDescriptionFromPackageJsonRaw;
|
|
31
35
|
exports.BlockPackDescriptionRaw = BlockPackDescriptionRaw;
|
|
32
36
|
exports.CreateBlockPackDescriptionSchema = CreateBlockPackDescriptionSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_description.cjs","names":["z","BlockComponentsDescriptionRaw","BlockPackMetaDescriptionRaw","BlockPackId"],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type {
|
|
1
|
+
{"version":3,"file":"block_description.cjs","names":["z","BlockComponentsDescriptionRaw","BlockPackMetaDescriptionRaw","BlockPackId"],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type {\n BlockCodeKnownFeatureFlags,\n BlockKindReference,\n} from \"@milaboratories/pl-model-common\";\n\n/**\n * Block-pack description: a `BlockPackId`, the typed `components` and `meta`\n * payloads, and optional `featureFlags`. The two type parameters let the same\n * shape carry every form a description travels in — `package.json` source,\n * relative-path manifest, absolute-path resolved.\n */\nexport type BlockPackDescription<Components, Meta> = {\n id: BlockPackId;\n components: Components;\n meta: Meta;\n featureFlags?: BlockCodeKnownFeatureFlags;\n /** Reference to the block kind this pack implements, in `{name}@{version}`\n * form. Lifted from the model's container-level `kind` by build_dist. */\n kind?: BlockKindReference;\n};\n\n/**\n * Description as it appears in the root block `package.json`. `file:`-prefixed\n * strings become `ContentRelative`; bare text strings become\n * `ContentExplicitString`. See `DescriptionContentText`/`DescriptionContentBinary`.\n */\nexport const BlockPackDescriptionFromPackageJsonRaw = z.object({\n components: BlockComponentsDescriptionRaw,\n meta: BlockPackMetaDescriptionRaw,\n});\n\nexport const FeatureFlags = z\n .record(z.string(), z.union([z.boolean(), z.number()]))\n .transform((flags) => flags as BlockCodeKnownFeatureFlags);\n\n/** Block-kind reference schema — a plain `{name}@{version}` string at rest. */\nexport const BlockKindRef = z.string().transform((s) => s as BlockKindReference);\n\nexport function CreateBlockPackDescriptionSchema<\n Components extends ZodTypeAny,\n Meta extends ZodTypeAny,\n>(components: Components, meta: Meta) {\n return z\n .object({\n id: BlockPackId,\n components,\n meta,\n featureFlags: FeatureFlags.optional(),\n kind: BlockKindRef.optional(),\n })\n .passthrough();\n}\n\nexport const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(\n BlockComponentsDescriptionRaw,\n BlockPackMetaDescriptionRaw,\n);\nexport type BlockPackDescriptionRaw = z.infer<typeof BlockPackDescriptionRaw>;\n\nexport function overrideDescriptionVersion<T extends { id: BlockPackId }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { id: { version: newVersion } }) as T;\n}\n"],"mappings":";;;;;;;;;;;AAgCA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,YAAYC,yBAAAA;CACZ,MAAMC,mBAAAA;AACR,CAAC;AAED,MAAa,eAAeF,IAAAA,EACzB,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CACtD,WAAW,UAAU,KAAmC;;AAG3D,MAAa,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,WAAW,MAAM,CAAuB;AAE/E,SAAgB,iCAGd,YAAwB,MAAY;CACpC,OAAOA,IAAAA,EACJ,OAAO;EACN,IAAIG,iBAAAA;EACJ;EACA;EACA,cAAc,aAAa,SAAS;EACpC,MAAM,aAAa,SAAS;CAC9B,CAAC,CAAC,CACD,YAAY;AACjB;AAEA,MAAa,0BAA0B,iCACrCF,yBAAAA,+BACAC,mBAAAA,2BACF;AAGA,SAAgB,2BACd,UACA,YACG;CACH,QAAA,GAAA,WAAA,SAAA,CAAgB,UAAU,EAAE,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;AAC3D"}
|
|
@@ -2,7 +2,7 @@ import { ContentRelativeBinary, ContentRelativeText } from "./content_types.js";
|
|
|
2
2
|
import { BlockPackId } from "./block_id.js";
|
|
3
3
|
import { WorkflowV1 } from "./block_components.js";
|
|
4
4
|
import { ZodTypeAny, z } from "zod";
|
|
5
|
-
import { BlockCodeKnownFeatureFlags } from "@milaboratories/pl-model-common";
|
|
5
|
+
import { BlockCodeKnownFeatureFlags, BlockKindReference } from "@milaboratories/pl-model-common";
|
|
6
6
|
|
|
7
7
|
//#region src/block_meta/block_description.d.ts
|
|
8
8
|
/**
|
|
@@ -16,6 +16,9 @@ type BlockPackDescription<Components, Meta> = {
|
|
|
16
16
|
components: Components;
|
|
17
17
|
meta: Meta;
|
|
18
18
|
featureFlags?: BlockCodeKnownFeatureFlags;
|
|
19
|
+
/** Reference to the block kind this pack implements, in `{name}@{version}`
|
|
20
|
+
* form. Lifted from the model's container-level `kind` by build_dist. */
|
|
21
|
+
kind?: BlockKindReference;
|
|
19
22
|
};
|
|
20
23
|
/**
|
|
21
24
|
* Description as it appears in the root block `package.json`. `file:`-prefixed
|
|
@@ -804,6 +807,8 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
804
807
|
};
|
|
805
808
|
}>;
|
|
806
809
|
declare const FeatureFlags: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>;
|
|
810
|
+
/** Block-kind reference schema — a plain `{name}@{version}` string at rest. */
|
|
811
|
+
declare const BlockKindRef: z.ZodEffects<z.ZodString, BlockKindReference, string>;
|
|
807
812
|
declare function CreateBlockPackDescriptionSchema<Components extends ZodTypeAny, Meta extends ZodTypeAny>(components: Components, meta: Meta): z.ZodObject<{
|
|
808
813
|
id: z.ZodObject<{
|
|
809
814
|
organization: z.ZodString;
|
|
@@ -821,6 +826,7 @@ declare function CreateBlockPackDescriptionSchema<Components extends ZodTypeAny,
|
|
|
821
826
|
components: Components;
|
|
822
827
|
meta: Meta;
|
|
823
828
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
829
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, BlockKindReference, string>>;
|
|
824
830
|
}, "passthrough", ZodTypeAny, z.objectOutputType<{
|
|
825
831
|
id: z.ZodObject<{
|
|
826
832
|
organization: z.ZodString;
|
|
@@ -838,6 +844,7 @@ declare function CreateBlockPackDescriptionSchema<Components extends ZodTypeAny,
|
|
|
838
844
|
components: Components;
|
|
839
845
|
meta: Meta;
|
|
840
846
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
847
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, BlockKindReference, string>>;
|
|
841
848
|
}, ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
842
849
|
id: z.ZodObject<{
|
|
843
850
|
organization: z.ZodString;
|
|
@@ -855,6 +862,7 @@ declare function CreateBlockPackDescriptionSchema<Components extends ZodTypeAny,
|
|
|
855
862
|
components: Components;
|
|
856
863
|
meta: Meta;
|
|
857
864
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
865
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, BlockKindReference, string>>;
|
|
858
866
|
}, ZodTypeAny, "passthrough">>;
|
|
859
867
|
declare const BlockPackDescriptionRaw: z.ZodObject<{
|
|
860
868
|
id: z.ZodObject<{
|
|
@@ -1506,6 +1514,7 @@ declare const BlockPackDescriptionRaw: z.ZodObject<{
|
|
|
1506
1514
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1507
1515
|
}, ZodTypeAny, "passthrough">>;
|
|
1508
1516
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
1517
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, BlockKindReference, string>>;
|
|
1509
1518
|
}, "passthrough", ZodTypeAny, z.objectOutputType<{
|
|
1510
1519
|
id: z.ZodObject<{
|
|
1511
1520
|
organization: z.ZodString;
|
|
@@ -2156,6 +2165,7 @@ declare const BlockPackDescriptionRaw: z.ZodObject<{
|
|
|
2156
2165
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2157
2166
|
}, ZodTypeAny, "passthrough">>;
|
|
2158
2167
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
2168
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, BlockKindReference, string>>;
|
|
2159
2169
|
}, ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2160
2170
|
id: z.ZodObject<{
|
|
2161
2171
|
organization: z.ZodString;
|
|
@@ -2806,11 +2816,12 @@ declare const BlockPackDescriptionRaw: z.ZodObject<{
|
|
|
2806
2816
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2807
2817
|
}, ZodTypeAny, "passthrough">>;
|
|
2808
2818
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
2819
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, BlockKindReference, string>>;
|
|
2809
2820
|
}, ZodTypeAny, "passthrough">>;
|
|
2810
2821
|
type BlockPackDescriptionRaw = z.infer<typeof BlockPackDescriptionRaw>;
|
|
2811
2822
|
declare function overrideDescriptionVersion<T extends {
|
|
2812
2823
|
id: BlockPackId;
|
|
2813
2824
|
}>(manifest: T, newVersion: string): T;
|
|
2814
2825
|
//#endregion
|
|
2815
|
-
export { BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion };
|
|
2826
|
+
export { BlockKindRef, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion };
|
|
2816
2827
|
//# sourceMappingURL=block_description.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_description.d.ts","names":[],"sources":["../../src/block_meta/block_description.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"block_description.d.ts","names":[],"sources":["../../src/block_meta/block_description.ts"],"mappings":";;;;;;;;;;AAiBA;;;KAAY,oBAAA;EACV,EAAA,EAAI,WAAA;EACJ,UAAA,EAAY,UAAA;EACZ,IAAA,EAAM,IAAA;EACN,YAAA,GAAe,0BAAA;EAGU;;EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIxB,uBAAA,GAA0B,CAAA,CAAE,KAAK,QAAQ,uBAAA;AAAA,iBAErC,0BAAA;EAAuC,EAAA,EAAI,WAAA;AAAA,GACzD,QAAA,EAAU,CAAA,EACV,UAAA,WACC,CAAA"}
|
|
@@ -14,12 +14,15 @@ const BlockPackDescriptionFromPackageJsonRaw = z.object({
|
|
|
14
14
|
meta: BlockPackMetaDescriptionRaw
|
|
15
15
|
});
|
|
16
16
|
const FeatureFlags = z.record(z.string(), z.union([z.boolean(), z.number()])).transform((flags) => flags);
|
|
17
|
+
/** Block-kind reference schema — a plain `{name}@{version}` string at rest. */
|
|
18
|
+
const BlockKindRef = z.string().transform((s) => s);
|
|
17
19
|
function CreateBlockPackDescriptionSchema(components, meta) {
|
|
18
20
|
return z.object({
|
|
19
21
|
id: BlockPackId,
|
|
20
22
|
components,
|
|
21
23
|
meta,
|
|
22
|
-
featureFlags: FeatureFlags.optional()
|
|
24
|
+
featureFlags: FeatureFlags.optional(),
|
|
25
|
+
kind: BlockKindRef.optional()
|
|
23
26
|
}).passthrough();
|
|
24
27
|
}
|
|
25
28
|
const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(BlockComponentsDescriptionRaw, BlockPackMetaDescriptionRaw);
|
|
@@ -27,6 +30,6 @@ function overrideDescriptionVersion(manifest, newVersion) {
|
|
|
27
30
|
return toMerged(manifest, { id: { version: newVersion } });
|
|
28
31
|
}
|
|
29
32
|
//#endregion
|
|
30
|
-
export { BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion };
|
|
33
|
+
export { BlockKindRef, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion };
|
|
31
34
|
|
|
32
35
|
//# sourceMappingURL=block_description.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_description.js","names":[],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type {
|
|
1
|
+
{"version":3,"file":"block_description.js","names":[],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type {\n BlockCodeKnownFeatureFlags,\n BlockKindReference,\n} from \"@milaboratories/pl-model-common\";\n\n/**\n * Block-pack description: a `BlockPackId`, the typed `components` and `meta`\n * payloads, and optional `featureFlags`. The two type parameters let the same\n * shape carry every form a description travels in — `package.json` source,\n * relative-path manifest, absolute-path resolved.\n */\nexport type BlockPackDescription<Components, Meta> = {\n id: BlockPackId;\n components: Components;\n meta: Meta;\n featureFlags?: BlockCodeKnownFeatureFlags;\n /** Reference to the block kind this pack implements, in `{name}@{version}`\n * form. Lifted from the model's container-level `kind` by build_dist. */\n kind?: BlockKindReference;\n};\n\n/**\n * Description as it appears in the root block `package.json`. `file:`-prefixed\n * strings become `ContentRelative`; bare text strings become\n * `ContentExplicitString`. See `DescriptionContentText`/`DescriptionContentBinary`.\n */\nexport const BlockPackDescriptionFromPackageJsonRaw = z.object({\n components: BlockComponentsDescriptionRaw,\n meta: BlockPackMetaDescriptionRaw,\n});\n\nexport const FeatureFlags = z\n .record(z.string(), z.union([z.boolean(), z.number()]))\n .transform((flags) => flags as BlockCodeKnownFeatureFlags);\n\n/** Block-kind reference schema — a plain `{name}@{version}` string at rest. */\nexport const BlockKindRef = z.string().transform((s) => s as BlockKindReference);\n\nexport function CreateBlockPackDescriptionSchema<\n Components extends ZodTypeAny,\n Meta extends ZodTypeAny,\n>(components: Components, meta: Meta) {\n return z\n .object({\n id: BlockPackId,\n components,\n meta,\n featureFlags: FeatureFlags.optional(),\n kind: BlockKindRef.optional(),\n })\n .passthrough();\n}\n\nexport const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(\n BlockComponentsDescriptionRaw,\n BlockPackMetaDescriptionRaw,\n);\nexport type BlockPackDescriptionRaw = z.infer<typeof BlockPackDescriptionRaw>;\n\nexport function overrideDescriptionVersion<T extends { id: BlockPackId }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { id: { version: newVersion } }) as T;\n}\n"],"mappings":";;;;;;;;;;;AAgCA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,YAAY;CACZ,MAAM;AACR,CAAC;AAED,MAAa,eAAe,EACzB,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CACtD,WAAW,UAAU,KAAmC;;AAG3D,MAAa,eAAe,EAAE,OAAO,CAAC,CAAC,WAAW,MAAM,CAAuB;AAE/E,SAAgB,iCAGd,YAAwB,MAAY;CACpC,OAAO,EACJ,OAAO;EACN,IAAI;EACJ;EACA;EACA,cAAc,aAAa,SAAS;EACpC,MAAM,aAAa,SAAS;CAC9B,CAAC,CAAC,CACD,YAAY;AACjB;AAEA,MAAa,0BAA0B,iCACrC,+BACA,2BACF;AAGA,SAAgB,2BACd,UACA,YACG;CACH,OAAO,SAAS,UAAU,EAAE,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;AAC3D"}
|
|
@@ -1075,6 +1075,7 @@ declare const BlockPackDescriptionManifest: z.ZodObject<{
|
|
|
1075
1075
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1076
1076
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1077
1077
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
1078
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
1078
1079
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1079
1080
|
id: z.ZodObject<{
|
|
1080
1081
|
organization: z.ZodString;
|
|
@@ -1614,6 +1615,7 @@ declare const BlockPackDescriptionManifest: z.ZodObject<{
|
|
|
1614
1615
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1615
1616
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1616
1617
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
1618
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
1617
1619
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1618
1620
|
id: z.ZodObject<{
|
|
1619
1621
|
organization: z.ZodString;
|
|
@@ -2153,6 +2155,7 @@ declare const BlockPackDescriptionManifest: z.ZodObject<{
|
|
|
2153
2155
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2154
2156
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2155
2157
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
2158
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
2156
2159
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2157
2160
|
type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;
|
|
2158
2161
|
declare const Sha256Schema: z.ZodString;
|
|
@@ -2711,6 +2714,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
2711
2714
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2712
2715
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2713
2716
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
2717
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
2714
2718
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2715
2719
|
id: z.ZodObject<{
|
|
2716
2720
|
organization: z.ZodString;
|
|
@@ -3250,6 +3254,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
3250
3254
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3251
3255
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3252
3256
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
3257
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
3253
3258
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3254
3259
|
id: z.ZodObject<{
|
|
3255
3260
|
organization: z.ZodString;
|
|
@@ -3789,6 +3794,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
3789
3794
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3790
3795
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3791
3796
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
3797
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
3792
3798
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3793
3799
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
3794
3800
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -4345,6 +4351,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
4345
4351
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4346
4352
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4347
4353
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
4354
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
4348
4355
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4349
4356
|
id: z.ZodObject<{
|
|
4350
4357
|
organization: z.ZodString;
|
|
@@ -4884,6 +4891,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
4884
4891
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4885
4892
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4886
4893
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
4894
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
4887
4895
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4888
4896
|
id: z.ZodObject<{
|
|
4889
4897
|
organization: z.ZodString;
|
|
@@ -5423,6 +5431,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
5423
5431
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5424
5432
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5425
5433
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
5434
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
5426
5435
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5427
5436
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
5428
5437
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -5979,6 +5988,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
5979
5988
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5980
5989
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5981
5990
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
5991
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
5982
5992
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5983
5993
|
id: z.ZodObject<{
|
|
5984
5994
|
organization: z.ZodString;
|
|
@@ -6518,6 +6528,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
6518
6528
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6519
6529
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6520
6530
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
6531
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
6521
6532
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
6522
6533
|
id: z.ZodObject<{
|
|
6523
6534
|
organization: z.ZodString;
|
|
@@ -7057,6 +7068,7 @@ declare const BlockPackManifest: z.ZodObject<{
|
|
|
7057
7068
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7058
7069
|
}, z.ZodTypeAny, "passthrough">>;
|
|
7059
7070
|
featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
|
|
7071
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, import("@milaboratories/pl-model-common").BlockKindReference, string>>;
|
|
7060
7072
|
}, z.ZodTypeAny, "passthrough">>;
|
|
7061
7073
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
7062
7074
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_manifest.d.ts","names":[],"sources":["../../src/block_meta/block_manifest.ts"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQlB,iBAAA,GAAoB,CAAA,CAAE,KAAK,QAAQ,iBAAA;AAAA,cAElC,qBAAA;AAAA,iBAEG,uBAAA;EAAoC,WAAA;IAAe,EAAA,EAAI,WAAA;EAAA;AAAA,GACrE,QAAA,EAAU,CAAA,EACV,UAAA,WACC,CAAA"}
|
|
@@ -8,6 +8,7 @@ const require_block_description = require("./block_description.cjs");
|
|
|
8
8
|
const require_block_manifest = require("./block_manifest.cjs");
|
|
9
9
|
exports.BlockComponentsDescriptionRaw = require_block_components.BlockComponentsDescriptionRaw;
|
|
10
10
|
exports.BlockComponentsManifest = require_block_manifest.BlockComponentsManifest;
|
|
11
|
+
exports.BlockKindRef = require_block_description.BlockKindRef;
|
|
11
12
|
exports.BlockPackDescriptionFromPackageJsonRaw = require_block_description.BlockPackDescriptionFromPackageJsonRaw;
|
|
12
13
|
exports.BlockPackDescriptionManifest = require_block_manifest.BlockPackDescriptionManifest;
|
|
13
14
|
exports.BlockPackDescriptionRaw = require_block_description.BlockPackDescriptionRaw;
|
|
@@ -5,6 +5,6 @@ import { addPrefixToRelative, mapRemoteToAbsolute } from "./content_conversion.j
|
|
|
5
5
|
import { BlockPackId, BlockPackIdNoVersion, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString } from "./block_id.js";
|
|
6
6
|
import { BlockComponents, BlockComponentsDescriptionRaw, Workflow, WorkflowSchemaV1, WorkflowV1 } from "./block_components.js";
|
|
7
7
|
import { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform } from "./block_meta.js";
|
|
8
|
-
import { BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_description.js";
|
|
8
|
+
import { BlockKindRef, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_description.js";
|
|
9
9
|
import { BlockComponentsManifest, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, BlockPackMetaManifest, ManifestFileInfo, Sha256Schema, overrideManifestVersion } from "./block_manifest.js";
|
|
10
|
-
export { BlockComponents, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackId, BlockPackIdNoVersion, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPlatform, Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, ContentType, ContextType, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, ManifestFileInfo, SemVer, Sha256Schema, Workflow, WorkflowSchemaV1, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion };
|
|
10
|
+
export { BlockComponents, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockKindRef, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackId, BlockPackIdNoVersion, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPlatform, Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, ContentType, ContextType, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, ManifestFileInfo, SemVer, Sha256Schema, Workflow, WorkflowSchemaV1, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion };
|
package/dist/block_meta/index.js
CHANGED
|
@@ -4,6 +4,6 @@ import { addPrefixToRelative, mapRemoteToAbsolute } from "./content_conversion.j
|
|
|
4
4
|
import { BlockPackId, BlockPackIdNoVersion, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString } from "./block_id.js";
|
|
5
5
|
import { BlockComponentsDescriptionRaw, WorkflowSchemaV1 } from "./block_components.js";
|
|
6
6
|
import { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform } from "./block_meta.js";
|
|
7
|
-
import { BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_description.js";
|
|
7
|
+
import { BlockKindRef, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_description.js";
|
|
8
8
|
import { BlockComponentsManifest, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, BlockPackMetaManifest, ManifestFileInfo, Sha256Schema, overrideManifestVersion } from "./block_manifest.js";
|
|
9
|
-
export { BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackId, BlockPackIdNoVersion, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPlatform, ContentExplicitBase64, ContentExplicitBytes, ContentRelative, ContentRelativeBinary, ContentRelativeText, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, ManifestFileInfo, SemVer, Sha256Schema, WorkflowSchemaV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion };
|
|
9
|
+
export { BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockKindRef, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackId, BlockPackIdNoVersion, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPlatform, ContentExplicitBase64, ContentExplicitBytes, ContentRelative, ContentRelativeBinary, ContentRelativeText, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, ManifestFileInfo, SemVer, Sha256Schema, WorkflowSchemaV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion };
|
package/dist/index.cjs
CHANGED
|
@@ -18,6 +18,7 @@ const require_json = require("./json.cjs");
|
|
|
18
18
|
exports.AnyChannel = require_overview.AnyChannel;
|
|
19
19
|
exports.BlockComponentsDescriptionRaw = require_block_components.BlockComponentsDescriptionRaw;
|
|
20
20
|
exports.BlockComponentsManifest = require_block_manifest.BlockComponentsManifest;
|
|
21
|
+
exports.BlockKindRef = require_block_description.BlockKindRef;
|
|
21
22
|
exports.BlockPackDescriptionFromPackageJsonRaw = require_block_description.BlockPackDescriptionFromPackageJsonRaw;
|
|
22
23
|
exports.BlockPackDescriptionManifest = require_block_manifest.BlockPackDescriptionManifest;
|
|
23
24
|
exports.BlockPackDescriptionRaw = require_block_description.BlockPackDescriptionRaw;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ import { addPrefixToRelative, mapRemoteToAbsolute } from "./block_meta/content_c
|
|
|
16
16
|
import { BlockPackId, BlockPackIdNoVersion, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString } from "./block_meta/block_id.js";
|
|
17
17
|
import { BlockComponents, BlockComponentsDescriptionRaw, Workflow, WorkflowSchemaV1, WorkflowV1 } from "./block_meta/block_components.js";
|
|
18
18
|
import { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform } from "./block_meta/block_meta.js";
|
|
19
|
-
import { BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_meta/block_description.js";
|
|
19
|
+
import { BlockKindRef, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_meta/block_description.js";
|
|
20
20
|
import { BlockComponentsManifest, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, BlockPackMetaManifest, ManifestFileInfo, Sha256Schema, overrideManifestVersion } from "./block_meta/block_manifest.js";
|
|
21
21
|
import { index_d_exports } from "./pframe/internal_api/index.js";
|
|
22
22
|
import { HashedJson, hashJson, readJson, readJsonSync } from "./json.js";
|
|
23
|
-
export { AnyChannel, type AuthorMarker, BlockCalculationStatus, BlockComponents, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, BlockSettings, BlockStateInternal, BlockStateInternalV3, BlockStateOverview, Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, ContentType, ContextType, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, HashedJson, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, index_d_exports as PFrameInternal, ProjectListEntry, ProjectMeta, ProjectOverview, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, StorageDebugView, UpdateSuggestion, UpdateSuggestions, VersionLock, VersionWithChannels, Workflow, WorkflowSchemaV1, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
|
23
|
+
export { AnyChannel, type AuthorMarker, BlockCalculationStatus, BlockComponents, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockKindRef, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, BlockSettings, BlockStateInternal, BlockStateInternalV3, BlockStateOverview, Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, ContentType, ContextType, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, HashedJson, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, index_d_exports as PFrameInternal, ProjectListEntry, ProjectMeta, ProjectOverview, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, StorageDebugView, UpdateSuggestion, UpdateSuggestions, VersionLock, VersionWithChannels, Workflow, WorkflowSchemaV1, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { addPrefixToRelative, mapRemoteToAbsolute } from "./block_meta/content_c
|
|
|
5
5
|
import { BlockPackId, BlockPackIdNoVersion, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString } from "./block_meta/block_id.js";
|
|
6
6
|
import { BlockComponentsDescriptionRaw, WorkflowSchemaV1 } from "./block_meta/block_components.js";
|
|
7
7
|
import { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform } from "./block_meta/block_meta.js";
|
|
8
|
-
import { BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_meta/block_description.js";
|
|
8
|
+
import { BlockKindRef, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_meta/block_description.js";
|
|
9
9
|
import { BlockComponentsManifest, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, BlockPackMetaManifest, ManifestFileInfo, Sha256Schema, overrideManifestVersion } from "./block_meta/block_manifest.js";
|
|
10
10
|
import "./block_meta/index.js";
|
|
11
11
|
import { BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
@@ -14,4 +14,4 @@ import { AnyChannel, BlockPackListing, BlockPackOverview, BlockPackOverviewLegac
|
|
|
14
14
|
import "./block_registry/index.js";
|
|
15
15
|
import { internal_api_exports } from "./pframe/internal_api/index.js";
|
|
16
16
|
import { hashJson, readJson, readJsonSync } from "./json.js";
|
|
17
|
-
export { AnyChannel, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, ContentExplicitBase64, ContentExplicitBytes, ContentRelative, ContentRelativeBinary, ContentRelativeText, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, internal_api_exports as PFrameInternal, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, VersionWithChannels, WorkflowSchemaV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
|
17
|
+
export { AnyChannel, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockKindRef, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, ContentExplicitBase64, ContentExplicitBytes, ContentRelative, ContentRelativeBinary, ContentRelativeText, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, internal_api_exports as PFrameInternal, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, VersionWithChannels, WorkflowSchemaV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "Common model between middle layer and non-block UI code",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/**/*",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"es-toolkit": "^1.39.10",
|
|
21
21
|
"utility-types": "^3.11.0",
|
|
22
22
|
"zod": "~3.25.76",
|
|
23
|
-
"@milaboratories/
|
|
24
|
-
"@milaboratories/
|
|
23
|
+
"@milaboratories/helpers": "1.14.5",
|
|
24
|
+
"@milaboratories/pl-model-common": "1.48.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "~24.5.2",
|
|
28
28
|
"typescript": "~5.9.3",
|
|
29
|
-
"@milaboratories/
|
|
30
|
-
"@milaboratories/ts-
|
|
31
|
-
"@milaboratories/
|
|
29
|
+
"@milaboratories/build-configs": "2.0.0",
|
|
30
|
+
"@milaboratories/ts-builder": "1.7.0",
|
|
31
|
+
"@milaboratories/ts-configs": "1.4.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "ts-builder build --target node",
|
|
@@ -4,7 +4,10 @@ import { BlockComponentsDescriptionRaw } from "./block_components";
|
|
|
4
4
|
import { BlockPackMetaDescriptionRaw } from "./block_meta";
|
|
5
5
|
import { BlockPackId } from "./block_id";
|
|
6
6
|
import { toMerged } from "es-toolkit";
|
|
7
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
BlockCodeKnownFeatureFlags,
|
|
9
|
+
BlockKindReference,
|
|
10
|
+
} from "@milaboratories/pl-model-common";
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* Block-pack description: a `BlockPackId`, the typed `components` and `meta`
|
|
@@ -17,6 +20,9 @@ export type BlockPackDescription<Components, Meta> = {
|
|
|
17
20
|
components: Components;
|
|
18
21
|
meta: Meta;
|
|
19
22
|
featureFlags?: BlockCodeKnownFeatureFlags;
|
|
23
|
+
/** Reference to the block kind this pack implements, in `{name}@{version}`
|
|
24
|
+
* form. Lifted from the model's container-level `kind` by build_dist. */
|
|
25
|
+
kind?: BlockKindReference;
|
|
20
26
|
};
|
|
21
27
|
|
|
22
28
|
/**
|
|
@@ -33,6 +39,9 @@ export const FeatureFlags = z
|
|
|
33
39
|
.record(z.string(), z.union([z.boolean(), z.number()]))
|
|
34
40
|
.transform((flags) => flags as BlockCodeKnownFeatureFlags);
|
|
35
41
|
|
|
42
|
+
/** Block-kind reference schema — a plain `{name}@{version}` string at rest. */
|
|
43
|
+
export const BlockKindRef = z.string().transform((s) => s as BlockKindReference);
|
|
44
|
+
|
|
36
45
|
export function CreateBlockPackDescriptionSchema<
|
|
37
46
|
Components extends ZodTypeAny,
|
|
38
47
|
Meta extends ZodTypeAny,
|
|
@@ -43,6 +52,7 @@ export function CreateBlockPackDescriptionSchema<
|
|
|
43
52
|
components,
|
|
44
53
|
meta,
|
|
45
54
|
featureFlags: FeatureFlags.optional(),
|
|
55
|
+
kind: BlockKindRef.optional(),
|
|
46
56
|
})
|
|
47
57
|
.passthrough();
|
|
48
58
|
}
|