@powerhousedao/powerhouse-vetra-packages 6.2.0-dev.38 → 6.2.0-dev.39
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-BzMQu_A8.js → entry-BHcFjTEd.js} +2 -2
- package/dist/browser/assets/{projection-entry-BvwGe49p.js → projection-entry-Cs-5j8OX.js} +4 -4
- package/dist/browser/{connect-BJfZyw2O.js → connect-CmgZSI0Z.js} +62 -62
- package/dist/browser/{connect-BJfZyw2O.js.map → connect-CmgZSI0Z.js.map} +1 -1
- package/dist/browser/{dist-Bldev8ZK.js → dist-D1NFJMzm.js} +6 -12
- package/dist/browser/dist-D1NFJMzm.js.map +1 -0
- package/dist/browser/{editor-ZerxteK6.js → editor-Bs5C6sAt.js} +5 -5
- package/dist/browser/{editor-ZerxteK6.js.map → editor-Bs5C6sAt.js.map} +1 -1
- package/dist/browser/{editor-DWzENY-2.js → editor-BsVLT-lJ.js} +4 -4
- package/dist/browser/{editor-DWzENY-2.js.map → editor-BsVLT-lJ.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-DrU6t80y.js → folder-view-LYhTe15T.js} +3 -3
- package/dist/browser/{folder-view-DrU6t80y.js.map → folder-view-LYhTe15T.js.map} +1 -1
- package/dist/browser/{graphql-editor-C5UmjtTf.js → graphql-editor-b61MnkEP.js} +2 -2
- package/dist/browser/{graphql-editor-C5UmjtTf.js.map → graphql-editor-b61MnkEP.js.map} +1 -1
- package/dist/browser/index.js +334 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/{json-editor-yNmSZgJE.js → json-editor-DO_EwDmY.js} +2 -2
- package/dist/browser/{json-editor-yNmSZgJE.js.map → json-editor-DO_EwDmY.js.map} +1 -1
- package/dist/browser/lib-DtwK2kyR.js +200 -0
- package/dist/browser/lib-DtwK2kyR.js.map +1 -0
- package/dist/browser/{state-schemas-ByCSXjhf.js → state-schemas-Cx-QbW5a.js} +3 -3
- package/dist/browser/{state-schemas-ByCSXjhf.js.map → state-schemas-Cx-QbW5a.js.map} +1 -1
- package/dist/node/{connect-Bq2Hrj8v.mjs → connect-CwDdrOag.mjs} +51 -51
- package/dist/node/{connect-Bq2Hrj8v.mjs.map → connect-CwDdrOag.mjs.map} +1 -1
- package/dist/node/{dist-DuuhSkaw.mjs → dist-RdOXBdt-.mjs} +6 -12
- package/dist/node/dist-RdOXBdt-.mjs.map +1 -0
- package/dist/node/{editor-N6Jk0aIC.mjs → editor-CTJUSbjg.mjs} +5 -5
- package/dist/node/{editor-N6Jk0aIC.mjs.map → editor-CTJUSbjg.mjs.map} +1 -1
- package/dist/node/{editor-LN22LKw-.mjs → editor-DLr8Eb3u.mjs} +4 -4
- package/dist/node/{editor-LN22LKw-.mjs.map → editor-DLr8Eb3u.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-B0P7HA68.mjs → folder-view-CfvJLoKi.mjs} +3 -3
- package/dist/node/{folder-view-B0P7HA68.mjs.map → folder-view-CfvJLoKi.mjs.map} +1 -1
- package/dist/node/{graphql-editor-CsuAtA6W.mjs → graphql-editor-C-0f2bX3.mjs} +2 -2
- package/dist/node/{graphql-editor-CsuAtA6W.mjs.map → graphql-editor-C-0f2bX3.mjs.map} +1 -1
- package/dist/node/index.mjs +335 -2
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{json-editor-DIbAhmts.mjs → json-editor-DJtigEsH.mjs} +2 -2
- package/dist/node/{json-editor-DIbAhmts.mjs.map → json-editor-DJtigEsH.mjs.map} +1 -1
- package/dist/node/{dist-C88eUERe.mjs → main-DbTMJyA_.mjs} +3 -337
- package/dist/node/main-DbTMJyA_.mjs.map +1 -0
- package/dist/node/{state-schemas-C8R8UxE3.mjs → state-schemas-Bv5h5MqY.mjs} +3 -3
- package/dist/node/{state-schemas-C8R8UxE3.mjs.map → state-schemas-Bv5h5MqY.mjs.map} +1 -1
- package/package.json +6 -6
- package/dist/browser/dist-Bldev8ZK.js.map +0 -1
- package/dist/browser/dist-DXM8ccKa.js +0 -533
- package/dist/browser/dist-DXM8ccKa.js.map +0 -1
- package/dist/node/dist-C88eUERe.mjs.map +0 -1
- package/dist/node/dist-DuuhSkaw.mjs.map +0 -1
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { t as parse } from "./parser-CkF6Qt8V.js";
|
|
2
|
+
//#region ../reactor/dist/drive-container-types-BuFNr0j0.js
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when a document model module is not found in the registry.
|
|
5
|
+
*/
|
|
6
|
+
var ModuleNotFoundError = class extends Error {
|
|
7
|
+
documentType;
|
|
8
|
+
requestedVersion;
|
|
9
|
+
constructor(documentType, version) {
|
|
10
|
+
const versionSuffix = version !== void 0 ? ` version ${version}` : "";
|
|
11
|
+
super(`Document model module not found for type: ${documentType}${versionSuffix}`);
|
|
12
|
+
this.name = "ModuleNotFoundError";
|
|
13
|
+
this.documentType = documentType;
|
|
14
|
+
this.requestedVersion = version;
|
|
15
|
+
}
|
|
16
|
+
static isError(error) {
|
|
17
|
+
return Error.isError(error) && error.name === "ModuleNotFoundError";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const DRIVE_COLLECTION_PREFIX = "drive.";
|
|
21
|
+
/**
|
|
22
|
+
* Identifies the collection a remote synchronizes. Collections are drive-level
|
|
23
|
+
* abstractions (document-drive and reactor-drive), so a collection id is the
|
|
24
|
+
* drive document id plus the branch it scopes to rather than an opaque string.
|
|
25
|
+
*
|
|
26
|
+
* The canonical string form (`drive.${branch}.${driveId}`) is produced only by
|
|
27
|
+
* `key` and parsed only by `fromKey`; that string is the wire and storage
|
|
28
|
+
* representation and is byte-for-byte identical to the legacy
|
|
29
|
+
* `driveCollectionId(branch, driveId)` output, so existing `document_collections`
|
|
30
|
+
* rows and persisted remotes remain valid without migration.
|
|
31
|
+
*/
|
|
32
|
+
var DriveCollectionId = class DriveCollectionId {
|
|
33
|
+
constructor(driveId, branch) {
|
|
34
|
+
this.driveId = driveId;
|
|
35
|
+
this.branch = branch;
|
|
36
|
+
}
|
|
37
|
+
static forDrive(driveId, branch = "main") {
|
|
38
|
+
return new DriveCollectionId(driveId, branch);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The single deserializer for the wire/storage form. `branch` may contain
|
|
42
|
+
* dots, while `driveId` is a dot-free document id, so the drive id is the
|
|
43
|
+
* final dot-delimited segment.
|
|
44
|
+
*/
|
|
45
|
+
static fromKey(key) {
|
|
46
|
+
if (!key.startsWith(DRIVE_COLLECTION_PREFIX)) throw new Error(`Unsupported collection id: ${key}`);
|
|
47
|
+
const rest = key.slice(6);
|
|
48
|
+
const lastDot = rest.lastIndexOf(".");
|
|
49
|
+
if (lastDot === -1 || lastDot === rest.length - 1) throw new Error(`Malformed drive collection id: ${key}`);
|
|
50
|
+
return new DriveCollectionId(rest.slice(lastDot + 1), rest.slice(0, lastDot));
|
|
51
|
+
}
|
|
52
|
+
get key() {
|
|
53
|
+
return `${DRIVE_COLLECTION_PREFIX}${this.branch}.${this.driveId}`;
|
|
54
|
+
}
|
|
55
|
+
toString() {
|
|
56
|
+
return this.key;
|
|
57
|
+
}
|
|
58
|
+
equals(other) {
|
|
59
|
+
return this.driveId === other.driveId && this.branch === other.branch;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region ../reactor/dist/index.js
|
|
64
|
+
let SyncStatus = /* @__PURE__ */ function(SyncStatus) {
|
|
65
|
+
SyncStatus["Synced"] = "SYNCED";
|
|
66
|
+
SyncStatus["Outgoing"] = "OUTGOING";
|
|
67
|
+
SyncStatus["Incoming"] = "INCOMING";
|
|
68
|
+
SyncStatus["OutgoingAndIncoming"] = "OUTGOING_AND_INCOMING";
|
|
69
|
+
SyncStatus["Error"] = "ERROR";
|
|
70
|
+
return SyncStatus;
|
|
71
|
+
}({});
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
74
|
+
var __assign = function() {
|
|
75
|
+
__assign = Object.assign || function __assign(t) {
|
|
76
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
77
|
+
s = arguments[i];
|
|
78
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
79
|
+
}
|
|
80
|
+
return t;
|
|
81
|
+
};
|
|
82
|
+
return __assign.apply(this, arguments);
|
|
83
|
+
};
|
|
84
|
+
function __rest(s, e) {
|
|
85
|
+
var t = {};
|
|
86
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
87
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
88
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
89
|
+
}
|
|
90
|
+
return t;
|
|
91
|
+
}
|
|
92
|
+
function __spreadArray(to, from, pack) {
|
|
93
|
+
if (pack || arguments.length === 2) {
|
|
94
|
+
for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
|
|
95
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
96
|
+
ar[i] = from[i];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.12.0/node_modules/graphql-tag/lib/index.js
|
|
103
|
+
var docCache = /* @__PURE__ */ new Map();
|
|
104
|
+
var fragmentSourceMap = /* @__PURE__ */ new Map();
|
|
105
|
+
var printFragmentWarnings = true;
|
|
106
|
+
var experimentalFragmentVariables = false;
|
|
107
|
+
function normalize(string) {
|
|
108
|
+
return string.replace(/[\s,]+/g, " ").trim();
|
|
109
|
+
}
|
|
110
|
+
function cacheKeyFromLoc(loc) {
|
|
111
|
+
return normalize(loc.source.body.substring(loc.start, loc.end));
|
|
112
|
+
}
|
|
113
|
+
function processFragments(ast) {
|
|
114
|
+
var seenKeys = /* @__PURE__ */ new Set();
|
|
115
|
+
var definitions = [];
|
|
116
|
+
ast.definitions.forEach(function(fragmentDefinition) {
|
|
117
|
+
if (fragmentDefinition.kind === "FragmentDefinition") {
|
|
118
|
+
var fragmentName = fragmentDefinition.name.value;
|
|
119
|
+
var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc);
|
|
120
|
+
var sourceKeySet = fragmentSourceMap.get(fragmentName);
|
|
121
|
+
if (sourceKeySet && !sourceKeySet.has(sourceKey)) {
|
|
122
|
+
if (printFragmentWarnings) console.warn("Warning: fragment with name " + fragmentName + " already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names");
|
|
123
|
+
} else if (!sourceKeySet) fragmentSourceMap.set(fragmentName, sourceKeySet = /* @__PURE__ */ new Set());
|
|
124
|
+
sourceKeySet.add(sourceKey);
|
|
125
|
+
if (!seenKeys.has(sourceKey)) {
|
|
126
|
+
seenKeys.add(sourceKey);
|
|
127
|
+
definitions.push(fragmentDefinition);
|
|
128
|
+
}
|
|
129
|
+
} else definitions.push(fragmentDefinition);
|
|
130
|
+
});
|
|
131
|
+
return __assign(__assign({}, ast), { definitions });
|
|
132
|
+
}
|
|
133
|
+
function stripLoc(doc) {
|
|
134
|
+
var workSet = new Set(doc.definitions);
|
|
135
|
+
workSet.forEach(function(node) {
|
|
136
|
+
if (node.loc) delete node.loc;
|
|
137
|
+
Object.keys(node).forEach(function(key) {
|
|
138
|
+
var value = node[key];
|
|
139
|
+
if (value && typeof value === "object") workSet.add(value);
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
var loc = doc.loc;
|
|
143
|
+
if (loc) {
|
|
144
|
+
delete loc.startToken;
|
|
145
|
+
delete loc.endToken;
|
|
146
|
+
}
|
|
147
|
+
return doc;
|
|
148
|
+
}
|
|
149
|
+
function parseDocument(source) {
|
|
150
|
+
var cacheKey = normalize(source);
|
|
151
|
+
if (!docCache.has(cacheKey)) {
|
|
152
|
+
var parsed = parse(source, {
|
|
153
|
+
experimentalFragmentVariables,
|
|
154
|
+
allowLegacyFragmentVariables: experimentalFragmentVariables
|
|
155
|
+
});
|
|
156
|
+
if (!parsed || parsed.kind !== "Document") throw new Error("Not a valid GraphQL document.");
|
|
157
|
+
docCache.set(cacheKey, stripLoc(processFragments(parsed)));
|
|
158
|
+
}
|
|
159
|
+
return docCache.get(cacheKey);
|
|
160
|
+
}
|
|
161
|
+
function gql(literals) {
|
|
162
|
+
var args = [];
|
|
163
|
+
for (var _i = 1; _i < arguments.length; _i++) args[_i - 1] = arguments[_i];
|
|
164
|
+
if (typeof literals === "string") literals = [literals];
|
|
165
|
+
var result = literals[0];
|
|
166
|
+
args.forEach(function(arg, i) {
|
|
167
|
+
if (arg && arg.kind === "Document") result += arg.loc.source.body;
|
|
168
|
+
else result += arg;
|
|
169
|
+
result += literals[i + 1];
|
|
170
|
+
});
|
|
171
|
+
return parseDocument(result);
|
|
172
|
+
}
|
|
173
|
+
function resetCaches() {
|
|
174
|
+
docCache.clear();
|
|
175
|
+
fragmentSourceMap.clear();
|
|
176
|
+
}
|
|
177
|
+
function disableFragmentWarnings() {
|
|
178
|
+
printFragmentWarnings = false;
|
|
179
|
+
}
|
|
180
|
+
function enableExperimentalFragmentVariables() {
|
|
181
|
+
experimentalFragmentVariables = true;
|
|
182
|
+
}
|
|
183
|
+
function disableExperimentalFragmentVariables() {
|
|
184
|
+
experimentalFragmentVariables = false;
|
|
185
|
+
}
|
|
186
|
+
var extras = {
|
|
187
|
+
gql,
|
|
188
|
+
resetCaches,
|
|
189
|
+
disableFragmentWarnings,
|
|
190
|
+
enableExperimentalFragmentVariables,
|
|
191
|
+
disableExperimentalFragmentVariables
|
|
192
|
+
};
|
|
193
|
+
(function(gql_1) {
|
|
194
|
+
gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables;
|
|
195
|
+
})(gql || (gql = {}));
|
|
196
|
+
gql["default"] = gql;
|
|
197
|
+
//#endregion
|
|
198
|
+
export { SyncStatus as a, __spreadArray as i, __assign as n, DriveCollectionId as o, __rest as r, ModuleNotFoundError as s, gql as t };
|
|
199
|
+
|
|
200
|
+
//# sourceMappingURL=lib-DtwK2kyR.js.map
|