@mittwald/flow-remote-core 0.2.0-alpha.781 → 0.2.0-alpha.783
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 +13 -0
- package/dist/js/core/src/file.mjs +10 -12
- package/dist/js/core/src/file.mjs.map +1 -1
- package/dist/js/core/src/index.mjs +1 -0
- package/dist/js/index-node.mjs +15 -16
- package/dist/js/index.mjs +17 -15
- package/dist/js/remote-core/src/connection/connectHostRenderRoot.mjs +45 -55
- package/dist/js/remote-core/src/connection/connectHostRenderRoot.mjs.map +1 -1
- package/dist/js/remote-core/src/connection/connectRemoteIframe.mjs +47 -62
- package/dist/js/remote-core/src/connection/connectRemoteIframe.mjs.map +1 -1
- package/dist/js/remote-core/src/connection/index.mjs +3 -0
- package/dist/js/remote-core/src/connection/types.mjs +11 -9
- package/dist/js/remote-core/src/connection/types.mjs.map +1 -1
- package/dist/js/remote-core/src/error.mjs +10 -8
- package/dist/js/remote-core/src/error.mjs.map +1 -1
- package/dist/js/remote-core/src/ext-bridge/implementation.mjs +8 -12
- package/dist/js/remote-core/src/ext-bridge/implementation.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/FlowThreadSerialization.mjs +47 -59
- package/dist/js/remote-core/src/serialization/FlowThreadSerialization.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/Serializer.mjs +33 -35
- package/dist/js/remote-core/src/serialization/Serializer.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/index.mjs +9 -0
- package/dist/js/remote-core/src/serialization/serializers/dataTransferText.mjs +20 -21
- package/dist/js/remote-core/src/serialization/serializers/dataTransferText.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/date.mjs +13 -14
- package/dist/js/remote-core/src/serialization/serializers/date.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/file.mjs +29 -29
- package/dist/js/remote-core/src/serialization/serializers/file.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/fileList.mjs +20 -22
- package/dist/js/remote-core/src/serialization/serializers/fileList.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/formData.mjs +27 -34
- package/dist/js/remote-core/src/serialization/serializers/formData.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/index.mjs +23 -7
- package/dist/js/remote-core/src/serialization/serializers/index.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/passwordPolicy.mjs +13 -14
- package/dist/js/remote-core/src/serialization/serializers/passwordPolicy.mjs.map +1 -1
- package/dist/js/remote-core/src/shim.mjs +11 -12
- package/dist/js/remote-core/src/shim.mjs.map +1 -1
- package/package.json +8 -8
- package/dist/js/index-node.mjs.map +0 -1
- package/dist/js/index.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowThreadSerialization.mjs","sources":["../../../../../src/serialization/FlowThreadSerialization.ts"],"sourcesContent":["import {\n ThreadSerializationStructuredClone,\n type ThreadSerializationOptions,\n TRANSFERABLE,\n} from \"@quilted/threads\";\nimport * as serializerModules from \"./serializers\";\nimport { isObjectType } from \"remeda\";\nimport { Serializer } from \"@/serialization/Serializer\";\n\nconst serializers = Object.values(serializerModules).filter(\n (val) => val instanceof Serializer,\n);\n\nexport class FlowThreadSerialization extends ThreadSerializationStructuredClone {\n public constructor() {\n const options: ThreadSerializationOptions = {\n serialize: (val, serialize) => {\n try {\n if (this.isSerializableByBase(val)) {\n return;\n }\n if (this.omitSerialization(val)) {\n return null;\n }\n for (const serializer of serializers) {\n const serialization = serializer.serialize(val);\n if (serialization.applied) {\n return serialize(serialization.result);\n }\n }\n if (isObjectType(val)) {\n return serialize({ ...val });\n }\n } catch (error) {\n console.error(\"Error while serializing\", error);\n throw error;\n }\n },\n deserialize: (val, serialize) => {\n try {\n for (const serializer of serializers) {\n const deserialization = serializer.deserialize(val);\n if (deserialization.applied) {\n return deserialization.result.value;\n }\n }\n return serialize(val);\n } catch (error) {\n console.error(\"Error while deserializing\", error);\n throw error;\n }\n },\n };\n super(options);\n }\n\n private isSerializableByBase(val: unknown) {\n return (\n val instanceof Map ||\n val instanceof Set ||\n Array.isArray(val) ||\n typeof val === \"function\" ||\n (isObjectType(val) && TRANSFERABLE in val)\n );\n }\n\n private omitSerialization(val: unknown) {\n return val instanceof HTMLElement || val === window;\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"FlowThreadSerialization.mjs","names":[],"sources":["../../../../../src/serialization/FlowThreadSerialization.ts"],"sourcesContent":["import {\n ThreadSerializationStructuredClone,\n type ThreadSerializationOptions,\n TRANSFERABLE,\n} from \"@quilted/threads\";\nimport * as serializerModules from \"./serializers\";\nimport { isObjectType } from \"remeda\";\nimport { Serializer } from \"@/serialization/Serializer\";\n\nconst serializers = Object.values(serializerModules).filter(\n (val) => val instanceof Serializer,\n);\n\nexport class FlowThreadSerialization extends ThreadSerializationStructuredClone {\n public constructor() {\n const options: ThreadSerializationOptions = {\n serialize: (val, serialize) => {\n try {\n if (this.isSerializableByBase(val)) {\n return;\n }\n if (this.omitSerialization(val)) {\n return null;\n }\n for (const serializer of serializers) {\n const serialization = serializer.serialize(val);\n if (serialization.applied) {\n return serialize(serialization.result);\n }\n }\n if (isObjectType(val)) {\n return serialize({ ...val });\n }\n } catch (error) {\n console.error(\"Error while serializing\", error);\n throw error;\n }\n },\n deserialize: (val, serialize) => {\n try {\n for (const serializer of serializers) {\n const deserialization = serializer.deserialize(val);\n if (deserialization.applied) {\n return deserialization.result.value;\n }\n }\n return serialize(val);\n } catch (error) {\n console.error(\"Error while deserializing\", error);\n throw error;\n }\n },\n };\n super(options);\n }\n\n private isSerializableByBase(val: unknown) {\n return (\n val instanceof Map ||\n val instanceof Set ||\n Array.isArray(val) ||\n typeof val === \"function\" ||\n (isObjectType(val) && TRANSFERABLE in val)\n );\n }\n\n private omitSerialization(val: unknown) {\n return val instanceof HTMLElement || val === window;\n }\n}\n"],"mappings":";;;;;AASA,IAAM,cAAc,OAAO,OAAO,oBAAkB,CAAC,QAClD,QAAQ,eAAe,WACzB;AAED,IAAa,0BAAb,cAA6C,mCAAmC;CAC9E,cAAqB;AAuCnB,QAtC4C;GAC1C,YAAY,KAAK,cAAc;AAC7B,QAAI;AACF,SAAI,KAAK,qBAAqB,IAAI,CAChC;AAEF,SAAI,KAAK,kBAAkB,IAAI,CAC7B,QAAO;AAET,UAAK,MAAM,cAAc,aAAa;MACpC,MAAM,gBAAgB,WAAW,UAAU,IAAI;AAC/C,UAAI,cAAc,QAChB,QAAO,UAAU,cAAc,OAAO;;AAG1C,SAAI,aAAa,IAAI,CACnB,QAAO,UAAU,EAAE,GAAG,KAAK,CAAC;aAEvB,OAAO;AACd,aAAQ,MAAM,2BAA2B,MAAM;AAC/C,WAAM;;;GAGV,cAAc,KAAK,cAAc;AAC/B,QAAI;AACF,UAAK,MAAM,cAAc,aAAa;MACpC,MAAM,kBAAkB,WAAW,YAAY,IAAI;AACnD,UAAI,gBAAgB,QAClB,QAAO,gBAAgB,OAAO;;AAGlC,YAAO,UAAU,IAAI;aACd,OAAO;AACd,aAAQ,MAAM,6BAA6B,MAAM;AACjD,WAAM;;;GAGX,CACa;;CAGhB,qBAA6B,KAAc;AACzC,SACE,eAAe,OACf,eAAe,OACf,MAAM,QAAQ,IAAI,IAClB,OAAO,QAAQ,cACd,aAAa,IAAI,IAAI,gBAAgB;;CAI1C,kBAA0B,KAAc;AACtC,SAAO,eAAe,eAAe,QAAQ"}
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
1
|
+
//#region src/serialization/Serializer.ts
|
|
2
|
+
var Key = "mittwald.flow-remote-core.serializer.name";
|
|
3
|
+
var Serializer = class {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
this.options = options;
|
|
6
|
+
}
|
|
7
|
+
apply(val, strategy) {
|
|
8
|
+
if (strategy.isApplicable(val)) return {
|
|
9
|
+
applied: true,
|
|
10
|
+
result: {
|
|
11
|
+
[Key]: this.options.name,
|
|
12
|
+
value: strategy.apply(val)
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
return { applied: false };
|
|
16
|
+
}
|
|
17
|
+
serialize(val) {
|
|
18
|
+
return this.apply(val, this.options.serialize);
|
|
19
|
+
}
|
|
20
|
+
deserialize(val) {
|
|
21
|
+
return this.apply(val, {
|
|
22
|
+
apply: (serialization) => {
|
|
23
|
+
return this.options.deserialize.apply(serialization.value);
|
|
24
|
+
},
|
|
25
|
+
isApplicable: (val) => {
|
|
26
|
+
return !!val && typeof val === "object" && Key in val && val[Key] === this.options.name;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
35
32
|
export { Serializer };
|
|
36
|
-
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=Serializer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Serializer.mjs","sources":["../../../../../src/serialization/Serializer.ts"],"sourcesContent":["interface SerializationStrategy<TIn, TOut> {\n isApplicable: (val: unknown) => val is TIn;\n apply: (val: TIn) => TOut;\n}\n\nconst Key = \"mittwald.flow-remote-core.serializer.name\";\n\nexport interface SuccessfulSerializationResult<T> {\n value: T;\n [Key]: string;\n}\n\nexport type SerializationResult<T> =\n | { applied: true; result: SuccessfulSerializationResult<T> }\n | { applied: false };\n\nexport class Serializer<TIn, TOut> {\n public constructor(\n private options: {\n name: string;\n serialize: SerializationStrategy<TIn, TOut>;\n deserialize: Pick<SerializationStrategy<TOut, TIn>, \"apply\">;\n },\n ) {}\n\n private apply<TIn, TOut>(\n val: unknown,\n strategy: SerializationStrategy<TIn, TOut>,\n ): SerializationResult<TOut> {\n if (strategy.isApplicable(val)) {\n return {\n applied: true,\n result: {\n [Key]: this.options.name,\n value: strategy.apply(val),\n },\n };\n }\n return {\n applied: false,\n };\n }\n\n public serialize(val: unknown): SerializationResult<TOut> {\n return this.apply<TIn, TOut>(val, this.options.serialize);\n }\n\n public deserialize(val: unknown): SerializationResult<TIn> {\n return this.apply(val, {\n apply: (serialization: SuccessfulSerializationResult<TOut>) => {\n return this.options.deserialize.apply(serialization.value);\n },\n isApplicable: (val): val is SuccessfulSerializationResult<TOut> => {\n return (\n !!val &&\n typeof val === \"object\" &&\n Key in val &&\n val[Key] === this.options.name\n );\n },\n });\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"Serializer.mjs","names":[],"sources":["../../../../../src/serialization/Serializer.ts"],"sourcesContent":["interface SerializationStrategy<TIn, TOut> {\n isApplicable: (val: unknown) => val is TIn;\n apply: (val: TIn) => TOut;\n}\n\nconst Key = \"mittwald.flow-remote-core.serializer.name\";\n\nexport interface SuccessfulSerializationResult<T> {\n value: T;\n [Key]: string;\n}\n\nexport type SerializationResult<T> =\n | { applied: true; result: SuccessfulSerializationResult<T> }\n | { applied: false };\n\nexport class Serializer<TIn, TOut> {\n public constructor(\n private options: {\n name: string;\n serialize: SerializationStrategy<TIn, TOut>;\n deserialize: Pick<SerializationStrategy<TOut, TIn>, \"apply\">;\n },\n ) {}\n\n private apply<TIn, TOut>(\n val: unknown,\n strategy: SerializationStrategy<TIn, TOut>,\n ): SerializationResult<TOut> {\n if (strategy.isApplicable(val)) {\n return {\n applied: true,\n result: {\n [Key]: this.options.name,\n value: strategy.apply(val),\n },\n };\n }\n return {\n applied: false,\n };\n }\n\n public serialize(val: unknown): SerializationResult<TOut> {\n return this.apply<TIn, TOut>(val, this.options.serialize);\n }\n\n public deserialize(val: unknown): SerializationResult<TIn> {\n return this.apply(val, {\n apply: (serialization: SuccessfulSerializationResult<TOut>) => {\n return this.options.deserialize.apply(serialization.value);\n },\n isApplicable: (val): val is SuccessfulSerializationResult<TOut> => {\n return (\n !!val &&\n typeof val === \"object\" &&\n Key in val &&\n val[Key] === this.options.name\n );\n },\n });\n }\n}\n"],"mappings":";AAKA,IAAM,MAAM;AAWZ,IAAa,aAAb,MAAmC;CACjC,YACE,SAKA;AALQ,OAAA,UAAA;;CAOV,MACE,KACA,UAC2B;AAC3B,MAAI,SAAS,aAAa,IAAI,CAC5B,QAAO;GACL,SAAS;GACT,QAAQ;KACL,MAAM,KAAK,QAAQ;IACpB,OAAO,SAAS,MAAM,IAAI;IAC3B;GACF;AAEH,SAAO,EACL,SAAS,OACV;;CAGH,UAAiB,KAAyC;AACxD,SAAO,KAAK,MAAiB,KAAK,KAAK,QAAQ,UAAU;;CAG3D,YAAmB,KAAwC;AACzD,SAAO,KAAK,MAAM,KAAK;GACrB,QAAQ,kBAAuD;AAC7D,WAAO,KAAK,QAAQ,YAAY,MAAM,cAAc,MAAM;;GAE5D,eAAe,QAAoD;AACjE,WACE,CAAC,CAAC,OACF,OAAO,QAAQ,YACf,OAAO,OACP,IAAI,SAAS,KAAK,QAAQ;;GAG/B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./Serializer.mjs";
|
|
2
|
+
import "./serializers/date.mjs";
|
|
3
|
+
import "./serializers/file.mjs";
|
|
4
|
+
import "./serializers/fileList.mjs";
|
|
5
|
+
import "./serializers/dataTransferText.mjs";
|
|
6
|
+
import "./serializers/formData.mjs";
|
|
7
|
+
import "./serializers/passwordPolicy.mjs";
|
|
8
|
+
import "./serializers/index.mjs";
|
|
9
|
+
import "./FlowThreadSerialization.mjs";
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
import { Serializer } from "../Serializer.mjs";
|
|
2
|
+
//#region src/serialization/serializers/dataTransferText.ts
|
|
3
|
+
var dataTransferTextSerializer = new Serializer({
|
|
4
|
+
name: "DataTransferText",
|
|
5
|
+
serialize: {
|
|
6
|
+
isApplicable: (val) => {
|
|
7
|
+
return val instanceof DataTransfer && val.types.every((type) => type === "text/plain");
|
|
8
|
+
},
|
|
9
|
+
apply: (dataTransfer) => {
|
|
10
|
+
return dataTransfer.getData("text") || dataTransfer.getData("text/plain");
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
deserialize: { apply: (asString) => {
|
|
14
|
+
const dataTransfer = new DataTransfer();
|
|
15
|
+
dataTransfer.setData("text", asString);
|
|
16
|
+
return dataTransfer;
|
|
17
|
+
} }
|
|
20
18
|
});
|
|
21
|
-
|
|
19
|
+
//#endregion
|
|
22
20
|
export { dataTransferTextSerializer };
|
|
23
|
-
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=dataTransferText.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataTransferText.mjs","sources":["../../../../../../src/serialization/serializers/dataTransferText.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\n\nexport const dataTransferTextSerializer = new Serializer<DataTransfer, string>({\n name: \"DataTransferText\",\n serialize: {\n isApplicable: (val): val is DataTransfer => {\n return (\n val instanceof DataTransfer &&\n val.types.every((type) => type === \"text/plain\")\n );\n },\n apply: (dataTransfer) => {\n return dataTransfer.getData(\"text\") || dataTransfer.getData(\"text/plain\");\n },\n },\n deserialize: {\n apply: (asString) => {\n const dataTransfer = new DataTransfer();\n dataTransfer.setData(\"text\", asString);\n return dataTransfer;\n },\n },\n});\n"],"
|
|
1
|
+
{"version":3,"file":"dataTransferText.mjs","names":[],"sources":["../../../../../../src/serialization/serializers/dataTransferText.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\n\nexport const dataTransferTextSerializer = new Serializer<DataTransfer, string>({\n name: \"DataTransferText\",\n serialize: {\n isApplicable: (val): val is DataTransfer => {\n return (\n val instanceof DataTransfer &&\n val.types.every((type) => type === \"text/plain\")\n );\n },\n apply: (dataTransfer) => {\n return dataTransfer.getData(\"text\") || dataTransfer.getData(\"text/plain\");\n },\n },\n deserialize: {\n apply: (asString) => {\n const dataTransfer = new DataTransfer();\n dataTransfer.setData(\"text\", asString);\n return dataTransfer;\n },\n },\n});\n"],"mappings":";;AAEA,IAAa,6BAA6B,IAAI,WAAiC;CAC7E,MAAM;CACN,WAAW;EACT,eAAe,QAA6B;AAC1C,UACE,eAAe,gBACf,IAAI,MAAM,OAAO,SAAS,SAAS,aAAa;;EAGpD,QAAQ,iBAAiB;AACvB,UAAO,aAAa,QAAQ,OAAO,IAAI,aAAa,QAAQ,aAAa;;EAE5E;CACD,aAAa,EACX,QAAQ,aAAa;EACnB,MAAM,eAAe,IAAI,cAAc;AACvC,eAAa,QAAQ,QAAQ,SAAS;AACtC,SAAO;IAEV;CACF,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
apply: (asString) => parseDate(asString)
|
|
12
|
-
}
|
|
1
|
+
import { Serializer } from "../Serializer.mjs";
|
|
2
|
+
import { CalendarDate, parseDate } from "@internationalized/date";
|
|
3
|
+
//#region src/serialization/serializers/date.ts
|
|
4
|
+
var calendarDateSerializer = new Serializer({
|
|
5
|
+
name: "CalendarDate",
|
|
6
|
+
serialize: {
|
|
7
|
+
isApplicable: (val) => val instanceof CalendarDate,
|
|
8
|
+
apply: (date) => date.toString()
|
|
9
|
+
},
|
|
10
|
+
deserialize: { apply: (asString) => parseDate(asString) }
|
|
13
11
|
});
|
|
14
|
-
|
|
12
|
+
//#endregion
|
|
15
13
|
export { calendarDateSerializer };
|
|
16
|
-
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=date.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.mjs","sources":["../../../../../../src/serialization/serializers/date.ts"],"sourcesContent":["import { CalendarDate } from \"@internationalized/date\";\nimport { parseDate } from \"@internationalized/date\";\nimport { Serializer } from \"@/serialization/Serializer\";\n\nexport const calendarDateSerializer = new Serializer<CalendarDate, string>({\n name: \"CalendarDate\",\n serialize: {\n isApplicable: (val) => val instanceof CalendarDate,\n apply: (date) => date.toString(),\n },\n deserialize: {\n apply: (asString) => parseDate(asString),\n },\n});\n"],"
|
|
1
|
+
{"version":3,"file":"date.mjs","names":[],"sources":["../../../../../../src/serialization/serializers/date.ts"],"sourcesContent":["import { CalendarDate } from \"@internationalized/date\";\nimport { parseDate } from \"@internationalized/date\";\nimport { Serializer } from \"@/serialization/Serializer\";\n\nexport const calendarDateSerializer = new Serializer<CalendarDate, string>({\n name: \"CalendarDate\",\n serialize: {\n isApplicable: (val) => val instanceof CalendarDate,\n apply: (date) => date.toString(),\n },\n deserialize: {\n apply: (asString) => parseDate(asString),\n },\n});\n"],"mappings":";;;AAIA,IAAa,yBAAyB,IAAI,WAAiC;CACzE,MAAM;CACN,WAAW;EACT,eAAe,QAAQ,eAAe;EACtC,QAAQ,SAAS,KAAK,UAAU;EACjC;CACD,aAAa,EACX,QAAQ,aAAa,UAAU,SAAS,EACzC;CACF,CAAC"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Serializer } from "../Serializer.mjs";
|
|
2
|
+
import { getAwaitArrayBuffer } from "../../../../core/src/file.mjs";
|
|
3
|
+
import "../../../../core/src/index.mjs";
|
|
4
|
+
import { markAsTransferable } from "@quilted/threads";
|
|
5
|
+
//#region src/serialization/serializers/file.ts
|
|
6
|
+
var isSerializedFile = (value) => {
|
|
7
|
+
return !!(value && typeof value === "object" && "name" in value && "type" in value && "lastModified" in value && "content" in value);
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
var fileSerialize = (file) => {
|
|
10
|
+
return {
|
|
11
|
+
name: file.name,
|
|
12
|
+
type: file.type,
|
|
13
|
+
lastModified: file.lastModified,
|
|
14
|
+
content: markAsTransferable(getAwaitArrayBuffer(file))
|
|
15
|
+
};
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
var fileDeSerialize = (file) => {
|
|
18
|
+
return new File([file.content], file.name, {
|
|
19
|
+
lastModified: file.lastModified,
|
|
20
|
+
type: file.type
|
|
21
|
+
});
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
apply: fileDeSerialize
|
|
30
|
-
}
|
|
23
|
+
var fileSerializer = new Serializer({
|
|
24
|
+
name: "File",
|
|
25
|
+
serialize: {
|
|
26
|
+
isApplicable: (something) => something instanceof File,
|
|
27
|
+
apply: fileSerialize
|
|
28
|
+
},
|
|
29
|
+
deserialize: { apply: fileDeSerialize }
|
|
31
30
|
});
|
|
32
|
-
|
|
31
|
+
//#endregion
|
|
33
32
|
export { fileDeSerialize, fileSerialize, fileSerializer, isSerializedFile };
|
|
34
|
-
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=file.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.mjs","sources":["../../../../../../src/serialization/serializers/file.ts"],"sourcesContent":["import { markAsTransferable } from \"@quilted/threads\";\nimport { Serializer } from \"@/serialization/Serializer\";\nimport { getAwaitArrayBuffer } from \"@mittwald/flow-core\";\n\nexport interface SerializedFile {\n name: string;\n type: string;\n lastModified: number;\n content: ArrayBuffer;\n}\n\nexport const isSerializedFile = (value: unknown): value is SerializedFile => {\n return !!(\n value &&\n typeof value === \"object\" &&\n \"name\" in value &&\n \"type\" in value &&\n \"lastModified\" in value &&\n \"content\" in value\n );\n};\n\nexport const fileSerialize = (file: File): SerializedFile => {\n return {\n name: file.name,\n type: file.type,\n lastModified: file.lastModified,\n content: markAsTransferable(getAwaitArrayBuffer(file)),\n };\n};\n\nexport const fileDeSerialize = (file: SerializedFile) => {\n return new File([file.content], file.name, {\n lastModified: file.lastModified,\n type: file.type,\n });\n};\n\nexport const fileSerializer = new Serializer<File, SerializedFile>({\n name: \"File\",\n serialize: {\n isApplicable: (something) => something instanceof File,\n apply: fileSerialize,\n },\n deserialize: {\n apply: fileDeSerialize,\n },\n});\n"],"
|
|
1
|
+
{"version":3,"file":"file.mjs","names":[],"sources":["../../../../../../src/serialization/serializers/file.ts"],"sourcesContent":["import { markAsTransferable } from \"@quilted/threads\";\nimport { Serializer } from \"@/serialization/Serializer\";\nimport { getAwaitArrayBuffer } from \"@mittwald/flow-core\";\n\nexport interface SerializedFile {\n name: string;\n type: string;\n lastModified: number;\n content: ArrayBuffer;\n}\n\nexport const isSerializedFile = (value: unknown): value is SerializedFile => {\n return !!(\n value &&\n typeof value === \"object\" &&\n \"name\" in value &&\n \"type\" in value &&\n \"lastModified\" in value &&\n \"content\" in value\n );\n};\n\nexport const fileSerialize = (file: File): SerializedFile => {\n return {\n name: file.name,\n type: file.type,\n lastModified: file.lastModified,\n content: markAsTransferable(getAwaitArrayBuffer(file)),\n };\n};\n\nexport const fileDeSerialize = (file: SerializedFile) => {\n return new File([file.content], file.name, {\n lastModified: file.lastModified,\n type: file.type,\n });\n};\n\nexport const fileSerializer = new Serializer<File, SerializedFile>({\n name: \"File\",\n serialize: {\n isApplicable: (something) => something instanceof File,\n apply: fileSerialize,\n },\n deserialize: {\n apply: fileDeSerialize,\n },\n});\n"],"mappings":";;;;;AAWA,IAAa,oBAAoB,UAA4C;AAC3E,QAAO,CAAC,EACN,SACA,OAAO,UAAU,YACjB,UAAU,SACV,UAAU,SACV,kBAAkB,SAClB,aAAa;;AAIjB,IAAa,iBAAiB,SAA+B;AAC3D,QAAO;EACL,MAAM,KAAK;EACX,MAAM,KAAK;EACX,cAAc,KAAK;EACnB,SAAS,mBAAmB,oBAAoB,KAAK,CAAC;EACvD;;AAGH,IAAa,mBAAmB,SAAyB;AACvD,QAAO,IAAI,KAAK,CAAC,KAAK,QAAQ,EAAE,KAAK,MAAM;EACzC,cAAc,KAAK;EACnB,MAAM,KAAK;EACZ,CAAC;;AAGJ,IAAa,iBAAiB,IAAI,WAAiC;CACjE,MAAM;CACN,WAAW;EACT,eAAe,cAAc,qBAAqB;EAClD,OAAO;EACR;CACD,aAAa,EACX,OAAO,iBACR;CACF,CAAC"}
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return dataTransfer.files;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
import { Serializer } from "../Serializer.mjs";
|
|
2
|
+
import { fileDeSerialize, fileSerialize } from "./file.mjs";
|
|
3
|
+
import "./index.mjs";
|
|
4
|
+
//#region src/serialization/serializers/fileList.ts
|
|
5
|
+
var fileListSerializer = new Serializer({
|
|
6
|
+
name: "FileList",
|
|
7
|
+
serialize: {
|
|
8
|
+
isApplicable: (something) => {
|
|
9
|
+
return something instanceof FileList;
|
|
10
|
+
},
|
|
11
|
+
apply: (fileList) => Array.from(fileList).map(fileSerialize)
|
|
12
|
+
},
|
|
13
|
+
deserialize: { apply: (arrayFiles) => {
|
|
14
|
+
const dataTransfer = new DataTransfer();
|
|
15
|
+
arrayFiles.forEach((f) => dataTransfer.items.add(fileDeSerialize(f)));
|
|
16
|
+
return dataTransfer.files;
|
|
17
|
+
} }
|
|
21
18
|
});
|
|
22
|
-
|
|
19
|
+
//#endregion
|
|
23
20
|
export { fileListSerializer };
|
|
24
|
-
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=fileList.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileList.mjs","sources":["../../../../../../src/serialization/serializers/fileList.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n type SerializedFile,\n} from \"@/serialization/serializers\";\n\nexport const fileListSerializer = new Serializer<FileList, SerializedFile[]>({\n name: \"FileList\",\n serialize: {\n isApplicable: (something) => {\n return something instanceof FileList;\n },\n apply: (fileList) => Array.from(fileList).map(fileSerialize),\n },\n deserialize: {\n apply: (arrayFiles) => {\n const dataTransfer = new DataTransfer();\n arrayFiles.forEach((f) => dataTransfer.items.add(fileDeSerialize(f)));\n return dataTransfer.files;\n },\n },\n});\n"],"
|
|
1
|
+
{"version":3,"file":"fileList.mjs","names":[],"sources":["../../../../../../src/serialization/serializers/fileList.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n type SerializedFile,\n} from \"@/serialization/serializers\";\n\nexport const fileListSerializer = new Serializer<FileList, SerializedFile[]>({\n name: \"FileList\",\n serialize: {\n isApplicable: (something) => {\n return something instanceof FileList;\n },\n apply: (fileList) => Array.from(fileList).map(fileSerialize),\n },\n deserialize: {\n apply: (arrayFiles) => {\n const dataTransfer = new DataTransfer();\n arrayFiles.forEach((f) => dataTransfer.items.add(fileDeSerialize(f)));\n return dataTransfer.files;\n },\n },\n});\n"],"mappings":";;;;AAOA,IAAa,qBAAqB,IAAI,WAAuC;CAC3E,MAAM;CACN,WAAW;EACT,eAAe,cAAc;AAC3B,UAAO,qBAAqB;;EAE9B,QAAQ,aAAa,MAAM,KAAK,SAAS,CAAC,IAAI,cAAc;EAC7D;CACD,aAAa,EACX,QAAQ,eAAe;EACrB,MAAM,eAAe,IAAI,cAAc;AACvC,aAAW,SAAS,MAAM,aAAa,MAAM,IAAI,gBAAgB,EAAE,CAAC,CAAC;AACrE,SAAO,aAAa;IAEvB;CACF,CAAC"}
|
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
formData.set(name, deserializedValue);
|
|
26
|
-
} else {
|
|
27
|
-
formData.append(name, deserializedValue);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return formData;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
import { Serializer } from "../Serializer.mjs";
|
|
2
|
+
import { fileDeSerialize, fileSerialize, isSerializedFile } from "./file.mjs";
|
|
3
|
+
import "./index.mjs";
|
|
4
|
+
//#region src/serialization/serializers/formData.ts
|
|
5
|
+
var formDataSerializer = new Serializer({
|
|
6
|
+
name: "FormData",
|
|
7
|
+
serialize: {
|
|
8
|
+
isApplicable: (val) => val instanceof FormData,
|
|
9
|
+
apply: (formData) => {
|
|
10
|
+
return formData.entries().toArray().map(([fieldName, fieldValue]) => {
|
|
11
|
+
if (fieldValue instanceof File) return [fieldName, fileSerialize(fieldValue)];
|
|
12
|
+
return [fieldName, fieldValue];
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
deserialize: { apply: (array) => {
|
|
17
|
+
const formData = new FormData();
|
|
18
|
+
for (const [name, value] of array) {
|
|
19
|
+
const deserializedValue = isSerializedFile(value) ? fileDeSerialize(value) : value;
|
|
20
|
+
if (!formData.has(name)) formData.set(name, deserializedValue);
|
|
21
|
+
else formData.append(name, deserializedValue);
|
|
22
|
+
}
|
|
23
|
+
return formData;
|
|
24
|
+
} }
|
|
33
25
|
});
|
|
34
|
-
|
|
26
|
+
//#endregion
|
|
35
27
|
export { formDataSerializer };
|
|
36
|
-
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=formData.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formData.mjs","sources":["../../../../../../src/serialization/serializers/formData.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n isSerializedFile,\n} from \"@/serialization/serializers\";\n\nexport const formDataSerializer = new Serializer<\n FormData,\n [string, FormDataEntryValue][]\n>({\n name: \"FormData\",\n serialize: {\n isApplicable: (val) => val instanceof FormData,\n apply: (formData) => {\n return formData\n .entries()\n .toArray()\n .map(([fieldName, fieldValue]) => {\n if (fieldValue instanceof File) {\n return [fieldName, fileSerialize(fieldValue)];\n }\n\n return [fieldName, fieldValue];\n }) as [string, FormDataEntryValue][];\n },\n },\n deserialize: {\n apply: (array) => {\n const formData = new FormData();\n for (const [name, value] of array) {\n const deserializedValue = isSerializedFile(value)\n ? fileDeSerialize(value)\n : value;\n\n if (!formData.has(name)) {\n formData.set(name, deserializedValue);\n } else {\n formData.append(name, deserializedValue);\n }\n }\n return formData;\n },\n },\n});\n"],"
|
|
1
|
+
{"version":3,"file":"formData.mjs","names":[],"sources":["../../../../../../src/serialization/serializers/formData.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n isSerializedFile,\n} from \"@/serialization/serializers\";\n\nexport const formDataSerializer = new Serializer<\n FormData,\n [string, FormDataEntryValue][]\n>({\n name: \"FormData\",\n serialize: {\n isApplicable: (val) => val instanceof FormData,\n apply: (formData) => {\n return formData\n .entries()\n .toArray()\n .map(([fieldName, fieldValue]) => {\n if (fieldValue instanceof File) {\n return [fieldName, fileSerialize(fieldValue)];\n }\n\n return [fieldName, fieldValue];\n }) as [string, FormDataEntryValue][];\n },\n },\n deserialize: {\n apply: (array) => {\n const formData = new FormData();\n for (const [name, value] of array) {\n const deserializedValue = isSerializedFile(value)\n ? fileDeSerialize(value)\n : value;\n\n if (!formData.has(name)) {\n formData.set(name, deserializedValue);\n } else {\n formData.append(name, deserializedValue);\n }\n }\n return formData;\n },\n },\n});\n"],"mappings":";;;;AAOA,IAAa,qBAAqB,IAAI,WAGpC;CACA,MAAM;CACN,WAAW;EACT,eAAe,QAAQ,eAAe;EACtC,QAAQ,aAAa;AACnB,UAAO,SACJ,SAAS,CACT,SAAS,CACT,KAAK,CAAC,WAAW,gBAAgB;AAChC,QAAI,sBAAsB,KACxB,QAAO,CAAC,WAAW,cAAc,WAAW,CAAC;AAG/C,WAAO,CAAC,WAAW,WAAW;KAC9B;;EAEP;CACD,aAAa,EACX,QAAQ,UAAU;EAChB,MAAM,WAAW,IAAI,UAAU;AAC/B,OAAK,MAAM,CAAC,MAAM,UAAU,OAAO;GACjC,MAAM,oBAAoB,iBAAiB,MAAM,GAC7C,gBAAgB,MAAM,GACtB;AAEJ,OAAI,CAAC,SAAS,IAAI,KAAK,CACrB,UAAS,IAAI,MAAM,kBAAkB;OAErC,UAAS,OAAO,MAAM,kBAAkB;;AAG5C,SAAO;IAEV;CACF,CAAC"}
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { calendarDateSerializer } from "./date.mjs";
|
|
3
|
+
import { fileDeSerialize, fileSerialize, fileSerializer, isSerializedFile } from "./file.mjs";
|
|
4
|
+
import { fileListSerializer } from "./fileList.mjs";
|
|
5
|
+
import { dataTransferTextSerializer } from "./dataTransferText.mjs";
|
|
6
|
+
import { formDataSerializer } from "./formData.mjs";
|
|
7
|
+
import { passwordPolicySerializer } from "./passwordPolicy.mjs";
|
|
8
|
+
//#region src/serialization/serializers/index.ts
|
|
9
|
+
var serializers_exports = /* @__PURE__ */ __exportAll({
|
|
10
|
+
calendarDateSerializer: () => calendarDateSerializer,
|
|
11
|
+
dataTransferTextSerializer: () => dataTransferTextSerializer,
|
|
12
|
+
fileDeSerialize: () => fileDeSerialize,
|
|
13
|
+
fileListSerializer: () => fileListSerializer,
|
|
14
|
+
fileSerialize: () => fileSerialize,
|
|
15
|
+
fileSerializer: () => fileSerializer,
|
|
16
|
+
formDataSerializer: () => formDataSerializer,
|
|
17
|
+
isSerializedFile: () => isSerializedFile,
|
|
18
|
+
passwordPolicySerializer: () => passwordPolicySerializer
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { serializers_exports };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../src/serialization/serializers/index.ts"],"sourcesContent":["export * from \"./date\";\nexport * from \"./file\";\nexport * from \"./fileList\";\nexport * from \"./dataTransferText\";\nexport * from \"./formData\";\nexport * from \"./passwordPolicy\";\n"],"mappings":""}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
import { Policy } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
apply: (policyDeclaration) => Policy.fromDeclaration(policyDeclaration)
|
|
12
|
-
}
|
|
1
|
+
import { Serializer } from "../Serializer.mjs";
|
|
2
|
+
import { Policy } from "@mittwald/flow-react-components/mittwald-password-tools-js";
|
|
3
|
+
//#region src/serialization/serializers/passwordPolicy.ts
|
|
4
|
+
var passwordPolicySerializer = new Serializer({
|
|
5
|
+
name: "PasswordPolicy",
|
|
6
|
+
serialize: {
|
|
7
|
+
isApplicable: (val) => Policy.isPolicy(val),
|
|
8
|
+
apply: (policy) => policy.toDeclaration()
|
|
9
|
+
},
|
|
10
|
+
deserialize: { apply: (policyDeclaration) => Policy.fromDeclaration(policyDeclaration) }
|
|
13
11
|
});
|
|
14
|
-
|
|
12
|
+
//#endregion
|
|
15
13
|
export { passwordPolicySerializer };
|
|
16
|
-
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=passwordPolicy.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passwordPolicy.mjs","sources":["../../../../../../src/serialization/serializers/passwordPolicy.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n Policy,\n type PolicyDeclaration,\n} from \"@mittwald/flow-react-components/mittwald-password-tools-js\";\n\nexport const passwordPolicySerializer = new Serializer<\n Policy,\n PolicyDeclaration\n>({\n name: \"PasswordPolicy\",\n serialize: {\n isApplicable: (val) => Policy.isPolicy(val),\n apply: (policy) => policy.toDeclaration(),\n },\n deserialize: {\n apply: (policyDeclaration) => Policy.fromDeclaration(policyDeclaration),\n },\n});\n"],"
|
|
1
|
+
{"version":3,"file":"passwordPolicy.mjs","names":[],"sources":["../../../../../../src/serialization/serializers/passwordPolicy.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n Policy,\n type PolicyDeclaration,\n} from \"@mittwald/flow-react-components/mittwald-password-tools-js\";\n\nexport const passwordPolicySerializer = new Serializer<\n Policy,\n PolicyDeclaration\n>({\n name: \"PasswordPolicy\",\n serialize: {\n isApplicable: (val) => Policy.isPolicy(val),\n apply: (policy) => policy.toDeclaration(),\n },\n deserialize: {\n apply: (policyDeclaration) => Policy.fromDeclaration(policyDeclaration),\n },\n});\n"],"mappings":";;;AAMA,IAAa,2BAA2B,IAAI,WAG1C;CACA,MAAM;CACN,WAAW;EACT,eAAe,QAAQ,OAAO,SAAS,IAAI;EAC3C,QAAQ,WAAW,OAAO,eAAe;EAC1C;CACD,aAAa,EACX,QAAQ,sBAAsB,OAAO,gBAAgB,kBAAkB,EACxE;CACF,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { HTMLElement, customElements } from
|
|
2
|
-
|
|
1
|
+
import { HTMLElement, customElements } from "@lit-labs/ssr-dom-shim";
|
|
2
|
+
//#region src/shim.ts
|
|
3
3
|
globalThis.HTMLElement = HTMLElement;
|
|
4
4
|
globalThis.customElements = customElements;
|
|
5
5
|
globalThis.MutationObserver = class MutationObserver {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
takeRecords() {
|
|
13
|
-
return [];
|
|
14
|
-
}
|
|
6
|
+
constructor() {}
|
|
7
|
+
disconnect() {}
|
|
8
|
+
observe() {}
|
|
9
|
+
takeRecords() {
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
15
12
|
};
|
|
16
|
-
//#
|
|
13
|
+
//#endregion
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=shim.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.mjs","sources":["../../../../src/shim.ts"],"sourcesContent":["import { HTMLElement, customElements } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement = HTMLElement;\nglobalThis.customElements = customElements;\nglobalThis.MutationObserver = class MutationObserver {\n public constructor() {\n // mocked\n }\n public disconnect() {\n // mocked\n }\n public observe() {\n // mocked\n }\n public takeRecords() {\n return [];\n }\n};\n"],"
|
|
1
|
+
{"version":3,"file":"shim.mjs","names":[],"sources":["../../../../src/shim.ts"],"sourcesContent":["import { HTMLElement, customElements } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement = HTMLElement;\nglobalThis.customElements = customElements;\nglobalThis.MutationObserver = class MutationObserver {\n public constructor() {\n // mocked\n }\n public disconnect() {\n // mocked\n }\n public observe() {\n // mocked\n }\n public takeRecords() {\n return [];\n }\n};\n"],"mappings":";;AAEA,WAAW,cAAc;AACzB,WAAW,iBAAiB;AAC5B,WAAW,mBAAmB,MAAM,iBAAiB;CACnD,cAAqB;CAGrB,aAAoB;CAGpB,UAAiB;CAGjB,cAAqB;AACnB,SAAO,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-remote-core",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.783",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"remeda": "^2.33.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
37
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.783",
|
|
38
38
|
"@mittwald/flow-core": "",
|
|
39
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
39
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.783",
|
|
40
40
|
"@mittwald/typescript-config": "",
|
|
41
41
|
"@types/node": "^24.10.9",
|
|
42
42
|
"nx": "^22.4.4",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"rimraf": "^6.1.2",
|
|
45
45
|
"rollup-preserve-directives": "^1.1.3",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
|
-
"vite": "^
|
|
47
|
+
"vite": "^8.0.8",
|
|
48
48
|
"vite-plugin-checker": "^0.12.0",
|
|
49
49
|
"vite-plugin-dts": "^4.5.4",
|
|
50
50
|
"vite-plugin-externalize-deps": "^0.10.0",
|
|
51
|
-
"vitest": "^4.
|
|
51
|
+
"vitest": "^4.1.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
55
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
54
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.782",
|
|
55
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.782"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@mittwald/ext-bridge": {
|
|
59
59
|
"optional": true
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "433184ac008344ac57082a1505fa6041b82e1bcc"
|
|
63
63
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-node.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/js/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|