@platforma-sdk/block-tools 2.2.0 → 2.3.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 (65) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/cli.mjs +94 -238
  4. package/dist/cli.mjs.map +1 -1
  5. package/dist/config-B1U40s2a.js +3 -0
  6. package/dist/config-B1U40s2a.js.map +1 -0
  7. package/dist/config-YukCegnp.mjs +1587 -0
  8. package/dist/config-YukCegnp.mjs.map +1 -0
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +170 -40
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/io/folder_reader.d.ts +24 -0
  14. package/dist/io/folder_reader.d.ts.map +1 -0
  15. package/dist/io/index.d.ts +3 -0
  16. package/dist/io/index.d.ts.map +1 -0
  17. package/dist/io/storage.d.ts.map +1 -0
  18. package/dist/lib.d.ts +1 -0
  19. package/dist/lib.d.ts.map +1 -1
  20. package/dist/registry_v1/registry.d.ts +1 -1
  21. package/dist/registry_v1/registry.d.ts.map +1 -1
  22. package/dist/registry_v1/v1_repo_schema.d.ts +1 -1
  23. package/dist/registry_v1/v1_repo_schema.d.ts.map +1 -1
  24. package/dist/v2/index.d.ts +1 -0
  25. package/dist/v2/index.d.ts.map +1 -1
  26. package/dist/v2/model/block_components.d.ts +5 -5
  27. package/dist/v2/model/block_description.d.ts +48 -48
  28. package/dist/v2/model/block_meta.d.ts +554 -2
  29. package/dist/v2/model/block_meta.d.ts.map +1 -1
  30. package/dist/v2/model/content_conversion.d.ts +3 -1
  31. package/dist/v2/model/content_conversion.d.ts.map +1 -1
  32. package/dist/v2/registry/index.d.ts +4 -0
  33. package/dist/v2/registry/index.d.ts.map +1 -0
  34. package/dist/v2/registry/registry.d.ts +1 -1
  35. package/dist/v2/registry/registry.d.ts.map +1 -1
  36. package/dist/v2/registry/registry_reader.d.ts +12 -0
  37. package/dist/v2/registry/registry_reader.d.ts.map +1 -0
  38. package/dist/v2/registry/schema_public.d.ts +1925 -254
  39. package/dist/v2/registry/schema_public.d.ts.map +1 -1
  40. package/package.json +7 -4
  41. package/src/cmd/build-meta.ts +2 -2
  42. package/src/cmd/publish.ts +1 -1
  43. package/src/io/folder_reader.test.ts +21 -0
  44. package/src/io/folder_reader.ts +77 -0
  45. package/src/io/index.ts +2 -0
  46. package/src/lib.ts +1 -0
  47. package/src/registry_v1/config.ts +1 -1
  48. package/src/registry_v1/registry.test.ts +1 -1
  49. package/src/registry_v1/registry.ts +1 -1
  50. package/src/registry_v1/v1_repo_schema.ts +1 -1
  51. package/src/v2/index.ts +1 -0
  52. package/src/v2/model/block_meta.ts +23 -5
  53. package/src/v2/model/content_conversion.ts +30 -1
  54. package/src/v2/registry/index.ts +3 -0
  55. package/src/v2/registry/registry.ts +19 -12
  56. package/src/v2/registry/registry_reader.ts +71 -0
  57. package/src/v2/registry/schema_public.ts +31 -9
  58. package/dist/config-DJqN5LSx.js +0 -3
  59. package/dist/config-DJqN5LSx.js.map +0 -1
  60. package/dist/config-rGaQLD-7.mjs +0 -1350
  61. package/dist/config-rGaQLD-7.mjs.map +0 -1
  62. package/dist/lib/storage.d.ts.map +0 -1
  63. /package/dist/{lib → io}/storage.d.ts +0 -0
  64. /package/src/{lib → io}/storage.test.ts +0 -0
  65. /package/src/{lib → io}/storage.ts +0 -0
package/dist/index.mjs CHANGED
@@ -1,45 +1,175 @@
1
- import { G as a, M as e, f as o, h as s, i as l, j as i, k as t, m as c, P as n, p as r, n as P, o as k } from "./config-rGaQLD-7.mjs";
2
- import { D as v, C, H as D, F as m, d as B, A as R, a as u, B as F, E as T, R as b, q as x, u as M, t as y, c as h, v as E, b as w, l as A, r as J, w as O, I as S, y as _, z as j, x as z, J as G } from "./config-rGaQLD-7.mjs";
3
- const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1
+ var d = Object.defineProperty;
2
+ var g = (t, e, a) => e in t ? d(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
+ var i = (t, e, a) => g(t, typeof e != "symbol" ? e + "" : e, a);
4
+ import { e as h, f as m, G as f, h as v, i as k, j as P, k as u, m as w, n as R, o as B, p as y, q as b, P as C, r as F, t as D, u as M } from "./config-YukCegnp.mjs";
5
+ import { N as X, L as Z, U as ee, a5 as ae, Q as te, T as oe, J as se, a as re, B as ie, K as le, d as ne, F as ce, a4 as pe, a2 as de, a3 as ge, a1 as he, a7 as me, a6 as fe, M as ve, Z as ke, $ as Pe, X as ue, _ as we, O as Re, R as Be, v as ye, S as be, y as Ce, z as Fe, x as De, c as Me, A as Oe, b as Te, l as xe, w as Se, C as Ee, Y as Ge, a0 as Ue, V as Ae, E as je, H as Le, I as Ve, D as Ne, s as Je, W as ze } from "./config-YukCegnp.mjs";
6
+ import { request as O, Agent as T } from "undici";
7
+ import s from "node:path";
8
+ import r from "node:path/posix";
9
+ import x from "node:fs/promises";
10
+ import S from "canonicalize";
11
+ import "zod";
12
+ import "mime-types";
13
+ import "tar";
14
+ import "@milaboratories/resolve-helper";
15
+ import "@milaboratories/pl-model-middle-layer";
16
+ class H {
17
+ constructor(e, a) {
18
+ i(this, "metaCache", /* @__PURE__ */ new Map());
19
+ i(this, "rootFolderReader");
20
+ this.url = e, this.rootFolderReader = a.relativeReader(h);
21
+ }
22
+ async embedMetaContent(e) {
23
+ const a = S(e.id), o = this.metaCache.get(a);
24
+ if (o && o.sha256 === e.latestManifestSha256) return o.meta;
25
+ const p = this.rootFolderReader.getContentReader(), c = await m(p).parseAsync(e.latest.meta);
26
+ return this.metaCache.set(a, { sha256: e.latestManifestSha256, meta: c }), c;
27
+ }
28
+ async listBlockPacks() {
29
+ this.rootFolderReader.getContentReader();
30
+ const e = f.parse(
31
+ JSON.parse(
32
+ Buffer.from(await this.rootFolderReader.readFile(v)).toString()
33
+ )
34
+ );
35
+ return await Promise.all(
36
+ e.packages.map(
37
+ async (a) => ({
38
+ id: a.latest.id,
39
+ meta: await this.embedMetaContent(a),
40
+ spec: {
41
+ type: "from-registry-v2",
42
+ id: a.latest.id,
43
+ registryUrl: this.url
44
+ },
45
+ otherVersions: a.allVersions
46
+ })
47
+ )
48
+ );
49
+ }
50
+ }
51
+ const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
52
  __proto__: null,
5
- GlobalOverviewPath: a,
6
- MetaFile: e,
7
- PlPackageConfigData: o,
8
- PlPackageJsonConfigFile: s,
9
- PlPackageYamlConfigFile: l,
10
- PlRegCommonConfigData: i,
11
- PlRegFullPackageConfigData: t,
12
- PlRegPackageConfig: c,
13
- PlRegPackageConfigDataShard: n,
14
- packageContentPrefix: r,
15
- packageOverviewPath: P,
16
- payloadFilePath: k
53
+ GlobalOverviewPath: k,
54
+ MetaFile: P,
55
+ PlPackageConfigData: u,
56
+ PlPackageJsonConfigFile: w,
57
+ PlPackageYamlConfigFile: R,
58
+ PlRegCommonConfigData: B,
59
+ PlRegFullPackageConfigData: y,
60
+ PlRegPackageConfig: b,
61
+ PlRegPackageConfigDataShard: C,
62
+ packageContentPrefix: F,
63
+ packageOverviewPath: D,
64
+ payloadFilePath: M
17
65
  }, Symbol.toStringTag, { value: "Module" }));
66
+ class l {
67
+ constructor(e, a) {
68
+ this.root = e, this.httpDispatcher = a;
69
+ }
70
+ async readFile(e) {
71
+ const a = new URL(e, this.root), o = await O(a, {
72
+ dispatcher: this.httpDispatcher
73
+ });
74
+ return Buffer.from(await o.body.arrayBuffer());
75
+ }
76
+ relativeReader(e) {
77
+ return new l(new URL(e, this.root), this.httpDispatcher);
78
+ }
79
+ getContentReader(e) {
80
+ let a = this;
81
+ return e !== void 0 && (a = a.relativeReader(e)), (o) => a.readFile(o);
82
+ }
83
+ }
84
+ class n {
85
+ constructor(e) {
86
+ this.root = e;
87
+ }
88
+ async readFile(e) {
89
+ const a = s.join(this.root, ...e.split(r.sep));
90
+ return await x.readFile(a);
91
+ }
92
+ relativeReader(e) {
93
+ return new n(s.join(this.root, ...e.split(r.sep)));
94
+ }
95
+ getContentReader(e) {
96
+ let a = this;
97
+ return e !== void 0 && (a = a.relativeReader(e)), (o) => a.readFile(o);
98
+ }
99
+ }
100
+ function E(t) {
101
+ return t.split(r.sep).join(s.sep);
102
+ }
103
+ function G(t) {
104
+ return t.split(s.sep).join(r.sep);
105
+ }
106
+ function K(t, e) {
107
+ const a = new URL(t, `file:${G(s.resolve("."))}/`);
108
+ switch (a.protocol) {
109
+ case "file:":
110
+ const o = E(a.pathname);
111
+ return new n(o);
112
+ case "https:":
113
+ case "http:":
114
+ return new l(a, e ?? new T());
115
+ default:
116
+ throw new Error(`Unknown protocol: ${a.protocol}`);
117
+ }
118
+ }
18
119
  export {
19
- v as BlockComponentsConsolidate,
20
- C as BlockComponentsDescription,
21
- D as BlockDescriptionPackageJsonField,
22
- m as BlockPackDescriptionConsolidateToFolder,
23
- B as BlockPackDescriptionManifestAddRelativePathPrefix,
24
- R as BlockPackMetaConsolidate,
25
- u as BlockPackMetaDescription,
26
- F as BlockPackMetaEmbed,
27
- p as RegistryV1,
28
- T as ResolvedBlockPackDescriptionFromPackageJson,
29
- b as ResolvedModuleFile,
30
- x as ResolvedModuleFolder,
31
- M as absoluteToBase64,
32
- y as absoluteToString,
33
- h as buildBlockPackDist,
34
- E as cpAbsoluteToRelative,
35
- w as loadPackDescription,
36
- A as loadPackDescriptionRaw,
37
- J as mapLocalToAbsolute,
38
- O as packFolderToRelativeTgz,
39
- S as parsePackageName,
40
- _ as relativeToExplicitBinary64,
41
- j as relativeToExplicitBytes,
42
- z as relativeToExplicitText,
43
- G as tryLoadPackDescription
120
+ X as BlockComponentsConsolidate,
121
+ Z as BlockComponentsDescription,
122
+ ee as BlockDescriptionPackageJsonField,
123
+ ae as BlockDescriptionToExplicitBinaryBytes,
124
+ te as BlockPackDescriptionConsolidateToFolder,
125
+ oe as BlockPackDescriptionManifestAddRelativePathPrefix,
126
+ se as BlockPackMetaConsolidate,
127
+ re as BlockPackMetaDescription,
128
+ ie as BlockPackMetaEmbedAbsoluteBase64,
129
+ le as BlockPackMetaEmbedAbsoluteBytes,
130
+ m as BlockPackMetaEmbedBytes,
131
+ ne as BlockRegistryV2,
132
+ n as FSFolderReader,
133
+ ce as FSStorage,
134
+ pe as GlobalOverview,
135
+ de as GlobalOverviewEntry,
136
+ ge as GlobalOverviewEntryReg,
137
+ v as GlobalOverviewFileName,
138
+ he as GlobalOverviewPath,
139
+ f as GlobalOverviewReg,
140
+ me as GlobalOverviewToExplicitBinaryBase64,
141
+ fe as GlobalOverviewToExplicitBinaryBytes,
142
+ l as HttpFolderReader,
143
+ h as MainPrefix,
144
+ ve as ManifestFileName,
145
+ ke as ManifestSuffix,
146
+ Pe as PackageOverview,
147
+ ue as PackageOverviewFileName,
148
+ we as PackageOverviewVersionEntry,
149
+ I as RegistryV1,
150
+ H as RegistryV2Reader,
151
+ Re as ResolvedBlockPackDescriptionFromPackageJson,
152
+ Be as ResolvedModuleFile,
153
+ ye as ResolvedModuleFolder,
154
+ be as S3Storage,
155
+ Ce as absoluteToBase64,
156
+ Fe as absoluteToBytes,
157
+ De as absoluteToString,
158
+ Me as buildBlockPackDist,
159
+ Oe as cpAbsoluteToRelative,
160
+ K as folderReaderByUrl,
161
+ Te as loadPackDescription,
162
+ xe as loadPackDescriptionRaw,
163
+ Se as mapLocalToAbsolute,
164
+ Ee as packFolderToRelativeTgz,
165
+ Ge as packageContentPrefix,
166
+ Ue as packageOverviewPath,
167
+ Ae as parsePackageName,
168
+ je as relativeToContentString,
169
+ Le as relativeToExplicitBinary64,
170
+ Ve as relativeToExplicitBytes,
171
+ Ne as relativeToExplicitString,
172
+ Je as storageByUrl,
173
+ ze as tryLoadPackDescription
44
174
  };
45
175
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../src/v2/registry/registry_reader.ts","../src/io/folder_reader.ts"],"sourcesContent":["import {\n BlockPackDescriptionManifest,\n BlockPackMetaEmbeddedBytes,\n BlockPackMetaManifest,\n BlockPackOverview\n} from '@milaboratories/pl-model-middle-layer';\nimport { FolderReader } from '../../io';\nimport canonicalize from 'canonicalize';\nimport {\n GlobalOverview,\n GlobalOverviewEntryReg,\n GlobalOverviewFileName,\n GlobalOverviewReg,\n MainPrefix,\n ManifestFileName\n} from './schema_public';\nimport { BlockPackMetaEmbedBytes } from '../model';\n\nexport type BlockPackOverviewNoRegLabel = Omit<BlockPackOverview, 'registryId'>;\n\nexport class RegistryV2Reader {\n private readonly metaCache = new Map<\n string,\n { sha256: string; meta: BlockPackMetaEmbeddedBytes }\n >();\n\n private readonly rootFolderReader: FolderReader;\n\n constructor(\n private readonly url: string,\n reader: FolderReader\n ) {\n this.rootFolderReader = reader.relativeReader(MainPrefix);\n }\n\n private async embedMetaContent(\n entry: GlobalOverviewEntryReg\n ): Promise<BlockPackMetaEmbeddedBytes> {\n const id = canonicalize(entry.id)!;\n const fromCache = this.metaCache.get(id);\n if (fromCache && fromCache.sha256 === entry.latestManifestSha256) return fromCache.meta;\n const rootContentReader = this.rootFolderReader.getContentReader();\n const meta = await BlockPackMetaEmbedBytes(rootContentReader).parseAsync(entry.latest.meta);\n this.metaCache.set(id, { sha256: entry.latestManifestSha256, meta });\n return meta;\n }\n\n public async listBlockPacks(): Promise<BlockPackOverviewNoRegLabel[]> {\n const rootContentReader = this.rootFolderReader.getContentReader();\n const globalOverview = GlobalOverviewReg.parse(\n JSON.parse(\n Buffer.from(await this.rootFolderReader.readFile(GlobalOverviewFileName)).toString()\n )\n );\n return await Promise.all(\n globalOverview.packages.map(\n async (p) =>\n ({\n id: p.latest.id,\n meta: await this.embedMetaContent(p),\n spec: {\n type: 'from-registry-v2',\n id: p.latest.id,\n registryUrl: this.url\n },\n otherVersions: p.allVersions\n }) satisfies BlockPackOverviewNoRegLabel\n )\n );\n }\n}\n","import { Agent, Dispatcher, request } from 'undici';\nimport { RelativeContentReader } from '../v2';\nimport path from 'node:path';\nimport pathPosix from 'node:path/posix';\nimport fsp from 'node:fs/promises';\n\nexport interface FolderReader {\n relativeReader(relativePath: string): FolderReader;\n readFile(file: string): Promise<Buffer>;\n getContentReader(relativePath?: string): RelativeContentReader;\n}\n\nexport class HttpFolderReader implements FolderReader {\n constructor(\n private readonly root: URL,\n private readonly httpDispatcher: Dispatcher\n ) {}\n\n public async readFile(file: string): Promise<Buffer> {\n const targetUrl = new URL(file, this.root);\n const response = await request(targetUrl, {\n dispatcher: this.httpDispatcher\n });\n return Buffer.from(await response.body.arrayBuffer());\n }\n\n public relativeReader(relativePath: string): HttpFolderReader {\n return new HttpFolderReader(new URL(relativePath, this.root), this.httpDispatcher);\n }\n\n public getContentReader(relativePath?: string): RelativeContentReader {\n let reader: HttpFolderReader = this;\n if (relativePath !== undefined) reader = reader.relativeReader(relativePath);\n return (path) => reader.readFile(path);\n }\n}\n\nexport class FSFolderReader implements FolderReader {\n constructor(private readonly root: string) {}\n\n public async readFile(file: string): Promise<Buffer> {\n const targetPath = path.join(this.root, ...file.split(pathPosix.sep));\n return await fsp.readFile(targetPath);\n }\n\n public relativeReader(relativePath: string): FSFolderReader {\n return new FSFolderReader(path.join(this.root, ...relativePath.split(pathPosix.sep)));\n }\n\n public getContentReader(relativePath?: string): RelativeContentReader {\n let reader: FSFolderReader = this;\n if (relativePath !== undefined) reader = reader.relativeReader(relativePath);\n return (path) => reader.readFile(path);\n }\n}\n\nfunction posixToLocalPath(p: string): string {\n return p.split(pathPosix.sep).join(path.sep);\n}\n\nfunction localToPosix(p: string): string {\n return p.split(path.sep).join(pathPosix.sep);\n}\n\nexport function folderReaderByUrl(address: string, httpDispatcher?: Dispatcher): FolderReader {\n const url = new URL(address, `file:${localToPosix(path.resolve('.'))}/`);\n switch (url.protocol) {\n case 'file:':\n const root = posixToLocalPath(url.pathname);\n return new FSFolderReader(root);\n case 'https:':\n case 'http:':\n return new HttpFolderReader(url, httpDispatcher ?? new Agent());\n default:\n throw new Error(`Unknown protocol: ${url.protocol}`);\n }\n}\n"],"names":["RegistryV2Reader","url","reader","__publicField","MainPrefix","entry","id","canonicalize","fromCache","rootContentReader","meta","BlockPackMetaEmbedBytes","globalOverview","GlobalOverviewReg","GlobalOverviewFileName","p","HttpFolderReader","root","httpDispatcher","file","targetUrl","response","request","relativePath","path","FSFolderReader","targetPath","pathPosix","fsp","posixToLocalPath","localToPosix","folderReaderByUrl","address","Agent"],"mappings":"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"}
@@ -0,0 +1,24 @@
1
+ import { Dispatcher } from 'undici';
2
+ import { RelativeContentReader } from '../v2';
3
+ export interface FolderReader {
4
+ relativeReader(relativePath: string): FolderReader;
5
+ readFile(file: string): Promise<Buffer>;
6
+ getContentReader(relativePath?: string): RelativeContentReader;
7
+ }
8
+ export declare class HttpFolderReader implements FolderReader {
9
+ private readonly root;
10
+ private readonly httpDispatcher;
11
+ constructor(root: URL, httpDispatcher: Dispatcher);
12
+ readFile(file: string): Promise<Buffer>;
13
+ relativeReader(relativePath: string): HttpFolderReader;
14
+ getContentReader(relativePath?: string): RelativeContentReader;
15
+ }
16
+ export declare class FSFolderReader implements FolderReader {
17
+ private readonly root;
18
+ constructor(root: string);
19
+ readFile(file: string): Promise<Buffer>;
20
+ relativeReader(relativePath: string): FSFolderReader;
21
+ getContentReader(relativePath?: string): RelativeContentReader;
22
+ }
23
+ export declare function folderReaderByUrl(address: string, httpDispatcher?: Dispatcher): FolderReader;
24
+ //# sourceMappingURL=folder_reader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder_reader.d.ts","sourceRoot":"","sources":["../../src/io/folder_reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAW,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAK9C,MAAM,WAAW,YAAY;IAC3B,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,gBAAgB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAChE;AAED,qBAAa,gBAAiB,YAAW,YAAY;IAEjD,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBADd,IAAI,EAAE,GAAG,EACT,cAAc,EAAE,UAAU;IAGhC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ7C,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,gBAAgB;IAItD,gBAAgB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,qBAAqB;CAKtE;AAED,qBAAa,cAAe,YAAW,YAAY;IACrC,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,MAAM;IAE5B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAK7C,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc;IAIpD,gBAAgB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,qBAAqB;CAKtE;AAUD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,UAAU,GAAG,YAAY,CAY5F"}
@@ -0,0 +1,3 @@
1
+ export * from './folder_reader';
2
+ export * from './storage';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/io/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/io/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAG/D,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEnD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE7C,WAAW,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAED,qBAAa,SAAU,YAAW,eAAe;aAE7B,MAAM,EAAE,EAAE;aACV,MAAM,EAAE,MAAM;aACd,IAAI,EAAE,MAAM;gBAFZ,MAAM,EAAE,EAAE,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM;IAGxB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAgBlD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAe5C,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQpD,WAAW,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAarD;AAED,qBAAa,SAAU,YAAW,eAAe;IAC/C,oBAAoB;IACpB,SAAgB,IAAI,EAAE,MAAM,CAAC;gBAEjB,KAAK,EAAE,MAAM;IAIzB,OAAO,CAAC,cAAc;IAKhB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IASrD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAc5C,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvD,WAAW,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAIrD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAe7D"}
package/dist/lib.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * as RegistryV1 from './registry_v1';
2
+ export * from './io';
2
3
  export * from './v2';
3
4
  //# sourceMappingURL=lib.d.ts.map
package/dist/lib.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,cAAc,MAAM,CAAC"}
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC"}
@@ -1,4 +1,4 @@
1
- import { RegistryStorage } from '../lib/storage';
1
+ import { RegistryStorage } from '../io/storage';
2
2
  import { BlockPackageNameWithoutVersion, FullBlockPackageName, GlobalOverview, PackageOverview } from './v1_repo_schema';
3
3
  import { MiLogger } from '@milaboratories/ts-helpers';
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/registry_v1/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,EACL,8BAA8B,EAC9B,oBAAoB,EACpB,cAAc,EAGd,eAAe,EAGhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAyCtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,aAAa;IAEtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;gBADP,OAAO,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,QAAQ,YAAA;IAGpC,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,4BAA4B;YAI/D,cAAc;IAoGtB,cAAc,CAAC,KAAK,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBrD,kBAAkB,CACtB,IAAI,EAAE,8BAA8B,GACnC,OAAO,CAAC,SAAS,GAAG,eAAe,CAAC;IAMjC,iBAAiB,IAAI,OAAO,CAAC,SAAS,GAAG,cAAc,CAAC;CAK/D;AAED,qBAAa,4BAA4B;IAKrC,OAAO,CAAC,QAAQ,CAAC,OAAO;aACR,IAAI,EAAE,oBAAoB;IAL5C,OAAO,CAAC,SAAS,CAAkB;IACnC,SAAgB,IAAI,sDAAgB;gBAGjB,OAAO,EAAE,eAAe,EACzB,IAAI,EAAE,oBAAoB;IAGtC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD,SAAS,CAAC,IAAI,EAAE,MAAM;IAKtB,MAAM;CAKb"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/registry_v1/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,EACL,8BAA8B,EAC9B,oBAAoB,EACpB,cAAc,EAGd,eAAe,EAGhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAyCtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,aAAa;IAEtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;gBADP,OAAO,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,QAAQ,YAAA;IAGpC,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,4BAA4B;YAI/D,cAAc;IAoGtB,cAAc,CAAC,KAAK,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBrD,kBAAkB,CACtB,IAAI,EAAE,8BAA8B,GACnC,OAAO,CAAC,SAAS,GAAG,eAAe,CAAC;IAMjC,iBAAiB,IAAI,OAAO,CAAC,SAAS,GAAG,cAAc,CAAC;CAK/D;AAED,qBAAa,4BAA4B;IAKrC,OAAO,CAAC,QAAQ,CAAC,OAAO;aACR,IAAI,EAAE,oBAAoB;IAL5C,OAAO,CAAC,SAAS,CAAkB;IACnC,SAAgB,IAAI,sDAAgB;gBAGjB,OAAO,EAAE,eAAe,EACzB,IAAI,EAAE,oBAAoB;IAGtC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD,SAAS,CAAC,IAAI,EAAE,MAAM;IAKtB,MAAM;CAKb"}
@@ -19,7 +19,7 @@ export interface GlobalOverviewEntry {
19
19
  package: string;
20
20
  allVersions: string[];
21
21
  latestVersion: string;
22
- latestMeta: object;
22
+ latestMeta: any;
23
23
  }
24
24
  export type GlobalOverview = GlobalOverviewEntry[];
25
25
  //# sourceMappingURL=v1_repo_schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1_repo_schema.d.ts","sourceRoot":"","sources":["../../src/registry_v1/v1_repo_schema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,oBAAoB,GAAG,MAAM,CAErE;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,oBAAoB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;AAEpG,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,8BAA8B,GAAG,MAAM,CAE9E;AAED,eAAO,MAAM,kBAAkB,qBAA+B,CAAC;AAE/D,eAAO,MAAM,QAAQ,cAAc,CAAC;AAEpC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,eAAe,GAAG,oBAAoB,EAAE,CAAC;AAErD,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,cAAc,GAAG,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"v1_repo_schema.d.ts","sourceRoot":"","sources":["../../src/registry_v1/v1_repo_schema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,oBAAoB,GAAG,MAAM,CAErE;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,oBAAoB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;AAEpG,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,8BAA8B,GAAG,MAAM,CAE9E;AAED,eAAO,MAAM,kBAAkB,qBAA+B,CAAC;AAE/D,eAAO,MAAM,QAAQ,cAAc,CAAC;AAEpC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,eAAe,GAAG,oBAAoB,EAAE,CAAC;AAErD,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,mBAAmB,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './model';
2
2
  export * from './build_dist';
3
3
  export * from './source_package';
4
+ export * from './registry';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
@@ -335,10 +335,6 @@ export declare function BlockComponentsConsolidate(dstFolder: string, fileAccumu
335
335
  path: string;
336
336
  }>;
337
337
  }, "strip", z.ZodTypeAny, {
338
- ui: {
339
- type: "relative";
340
- path: string;
341
- };
342
338
  workflow: {
343
339
  type: string;
344
340
  main: any;
@@ -353,11 +349,11 @@ export declare function BlockComponentsConsolidate(dstFolder: string, fileAccumu
353
349
  type: "relative";
354
350
  path: string;
355
351
  };
356
- }, {
357
352
  ui: {
358
353
  type: "relative";
359
354
  path: string;
360
355
  };
356
+ }, {
361
357
  workflow: {
362
358
  type: "relative";
363
359
  path: string;
@@ -372,5 +368,9 @@ export declare function BlockComponentsConsolidate(dstFolder: string, fileAccumu
372
368
  type: "relative";
373
369
  path: string;
374
370
  };
371
+ ui: {
372
+ type: "relative";
373
+ path: string;
374
+ };
375
375
  }>>;
376
376
  //# sourceMappingURL=block_components.d.ts.map
@@ -823,10 +823,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
823
823
  path: string;
824
824
  }>;
825
825
  }, "strip", z.ZodTypeAny, {
826
- ui: {
827
- type: "relative";
828
- path: string;
829
- };
830
826
  workflow: {
831
827
  type: string;
832
828
  main: any;
@@ -841,11 +837,11 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
841
837
  type: "relative";
842
838
  path: string;
843
839
  };
844
- }, {
845
840
  ui: {
846
841
  type: "relative";
847
842
  path: string;
848
843
  };
844
+ }, {
849
845
  workflow: {
850
846
  type: "relative";
851
847
  path: string;
@@ -860,6 +856,10 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
860
856
  type: "relative";
861
857
  path: string;
862
858
  };
859
+ ui: {
860
+ type: "relative";
861
+ path: string;
862
+ };
863
863
  }>>;
864
864
  meta: z.ZodObject<{
865
865
  title: z.ZodString;
@@ -1073,10 +1073,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1073
1073
  version: string;
1074
1074
  };
1075
1075
  components: {
1076
- ui: {
1077
- type: "relative";
1078
- path: string;
1079
- };
1080
1076
  workflow: {
1081
1077
  type: string;
1082
1078
  main: any;
@@ -1091,6 +1087,10 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1091
1087
  type: "relative";
1092
1088
  path: string;
1093
1089
  };
1090
+ ui: {
1091
+ type: "relative";
1092
+ path: string;
1093
+ };
1094
1094
  };
1095
1095
  meta: {
1096
1096
  title: string;
@@ -1276,10 +1276,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1276
1276
  path: string;
1277
1277
  }>;
1278
1278
  }, "strip", z.ZodTypeAny, {
1279
- ui: {
1280
- type: "relative";
1281
- path: string;
1282
- };
1283
1279
  workflow: {
1284
1280
  type: string;
1285
1281
  main: any;
@@ -1294,11 +1290,11 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1294
1290
  type: "relative";
1295
1291
  path: string;
1296
1292
  };
1297
- }, {
1298
1293
  ui: {
1299
1294
  type: "relative";
1300
1295
  path: string;
1301
1296
  };
1297
+ }, {
1302
1298
  workflow: {
1303
1299
  type: "relative";
1304
1300
  path: string;
@@ -1313,6 +1309,10 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1313
1309
  type: "relative";
1314
1310
  path: string;
1315
1311
  };
1312
+ ui: {
1313
+ type: "relative";
1314
+ path: string;
1315
+ };
1316
1316
  }>;
1317
1317
  meta: z.ZodObject<{
1318
1318
  title: z.ZodString;
@@ -1481,10 +1481,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1481
1481
  }>;
1482
1482
  }, "strip", z.ZodTypeAny, {
1483
1483
  components: {
1484
- ui: {
1485
- type: "relative";
1486
- path: string;
1487
- };
1488
1484
  workflow: {
1489
1485
  type: string;
1490
1486
  main: any;
@@ -1499,6 +1495,10 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1499
1495
  type: "relative";
1500
1496
  path: string;
1501
1497
  };
1498
+ ui: {
1499
+ type: "relative";
1500
+ path: string;
1501
+ };
1502
1502
  };
1503
1503
  meta: {
1504
1504
  organization: {
@@ -1542,10 +1542,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1542
1542
  };
1543
1543
  }, {
1544
1544
  components: {
1545
- ui: {
1546
- type: "relative";
1547
- path: string;
1548
- };
1549
1545
  workflow: {
1550
1546
  type: "relative";
1551
1547
  path: string;
@@ -1560,6 +1556,10 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
1560
1556
  type: "relative";
1561
1557
  path: string;
1562
1558
  };
1559
+ ui: {
1560
+ type: "relative";
1561
+ path: string;
1562
+ };
1563
1563
  };
1564
1564
  meta: {
1565
1565
  organization: {
@@ -1678,10 +1678,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
1678
1678
  path: string;
1679
1679
  }>;
1680
1680
  }, "strip", z.ZodTypeAny, {
1681
- ui: {
1682
- type: "relative";
1683
- path: string;
1684
- };
1685
1681
  workflow: {
1686
1682
  type: string;
1687
1683
  main: any;
@@ -1696,11 +1692,11 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
1696
1692
  type: "relative";
1697
1693
  path: string;
1698
1694
  };
1699
- }, {
1700
1695
  ui: {
1701
1696
  type: "relative";
1702
1697
  path: string;
1703
1698
  };
1699
+ }, {
1704
1700
  workflow: {
1705
1701
  type: "relative";
1706
1702
  path: string;
@@ -1715,6 +1711,10 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
1715
1711
  type: "relative";
1716
1712
  path: string;
1717
1713
  };
1714
+ ui: {
1715
+ type: "relative";
1716
+ path: string;
1717
+ };
1718
1718
  }>;
1719
1719
  meta: z.ZodObject<{
1720
1720
  title: z.ZodString;
@@ -1883,10 +1883,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
1883
1883
  }>;
1884
1884
  }, "strip", z.ZodTypeAny, {
1885
1885
  components: {
1886
- ui: {
1887
- type: "relative";
1888
- path: string;
1889
- };
1890
1886
  workflow: {
1891
1887
  type: string;
1892
1888
  main: any;
@@ -1901,6 +1897,10 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
1901
1897
  type: "relative";
1902
1898
  path: string;
1903
1899
  };
1900
+ ui: {
1901
+ type: "relative";
1902
+ path: string;
1903
+ };
1904
1904
  };
1905
1905
  meta: {
1906
1906
  organization: {
@@ -1944,10 +1944,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
1944
1944
  };
1945
1945
  }, {
1946
1946
  components: {
1947
- ui: {
1948
- type: "relative";
1949
- path: string;
1950
- };
1951
1947
  workflow: {
1952
1948
  type: "relative";
1953
1949
  path: string;
@@ -1962,6 +1958,10 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
1962
1958
  type: "relative";
1963
1959
  path: string;
1964
1960
  };
1961
+ ui: {
1962
+ type: "relative";
1963
+ path: string;
1964
+ };
1965
1965
  };
1966
1966
  meta: {
1967
1967
  organization: {
@@ -2544,10 +2544,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
2544
2544
  path: string;
2545
2545
  }>;
2546
2546
  }, "strip", z.ZodTypeAny, {
2547
- ui: {
2548
- type: "relative";
2549
- path: string;
2550
- };
2551
2547
  workflow: {
2552
2548
  type: string;
2553
2549
  main: any;
@@ -2562,11 +2558,11 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
2562
2558
  type: "relative";
2563
2559
  path: string;
2564
2560
  };
2565
- }, {
2566
2561
  ui: {
2567
2562
  type: "relative";
2568
2563
  path: string;
2569
2564
  };
2565
+ }, {
2570
2566
  workflow: {
2571
2567
  type: "relative";
2572
2568
  path: string;
@@ -2581,6 +2577,10 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
2581
2577
  type: "relative";
2582
2578
  path: string;
2583
2579
  };
2580
+ ui: {
2581
+ type: "relative";
2582
+ path: string;
2583
+ };
2584
2584
  }>;
2585
2585
  meta: z.ZodObject<{
2586
2586
  title: z.ZodString;
@@ -2749,10 +2749,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
2749
2749
  }>;
2750
2750
  }, "strip", z.ZodTypeAny, {
2751
2751
  components: {
2752
- ui: {
2753
- type: "relative";
2754
- path: string;
2755
- };
2756
2752
  workflow: {
2757
2753
  type: string;
2758
2754
  main: any;
@@ -2767,6 +2763,10 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
2767
2763
  type: "relative";
2768
2764
  path: string;
2769
2765
  };
2766
+ ui: {
2767
+ type: "relative";
2768
+ path: string;
2769
+ };
2770
2770
  };
2771
2771
  meta: {
2772
2772
  organization: {
@@ -2810,10 +2810,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
2810
2810
  };
2811
2811
  }, {
2812
2812
  components: {
2813
- ui: {
2814
- type: "relative";
2815
- path: string;
2816
- };
2817
2813
  workflow: {
2818
2814
  type: "relative";
2819
2815
  path: string;
@@ -2828,6 +2824,10 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
2828
2824
  type: "relative";
2829
2825
  path: string;
2830
2826
  };
2827
+ ui: {
2828
+ type: "relative";
2829
+ path: string;
2830
+ };
2831
2831
  };
2832
2832
  meta: {
2833
2833
  organization: {