@powerhousedao/workflow 6.2.3-dev.11 → 6.2.3-dev.13

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 (26) hide show
  1. package/dist/browser/assets/{entry-4n9sWkpV.js → entry-4ObkElbc.js} +2 -2
  2. package/dist/browser/assets/{projection-entry-Bzn-Fath.js → projection-entry-DRGRQCSu.js} +8 -8
  3. package/dist/browser/{editor-DJX9NpD5.js → editor-D2hD_zy5.js} +2 -2
  4. package/dist/browser/{editor-DJX9NpD5.js.map → editor-D2hD_zy5.js.map} +1 -1
  5. package/dist/browser/{editor-Hh1cyIIW.js → editor-DPQptW3F.js} +2 -2
  6. package/dist/browser/{editor-Hh1cyIIW.js.map → editor-DPQptW3F.js.map} +1 -1
  7. package/dist/browser/{editor-BCxZ5i20.js → editor-tgTc0MrV.js} +2 -2
  8. package/dist/browser/{editor-BCxZ5i20.js.map → editor-tgTc0MrV.js.map} +1 -1
  9. package/dist/browser/editors/connection-editor/module.js +1 -1
  10. package/dist/browser/editors/workflow-editor/module.js +1 -1
  11. package/dist/browser/editors/workflow-studio/module.js +1 -1
  12. package/dist/browser/{use-runtime-url-DzYskFkw.js → use-runtime-url-CSz0PsWV.js} +2 -2
  13. package/dist/browser/{use-runtime-url-DzYskFkw.js.map → use-runtime-url-CSz0PsWV.js.map} +1 -1
  14. package/dist/node/{editor-CS8ttjKp.mjs → editor-D7WL8J_4.mjs} +2 -2
  15. package/dist/node/{editor-CS8ttjKp.mjs.map → editor-D7WL8J_4.mjs.map} +1 -1
  16. package/dist/node/{editor-DQUie3HQ.mjs → editor-gpF-ytd5.mjs} +2 -2
  17. package/dist/node/{editor-DQUie3HQ.mjs.map → editor-gpF-ytd5.mjs.map} +1 -1
  18. package/dist/node/{editor-DhgG3VOa.mjs → editor-sBw5dTYS.mjs} +2 -2
  19. package/dist/node/{editor-DhgG3VOa.mjs.map → editor-sBw5dTYS.mjs.map} +1 -1
  20. package/dist/node/editors/connection-editor/module.mjs +1 -1
  21. package/dist/node/editors/workflow-editor/module.mjs +1 -1
  22. package/dist/node/editors/workflow-studio/module.mjs +1 -1
  23. package/dist/node/{use-runtime-url-C_adivge.mjs → use-runtime-url-BOooH4kU.mjs} +2 -2
  24. package/dist/node/{use-runtime-url-C_adivge.mjs.map → use-runtime-url-BOooH4kU.mjs.map} +1 -1
  25. package/dist/types/document-models/workflow/v1/gen/schema/zod.d.ts +3 -3
  26. package/package.json +8 -8
@@ -1,6 +1,6 @@
1
- import { o as instrumentPgPool } from "./drive-container-types-DrTN96J-.js";
1
+ import { o as instrumentPgPool } from "./drive-container-types-CS5IxDiA.js";
2
2
  import { n as errorToInfo, t as createForwardingLogger } from "./forwarding-logger-BBkMSxuJ.js";
3
- import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-D4se2bJ0.js";
3
+ import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-DUjyF4NM.js";
4
4
  import { ConsoleLogger } from "document-model";
5
5
  import { isMainThread, parentPort } from "node:worker_threads";
6
6
  //#region src/executor/worker/run-worker.ts
@@ -1,8 +1,8 @@
1
- import { _ as DocumentMetaCache, c as KyselyKeyframeStore, g as KyselyOperationIndex, h as KyselyWriteCache, l as DocumentModelRegistry, m as EventBus, n as REACTOR_SCHEMA, o as instrumentPgPool, s as KyselyOperationStore, v as CollectionMembershipCache } from "./drive-container-types-DrTN96J-.js";
1
+ import { _ as DocumentMetaCache, c as KyselyKeyframeStore, g as KyselyOperationIndex, h as KyselyWriteCache, l as DocumentModelRegistry, m as EventBus, n as REACTOR_SCHEMA, o as instrumentPgPool, s as KyselyOperationStore, v as CollectionMembershipCache } from "./drive-container-types-CS5IxDiA.js";
2
2
  import { n as ReactorEventTypes } from "./types-DMKLa0Ok.js";
3
- import { i as KyselyDocumentView, n as ConsistencyTracker, s as ReadModelCoordinator, t as KyselyDocumentIndexer } from "./document-indexer-wbaTFAeJ.js";
3
+ import { a as KyselyDocumentView, c as ReadModelCoordinator, i as DeletedDocumentRead, n as ConsistencyTracker, t as KyselyDocumentIndexer } from "./document-indexer-C1oY6CaR.js";
4
4
  import { n as errorToInfo, t as createForwardingLogger } from "./forwarding-logger-BBkMSxuJ.js";
5
- import { n as defaultLoadFactory } from "./build-worker-executor-D4se2bJ0.js";
5
+ import { n as defaultLoadFactory } from "./build-worker-executor-DUjyF4NM.js";
6
6
  import { ConsoleLogger } from "document-model";
7
7
  import { isMainThread, parentPort } from "node:worker_threads";
8
8
  //#region src/projection/projection-worker/build-projection-stack.ts
@@ -22,10 +22,10 @@ async function loadModelManifest(entries, loadFactory, registry, logger) {
22
22
  }
23
23
  }
24
24
  }
25
- function instantiateReadModel(kind, database, operationStore, operationIndex, writeCache) {
25
+ function instantiateReadModel(kind, database, operationStore, operationIndex, writeCache, indexing) {
26
26
  switch (kind) {
27
- case "document-view": return new KyselyDocumentView(database, operationStore, operationIndex, writeCache, new ConsistencyTracker(), false);
28
- case "document-indexer": return new KyselyDocumentIndexer(database, operationIndex, writeCache, new ConsistencyTracker());
27
+ case "document-view": return new KyselyDocumentView(database, operationStore, operationIndex, writeCache, new ConsistencyTracker(), DeletedDocumentRead.NotFound, indexing);
28
+ case "document-indexer": return new KyselyDocumentIndexer(database, operationIndex, writeCache, new ConsistencyTracker(), indexing);
29
29
  default: {
30
30
  const exhaustive = kind;
31
31
  throw new Error(`unknown built-in read model kind: ${String(exhaustive)}`);
@@ -60,8 +60,8 @@ async function buildProjectionStack(options) {
60
60
  const operationIndex = new KyselyOperationIndex(database);
61
61
  await new DocumentMetaCache(operationStore, { maxDocuments: 1e3 }).startup();
62
62
  new CollectionMembershipCache(operationIndex);
63
- const preReady = init.preReadyKinds.map((kind) => instantiateReadModel(kind, database, operationStore, operationIndex, writeCache));
64
- const postReady = init.postReadyKinds.map((kind) => instantiateReadModel(kind, database, operationStore, operationIndex, writeCache));
63
+ const preReady = init.preReadyKinds.map((kind) => instantiateReadModel(kind, database, operationStore, operationIndex, writeCache, init.indexing));
64
+ const postReady = init.postReadyKinds.map((kind) => instantiateReadModel(kind, database, operationStore, operationIndex, writeCache, init.indexing));
65
65
  await initReadModels([...preReady, ...postReady], logger);
66
66
  const eventBus = new EventBus();
67
67
  const subscriptions = [];
@@ -1,6 +1,6 @@
1
1
  import { E as packageFromConnectorId, s as fetchPieceCatalog } from "./runtime-api-DQa04P3e.js";
2
2
  import { i as useSelectedConnectionDocument } from "./connection-DEe5aDuU.js";
3
- import { n as DocumentErrorBoundary, t as useSyncWorkflowRuntimeUrl } from "./use-runtime-url-DzYskFkw.js";
3
+ import { n as DocumentErrorBoundary, t as useSyncWorkflowRuntimeUrl } from "./use-runtime-url-CSz0PsWV.js";
4
4
  import { r as connectionCallbacks, t as ConnectionForm } from "./connection-form-B_3_LFlh.js";
5
5
  import { t as CONNECTION_STATUS_STYLES } from "./status-kpDX5CIA.js";
6
6
  import { showDeleteNodeModal, useSelectedDocumentId } from "@powerhousedao/reactor-browser";
@@ -131,4 +131,4 @@ function Editor() {
131
131
  //#endregion
132
132
  export { Editor as default };
133
133
 
134
- //# sourceMappingURL=editor-DJX9NpD5.js.map
134
+ //# sourceMappingURL=editor-D2hD_zy5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor-DJX9NpD5.js","names":[],"sources":["../../editors/connection-editor/ConnectionToolbar.tsx","../../editors/connection-editor/editor.tsx"],"sourcesContent":["// Connection identity and state, in the same shape as the workflow editor's\n// toolbar: name, connector, status, and the one destructive action.\nimport { useEffect, useState } from \"react\";\nimport type { ConnectionState } from \"document-models/connection\";\nimport {\n fetchPieceCatalog,\n type PieceSummary,\n} from \"../workflow-editor/runtime-api.js\";\nimport { packageFromConnectorId } from \"./piece-auth.js\";\nimport { CONNECTION_STATUS_STYLES } from \"./status.js\";\n\nexport function ConnectionToolbar(props: {\n state: ConnectionState;\n onRename: (name: string) => void;\n onSetStatus: (status: \"OK\" | \"REVOKED\") => void;\n onDelete: () => void;\n}) {\n const { state } = props;\n const [catalog, setCatalog] = useState<PieceSummary[] | null>(null);\n\n useEffect(() => {\n let cancelled = false;\n // Cached in the runtime client, so this costs nothing the form hasn't paid.\n fetchPieceCatalog().then(\n (pieces) => {\n if (!cancelled) setCatalog(pieces);\n },\n () => {\n if (!cancelled) setCatalog([]);\n },\n );\n return () => {\n cancelled = true;\n };\n }, []);\n\n const packageName = packageFromConnectorId(state.connectorId);\n const piece = catalog?.find((entry) => entry.name === packageName);\n const revoked = state.status === \"REVOKED\";\n\n return (\n <div className=\"flex flex-wrap items-center gap-x-3 gap-y-2 border-b border-solid border-slate-200 px-4 py-2\">\n <input\n key={state.name}\n className=\"min-w-0 max-w-72 rounded border border-transparent px-1 py-0.5 text-sm font-semibold text-slate-800 hover:border-slate-200 focus:border-slate-300 focus:outline-none\"\n defaultValue={state.name}\n placeholder=\"Untitled connection\"\n spellCheck={false}\n aria-label=\"Connection name\"\n onKeyDown={(event) => {\n if (event.key === \"Enter\") event.currentTarget.blur();\n }}\n onBlur={(event) => {\n const name = event.target.value.trim();\n if (name && name !== state.name) props.onRename(name);\n }}\n />\n {piece ? (\n <span className=\"flex min-w-0 items-center gap-1.5\">\n <img\n src={piece.logoUrl}\n alt=\"\"\n className=\"h-4 w-4 shrink-0 object-contain\"\n />\n <span className=\"truncate text-xs text-slate-600\">\n {piece.displayName}\n </span>\n </span>\n ) : packageName ? (\n <span className=\"truncate text-xs text-slate-400\">{packageName}</span>\n ) : (\n <span className=\"text-xs text-slate-400\">No connector picked</span>\n )}\n <span\n className={`rounded px-2 py-0.5 text-[11px] font-semibold ${CONNECTION_STATUS_STYLES[state.status]}`}\n >\n {state.status}\n </span>\n {state.accountLabel ? (\n <span className=\"truncate text-xs text-slate-500\">\n {state.accountLabel}\n </span>\n ) : null}\n <span className=\"ml-auto flex items-center gap-3\">\n {state.lastCheckedAt ? (\n <span\n className=\"text-[11px] text-slate-400\"\n title={new Date(state.lastCheckedAt).toLocaleString()}\n >\n Checked {new Date(state.lastCheckedAt).toLocaleDateString()}\n </span>\n ) : (\n <span className=\"text-[11px] text-slate-400\">Never checked</span>\n )}\n <button\n type=\"button\"\n className=\"rounded border border-solid border-slate-300 bg-white px-2 py-1 text-xs font-medium text-slate-700 hover:border-slate-400 hover:bg-slate-50\"\n onClick={() => props.onSetStatus(revoked ? \"OK\" : \"REVOKED\")}\n >\n {revoked ? \"Reactivate\" : \"Revoke\"}\n </button>\n <button\n type=\"button\"\n className=\"rounded border border-solid border-red-200 bg-white px-2 py-1 text-xs font-medium text-red-600 hover:border-red-300 hover:bg-red-50\"\n onClick={props.onDelete}\n >\n Delete\n </button>\n </span>\n </div>\n );\n}\n","import { DocumentToolbar } from \"@powerhousedao/design-system/connect\";\nimport {\n showDeleteNodeModal,\n useSelectedDocumentId,\n} from \"@powerhousedao/reactor-browser\";\nimport { useSelectedConnectionDocument } from \"document-models/connection\";\nimport { DocumentErrorBoundary } from \"../shared/DocumentErrorBoundary.js\";\nimport { useSyncWorkflowRuntimeUrl } from \"../workflow-editor/use-runtime-url.js\";\nimport { connectionCallbacks } from \"./connection-callbacks.js\";\nimport { ConnectionForm } from \"./connection-form.js\";\nimport { ConnectionToolbar } from \"./ConnectionToolbar.js\";\n\nfunction ConnectionEditor() {\n useSyncWorkflowRuntimeUrl();\n const [document, dispatch] = useSelectedConnectionDocument();\n const state = document.state.global;\n\n const callbacks = connectionCallbacks(state, dispatch);\n\n return (\n <div className=\"flex h-full min-h-0 flex-col bg-background\">\n <DocumentToolbar />\n <ConnectionToolbar\n state={state}\n onRename={callbacks.setName}\n onSetStatus={callbacks.setStatus}\n onDelete={() => showDeleteNodeModal(document.header.id)}\n />\n <div className=\"mx-auto w-full max-w-2xl p-6\">\n <ConnectionForm state={state} callbacks={callbacks} />\n </div>\n </div>\n );\n}\n\n// A drive node can point at a document the reactor cannot serve; the document\n// hooks throw for it. The boundary keeps that failure inside the editor pane.\nexport default function Editor() {\n const documentId = useSelectedDocumentId();\n return (\n <DocumentErrorBoundary documentId={documentId}>\n <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L;GACJ,qBAAC,QAAD;IAAM,WAAU;cAAhB;KACG,MAAM,gBACL,qBAAC,QAAD;MACE,WAAU;MACV,OAAO,IAAI,KAAK,MAAM,cAAc,CAAC,gBAAgB;gBAFvD,CAGC,YACU,IAAI,KAAK,MAAM,cAAc,CAAC,oBAAoB,CACtD;UAEP,oBAAC,QAAD;MAAM,WAAU;gBAA6B;MAAoB,CAAA;KAEnE,oBAAC,UAAD;MACE,MAAK;MACL,WAAU;MACV,eAAe,MAAM,YAAY,UAAU,OAAO,UAAU;gBAE3D,UAAU,eAAe;MACnB,CAAA;KACT,oBAAC,UAAD;MACE,MAAK;MACL,WAAU;MACV,SAAS,MAAM;gBAChB;MAEQ,CAAA;KACJ;;GACH;;;;;ACjGV,SAAS,mBAAmB;AAC1B,4BAA2B;CAC3B,MAAM,CAAC,UAAU,YAAY,+BAA+B;CAC5D,MAAM,QAAQ,SAAS,MAAM;CAE7B,MAAM,YAAY,oBAAoB,OAAO,SAAS;AAEtD,QACE,qBAAC,OAAD;EAAK,WAAU;YAAf;GACE,oBAAC,iBAAD,EAAmB,CAAA;GACnB,oBAAC,mBAAD;IACS;IACP,UAAU,UAAU;IACpB,aAAa,UAAU;IACvB,gBAAgB,oBAAoB,SAAS,OAAO,GAAG;IACvD,CAAA;GACF,oBAAC,OAAD;IAAK,WAAU;cACb,oBAAC,gBAAD;KAAuB;KAAkB;KAAa,CAAA;IAClD,CAAA;GACF;;;AAMV,SAAwB,SAAS;AAE/B,QACE,oBAAC,uBAAD;EAAuB,YAFN,uBAAuB;YAGtC,oBAAC,kBAAD,EAAoB,CAAA;EACE,CAAA"}
1
+ {"version":3,"file":"editor-D2hD_zy5.js","names":[],"sources":["../../editors/connection-editor/ConnectionToolbar.tsx","../../editors/connection-editor/editor.tsx"],"sourcesContent":["// Connection identity and state, in the same shape as the workflow editor's\n// toolbar: name, connector, status, and the one destructive action.\nimport { useEffect, useState } from \"react\";\nimport type { ConnectionState } from \"document-models/connection\";\nimport {\n fetchPieceCatalog,\n type PieceSummary,\n} from \"../workflow-editor/runtime-api.js\";\nimport { packageFromConnectorId } from \"./piece-auth.js\";\nimport { CONNECTION_STATUS_STYLES } from \"./status.js\";\n\nexport function ConnectionToolbar(props: {\n state: ConnectionState;\n onRename: (name: string) => void;\n onSetStatus: (status: \"OK\" | \"REVOKED\") => void;\n onDelete: () => void;\n}) {\n const { state } = props;\n const [catalog, setCatalog] = useState<PieceSummary[] | null>(null);\n\n useEffect(() => {\n let cancelled = false;\n // Cached in the runtime client, so this costs nothing the form hasn't paid.\n fetchPieceCatalog().then(\n (pieces) => {\n if (!cancelled) setCatalog(pieces);\n },\n () => {\n if (!cancelled) setCatalog([]);\n },\n );\n return () => {\n cancelled = true;\n };\n }, []);\n\n const packageName = packageFromConnectorId(state.connectorId);\n const piece = catalog?.find((entry) => entry.name === packageName);\n const revoked = state.status === \"REVOKED\";\n\n return (\n <div className=\"flex flex-wrap items-center gap-x-3 gap-y-2 border-b border-solid border-slate-200 px-4 py-2\">\n <input\n key={state.name}\n className=\"min-w-0 max-w-72 rounded border border-transparent px-1 py-0.5 text-sm font-semibold text-slate-800 hover:border-slate-200 focus:border-slate-300 focus:outline-none\"\n defaultValue={state.name}\n placeholder=\"Untitled connection\"\n spellCheck={false}\n aria-label=\"Connection name\"\n onKeyDown={(event) => {\n if (event.key === \"Enter\") event.currentTarget.blur();\n }}\n onBlur={(event) => {\n const name = event.target.value.trim();\n if (name && name !== state.name) props.onRename(name);\n }}\n />\n {piece ? (\n <span className=\"flex min-w-0 items-center gap-1.5\">\n <img\n src={piece.logoUrl}\n alt=\"\"\n className=\"h-4 w-4 shrink-0 object-contain\"\n />\n <span className=\"truncate text-xs text-slate-600\">\n {piece.displayName}\n </span>\n </span>\n ) : packageName ? (\n <span className=\"truncate text-xs text-slate-400\">{packageName}</span>\n ) : (\n <span className=\"text-xs text-slate-400\">No connector picked</span>\n )}\n <span\n className={`rounded px-2 py-0.5 text-[11px] font-semibold ${CONNECTION_STATUS_STYLES[state.status]}`}\n >\n {state.status}\n </span>\n {state.accountLabel ? (\n <span className=\"truncate text-xs text-slate-500\">\n {state.accountLabel}\n </span>\n ) : null}\n <span className=\"ml-auto flex items-center gap-3\">\n {state.lastCheckedAt ? (\n <span\n className=\"text-[11px] text-slate-400\"\n title={new Date(state.lastCheckedAt).toLocaleString()}\n >\n Checked {new Date(state.lastCheckedAt).toLocaleDateString()}\n </span>\n ) : (\n <span className=\"text-[11px] text-slate-400\">Never checked</span>\n )}\n <button\n type=\"button\"\n className=\"rounded border border-solid border-slate-300 bg-white px-2 py-1 text-xs font-medium text-slate-700 hover:border-slate-400 hover:bg-slate-50\"\n onClick={() => props.onSetStatus(revoked ? \"OK\" : \"REVOKED\")}\n >\n {revoked ? \"Reactivate\" : \"Revoke\"}\n </button>\n <button\n type=\"button\"\n className=\"rounded border border-solid border-red-200 bg-white px-2 py-1 text-xs font-medium text-red-600 hover:border-red-300 hover:bg-red-50\"\n onClick={props.onDelete}\n >\n Delete\n </button>\n </span>\n </div>\n );\n}\n","import { DocumentToolbar } from \"@powerhousedao/design-system/connect\";\nimport {\n showDeleteNodeModal,\n useSelectedDocumentId,\n} from \"@powerhousedao/reactor-browser\";\nimport { useSelectedConnectionDocument } from \"document-models/connection\";\nimport { DocumentErrorBoundary } from \"../shared/DocumentErrorBoundary.js\";\nimport { useSyncWorkflowRuntimeUrl } from \"../workflow-editor/use-runtime-url.js\";\nimport { connectionCallbacks } from \"./connection-callbacks.js\";\nimport { ConnectionForm } from \"./connection-form.js\";\nimport { ConnectionToolbar } from \"./ConnectionToolbar.js\";\n\nfunction ConnectionEditor() {\n useSyncWorkflowRuntimeUrl();\n const [document, dispatch] = useSelectedConnectionDocument();\n const state = document.state.global;\n\n const callbacks = connectionCallbacks(state, dispatch);\n\n return (\n <div className=\"flex h-full min-h-0 flex-col bg-background\">\n <DocumentToolbar />\n <ConnectionToolbar\n state={state}\n onRename={callbacks.setName}\n onSetStatus={callbacks.setStatus}\n onDelete={() => showDeleteNodeModal(document.header.id)}\n />\n <div className=\"mx-auto w-full max-w-2xl p-6\">\n <ConnectionForm state={state} callbacks={callbacks} />\n </div>\n </div>\n );\n}\n\n// A drive node can point at a document the reactor cannot serve; the document\n// hooks throw for it. The boundary keeps that failure inside the editor pane.\nexport default function Editor() {\n const documentId = useSelectedDocumentId();\n return (\n <DocumentErrorBoundary documentId={documentId}>\n <ConnectionEditor />\n </DocumentErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,kBAAkB,OAK/B;CACD,MAAM,EAAE,UAAU;CAClB,MAAM,CAAC,SAAS,cAAc,SAAgC,KAAK;AAEnE,iBAAgB;EACd,IAAI,YAAY;AAEhB,qBAAmB,CAAC,MACjB,WAAW;AACV,OAAI,CAAC,UAAW,YAAW,OAAO;WAE9B;AACJ,OAAI,CAAC,UAAW,YAAW,EAAE,CAAC;IAEjC;AACD,eAAa;AACX,eAAY;;IAEb,EAAE,CAAC;CAEN,MAAM,cAAc,uBAAuB,MAAM,YAAY;CAC7D,MAAM,QAAQ,SAAS,MAAM,UAAU,MAAM,SAAS,YAAY;CAClE,MAAM,UAAU,MAAM,WAAW;AAEjC,QACE,qBAAC,OAAD;EAAK,WAAU;YAAf;GACE,oBAAC,SAAD;IAEE,WAAU;IACV,cAAc,MAAM;IACpB,aAAY;IACZ,YAAY;IACZ,cAAW;IACX,YAAY,UAAU;AACpB,SAAI,MAAM,QAAQ,QAAS,OAAM,cAAc,MAAM;;IAEvD,SAAS,UAAU;KACjB,MAAM,OAAO,MAAM,OAAO,MAAM,MAAM;AACtC,SAAI,QAAQ,SAAS,MAAM,KAAM,OAAM,SAAS,KAAK;;IAEvD,EAbK,MAAM,KAaX;GACD,QACC,qBAAC,QAAD;IAAM,WAAU;cAAhB,CACE,oBAAC,OAAD;KACE,KAAK,MAAM;KACX,KAAI;KACJ,WAAU;KACV,CAAA,EACF,oBAAC,QAAD;KAAM,WAAU;eACb,MAAM;KACF,CAAA,CACF;QACL,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CAAA;EACE,CAAA"}
@@ -2,7 +2,7 @@ import { E as packageFromConnectorId, f as fireWorkflow, g as rerunRun, l as fet
2
2
  import { y as actions } from "./module-12vI18HY.js";
3
3
  import { y as actions$1 } from "./module-CYQnNZWl.js";
4
4
  import { r as useWorkflowDocumentsInSelectedDrive } from "./workflow-CFZUezoY.js";
5
- import { i as errorMessage, n as DocumentErrorBoundary, r as DocumentLoadError, t as useSyncWorkflowRuntimeUrl } from "./use-runtime-url-DzYskFkw.js";
5
+ import { i as errorMessage, n as DocumentErrorBoundary, r as DocumentLoadError, t as useSyncWorkflowRuntimeUrl } from "./use-runtime-url-CSz0PsWV.js";
6
6
  import { t as CONNECTION_STATUS_STYLES } from "./status-kpDX5CIA.js";
7
7
  import { i as portRank, l as usePieceLogos, o as blockMeta } from "./ap-layout-DLTZBpE7.js";
8
8
  import { addDocument, setSelectedNode, showDeleteNodeModal, useDispatch, useDocumentSafe, useFileNodesInSelectedDrive, usePHToast, useSelectedDrive, useSelectedNode, useSetPHAppConfig } from "@powerhousedao/reactor-browser";
@@ -1547,4 +1547,4 @@ function Editor(props) {
1547
1547
  //#endregion
1548
1548
  export { Editor as default };
1549
1549
 
1550
- //# sourceMappingURL=editor-Hh1cyIIW.js.map
1550
+ //# sourceMappingURL=editor-DPQptW3F.js.map