@mittwald/flow-remote-vue-components 1.5.63 → 1.5.65

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/USAGE.md CHANGED
@@ -68,6 +68,12 @@ createApp({
68
68
  }).mount("#app");
69
69
  ```
70
70
 
71
+ `RemoteRoot` talks only to a host on an mStudio origin or on your app's own
72
+ origin. To develop against another host, add its origin with the
73
+ `allowedHostOrigins` prop. `hostPathnameChanged` emits relative app paths only.
74
+ Your frontend must also send a `frame-ancestors` CSP header — see the
75
+ [ext-bridge USAGE.md](https://github.com/mittwald/flow/blob/main/packages/ext-bridge/USAGE.md).
76
+
71
77
  The full explainer:
72
78
  <https://github.com/mittwald/flow/blob/main/docs/remote-ui.md>.
73
79
 
@@ -6,7 +6,7 @@ import { useWatchPathname } from "./remote-vue-components/src/composables/useWat
6
6
  import { isRenderError } from "./remote-vue-components/src/lib/isRenderError.mjs";
7
7
  import { stringifyError } from "./remote-vue-components/src/lib/stringifyError.mjs";
8
8
  import { defineComponent, h, onErrorCaptured, onMounted, ref, watch } from "vue";
9
- import { connectHostRenderRootRef, connectRemoteReceiver } from "@mittwald/flow-remote-core";
9
+ import { connectHostRenderRootRef, connectRemoteReceiver, toRelativePathname } from "@mittwald/flow-remote-core";
10
10
  import { initExtBridge } from "@mittwald/ext-bridge/browser";
11
11
  // src/components/RemoteRoot.ts
12
12
  /**
@@ -38,6 +38,15 @@ var RemoteRoot = defineComponent({
38
38
  default: void 0
39
39
  },
40
40
  /**
41
+ * Additional host origins the remote app accepts, e.g. for local
42
+ * development. The mStudio origins and the app's own origin are always
43
+ * allowed.
44
+ */
45
+ allowedHostOrigins: {
46
+ type: Array,
47
+ default: void 0
48
+ },
49
+ /**
41
50
  * Internal use only: renders against a receiver in the same realm instead
42
51
  * of connecting to a parent frame.
43
52
  */
@@ -87,11 +96,15 @@ var RemoteRoot = defineComponent({
87
96
  }
88
97
  initExtBridge();
89
98
  connectHostRenderRootRef({
90
- onPathnameChanged: (pathname) => emit("hostPathnameChanged", pathname),
99
+ onPathnameChanged: (pathname) => {
100
+ const relativePathname = toRelativePathname(pathname);
101
+ if (relativePathname !== void 0) emit("hostPathnameChanged", relativePathname);
102
+ },
91
103
  onHostError: (error) => {
92
104
  failure.value = new Error(error);
93
105
  },
94
- packageVersion
106
+ packageVersion,
107
+ allowedHostOrigins: props.allowedHostOrigins
95
108
  })(root)?.then(async (hostConnection) => {
96
109
  connection.value = hostConnection;
97
110
  setIsLoading();
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRoot.mjs","names":[],"sources":["../../src/components/RemoteRoot.ts"],"sourcesContent":["import { DeprecationWarningProvider } from \"@/components/DeprecationWarningProvider\";\nimport { provideRemoteContext } from \"@/composables/remoteContext\";\nimport { useWatchPathname } from \"@/composables/useWatchPathname\";\nimport { isRenderError } from \"@/lib/isRenderError\";\nimport { stringifyError } from \"@/lib/stringifyError\";\nimport { packageVersion } from \"@/version\";\nimport {\n connectHostRenderRootRef,\n connectRemoteReceiver,\n type RemoteReceiver,\n type RemoteToHostConnection,\n} from \"@mittwald/flow-remote-core\";\nimport { initExtBridge } from \"@mittwald/ext-bridge/browser\";\nimport {\n defineComponent,\n h,\n onErrorCaptured,\n onMounted,\n ref,\n watch,\n type PropType,\n type StyleValue,\n} from \"vue\";\nimport { composition } from \"@/lib/composition\";\n\n/**\n * Hides the remote tree without unmounting it: the elements have to exist and\n * mutate, because those mutations are the protocol — the host renders the\n * visible output.\n */\nconst hiddenStyle: StyleValue = {\n visibility: \"hidden\",\n height: 0,\n width: 0,\n border: \"none\",\n position: \"absolute\",\n marginLeft: \"-9999px\",\n};\n\n/**\n * Connects a Vue app to the mStudio host and renders its children into the\n * remote tree.\n *\n * Everything below it renders `flr-*` elements, never visible DOM — see\n * `docs/remote-ui.md`.\n */\nexport const RemoteRoot = defineComponent({\n name: \"RemoteRoot\",\n\n props: {\n /** Forwarded to the host, which shows its own loading state. */\n isLoading: { type: Boolean, default: undefined },\n /**\n * Internal use only: renders against a receiver in the same realm instead\n * of connecting to a parent frame.\n */\n __remoteReceiver: {\n type: Object as PropType<RemoteReceiver>,\n default: undefined,\n },\n },\n\n emits: {\n hostPathnameChanged: (pathname: string) => typeof pathname === \"string\",\n },\n\n setup(props, { slots, emit }) {\n const rootRef = ref<HTMLDivElement>();\n const connection = ref<RemoteToHostConnection>();\n const language = ref<string>();\n const isConnected = ref(false);\n const failure = ref<unknown>();\n\n const reportedComponents = new Set<string>();\n\n provideRemoteContext({\n connection,\n language,\n reportComponentUsage: (component) => {\n if (reportedComponents.has(component)) {\n return;\n }\n reportedComponents.add(component);\n\n void connection.value?.imports\n .reportEvent?.({ event: \"ComponentRendered\", data: { component } })\n ?.catch(() => {\n // ignore: host does not support event reporting\n });\n },\n });\n\n const setIsLoading = () => {\n if (props.isLoading !== undefined) {\n connection.value?.imports.setIsLoading(props.isLoading);\n }\n };\n\n watch(() => props.isLoading, setIsLoading);\n\n useWatchPathname((pathname) =>\n connection.value?.imports.setNavigationState({\n pathname,\n isPending: false,\n }),\n );\n\n /*\n * A render error in the extension is not the host's error to guess at: the\n * host shows its own failure state and the message travels with it. Any\n * other error — a hook, a watcher, an event handler, sync or async — is\n * left to the app. Every error goes on to `app.config.errorHandler`.\n */\n onErrorCaptured((error, _instance, info) => {\n if (isRenderError(info)) {\n void connection.value?.imports.setError(stringifyError(error));\n }\n });\n\n onMounted(() => {\n const root = rootRef.value;\n if (!root) {\n return;\n }\n\n if (props.__remoteReceiver) {\n void connectRemoteReceiver(root, props.__remoteReceiver.connection);\n isConnected.value = true;\n return;\n }\n\n initExtBridge();\n\n void connectHostRenderRootRef({\n onPathnameChanged: (pathname) => emit(\"hostPathnameChanged\", pathname),\n onHostError: (error) => {\n failure.value = new Error(error);\n },\n packageVersion,\n })(root)\n ?.then(async (hostConnection) => {\n connection.value = hostConnection;\n setIsLoading();\n const hostConfig = await hostConnection.imports.getHostConfig();\n language.value = hostConfig.language?.trim() || undefined;\n isConnected.value = true;\n })\n .catch((error: unknown) => {\n failure.value = error;\n });\n });\n\n return () => {\n if (failure.value) {\n throw failure.value;\n }\n\n /*\n * The host is told about deprecated paths an extension still uses, the\n * same way the React root reports them — that report is how mStudio\n * learns who to inform before something is removed.\n */\n const children = isConnected.value\n ? h(\n DeprecationWarningProvider,\n {\n onWarning: (message: string) => {\n void connection.value?.imports\n .reportDeprecation?.(message)\n ?.catch(() => {\n // ignore: host does not support deprecation reporting\n });\n },\n },\n { default: () => slots.default?.() },\n )\n : undefined;\n\n return h(\n \"div\",\n { ref: rootRef, style: props.__remoteReceiver ? hiddenStyle : {} },\n children,\n );\n };\n },\n});\n\ncomposition(RemoteRoot);\n\nexport default RemoteRoot;\n"],"mappings":";;;;;;;;;;;;;;;;AA8BA,IAAM,cAA0B;CAC9B,YAAY;CACZ,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,UAAU;CACV,YAAY;AACd;;;;;;;;AASA,IAAa,aAAa,gBAAgB;CACxC,MAAM;CAEN,OAAO;;EAEL,WAAW;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;;;;;EAK/C,kBAAkB;GAChB,MAAM;GACN,SAAS,KAAA;EACX;CACF;CAEA,OAAO,EACL,sBAAsB,aAAqB,OAAO,aAAa,SACjE;CAEA,MAAM,OAAO,EAAE,OAAO,QAAQ;EAC5B,MAAM,UAAU,IAAoB;EACpC,MAAM,aAAa,IAA4B;EAC/C,MAAM,WAAW,IAAY;EAC7B,MAAM,cAAc,IAAI,KAAK;EAC7B,MAAM,UAAU,IAAa;EAE7B,MAAM,qCAAqB,IAAI,IAAY;EAE3C,qBAAqB;GACnB;GACA;GACA,uBAAuB,cAAc;IACnC,IAAI,mBAAmB,IAAI,SAAS,GAClC;IAEF,mBAAmB,IAAI,SAAS;IAEhC,WAAgB,OAAO,QACpB,cAAc;KAAE,OAAO;KAAqB,MAAM,EAAE,UAAU;IAAE,CAAC,CAAC,EACjE,YAAY,CAEd,CAAC;GACL;EACF,CAAC;E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E,GACjE,QACF;EACF;CACF;AACF,CAAC;AAED,YAAY,UAAU"}
1
+ {"version":3,"file":"RemoteRoot.mjs","names":[],"sources":["../../src/components/RemoteRoot.ts"],"sourcesContent":["import { DeprecationWarningProvider } from \"@/components/DeprecationWarningProvider\";\nimport { provideRemoteContext } from \"@/composables/remoteContext\";\nimport { useWatchPathname } from \"@/composables/useWatchPathname\";\nimport { isRenderError } from \"@/lib/isRenderError\";\nimport { stringifyError } from \"@/lib/stringifyError\";\nimport { packageVersion } from \"@/version\";\nimport {\n connectHostRenderRootRef,\n connectRemoteReceiver,\n toRelativePathname,\n type RemoteReceiver,\n type RemoteToHostConnection,\n} from \"@mittwald/flow-remote-core\";\nimport { initExtBridge } from \"@mittwald/ext-bridge/browser\";\nimport {\n defineComponent,\n h,\n onErrorCaptured,\n onMounted,\n ref,\n watch,\n type PropType,\n type StyleValue,\n} from \"vue\";\nimport { composition } from \"@/lib/composition\";\n\n/**\n * Hides the remote tree without unmounting it: the elements have to exist and\n * mutate, because those mutations are the protocol — the host renders the\n * visible output.\n */\nconst hiddenStyle: StyleValue = {\n visibility: \"hidden\",\n height: 0,\n width: 0,\n border: \"none\",\n position: \"absolute\",\n marginLeft: \"-9999px\",\n};\n\n/**\n * Connects a Vue app to the mStudio host and renders its children into the\n * remote tree.\n *\n * Everything below it renders `flr-*` elements, never visible DOM — see\n * `docs/remote-ui.md`.\n */\nexport const RemoteRoot = defineComponent({\n name: \"RemoteRoot\",\n\n props: {\n /** Forwarded to the host, which shows its own loading state. */\n isLoading: { type: Boolean, default: undefined },\n /**\n * Additional host origins the remote app accepts, e.g. for local\n * development. The mStudio origins and the app's own origin are always\n * allowed.\n */\n allowedHostOrigins: {\n type: Array as PropType<string[]>,\n default: undefined,\n },\n /**\n * Internal use only: renders against a receiver in the same realm instead\n * of connecting to a parent frame.\n */\n __remoteReceiver: {\n type: Object as PropType<RemoteReceiver>,\n default: undefined,\n },\n },\n\n emits: {\n hostPathnameChanged: (pathname: string) => typeof pathname === \"string\",\n },\n\n setup(props, { slots, emit }) {\n const rootRef = ref<HTMLDivElement>();\n const connection = ref<RemoteToHostConnection>();\n const language = ref<string>();\n const isConnected = ref(false);\n const failure = ref<unknown>();\n\n const reportedComponents = new Set<string>();\n\n provideRemoteContext({\n connection,\n language,\n reportComponentUsage: (component) => {\n if (reportedComponents.has(component)) {\n return;\n }\n reportedComponents.add(component);\n\n void connection.value?.imports\n .reportEvent?.({ event: \"ComponentRendered\", data: { component } })\n ?.catch(() => {\n // ignore: host does not support event reporting\n });\n },\n });\n\n const setIsLoading = () => {\n if (props.isLoading !== undefined) {\n connection.value?.imports.setIsLoading(props.isLoading);\n }\n };\n\n watch(() => props.isLoading, setIsLoading);\n\n useWatchPathname((pathname) =>\n connection.value?.imports.setNavigationState({\n pathname,\n isPending: false,\n }),\n );\n\n /*\n * A render error in the extension is not the host's error to guess at: the\n * host shows its own failure state and the message travels with it. Any\n * other error — a hook, a watcher, an event handler, sync or async — is\n * left to the app. Every error goes on to `app.config.errorHandler`.\n */\n onErrorCaptured((error, _instance, info) => {\n if (isRenderError(info)) {\n void connection.value?.imports.setError(stringifyError(error));\n }\n });\n\n onMounted(() => {\n const root = rootRef.value;\n if (!root) {\n return;\n }\n\n if (props.__remoteReceiver) {\n void connectRemoteReceiver(root, props.__remoteReceiver.connection);\n isConnected.value = true;\n return;\n }\n\n initExtBridge();\n\n void connectHostRenderRootRef({\n onPathnameChanged: (pathname) => {\n const relativePathname = toRelativePathname(pathname);\n if (relativePathname !== undefined) {\n emit(\"hostPathnameChanged\", relativePathname);\n }\n },\n onHostError: (error) => {\n failure.value = new Error(error);\n },\n packageVersion,\n allowedHostOrigins: props.allowedHostOrigins,\n })(root)\n ?.then(async (hostConnection) => {\n connection.value = hostConnection;\n setIsLoading();\n const hostConfig = await hostConnection.imports.getHostConfig();\n language.value = hostConfig.language?.trim() || undefined;\n isConnected.value = true;\n })\n .catch((error: unknown) => {\n failure.value = error;\n });\n });\n\n return () => {\n if (failure.value) {\n throw failure.value;\n }\n\n /*\n * The host is told about deprecated paths an extension still uses, the\n * same way the React root reports them — that report is how mStudio\n * learns who to inform before something is removed.\n */\n const children = isConnected.value\n ? h(\n DeprecationWarningProvider,\n {\n onWarning: (message: string) => {\n void connection.value?.imports\n .reportDeprecation?.(message)\n ?.catch(() => {\n // ignore: host does not support deprecation reporting\n });\n },\n },\n { default: () => slots.default?.() },\n )\n : undefined;\n\n return h(\n \"div\",\n { ref: rootRef, style: props.__remoteReceiver ? hiddenStyle : {} },\n children,\n );\n };\n },\n});\n\ncomposition(RemoteRoot);\n\nexport default RemoteRoot;\n"],"mappings":";;;;;;;;;;;;;;;;AA+BA,IAAM,cAA0B;CAC9B,YAAY;CACZ,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,UAAU;CACV,YAAY;AACd;;;;;;;;AASA,IAAa,aAAa,gBAAgB;CACxC,MAAM;CAEN,OAAO;;EAEL,WAAW;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;;;;;;EAM/C,oBAAoB;GAClB,MAAM;GACN,SAAS,KAAA;EACX;;;;;EAKA,kBAAkB;GAChB,MAAM;GACN,SAAS,KAAA;EACX;CACF;CAEA,OAAO,EACL,sBAAsB,aAAqB,OAAO,aAAa,SACjE;CAEA,MAAM,OAAO,EAAE,OAAO,QAAQ;EAC5B,MAAM,UAAU,IAAoB;EACpC,MAAM,aAAa,IAA4B;EAC/C,MAAM,WAAW,IAAY;EAC7B,MAAM,cAAc,IAAI,KAAK;EAC7B,MAAM,UAAU,IAAa;EAE7B,MAAM,qCAAqB,IAAI,IAAY;EAE3C,qBAAqB;GACnB;GACA;GACA,uBAAuB,cAAc;IACnC,IAAI,mBAAmB,IAAI,SAAS,GAClC;IAEF,mBAAmB,IAAI,SAAS;IAEhC,WAAgB,OAAO,QACpB,cAAc;KAAE,OAAO;KAAqB,MAAM,EAAE,UAAU;IAAE,CAAC,CAAC,EACjE,YAAY,CAEd,CAAC;GACL;EACF,CAAC;EAED,MAAM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C,IACA,KAAA;GAEJ,OAAO,EACL,OACA;IAAE,KAAK;IAAS,OAAO,MAAM,mBAAmB,cAAc,CAAC;GAAE,GACjE,QACF;EACF;CACF;AACF,CAAC;AAED,YAAY,UAAU"}
@@ -1,7 +1,11 @@
1
1
  import { createFlowRemoteComponent } from "../lib/createFlowRemoteComponent.mjs";
2
2
  import { RemoteMarkdownElement } from "@mittwald/flow-remote-elements";
3
3
  // src/auto-generated/Markdown.ts
4
- var Markdown = createFlowRemoteComponent("flr-markdown", "Markdown", RemoteMarkdownElement, { booleans: ["skipHtml", "unwrapDisallowed"] });
4
+ var Markdown = createFlowRemoteComponent("flr-markdown", "Markdown", RemoteMarkdownElement, { booleans: [
5
+ "disableImages",
6
+ "skipHtml",
7
+ "unwrapDisallowed"
8
+ ] });
5
9
  export { Markdown };
6
10
 
7
11
  //# sourceMappingURL=Markdown.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Markdown.mjs","names":[],"sources":["../../../../../src/auto-generated/Markdown.ts"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport { createFlowRemoteComponent } from \"@/lib/createFlowRemoteComponent\";\nimport type { FlowRemoteVueComponent } from \"@/lib/types\";\nimport { RemoteMarkdownElement } from \"@mittwald/flow-remote-elements\";\nimport type { RemoteMarkdownElementProps } from \"@mittwald/flow-remote-elements\";\nexport { type RemoteMarkdownElementProps as MarkdownProps } from \"@mittwald/flow-remote-elements\";\n\nexport const Markdown: FlowRemoteVueComponent<RemoteMarkdownElementProps> =\n createFlowRemoteComponent(\"flr-markdown\", \"Markdown\", RemoteMarkdownElement, {\n booleans: [\"skipHtml\", \"unwrapDisallowed\"],\n });\n"],"mappings":";;;AAQA,IAAa,WACX,0BAA0B,gBAAgB,YAAY,uBAAuB,EAC3E,UAAU,CAAC,YAAY,kBAAkB,EAC3C,CAAC"}
1
+ {"version":3,"file":"Markdown.mjs","names":[],"sources":["../../../../../src/auto-generated/Markdown.ts"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport { createFlowRemoteComponent } from \"@/lib/createFlowRemoteComponent\";\nimport type { FlowRemoteVueComponent } from \"@/lib/types\";\nimport { RemoteMarkdownElement } from \"@mittwald/flow-remote-elements\";\nimport type { RemoteMarkdownElementProps } from \"@mittwald/flow-remote-elements\";\nexport { type RemoteMarkdownElementProps as MarkdownProps } from \"@mittwald/flow-remote-elements\";\n\nexport const Markdown: FlowRemoteVueComponent<RemoteMarkdownElementProps> =\n createFlowRemoteComponent(\"flr-markdown\", \"Markdown\", RemoteMarkdownElement, {\n booleans: [\"disableImages\", \"skipHtml\", \"unwrapDisallowed\"],\n });\n"],"mappings":";;;AAQA,IAAa,WACX,0BAA0B,gBAAgB,YAAY,uBAAuB,EAC3E,UAAU;CAAC;CAAiB;CAAY;AAAkB,EAC5D,CAAC"}
@@ -8,6 +8,7 @@ var MarkdownEditor = createFlowRemoteComponent("flr-markdown-editor", "MarkdownE
8
8
  "aria-haspopup",
9
9
  "aria-hidden",
10
10
  "autoFocus",
11
+ "disableImages",
11
12
  "excludeFromTabOrder",
12
13
  "hidden",
13
14
  "inert",
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownEditor.mjs","names":[],"sources":["../../../../../src/auto-generated/MarkdownEditor.ts"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport { createFlowRemoteComponent } from \"@/lib/createFlowRemoteComponent\";\nimport type { FlowRemoteVueComponent } from \"@/lib/types\";\nimport { RemoteMarkdownEditorElement } from \"@mittwald/flow-remote-elements\";\nimport type { RemoteMarkdownEditorElementProps } from \"@mittwald/flow-remote-elements\";\nexport { type RemoteMarkdownEditorElementProps as MarkdownEditorProps } from \"@mittwald/flow-remote-elements\";\n\nexport const MarkdownEditor: FlowRemoteVueComponent<RemoteMarkdownEditorElementProps> =\n createFlowRemoteComponent(\n \"flr-markdown-editor\",\n \"MarkdownEditor\",\n RemoteMarkdownEditorElement,\n {\n booleans: [\n \"allowHorizontalResize\",\n \"allowResize\",\n \"allowVerticalResize\",\n \"aria-haspopup\",\n \"aria-hidden\",\n \"autoFocus\",\n \"excludeFromTabOrder\",\n \"hidden\",\n \"inert\",\n \"isDisabled\",\n \"isInvalid\",\n \"isReadOnly\",\n \"isRequired\",\n \"showCharacterCount\",\n \"suppressHydrationWarning\",\n ],\n },\n );\n"],"mappings":";;;AAQA,IAAa,iBACX,0BACE,uBACA,kBACA,6BACA,EACE,UAAU;CACR;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,EACF,CACF"}
1
+ {"version":3,"file":"MarkdownEditor.mjs","names":[],"sources":["../../../../../src/auto-generated/MarkdownEditor.ts"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport { createFlowRemoteComponent } from \"@/lib/createFlowRemoteComponent\";\nimport type { FlowRemoteVueComponent } from \"@/lib/types\";\nimport { RemoteMarkdownEditorElement } from \"@mittwald/flow-remote-elements\";\nimport type { RemoteMarkdownEditorElementProps } from \"@mittwald/flow-remote-elements\";\nexport { type RemoteMarkdownEditorElementProps as MarkdownEditorProps } from \"@mittwald/flow-remote-elements\";\n\nexport const MarkdownEditor: FlowRemoteVueComponent<RemoteMarkdownEditorElementProps> =\n createFlowRemoteComponent(\n \"flr-markdown-editor\",\n \"MarkdownEditor\",\n RemoteMarkdownEditorElement,\n {\n booleans: [\n \"allowHorizontalResize\",\n \"allowResize\",\n \"allowVerticalResize\",\n \"aria-haspopup\",\n \"aria-hidden\",\n \"autoFocus\",\n \"disableImages\",\n \"excludeFromTabOrder\",\n \"hidden\",\n \"inert\",\n \"isDisabled\",\n \"isInvalid\",\n \"isReadOnly\",\n \"isRequired\",\n \"showCharacterCount\",\n \"suppressHydrationWarning\",\n ],\n },\n );\n"],"mappings":";;;AAQA,IAAa,iBACX,0BACE,uBACA,kBACA,6BACA,EACE,UAAU;CACR;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,EACF,CACF"}
@@ -1,7 +1,7 @@
1
1
  import { Version } from "@mittwald/flow-remote-core";
2
2
  // src/version.ts
3
- var communicationVersion = Version.v5;
4
- var packageVersion = "1.5.63";
3
+ var communicationVersion = Version.v6;
4
+ var packageVersion = "1.5.65";
5
5
  var version = communicationVersion;
6
6
  export { communicationVersion, packageVersion, version };
7
7
 
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","names":[],"sources":["../../../../src/version.ts"],"sourcesContent":["import { Version } from \"@mittwald/flow-remote-core\";\n\nexport const communicationVersion = Version.v5;\nexport const packageVersion = __FLOW_REMOTE_VUE_COMPONENTS_PACKAGE_VERSION__;\n\nexport const version = communicationVersion;\n"],"mappings":";;AAEA,IAAa,uBAAuB,QAAQ;AAC5C,IAAa,iBAAA;AAEb,IAAa,UAAU"}
1
+ {"version":3,"file":"version.mjs","names":[],"sources":["../../../../src/version.ts"],"sourcesContent":["import { Version } from \"@mittwald/flow-remote-core\";\n\nexport const communicationVersion = Version.v6;\nexport const packageVersion = __FLOW_REMOTE_VUE_COMPONENTS_PACKAGE_VERSION__;\n\nexport const version = communicationVersion;\n"],"mappings":";;AAEA,IAAa,uBAAuB,QAAQ;AAC5C,IAAa,iBAAA;AAEb,IAAa,UAAU"}
@@ -13,6 +13,15 @@ export declare const RemoteRoot: import('vue').DefineComponent<import('vue').Ext
13
13
  type: BooleanConstructor;
14
14
  default: undefined;
15
15
  };
16
+ /**
17
+ * Additional host origins the remote app accepts, e.g. for local
18
+ * development. The mStudio origins and the app's own origin are always
19
+ * allowed.
20
+ */
21
+ allowedHostOrigins: {
22
+ type: PropType<string[]>;
23
+ default: undefined;
24
+ };
16
25
  /**
17
26
  * Internal use only: renders against a receiver in the same realm instead
18
27
  * of connecting to a parent frame.
@@ -31,6 +40,15 @@ export declare const RemoteRoot: import('vue').DefineComponent<import('vue').Ext
31
40
  type: BooleanConstructor;
32
41
  default: undefined;
33
42
  };
43
+ /**
44
+ * Additional host origins the remote app accepts, e.g. for local
45
+ * development. The mStudio origins and the app's own origin are always
46
+ * allowed.
47
+ */
48
+ allowedHostOrigins: {
49
+ type: PropType<string[]>;
50
+ default: undefined;
51
+ };
34
52
  /**
35
53
  * Internal use only: renders against a receiver in the same realm instead
36
54
  * of connecting to a parent frame.
@@ -43,6 +61,7 @@ export declare const RemoteRoot: import('vue').DefineComponent<import('vue').Ext
43
61
  onHostPathnameChanged?: ((pathname: string) => any) | undefined;
44
62
  }>, {
45
63
  isLoading: boolean;
64
+ allowedHostOrigins: string[];
46
65
  __remoteReceiver: RemoteReceiver;
47
66
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
48
67
  export default RemoteRoot;
@@ -1,4 +1,4 @@
1
1
  import { Version } from '@mittwald/flow-remote-core';
2
- export declare const communicationVersion = Version.v5;
2
+ export declare const communicationVersion = Version.v6;
3
3
  export declare const packageVersion: string;
4
- export declare const version = Version.v5;
4
+ export declare const version = Version.v6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-vue-components",
3
- "version": "1.5.63",
3
+ "version": "1.5.65",
4
4
  "type": "module",
5
5
  "description": "Vue components that can be used in a remote environment",
6
6
  "homepage": "https://flow.mittwald.de",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@internationalized/date": "^3.12.3",
44
- "@mittwald/flow-remote-core": "1.5.63",
45
- "@mittwald/flow-remote-elements": "1.5.63",
44
+ "@mittwald/flow-remote-core": "1.5.65",
45
+ "@mittwald/flow-remote-elements": "1.5.65",
46
46
  "@tanstack/table-core": "^8.21.3",
47
47
  "country-codes-list": "^2.0.0",
48
48
  "dot-prop": "^10.2.0",
@@ -52,14 +52,14 @@
52
52
  "remeda": "^2.43.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@mittwald/ext-bridge": "1.5.63",
56
- "@mittwald/flow-components-base": "1.5.63",
57
- "@mittwald/flow-core": "1.5.63",
58
- "@mittwald/flow-icons-base": "1.5.63",
59
- "@mittwald/flow-react-components": "1.5.63",
60
- "@mittwald/flow-remote-react-components": "1.5.63",
61
- "@mittwald/flow-remote-react-renderer": "1.5.63",
62
- "@mittwald/typescript-config": "1.5.63",
55
+ "@mittwald/ext-bridge": "1.5.65",
56
+ "@mittwald/flow-components-base": "1.5.65",
57
+ "@mittwald/flow-core": "1.5.65",
58
+ "@mittwald/flow-icons-base": "1.5.65",
59
+ "@mittwald/flow-react-components": "1.5.65",
60
+ "@mittwald/flow-remote-react-components": "1.5.65",
61
+ "@mittwald/flow-remote-react-renderer": "1.5.65",
62
+ "@mittwald/typescript-config": "1.5.65",
63
63
  "@quilted/threads": "^3.3.1",
64
64
  "@types/node": "^25.9.3",
65
65
  "@types/react": "^19.2",
@@ -79,10 +79,10 @@
79
79
  "vue": "~3.5.38"
80
80
  },
81
81
  "peerDependencies": {
82
- "@mittwald/ext-bridge": "1.5.63",
83
- "@mittwald/flow-react-components": "1.5.63",
82
+ "@mittwald/ext-bridge": "1.5.65",
83
+ "@mittwald/flow-react-components": "1.5.65",
84
84
  "vue": "^3.5.0"
85
85
  },
86
86
  "flowStatus": "beta",
87
- "gitHead": "7e12b303d48d8e2de40fa685e84044139da95c5d"
87
+ "gitHead": "6cdfe310f6aaa92f93b0f0492c576f88fd21f277"
88
88
  }