@milaboratories/pl-model-middle-layer 1.13.0 → 1.14.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_components.d.ts +22 -22
- package/dist/block_meta/block_description.d.ts +112 -112
- package/dist/block_meta/block_manifest.d.ts +559 -559
- package/dist/block_meta/block_meta.d.ts +26 -26
- package/dist/block_meta/content_types.d.ts +24 -24
- package/dist/block_registry/block_pack_spec.d.ts +8 -8
- package/dist/block_registry/overview.d.ts +188 -188
- package/dist/block_registry/registry_spec.d.ts +12 -12
- package/dist/block_state.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/project_overview.d.ts +1 -1
- package/dist/storage_debug_view.d.ts +11 -0
- package/package.json +5 -5
- package/src/block_state.ts +1 -1
- package/src/index.ts +1 -0
- package/src/project_overview.ts +1 -1
- package/src/storage_debug_view.ts +7 -0
|
@@ -5,11 +5,11 @@ declare const LocalDevFolder: z.ZodObject<{
|
|
|
5
5
|
type: z.ZodLiteral<"local-dev">;
|
|
6
6
|
path: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
path: string;
|
|
9
8
|
type: "local-dev";
|
|
10
|
-
}, {
|
|
11
9
|
path: string;
|
|
10
|
+
}, {
|
|
12
11
|
type: "local-dev";
|
|
12
|
+
path: string;
|
|
13
13
|
}>;
|
|
14
14
|
type LocalDevFolder = z.infer<typeof LocalDevFolder>;
|
|
15
15
|
/** @deprecated don't use */
|
|
@@ -58,11 +58,11 @@ declare const RegistrySpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
58
58
|
type: z.ZodLiteral<"local-dev">;
|
|
59
59
|
path: z.ZodString;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
path: string;
|
|
62
61
|
type: "local-dev";
|
|
63
|
-
}, {
|
|
64
62
|
path: string;
|
|
63
|
+
}, {
|
|
65
64
|
type: "local-dev";
|
|
65
|
+
path: string;
|
|
66
66
|
}>]>;
|
|
67
67
|
type RegistrySpec = z.infer<typeof RegistrySpec>;
|
|
68
68
|
declare const RegistryEntry: z.ZodObject<{
|
|
@@ -90,11 +90,11 @@ declare const RegistryEntry: z.ZodObject<{
|
|
|
90
90
|
type: z.ZodLiteral<"local-dev">;
|
|
91
91
|
path: z.ZodString;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
path: string;
|
|
94
93
|
type: "local-dev";
|
|
95
|
-
}, {
|
|
96
94
|
path: string;
|
|
95
|
+
}, {
|
|
97
96
|
type: "local-dev";
|
|
97
|
+
path: string;
|
|
98
98
|
}>]>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
id: string;
|
|
@@ -105,8 +105,8 @@ declare const RegistryEntry: z.ZodObject<{
|
|
|
105
105
|
type: "remote-v2";
|
|
106
106
|
url: string;
|
|
107
107
|
} | {
|
|
108
|
-
path: string;
|
|
109
108
|
type: "local-dev";
|
|
109
|
+
path: string;
|
|
110
110
|
};
|
|
111
111
|
title?: string | undefined;
|
|
112
112
|
}, {
|
|
@@ -118,8 +118,8 @@ declare const RegistryEntry: z.ZodObject<{
|
|
|
118
118
|
type: "remote-v2";
|
|
119
119
|
url: string;
|
|
120
120
|
} | {
|
|
121
|
-
path: string;
|
|
122
121
|
type: "local-dev";
|
|
122
|
+
path: string;
|
|
123
123
|
};
|
|
124
124
|
title?: string | undefined;
|
|
125
125
|
}>;
|
|
@@ -149,11 +149,11 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
149
149
|
type: z.ZodLiteral<"local-dev">;
|
|
150
150
|
path: z.ZodString;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
path: string;
|
|
153
152
|
type: "local-dev";
|
|
154
|
-
}, {
|
|
155
153
|
path: string;
|
|
154
|
+
}, {
|
|
156
155
|
type: "local-dev";
|
|
156
|
+
path: string;
|
|
157
157
|
}>]>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
id: string;
|
|
@@ -164,8 +164,8 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
164
164
|
type: "remote-v2";
|
|
165
165
|
url: string;
|
|
166
166
|
} | {
|
|
167
|
-
path: string;
|
|
168
167
|
type: "local-dev";
|
|
168
|
+
path: string;
|
|
169
169
|
};
|
|
170
170
|
title?: string | undefined;
|
|
171
171
|
}, {
|
|
@@ -177,8 +177,8 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
177
177
|
type: "remote-v2";
|
|
178
178
|
url: string;
|
|
179
179
|
} | {
|
|
180
|
-
path: string;
|
|
181
180
|
type: "local-dev";
|
|
181
|
+
path: string;
|
|
182
182
|
};
|
|
183
183
|
title?: string | undefined;
|
|
184
184
|
}>, "many">;
|
package/dist/block_state.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { StorageDebugView } from "./storage_debug_view.js";
|
|
1
2
|
import { AuthorMarker, BlockOutputsBase, BlockState, NavigationState, StringifiedJson } from "@milaboratories/pl-model-common";
|
|
2
|
-
import { StorageDebugView } from "@platforma-sdk/model";
|
|
3
3
|
import { Optional } from "utility-types";
|
|
4
4
|
|
|
5
5
|
//#region src/block_state.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AuthorMarker } from "./author_marker.js";
|
|
2
2
|
import { BlockSettings, InitialBlockSettings, VersionLock } from "./block_settings.js";
|
|
3
|
+
import { StorageDebugView } from "./storage_debug_view.js";
|
|
3
4
|
import { BlockStateInternal, BlockStateInternalV3 } from "./block_state.js";
|
|
4
5
|
import { ProjectMeta } from "./project.js";
|
|
5
6
|
import { ProjectListEntry } from "./project_list.js";
|
|
@@ -22,4 +23,4 @@ import "./block_meta/index.js";
|
|
|
22
23
|
import { index_d_exports } from "./pframe/internal_api/index.js";
|
|
23
24
|
import "./pframe/index.js";
|
|
24
25
|
import { HashedJson, hashJson, readJson, readJsonSync } from "./json.js";
|
|
25
|
-
export { AnyChannel, AuthorMarker, BlockCalculationStatus, BlockComponents, BlockComponentsAbsolute, BlockComponentsAbsoluteUrl, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, BlockSettings, BlockStateInternal, BlockStateInternalV3, BlockStateOverview, ContentAbsoluteBinaryLocal, ContentAbsoluteBinaryRemote, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteTextRemote, ContentAbsoluteUrl, ContentAny, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyRemote, 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, UpdateSuggestion, UpdateSuggestions, VersionLock, VersionWithChannels, Workflow, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
|
26
|
+
export { AnyChannel, AuthorMarker, BlockCalculationStatus, BlockComponents, BlockComponentsAbsolute, BlockComponentsAbsoluteUrl, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, BlockSettings, BlockStateInternal, BlockStateInternalV3, BlockStateOverview, ContentAbsoluteBinaryLocal, ContentAbsoluteBinaryRemote, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteTextRemote, ContentAbsoluteUrl, ContentAny, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyRemote, 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, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BlockSettings } from "./block_settings.js";
|
|
2
|
+
import { StorageDebugView } from "./storage_debug_view.js";
|
|
2
3
|
import { ProjectMeta } from "./project.js";
|
|
3
4
|
import { BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
4
5
|
import { UpdateSuggestions } from "./update_info.js";
|
|
5
6
|
import { AuthorMarker, BlockCodeFeatureFlags, BlockRenderingMode, BlockSection, NavigationState, StringifiedJson } from "@milaboratories/pl-model-common";
|
|
6
|
-
import { StorageDebugView } from "@platforma-sdk/model";
|
|
7
7
|
|
|
8
8
|
//#region src/project_overview.d.ts
|
|
9
9
|
/** Generalized block status, to be used in block item "styling". */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/storage_debug_view.d.ts
|
|
2
|
+
/** Debug representation of block storage state. */
|
|
3
|
+
interface StorageDebugView {
|
|
4
|
+
/** Current data version key */
|
|
5
|
+
dataVersion: string;
|
|
6
|
+
/** Raw data payload stored in BlockStorage */
|
|
7
|
+
data: unknown;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { StorageDebugView };
|
|
11
|
+
//# sourceMappingURL=storage_debug_view.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.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.23.8",
|
|
23
|
-
"@milaboratories/
|
|
24
|
-
"@
|
|
23
|
+
"@milaboratories/helpers": "1.14.0",
|
|
24
|
+
"@milaboratories/pl-model-common": "1.27.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "~24.5.2",
|
|
28
28
|
"typescript": "~5.9.3",
|
|
29
|
-
"@milaboratories/ts-builder": "1.3.0",
|
|
30
29
|
"@milaboratories/ts-configs": "1.2.2",
|
|
31
|
-
"@milaboratories/build-configs": "1.5.2"
|
|
30
|
+
"@milaboratories/build-configs": "1.5.2",
|
|
31
|
+
"@milaboratories/ts-builder": "1.3.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "ts-builder build --target node",
|
package/src/block_state.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
NavigationState,
|
|
6
6
|
StringifiedJson,
|
|
7
7
|
} from "@milaboratories/pl-model-common";
|
|
8
|
-
import type { StorageDebugView } from "
|
|
8
|
+
import type { StorageDebugView } from "./storage_debug_view";
|
|
9
9
|
import type { Optional } from "utility-types";
|
|
10
10
|
|
|
11
11
|
// @deprecated TODO v3: keep this name, or rename to BlockStateInternalLegacy?
|
package/src/index.ts
CHANGED
package/src/project_overview.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
AuthorMarker,
|
|
9
9
|
StringifiedJson,
|
|
10
10
|
} from "@milaboratories/pl-model-common";
|
|
11
|
-
import type { StorageDebugView } from "
|
|
11
|
+
import type { StorageDebugView } from "./storage_debug_view";
|
|
12
12
|
import type { UpdateSuggestions } from "./update_info";
|
|
13
13
|
import type { BlockSettings } from "./block_settings";
|
|
14
14
|
|