@powerhousedao/powerhouse-vetra-packages 6.2.2-dev.68 → 6.2.2-dev.69
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/{button-BRfN_ySr.js → button-CuO8Gh3v.js} +4 -4
- package/dist/browser/{button-BRfN_ySr.js.map → button-CuO8Gh3v.js.map} +1 -1
- package/dist/browser/{connect-CY1XZRuK.js → connect-DmCpI0kg.js} +3 -3
- package/dist/browser/{connect-CY1XZRuK.js.map → connect-DmCpI0kg.js.map} +1 -1
- package/dist/browser/{dist-CPqk30vV.js → dist-DfoAQf6g.js} +2 -2
- package/dist/browser/{dist-CPqk30vV.js.map → dist-DfoAQf6g.js.map} +1 -1
- package/dist/browser/{document-drive-wNtf1eGn.js → document-drive-D6XhjHzr.js} +30 -3
- package/dist/browser/document-drive-D6XhjHzr.js.map +1 -0
- package/dist/browser/document-models/index.js +1 -1
- package/dist/browser/{documents-j_qy61X1.js → documents-J_l59mSV.js} +19 -19
- package/dist/browser/{documents-j_qy61X1.js.map → documents-J_l59mSV.js.map} +1 -1
- package/dist/browser/{editor-uImDlKPT.js → editor-C069kNOj.js} +5 -5
- package/dist/browser/{editor-uImDlKPT.js.map → editor-C069kNOj.js.map} +1 -1
- package/dist/browser/{editor-NIWCG1e5.js → editor-XlOiVjqp.js} +8 -8
- package/dist/browser/{editor-NIWCG1e5.js.map → editor-XlOiVjqp.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +10 -10
- package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/{folder-view-D7_zHhKx.js → folder-view-B4b9Ik-G.js} +3 -3
- package/dist/browser/{folder-view-D7_zHhKx.js.map → folder-view-B4b9Ik-G.js.map} +1 -1
- package/dist/browser/{graphql-editor-BdGd_c4V.js → graphql-editor-BDze7_wI.js} +6 -6
- package/dist/browser/{graphql-editor-BdGd_c4V.js.map → graphql-editor-BDze7_wI.js.map} +1 -1
- package/dist/browser/{hooks-BgIeO-WG.js → hooks-KKcNp2X0.js} +2 -2
- package/dist/browser/{hooks-BgIeO-WG.js.map → hooks-KKcNp2X0.js.map} +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/{json-editor-CNzesu8i.js → json-editor-nI61gbA-.js} +4 -4
- package/dist/browser/{json-editor-CNzesu8i.js.map → json-editor-nI61gbA-.js.map} +1 -1
- package/dist/browser/{schema-context-ClCYFYSx.js → schema-context-ZyeclQwy.js} +2 -2
- package/dist/browser/{schema-context-ClCYFYSx.js.map → schema-context-ZyeclQwy.js.map} +1 -1
- package/dist/browser/{state-schemas-DSj2Q5dd.js → state-schemas-DvpLHgMU.js} +6 -6
- package/dist/browser/{state-schemas-DSj2Q5dd.js.map → state-schemas-DvpLHgMU.js.map} +1 -1
- package/dist/node/{button-CLUmz7-t.mjs → button-Da7CxMn7.mjs} +4 -4
- package/dist/node/{button-CLUmz7-t.mjs.map → button-Da7CxMn7.mjs.map} +1 -1
- package/dist/node/{connect-DDTFaOK1.mjs → connect-BOwTtHRq.mjs} +3 -3
- package/dist/node/{connect-DDTFaOK1.mjs.map → connect-BOwTtHRq.mjs.map} +1 -1
- package/dist/node/{dist-C6YOGFJz.mjs → dist-CRrgpr8A.mjs} +2 -2
- package/dist/node/{dist-C6YOGFJz.mjs.map → dist-CRrgpr8A.mjs.map} +1 -1
- package/dist/node/{document-drive-DJ5gDA3q.mjs → document-drive-B65n0lIk.mjs} +30 -3
- package/dist/node/document-drive-B65n0lIk.mjs.map +1 -0
- package/dist/node/document-models/index.mjs +1 -1
- package/dist/node/{documents-Bh_lxLTV.mjs → documents-DCf53bzO.mjs} +19 -19
- package/dist/node/{documents-Bh_lxLTV.mjs.map → documents-DCf53bzO.mjs.map} +1 -1
- package/dist/node/{editor-D7OK72iC.mjs → editor-BGcLm6LA.mjs} +8 -8
- package/dist/node/{editor-D7OK72iC.mjs.map → editor-BGcLm6LA.mjs.map} +1 -1
- package/dist/node/{editor-Cn7BgNfB.mjs → editor-DIiXhhl2.mjs} +5 -5
- package/dist/node/{editor-Cn7BgNfB.mjs.map → editor-DIiXhhl2.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +10 -10
- package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/{folder-view-B-O0urxt.mjs → folder-view-DyijTEeD.mjs} +3 -3
- package/dist/node/{folder-view-B-O0urxt.mjs.map → folder-view-DyijTEeD.mjs.map} +1 -1
- package/dist/node/{graphql-editor-BsbzZRrI.mjs → graphql-editor-5YU1uHpd.mjs} +5 -5
- package/dist/node/{graphql-editor-BsbzZRrI.mjs.map → graphql-editor-5YU1uHpd.mjs.map} +1 -1
- package/dist/node/{hooks-B7KF2A2g.mjs → hooks-D0DcS3MV.mjs} +2 -2
- package/dist/node/{hooks-B7KF2A2g.mjs.map → hooks-D0DcS3MV.mjs.map} +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/node/{json-editor-VwN_GGJ4.mjs → json-editor-iuJkZEgS.mjs} +4 -4
- package/dist/node/{json-editor-VwN_GGJ4.mjs.map → json-editor-iuJkZEgS.mjs.map} +1 -1
- package/dist/node/{schema-context-pefmG2VW.mjs → schema-context-DL8jhi_d.mjs} +2 -2
- package/dist/node/{schema-context-pefmG2VW.mjs.map → schema-context-DL8jhi_d.mjs.map} +1 -1
- package/dist/node/{state-schemas-q2tS6wex.mjs → state-schemas-DHQAxfto.mjs} +6 -6
- package/dist/node/{state-schemas-q2tS6wex.mjs.map → state-schemas-DHQAxfto.mjs.map} +1 -1
- package/package.json +7 -7
- package/dist/browser/document-drive-wNtf1eGn.js.map +0 -1
- package/dist/node/document-drive-DJ5gDA3q.mjs.map +0 -1
|
@@ -3044,12 +3044,39 @@ function toTransportContext(context) {
|
|
|
3044
3044
|
if (context.nonce !== void 0) projected.nonce = context.nonce;
|
|
3045
3045
|
const signer = context.signer;
|
|
3046
3046
|
if (signer) projected.signer = {
|
|
3047
|
-
...signer.user ? { user: signer.user } : {},
|
|
3048
|
-
...signer.app ? { app: signer.app } : {},
|
|
3047
|
+
...signer.user ? { user: toTransportSignerUser(signer.user) } : {},
|
|
3048
|
+
...signer.app ? { app: toTransportSignerApp(signer.app) } : {},
|
|
3049
3049
|
signatures: (signer.signatures ?? []).map(serializeSignature)
|
|
3050
3050
|
};
|
|
3051
3051
|
return Object.keys(projected).length > 0 ? projected : void 0;
|
|
3052
3052
|
}
|
|
3053
|
+
/**
|
|
3054
|
+
* The identity, projected for the same reason the context around it is.
|
|
3055
|
+
*
|
|
3056
|
+
* A signer is handed in by the app, so what reaches here is only as narrow as
|
|
3057
|
+
* whoever built it: an identity carrying a session's DID, credential or profile
|
|
3058
|
+
* alongside the address is refused by `ReactorSignerUserInput`, and that
|
|
3059
|
+
* refusal takes the whole submission with it.
|
|
3060
|
+
*
|
|
3061
|
+
* The compiler cannot stand in for this. `UserActionSigner` already declares
|
|
3062
|
+
* exactly these three fields, but excess-property checks apply to fresh object
|
|
3063
|
+
* literals and never to a variable of a wider type, so a wide identity assigned
|
|
3064
|
+
* to the narrow type passes untouched.
|
|
3065
|
+
*/
|
|
3066
|
+
function toTransportSignerUser(user) {
|
|
3067
|
+
return {
|
|
3068
|
+
address: user.address,
|
|
3069
|
+
networkId: user.networkId,
|
|
3070
|
+
chainId: user.chainId
|
|
3071
|
+
};
|
|
3072
|
+
}
|
|
3073
|
+
/** The signing app, projected on the same rule as the identity above. */
|
|
3074
|
+
function toTransportSignerApp(app) {
|
|
3075
|
+
return {
|
|
3076
|
+
name: app.name,
|
|
3077
|
+
key: app.key
|
|
3078
|
+
};
|
|
3079
|
+
}
|
|
3053
3080
|
var InvalidActionInputError = class extends Error {
|
|
3054
3081
|
data;
|
|
3055
3082
|
constructor(data) {
|
|
@@ -8398,4 +8425,4 @@ const driveDocumentModelModule = {
|
|
|
8398
8425
|
//#endregion
|
|
8399
8426
|
export { setOperationErrorName as $, createZip as A, redo as B, baseSaveToFileHandle as C, createPresignedHeader as D, createBaseState as E, deserializeSignature as F, setInitialState as G, replayDocumentVersioned as H, documentModelDocumentType as I, setModelId as J, setModelDescription as K, hashDocumentStateForScope as L, deleteModule as M, deleteOperation as N, createReducer as O, deleteOperationError as P, setOperationDescription as Q, isDocumentAction as R, baseLoadFromInputVersioned as S, createAction as T, setAuthorName as U, releaseNewVersion as V, setAuthorWebsite as W, setModuleName as X, setModelName as Y, setName as Z, addOperationError as _, handleTargetNameCollisions as a, validateInitialState as at, baseCreateDocument as b, isValidName as c, generateId as ct, documentModelDocumentModelModule as d, setOperationName as et, logger as f, addOperation as g, addModule as h, generateNodesCopy as i, undo as it, defaultBaseState as j, createState as k, moveNode as l, BaseDocumentStateSchema as m, copyNode as n, setStateSchema as nt, isFileNode as o, validateModules as ot, BaseDocumentHeaderSchema as p, setModelExtension as q, driveDocumentModelModule as r, toTransportAction as rt, isFolderNode as s, validateStateSchemaName as st, addFolder as t, setOperationSchema as tt, updateNode as u, assertAuthPreservedOnDuplicate as v, buildSignedAction as w, baseLoadFromInput as x, baseActions as y, normalizeDocumentModelVersion as z };
|
|
8400
8427
|
|
|
8401
|
-
//# sourceMappingURL=document-drive-
|
|
8428
|
+
//# sourceMappingURL=document-drive-D6XhjHzr.js.map
|