@mittwald/flow-remote-core 1.6.0-next.6 → 1.6.0-next.61
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/js/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/js/index-node.mjs +1 -2
- package/dist/js/index.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_events@2.1.5/node_modules/@quilted/events/build/esm/abort/NestedAbortController.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/Thread.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/constants.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/errors.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/functions/ThreadFunctionsAutomatic.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/nanoid.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/serialization/ThreadSerializationStructuredClone.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/serialization/shared.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/ThreadIframe.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/ThreadNestedIframe.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/window/ThreadNestedWindow.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/window/ThreadWindow.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/window/shared.mjs +1 -2
- package/dist/js/node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/transfer.mjs +1 -2
- package/dist/js/packages/remote-core/src/connection/connectHostRenderRoot.mjs +1 -2
- package/dist/js/packages/remote-core/src/connection/connectRemoteIframe.mjs +1 -2
- package/dist/js/packages/remote-core/src/connection/types.mjs +1 -2
- package/dist/js/packages/remote-core/src/error.mjs +1 -2
- package/dist/js/packages/remote-core/src/events/remoteEvents.mjs +1 -2
- package/dist/js/packages/remote-core/src/ext-bridge/getWithMergedHostConfig.mjs +1 -2
- package/dist/js/packages/remote-core/src/ext-bridge/implementation.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/FlowThreadSerialization.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/Serializer.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/serializers/dataTransferText.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/serializers/date.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/serializers/file.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/serializers/fileList.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/serializers/formData.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/serializers/index.mjs +1 -2
- package/dist/js/packages/remote-core/src/serialization/serializers/passwordPolicy.mjs +1 -2
- package/dist/js/packages/remote-core/src/shim.mjs +1 -2
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __exportAll = (all, no_symbols) => {
|
|
4
4
|
let target = {};
|
|
@@ -9,5 +9,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
9
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
10
|
return target;
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { __exportAll };
|
package/dist/js/index-node.mjs
CHANGED
|
@@ -13,9 +13,8 @@ import { connectHostRenderRoot, connectHostRenderRootRef, connectRemoteReceiver
|
|
|
13
13
|
import { componentRenderedEventSchema, parseReportedEvent, reportedEventSchema } from "./packages/remote-core/src/events/remoteEvents.mjs";
|
|
14
14
|
import { connectRemoteIframe, connectRemoteIframeRef } from "./packages/remote-core/src/connection/connectRemoteIframe.mjs";
|
|
15
15
|
import { RemoteElement, RemoteEvent, RemoteReceiver } from "./index.mjs";
|
|
16
|
-
|
|
16
|
+
// src/index-node.ts
|
|
17
17
|
if (!domShimApplied) throw new Error("remote-core DOM shim failed to initialize");
|
|
18
|
-
//#endregion
|
|
19
18
|
export { FlowThreadSerialization, RemoteElement, RemoteError, RemoteEvent, RemoteReceiver, Serializer, Version, calendarDateSerializer, componentRenderedEventSchema, connectHostRenderRoot, connectHostRenderRootRef, connectRemoteIframe, connectRemoteIframeRef, connectRemoteReceiver, dataTransferTextSerializer, fileDeSerialize, fileListSerializer, fileSerialize, fileSerializer, formDataSerializer, isSerializedFile, parseReportedEvent, passwordPolicySerializer, reportedEventSchema };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=index-node.mjs.map
|
package/dist/js/index.mjs
CHANGED
|
@@ -16,9 +16,8 @@ import { connectRemoteIframe, connectRemoteIframeRef } from "./packages/remote-c
|
|
|
16
16
|
import "./packages/remote-core/src/connection/index.mjs";
|
|
17
17
|
import { RemoteReceiver } from "@mittwald/remote-dom-core/receivers";
|
|
18
18
|
import { RemoteElement, RemoteEvent } from "@mittwald/remote-dom-core/elements";
|
|
19
|
-
|
|
19
|
+
// src/index.ts
|
|
20
20
|
if (!domShimApplied) throw new Error("remote-core DOM shim failed to initialize");
|
|
21
|
-
//#endregion
|
|
22
21
|
export { FlowThreadSerialization, RemoteElement, RemoteError, RemoteEvent, RemoteReceiver, Serializer, Version, calendarDateSerializer, componentRenderedEventSchema, connectHostRenderRoot, connectHostRenderRootRef, connectRemoteIframe, connectRemoteIframeRef, connectRemoteReceiver, dataTransferTextSerializer, fileDeSerialize, fileListSerializer, fileSerialize, fileSerializer, formDataSerializer, isSerializedFile, parseReportedEvent, passwordPolicySerializer, reportedEventSchema };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@quilted+events@2.1.5/node_modules/@quilted/events/build/esm/abort/NestedAbortController.mjs
|
|
2
2
|
/**
|
|
3
3
|
* An `AbortController` that will automatically abort when any of
|
|
4
4
|
* its "parent" `AbortController`s abort. This is useful for when
|
|
@@ -29,7 +29,6 @@ var NestedAbortController = class extends AbortController {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { NestedAbortController };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=NestedAbortController.mjs.map
|
|
@@ -3,7 +3,7 @@ import { ThreadClosedError } from "./errors.mjs";
|
|
|
3
3
|
import { nanoid } from "./nanoid.mjs";
|
|
4
4
|
import { ThreadFunctionsAutomatic } from "./functions/ThreadFunctionsAutomatic.mjs";
|
|
5
5
|
import { ThreadSerializationStructuredClone } from "./serialization/ThreadSerializationStructuredClone.mjs";
|
|
6
|
-
|
|
6
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/Thread.mjs
|
|
7
7
|
/**
|
|
8
8
|
* A thread represents a target JavaScript environment that exposes a set
|
|
9
9
|
* of callable, asynchronous methods. The thread takes care of automatically
|
|
@@ -185,7 +185,6 @@ function createThreadImports(handlerForImport, imported) {
|
|
|
185
185
|
function missingThreadFunction() {
|
|
186
186
|
throw new Error(`You attempted to call a function that is not stored. It may have already been released.`);
|
|
187
187
|
}
|
|
188
|
-
//#endregion
|
|
189
188
|
export { Thread };
|
|
190
189
|
|
|
191
190
|
//# sourceMappingURL=Thread.mjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/constants.mjs
|
|
2
2
|
var SERIALIZE_METHOD = Symbol.for("quilt.threads.serialize");
|
|
3
3
|
var TRANSFERABLE = Symbol.for("quilt.threads.transferable");
|
|
4
|
-
//#endregion
|
|
5
4
|
export { SERIALIZE_METHOD, TRANSFERABLE };
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=constants.mjs.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/errors.mjs
|
|
2
2
|
var ThreadClosedError = class extends Error {
|
|
3
3
|
constructor() {
|
|
4
4
|
super("You attempted to call a function on a closed thread.");
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { ThreadClosedError };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=errors.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nanoid } from "../nanoid.mjs";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/functions/ThreadFunctionsAutomatic.mjs
|
|
3
3
|
/**
|
|
4
4
|
* A strategy for managing functions across threads that automatically releases
|
|
5
5
|
* functions when they are no longer needed. This is done by deserializing functions
|
|
@@ -64,7 +64,6 @@ var ThreadFunctionsAutomatic = class {
|
|
|
64
64
|
return finalization;
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
//#endregion
|
|
68
67
|
export { ThreadFunctionsAutomatic };
|
|
69
68
|
|
|
70
69
|
//# sourceMappingURL=ThreadFunctionsAutomatic.mjs.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/nanoid.mjs
|
|
2
2
|
var a = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3
3
|
function nanoid(e = 21) {
|
|
4
4
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e));
|
|
5
5
|
for (let n = 0; n < e; n++) t += a[63 & r[n]];
|
|
6
6
|
return t;
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { nanoid };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=nanoid.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SERIALIZE_METHOD, TRANSFERABLE } from "../constants.mjs";
|
|
2
2
|
import { isBasicObject, isIterator } from "./shared.mjs";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/serialization/ThreadSerializationStructuredClone.mjs
|
|
4
4
|
var FUNCTION = "_@f";
|
|
5
5
|
var ASYNC_ITERATOR = "_@i";
|
|
6
6
|
/**
|
|
@@ -127,7 +127,6 @@ var ThreadSerializationStructuredClone = class {
|
|
|
127
127
|
return value;
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
//#endregion
|
|
131
130
|
export { ThreadSerializationStructuredClone };
|
|
132
131
|
|
|
133
132
|
//# sourceMappingURL=ThreadSerializationStructuredClone.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/serialization/shared.mjs
|
|
2
2
|
function isIterator(value) {
|
|
3
3
|
return value != null && (Symbol.asyncIterator in value || Symbol.iterator in value) && typeof value.next === "function";
|
|
4
4
|
}
|
|
@@ -7,7 +7,6 @@ function isBasicObject(value) {
|
|
|
7
7
|
const prototype = Object.getPrototypeOf(value);
|
|
8
8
|
return prototype == null || prototype === Object.prototype;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { isBasicObject, isIterator };
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=shared.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Thread } from "../Thread.mjs";
|
|
2
2
|
import { windowToThreadTarget } from "./window/ThreadWindow.mjs";
|
|
3
3
|
import { ThreadNestedIframe } from "./ThreadNestedIframe.mjs";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/ThreadIframe.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Creates a thread from an iframe element.
|
|
7
7
|
*
|
|
@@ -148,7 +148,6 @@ var ThreadIframe = class ThreadIframe extends Thread {
|
|
|
148
148
|
this.iframe = iframe;
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
//#endregion
|
|
152
151
|
export { ThreadIframe };
|
|
153
152
|
|
|
154
153
|
//# sourceMappingURL=ThreadIframe.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Thread } from "../Thread.mjs";
|
|
2
2
|
import { nestedWindowToThreadTarget } from "./window/ThreadNestedWindow.mjs";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/ThreadNestedIframe.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Creates a thread from within an iframe nested in a top-level document.
|
|
6
6
|
*
|
|
@@ -72,7 +72,6 @@ var ThreadNestedIframe = class ThreadNestedIframe extends Thread {
|
|
|
72
72
|
this.parent = parent;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { ThreadNestedIframe };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=ThreadNestedIframe.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Thread } from "../../Thread.mjs";
|
|
2
2
|
import { RESPONSE_MESSAGE } from "./shared.mjs";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/window/ThreadNestedWindow.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Creates a thread from within a window created by a parent document (for example,
|
|
6
6
|
* an `iframe` or popup window).
|
|
@@ -114,7 +114,6 @@ function nestedWindowToThreadTarget(parent, { targetOrigin = "*" } = {}) {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
//#endregion
|
|
118
117
|
export { ThreadNestedWindow, nestedWindowToThreadTarget };
|
|
119
118
|
|
|
120
119
|
//# sourceMappingURL=ThreadNestedWindow.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Thread } from "../../Thread.mjs";
|
|
2
2
|
import { CHECK_MESSAGE } from "./shared.mjs";
|
|
3
3
|
import { ThreadNestedWindow } from "./ThreadNestedWindow.mjs";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/window/ThreadWindow.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Creates a thread from a `Window` created by this environment.
|
|
7
7
|
*
|
|
@@ -186,7 +186,6 @@ function windowToThreadTarget(window, { targetOrigin = "*" } = {}) {
|
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
//#endregion
|
|
190
189
|
export { ThreadWindow, windowToThreadTarget };
|
|
191
190
|
|
|
192
191
|
//# sourceMappingURL=ThreadWindow.mjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/threads/window/shared.mjs
|
|
2
2
|
var CHECK_MESSAGE = "quilt.threads.ping";
|
|
3
3
|
var RESPONSE_MESSAGE = "quilt.threads.pong";
|
|
4
|
-
//#endregion
|
|
5
4
|
export { CHECK_MESSAGE, RESPONSE_MESSAGE };
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=shared.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TRANSFERABLE } from "./constants.mjs";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.pnpm/@quilted+threads@3.3.1_patch_hash=fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/transfer.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Marks the value as being transferable between threads. The memory for this object
|
|
5
5
|
* will be moved to the target thread once the object is sent.
|
|
@@ -10,7 +10,6 @@ function markAsTransferable(value) {
|
|
|
10
10
|
Object.assign(value, { [TRANSFERABLE]: true });
|
|
11
11
|
return value;
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { markAsTransferable };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=transfer.mjs.map
|
|
@@ -3,7 +3,7 @@ import { FlowThreadSerialization } from "../serialization/FlowThreadSerializatio
|
|
|
3
3
|
import { Version } from "./types.mjs";
|
|
4
4
|
import { RemoteError } from "../error.mjs";
|
|
5
5
|
import "@mittwald/remote-dom-core/elements";
|
|
6
|
-
|
|
6
|
+
// src/connection/connectHostRenderRoot.ts
|
|
7
7
|
var incompatibleParentFrameError = () => new RemoteError("Could not find any compatible parent frame");
|
|
8
8
|
var connectRemoteReceiver = (root, receiverConnection) => import("@mittwald/remote-dom-core/elements").then(({ RemoteMutationObserver }) => {
|
|
9
9
|
new RemoteMutationObserver(receiverConnection).observe(root);
|
|
@@ -48,7 +48,6 @@ var connectHostRenderRootRef = (opts) => (ref) => {
|
|
|
48
48
|
Object.assign(ref, { __remoteConnection: connection });
|
|
49
49
|
return connection;
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { connectHostRenderRoot, connectHostRenderRootRef, connectRemoteReceiver };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=connectHostRenderRoot.mjs.map
|
|
@@ -4,7 +4,7 @@ import { Version } from "./types.mjs";
|
|
|
4
4
|
import { parseReportedEvent } from "../events/remoteEvents.mjs";
|
|
5
5
|
import { getWithMergedHostConfig } from "../ext-bridge/getWithMergedHostConfig.mjs";
|
|
6
6
|
import { emptyImplementation } from "../ext-bridge/implementation.mjs";
|
|
7
|
-
|
|
7
|
+
// src/connection/connectRemoteIframe.ts
|
|
8
8
|
var normalizeReadyEvent = (event) => {
|
|
9
9
|
if (typeof event === "number") return { version: event };
|
|
10
10
|
return event ?? { version: Version.v1 };
|
|
@@ -71,7 +71,6 @@ var connectRemoteIframeRef = (opts) => (ref) => {
|
|
|
71
71
|
Object.assign(ref, { __remoteConnection: connection });
|
|
72
72
|
return connection;
|
|
73
73
|
};
|
|
74
|
-
//#endregion
|
|
75
74
|
export { connectRemoteIframe, connectRemoteIframeRef };
|
|
76
75
|
|
|
77
76
|
//# sourceMappingURL=connectRemoteIframe.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/connection/types.ts
|
|
2
2
|
var Version = /* @__PURE__ */ function(Version) {
|
|
3
3
|
Version[Version["vUnknown"] = 0] = "vUnknown";
|
|
4
4
|
Version[Version["v1"] = 1] = "v1";
|
|
@@ -8,7 +8,6 @@ var Version = /* @__PURE__ */ function(Version) {
|
|
|
8
8
|
Version[Version["v5"] = 5] = "v5";
|
|
9
9
|
return Version;
|
|
10
10
|
}({});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Version };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=types.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/error.ts
|
|
2
2
|
var RemoteError = class extends Error {
|
|
3
3
|
constructor(message) {
|
|
4
4
|
super(message);
|
|
@@ -6,7 +6,6 @@ var RemoteError = class extends Error {
|
|
|
6
6
|
}
|
|
7
7
|
};
|
|
8
8
|
RemoteError.prototype.name = "RemoteError";
|
|
9
|
-
//#endregion
|
|
10
9
|
export { RemoteError };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=error.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
// src/events/remoteEvents.ts
|
|
3
3
|
var componentRenderedEventSchema = z.object({
|
|
4
4
|
event: z.literal("ComponentRendered"),
|
|
5
5
|
data: z.object({
|
|
@@ -11,7 +11,6 @@ var parseReportedEvent = (event) => {
|
|
|
11
11
|
const result = reportedEventSchema.safeParse(event);
|
|
12
12
|
return result.success ? result.data : void 0;
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { componentRenderedEventSchema, parseReportedEvent, reportedEventSchema };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=remoteEvents.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ext-bridge/getWithMergedHostConfig.ts
|
|
2
2
|
var getWithMergedHostConfig = (extBridgeConnection, hostConfig) => async () => {
|
|
3
3
|
const baseConfig = await extBridgeConnection.getConfig();
|
|
4
4
|
return {
|
|
@@ -6,7 +6,6 @@ var getWithMergedHostConfig = (extBridgeConnection, hostConfig) => async () => {
|
|
|
6
6
|
...baseConfig
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { getWithMergedHostConfig };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=getWithMergedHostConfig.mjs.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { RemoteError } from "../error.mjs";
|
|
2
|
-
|
|
2
|
+
// src/ext-bridge/implementation.ts
|
|
3
3
|
var emptyImplementation = new Proxy({}, { get() {
|
|
4
4
|
throw new RemoteError("Missing implementation for mittwald.extBridge");
|
|
5
5
|
} });
|
|
6
|
-
//#endregion
|
|
7
6
|
export { emptyImplementation };
|
|
8
7
|
|
|
9
8
|
//# sourceMappingURL=implementation.mjs.map
|
|
@@ -3,7 +3,7 @@ import { TRANSFERABLE } from "../../../../node_modules/.pnpm/@quilted_threads@3.
|
|
|
3
3
|
import { ThreadSerializationStructuredClone } from "../../../../node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/serialization/ThreadSerializationStructuredClone.mjs";
|
|
4
4
|
import { serializers_exports } from "./serializers/index.mjs";
|
|
5
5
|
import { isObjectType } from "remeda";
|
|
6
|
-
|
|
6
|
+
// src/serialization/FlowThreadSerialization.ts
|
|
7
7
|
var serializers = Object.values(serializers_exports).filter((val) => val instanceof Serializer);
|
|
8
8
|
var isReactValue = (val) => isObjectType(val) && "$$typeof" in val && typeof val.$$typeof === "symbol";
|
|
9
9
|
/**
|
|
@@ -90,7 +90,6 @@ var FlowThreadSerialization = class extends ThreadSerializationStructuredClone {
|
|
|
90
90
|
console.error(`Cannot send the React element <${label} /> to the host: rendered output is not serializable, and it was replaced with null. Pass it as a slot instead of a property — a property would have dropped the whole update.`);
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
-
//#endregion
|
|
94
93
|
export { FlowThreadSerialization };
|
|
95
94
|
|
|
96
95
|
//# sourceMappingURL=FlowThreadSerialization.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/serialization/Serializer.ts
|
|
2
2
|
var Key = "mittwald.flow-remote-core.serializer.name";
|
|
3
3
|
var Serializer = class {
|
|
4
4
|
options;
|
|
@@ -26,7 +26,6 @@ var Serializer = class {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { Serializer };
|
|
31
30
|
|
|
32
31
|
//# sourceMappingURL=Serializer.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Serializer } from "../Serializer.mjs";
|
|
2
|
-
|
|
2
|
+
// src/serialization/serializers/dataTransferText.ts
|
|
3
3
|
var dataTransferTextSerializer = new Serializer({
|
|
4
4
|
name: "DataTransferText",
|
|
5
5
|
serialize: {
|
|
@@ -16,7 +16,6 @@ var dataTransferTextSerializer = new Serializer({
|
|
|
16
16
|
return dataTransfer;
|
|
17
17
|
} }
|
|
18
18
|
});
|
|
19
|
-
//#endregion
|
|
20
19
|
export { dataTransferTextSerializer };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=dataTransferText.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Serializer } from "../Serializer.mjs";
|
|
2
2
|
import { CalendarDate, parseDate } from "@internationalized/date";
|
|
3
|
-
|
|
3
|
+
// src/serialization/serializers/date.ts
|
|
4
4
|
var calendarDateSerializer = new Serializer({
|
|
5
5
|
name: "CalendarDate",
|
|
6
6
|
serialize: {
|
|
@@ -9,7 +9,6 @@ var calendarDateSerializer = new Serializer({
|
|
|
9
9
|
},
|
|
10
10
|
deserialize: { apply: (asString) => parseDate(asString) }
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { calendarDateSerializer };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=date.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Serializer } from "../Serializer.mjs";
|
|
2
2
|
import { markAsTransferable } from "../../../../../node_modules/.pnpm/@quilted_threads@3.3.1_patch_hash_fa797cdfb8346ba050fd5d6367ccd451df47806c6ea34421e45e8_e52b779d86bc12aeba80f9d7805f6a15/node_modules/@quilted/threads/build/esm/transfer.mjs";
|
|
3
|
-
|
|
3
|
+
// src/serialization/serializers/file.ts
|
|
4
4
|
var isSerializedFile = (value) => {
|
|
5
5
|
return !!(value && typeof value === "object" && "name" in value && "type" in value && "lastModified" in value && "content" in value);
|
|
6
6
|
};
|
|
@@ -26,7 +26,6 @@ var fileSerializer = new Serializer({
|
|
|
26
26
|
},
|
|
27
27
|
deserialize: { apply: fileDeSerialize }
|
|
28
28
|
});
|
|
29
|
-
//#endregion
|
|
30
29
|
export { fileDeSerialize, fileSerialize, fileSerializer, isSerializedFile };
|
|
31
30
|
|
|
32
31
|
//# sourceMappingURL=file.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Serializer } from "../Serializer.mjs";
|
|
2
2
|
import { fileDeSerialize, fileSerialize } from "./file.mjs";
|
|
3
3
|
import "./index.mjs";
|
|
4
|
-
|
|
4
|
+
// src/serialization/serializers/fileList.ts
|
|
5
5
|
var fileListSerializer = new Serializer({
|
|
6
6
|
name: "FileList",
|
|
7
7
|
serialize: {
|
|
@@ -14,7 +14,6 @@ var fileListSerializer = new Serializer({
|
|
|
14
14
|
return dataTransfer.files;
|
|
15
15
|
} }
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { fileListSerializer };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=fileList.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Serializer } from "../Serializer.mjs";
|
|
2
2
|
import { fileDeSerialize, fileSerialize, isSerializedFile } from "./file.mjs";
|
|
3
3
|
import "./index.mjs";
|
|
4
|
-
|
|
4
|
+
// src/serialization/serializers/formData.ts
|
|
5
5
|
var formDataSerializer = new Serializer({
|
|
6
6
|
name: "FormData",
|
|
7
7
|
serialize: {
|
|
@@ -23,7 +23,6 @@ var formDataSerializer = new Serializer({
|
|
|
23
23
|
return formData;
|
|
24
24
|
} }
|
|
25
25
|
});
|
|
26
|
-
//#endregion
|
|
27
26
|
export { formDataSerializer };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=formData.mjs.map
|
|
@@ -5,7 +5,7 @@ import { fileListSerializer } from "./fileList.mjs";
|
|
|
5
5
|
import { dataTransferTextSerializer } from "./dataTransferText.mjs";
|
|
6
6
|
import { formDataSerializer } from "./formData.mjs";
|
|
7
7
|
import { passwordPolicySerializer } from "./passwordPolicy.mjs";
|
|
8
|
-
|
|
8
|
+
// src/serialization/serializers/index.ts
|
|
9
9
|
var serializers_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
calendarDateSerializer: () => calendarDateSerializer,
|
|
11
11
|
dataTransferTextSerializer: () => dataTransferTextSerializer,
|
|
@@ -17,7 +17,6 @@ var serializers_exports = /* @__PURE__ */ __exportAll({
|
|
|
17
17
|
isSerializedFile: () => isSerializedFile,
|
|
18
18
|
passwordPolicySerializer: () => passwordPolicySerializer
|
|
19
19
|
});
|
|
20
|
-
//#endregion
|
|
21
20
|
export { calendarDateSerializer, dataTransferTextSerializer, fileDeSerialize, fileListSerializer, fileSerialize, fileSerializer, formDataSerializer, isSerializedFile, passwordPolicySerializer, serializers_exports };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Serializer } from "../Serializer.mjs";
|
|
2
2
|
import { Policy } from "@mittwald/flow-react-components/mittwald-password-tools-js";
|
|
3
|
-
|
|
3
|
+
// src/serialization/serializers/passwordPolicy.ts
|
|
4
4
|
var passwordPolicySerializer = new Serializer({
|
|
5
5
|
name: "PasswordPolicy",
|
|
6
6
|
serialize: {
|
|
@@ -9,7 +9,6 @@ var passwordPolicySerializer = new Serializer({
|
|
|
9
9
|
},
|
|
10
10
|
deserialize: { apply: (policyDeclaration) => Policy.fromDeclaration(policyDeclaration) }
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { passwordPolicySerializer };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=passwordPolicy.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLElement, customElements } from "@lit-labs/ssr-dom-shim";
|
|
2
|
-
|
|
2
|
+
// src/shim.ts
|
|
3
3
|
/**
|
|
4
4
|
* Installs a minimal DOM shim so modules that subclass `HTMLElement` — the
|
|
5
5
|
* remote custom elements, via the remote-dom fork's `RemoteElement` — can be
|
|
@@ -27,7 +27,6 @@ var domShimApplied = (() => {
|
|
|
27
27
|
}
|
|
28
28
|
return true;
|
|
29
29
|
})();
|
|
30
|
-
//#endregion
|
|
31
30
|
export { domShimApplied };
|
|
32
31
|
|
|
33
32
|
//# sourceMappingURL=shim.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-remote-core",
|
|
3
|
-
"version": "1.6.0-next.
|
|
3
|
+
"version": "1.6.0-next.61",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://flow.mittwald.de",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"zod": "^4.4.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@mittwald/ext-bridge": "1.6.0-next.
|
|
40
|
-
"@mittwald/flow-core": "1.6.0-next.
|
|
41
|
-
"@mittwald/flow-react-components": "1.6.0-next.
|
|
42
|
-
"@mittwald/typescript-config": "1.6.0-next.
|
|
39
|
+
"@mittwald/ext-bridge": "1.6.0-next.61",
|
|
40
|
+
"@mittwald/flow-core": "1.6.0-next.61",
|
|
41
|
+
"@mittwald/flow-react-components": "1.6.0-next.61",
|
|
42
|
+
"@mittwald/typescript-config": "1.6.0-next.61",
|
|
43
43
|
"@types/node": "^25.9.3",
|
|
44
44
|
"nx": "^22.7.5",
|
|
45
45
|
"rimraf": "^6.1.3",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"vitest": "^4.1.11"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@mittwald/ext-bridge": "1.6.0-next.
|
|
55
|
-
"@mittwald/flow-react-components": "1.6.0-next.
|
|
54
|
+
"@mittwald/ext-bridge": "1.6.0-next.61",
|
|
55
|
+
"@mittwald/flow-react-components": "1.6.0-next.61"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@mittwald/ext-bridge": {
|
|
59
59
|
"optional": true
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b1f0f85be435468902a4eba166351f81cf54eef5"
|
|
63
63
|
}
|