@powerhousedao/powerhouse-vetra-packages 6.2.0-dev.16 → 6.2.0-dev.17
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/browser/assets/{entry-D6VwthNk.js → entry-BzMQu_A8.js} +2 -2
- package/dist/browser/assets/{projection-entry-CemvPRT8.js → projection-entry-CQb9a2Bz.js} +2 -2
- package/dist/browser/{connect-BMrgEG7X.js → connect-8jhflBGU.js} +3 -3
- package/dist/browser/{connect-BMrgEG7X.js.map → connect-8jhflBGU.js.map} +1 -1
- package/dist/browser/{dist-DPeHVSov.js → dist-DXM8ccKa.js} +45 -6
- package/dist/browser/dist-DXM8ccKa.js.map +1 -0
- package/dist/browser/{dist-B6zWOl4d.js → dist-DwrlqD9M.js} +4 -4
- package/dist/browser/dist-DwrlqD9M.js.map +1 -0
- package/dist/browser/{editor-CzsQw1pE.js → editor-90hQUK4d.js} +4 -4
- package/dist/browser/{editor-CzsQw1pE.js.map → editor-90hQUK4d.js.map} +1 -1
- package/dist/browser/{editor-Clp9-uJE.js → editor-r68XaVdr.js} +5 -5
- package/dist/browser/{editor-Clp9-uJE.js.map → editor-r68XaVdr.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +3 -3
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/{folder-view-D9jBl4kJ.js → folder-view-D75ptmmg.js} +3 -3
- package/dist/browser/{folder-view-D9jBl4kJ.js.map → folder-view-D75ptmmg.js.map} +1 -1
- package/dist/browser/{graphql-editor-8bWqxqUN.js → graphql-editor-DV2bMlp7.js} +2 -2
- package/dist/browser/{graphql-editor-8bWqxqUN.js.map → graphql-editor-DV2bMlp7.js.map} +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/{json-editor-DlvyzQQO.js → json-editor-QL0ua7r7.js} +2 -2
- package/dist/browser/{json-editor-DlvyzQQO.js.map → json-editor-QL0ua7r7.js.map} +1 -1
- package/dist/browser/{state-schemas-CVQyYhpH.js → state-schemas-DO2c-vjr.js} +3 -3
- package/dist/browser/{state-schemas-CVQyYhpH.js.map → state-schemas-DO2c-vjr.js.map} +1 -1
- package/dist/node/{connect-C8Ur6M5x.mjs → connect-DtoanAef.mjs} +3 -3
- package/dist/node/{connect-C8Ur6M5x.mjs.map → connect-DtoanAef.mjs.map} +1 -1
- package/dist/node/{dist-vA9scgbK.mjs → dist-C88eUERe.mjs} +45 -6
- package/dist/node/dist-C88eUERe.mjs.map +1 -0
- package/dist/node/{dist-D3qXr1ES.mjs → dist-CN7Orn8A.mjs} +4 -4
- package/dist/node/dist-CN7Orn8A.mjs.map +1 -0
- package/dist/node/{editor-kdobbTut.mjs → editor-BZHviN9x.mjs} +5 -5
- package/dist/node/{editor-kdobbTut.mjs.map → editor-BZHviN9x.mjs.map} +1 -1
- package/dist/node/{editor-B6gn6QpO.mjs → editor-BwBjLHwq.mjs} +4 -4
- package/dist/node/{editor-B6gn6QpO.mjs.map → editor-BwBjLHwq.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +3 -3
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/{folder-view-C9m-Kbjh.mjs → folder-view-BMWf5XZ3.mjs} +3 -3
- package/dist/node/{folder-view-C9m-Kbjh.mjs.map → folder-view-BMWf5XZ3.mjs.map} +1 -1
- package/dist/node/{graphql-editor-BiK6s8_B.mjs → graphql-editor-DyFndPCw.mjs} +2 -2
- package/dist/node/{graphql-editor-BiK6s8_B.mjs.map → graphql-editor-DyFndPCw.mjs.map} +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/node/{json-editor-rMZOlQFM.mjs → json-editor-BacoHu-A.mjs} +2 -2
- package/dist/node/{json-editor-rMZOlQFM.mjs.map → json-editor-BacoHu-A.mjs.map} +1 -1
- package/dist/node/{state-schemas-Dt2-S4R8.mjs → state-schemas-B7TlH3a9.mjs} +3 -3
- package/dist/node/{state-schemas-Dt2-S4R8.mjs.map → state-schemas-B7TlH3a9.mjs.map} +1 -1
- package/package.json +6 -6
- package/dist/browser/dist-B6zWOl4d.js.map +0 -1
- package/dist/browser/dist-DPeHVSov.js.map +0 -1
- package/dist/node/dist-D3qXr1ES.mjs.map +0 -1
- package/dist/node/dist-vA9scgbK.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as __toCommonJS, D as __esmMin, E as __commonJSMin, O as __exportAll } from "./dist-fA4EItr0.mjs";
|
|
2
2
|
import { S as createState, X as generateId, g as baseLoadFromInput, h as baseCreateDocument, k as isDocumentAction, v as baseSaveToFileHandle, w as defaultBaseState, x as createReducer } from "./document-drive-DjL9iikf.mjs";
|
|
3
3
|
import { t as require_graphql } from "./graphql-DskHmkMe.mjs";
|
|
4
|
-
//#region ../reactor/dist/drive-container-types-
|
|
4
|
+
//#region ../reactor/dist/drive-container-types-BxnXaOAp.js
|
|
5
5
|
/**
|
|
6
6
|
* Error thrown when a document model module is not found in the registry.
|
|
7
7
|
*/
|
|
@@ -19,9 +19,48 @@ var ModuleNotFoundError = class extends Error {
|
|
|
19
19
|
return Error.isError(error) && error.name === "ModuleNotFoundError";
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const DRIVE_COLLECTION_PREFIX = "drive.";
|
|
23
|
+
/**
|
|
24
|
+
* Identifies the collection a remote synchronizes. Collections are drive-level
|
|
25
|
+
* abstractions (document-drive and reactor-drive), so a collection id is the
|
|
26
|
+
* drive document id plus the branch it scopes to rather than an opaque string.
|
|
27
|
+
*
|
|
28
|
+
* The canonical string form (`drive.${branch}.${driveId}`) is produced only by
|
|
29
|
+
* `key` and parsed only by `fromKey`; that string is the wire and storage
|
|
30
|
+
* representation and is byte-for-byte identical to the legacy
|
|
31
|
+
* `driveCollectionId(branch, driveId)` output, so existing `document_collections`
|
|
32
|
+
* rows and persisted remotes remain valid without migration.
|
|
33
|
+
*/
|
|
34
|
+
var DriveCollectionId = class DriveCollectionId {
|
|
35
|
+
constructor(driveId, branch) {
|
|
36
|
+
this.driveId = driveId;
|
|
37
|
+
this.branch = branch;
|
|
38
|
+
}
|
|
39
|
+
static forDrive(driveId, branch = "main") {
|
|
40
|
+
return new DriveCollectionId(driveId, branch);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The single deserializer for the wire/storage form. `branch` may contain
|
|
44
|
+
* dots, while `driveId` is a dot-free document id, so the drive id is the
|
|
45
|
+
* final dot-delimited segment.
|
|
46
|
+
*/
|
|
47
|
+
static fromKey(key) {
|
|
48
|
+
if (!key.startsWith(DRIVE_COLLECTION_PREFIX)) throw new Error(`Unsupported collection id: ${key}`);
|
|
49
|
+
const rest = key.slice(6);
|
|
50
|
+
const lastDot = rest.lastIndexOf(".");
|
|
51
|
+
if (lastDot === -1 || lastDot === rest.length - 1) throw new Error(`Malformed drive collection id: ${key}`);
|
|
52
|
+
return new DriveCollectionId(rest.slice(lastDot + 1), rest.slice(0, lastDot));
|
|
53
|
+
}
|
|
54
|
+
get key() {
|
|
55
|
+
return `${DRIVE_COLLECTION_PREFIX}${this.branch}.${this.driveId}`;
|
|
56
|
+
}
|
|
57
|
+
toString() {
|
|
58
|
+
return this.key;
|
|
59
|
+
}
|
|
60
|
+
equals(other) {
|
|
61
|
+
return this.driveId === other.driveId && this.branch === other.branch;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
25
64
|
//#endregion
|
|
26
65
|
//#region ../reactor/dist/index.js
|
|
27
66
|
let SyncStatus = /* @__PURE__ */ function(SyncStatus) {
|
|
@@ -1026,6 +1065,6 @@ import_main.gql`
|
|
|
1026
1065
|
}
|
|
1027
1066
|
`;
|
|
1028
1067
|
//#endregion
|
|
1029
|
-
export { SyncStatus as a, tslib_es6_exports as i, require_main as n,
|
|
1068
|
+
export { SyncStatus as a, tslib_es6_exports as i, require_main as n, DriveCollectionId as o, init_tslib_es6 as r, ModuleNotFoundError as s, reactorDriveDocumentModelModule as t };
|
|
1030
1069
|
|
|
1031
|
-
//# sourceMappingURL=dist-
|
|
1070
|
+
//# sourceMappingURL=dist-C88eUERe.mjs.map
|