remote-components 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/{component-loader-2ca91ad8.d.ts → component-loader-26b1f55e.d.ts} +63 -1
  2. package/dist/html/host.cjs +55 -19
  3. package/dist/html/host.cjs.map +1 -1
  4. package/dist/html/host.js +55 -19
  5. package/dist/html/host.js.map +1 -1
  6. package/dist/internal/next/host/app-router-client.d.ts +30 -3
  7. package/dist/internal/next/remote/render-client.cjs +1 -1
  8. package/dist/internal/next/remote/render-client.cjs.map +1 -1
  9. package/dist/internal/next/remote/render-client.js +1 -1
  10. package/dist/internal/next/remote/render-client.js.map +1 -1
  11. package/dist/internal/shared/client/remote-component.cjs +29 -0
  12. package/dist/internal/shared/client/remote-component.cjs.map +1 -1
  13. package/dist/internal/shared/client/remote-component.d.ts +2 -2
  14. package/dist/internal/shared/client/remote-component.js +29 -0
  15. package/dist/internal/shared/client/remote-component.js.map +1 -1
  16. package/dist/internal/shared/ssr/dom-flight.d.ts +1 -1
  17. package/dist/internal/shared/ssr/fetch-headers.cjs +4 -6
  18. package/dist/internal/shared/ssr/fetch-headers.cjs.map +1 -1
  19. package/dist/internal/shared/ssr/fetch-headers.d.ts +1 -1
  20. package/dist/internal/shared/ssr/fetch-headers.js +4 -6
  21. package/dist/internal/shared/ssr/fetch-headers.js.map +1 -1
  22. package/dist/internal/shared/ssr/fetch-remote-component.cjs +14 -23
  23. package/dist/internal/shared/ssr/fetch-remote-component.cjs.map +1 -1
  24. package/dist/internal/shared/ssr/fetch-remote-component.d.ts +5 -9
  25. package/dist/internal/shared/ssr/fetch-remote-component.js +13 -21
  26. package/dist/internal/shared/ssr/fetch-remote-component.js.map +1 -1
  27. package/dist/internal/shared/ssr/fetch-with-hooks.cjs +40 -0
  28. package/dist/internal/shared/ssr/fetch-with-hooks.cjs.map +1 -0
  29. package/dist/internal/shared/ssr/fetch-with-hooks.d.ts +39 -0
  30. package/dist/internal/shared/ssr/fetch-with-hooks.js +16 -0
  31. package/dist/internal/shared/ssr/fetch-with-hooks.js.map +1 -0
  32. package/dist/internal/shared/ssr/get-ssr-relative-path-base-url.cjs.map +1 -1
  33. package/dist/internal/shared/ssr/get-ssr-relative-path-base-url.js.map +1 -1
  34. package/dist/next/config.cjs +1 -9
  35. package/dist/next/config.cjs.map +1 -1
  36. package/dist/next/config.js +1 -9
  37. package/dist/next/config.js.map +1 -1
  38. package/dist/next/host/app-router-server.cjs +7 -8
  39. package/dist/next/host/app-router-server.cjs.map +1 -1
  40. package/dist/next/host/app-router-server.d.ts +13 -4
  41. package/dist/next/host/app-router-server.js +7 -8
  42. package/dist/next/host/app-router-server.js.map +1 -1
  43. package/dist/next/host/client/index.cjs +149 -72
  44. package/dist/next/host/client/index.cjs.map +1 -1
  45. package/dist/next/host/client/index.d.ts +2 -49
  46. package/dist/next/host/client/index.js +144 -66
  47. package/dist/next/host/client/index.js.map +1 -1
  48. package/dist/next/host/pages-router-client.cjs +62 -2
  49. package/dist/next/host/pages-router-client.cjs.map +1 -1
  50. package/dist/next/host/pages-router-client.d.ts +26 -1
  51. package/dist/next/host/pages-router-client.js +63 -3
  52. package/dist/next/host/pages-router-client.js.map +1 -1
  53. package/dist/next/host/pages-router-server.cjs +18 -22
  54. package/dist/next/host/pages-router-server.cjs.map +1 -1
  55. package/dist/next/host/pages-router-server.d.ts +36 -3
  56. package/dist/next/host/pages-router-server.js +18 -22
  57. package/dist/next/host/pages-router-server.js.map +1 -1
  58. package/dist/next/index.cjs.map +1 -1
  59. package/dist/next/index.d.ts +1 -1
  60. package/dist/next/index.js.map +1 -1
  61. package/dist/react/index.cjs +1581 -87
  62. package/dist/react/index.cjs.map +1 -1
  63. package/dist/react/index.d.ts +13 -14
  64. package/dist/react/index.js +1559 -87
  65. package/dist/react/index.js.map +1 -1
  66. package/dist/shared/host/app.cjs +1 -1
  67. package/dist/shared/host/app.cjs.map +1 -1
  68. package/dist/shared/host/app.js +1 -1
  69. package/dist/shared/host/app.js.map +1 -1
  70. package/dist/shared/host/pages.cjs +1 -1
  71. package/dist/shared/host/pages.cjs.map +1 -1
  72. package/dist/shared/host/pages.js +1 -1
  73. package/dist/shared/host/pages.js.map +1 -1
  74. package/dist/shared/remote/app.cjs +1 -1
  75. package/dist/shared/remote/app.cjs.map +1 -1
  76. package/dist/shared/remote/app.js +1 -1
  77. package/dist/shared/remote/app.js.map +1 -1
  78. package/dist/shared/remote/pages.cjs +1 -1
  79. package/dist/shared/remote/pages.cjs.map +1 -1
  80. package/dist/shared/remote/pages.js +1 -1
  81. package/dist/shared/remote/pages.js.map +1 -1
  82. package/dist/types-2ab78f67.d.ts +71 -0
  83. package/package.json +54 -32
  84. package/dist/types-235b68a5.d.ts +0 -32
  85. package/dist/types-cbf6c34f.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/host/pages.ts"],"sourcesContent":["export const shared: Record<string, () => Promise<unknown>> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__: () =>\n Promise.reject(\n new Error(\n 'Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n ),\n ),\n};\n"],"mappings":"AAAO,MAAM,SAAiD;AAAA;AAAA,EAE5D,sCAAsC,MACpC,QAAQ;AAAA,IACN,IAAI;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/shared/host/pages.ts"],"sourcesContent":["export const shared: Record<string, () => Promise<unknown>> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__: () =>\n Promise.reject(\n new Error(\n 'Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n ),\n ),\n};\n"],"mappings":"AAAO,MAAM,SAAiD;AAAA;AAAA,EAE5D,sCAAsC,MACpC,QAAQ;AAAA,IACN,IAAI;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACJ;","names":[]}
@@ -23,7 +23,7 @@ __export(app_exports, {
23
23
  module.exports = __toCommonJS(app_exports);
24
24
  const shared = {
25
25
  // eslint-disable-next-line camelcase
26
- __remote_components_missing_shared__: "Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
26
+ __remote_components_missing_shared__: "Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
27
27
  };
28
28
  // Annotate the CommonJS export names for ESM import in node:
29
29
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/remote/app.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/shared/remote/app.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
@@ -1,6 +1,6 @@
1
1
  const shared = {
2
2
  // eslint-disable-next-line camelcase
3
- __remote_components_missing_shared__: "Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
3
+ __remote_components_missing_shared__: "Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
4
4
  };
5
5
  export {
6
6
  shared
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/remote/app.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":"AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/shared/remote/app.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":"AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
@@ -23,7 +23,7 @@ __export(pages_exports, {
23
23
  module.exports = __toCommonJS(pages_exports);
24
24
  const shared = {
25
25
  // eslint-disable-next-line camelcase
26
- __remote_components_missing_shared__: "Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
26
+ __remote_components_missing_shared__: "Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
27
27
  };
28
28
  // Annotate the CommonJS export names for ESM import in node:
29
29
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/remote/pages.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/shared/remote/pages.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
@@ -1,6 +1,6 @@
1
1
  const shared = {
2
2
  // eslint-disable-next-line camelcase
3
- __remote_components_missing_shared__: "Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
3
+ __remote_components_missing_shared__: "Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?"
4
4
  };
5
5
  export {
6
6
  shared
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/remote/pages.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared module not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":"AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/shared/remote/pages.ts"],"sourcesContent":["export const shared: Record<string, string> = {\n // eslint-disable-next-line camelcase\n __remote_components_missing_shared__:\n 'Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponents` on both host and remote?',\n};\n"],"mappings":"AAAO,MAAM,SAAiC;AAAA;AAAA,EAE5C,sCACE;AACJ;","names":[]}
@@ -0,0 +1,71 @@
1
+ interface RemoteComponentMetadata {
2
+ bundle: string;
3
+ route: string;
4
+ runtime: 'webpack' | 'turbopack' | 'script';
5
+ id: string;
6
+ type: 'nextjs' | 'remote-component' | 'unknown';
7
+ }
8
+ /**
9
+ * Hook function that intercepts remote component fetch requests.
10
+ * Can be used to modify request options, provide a custom response, or inspect the request.
11
+ *
12
+ * @param url - The URL being fetched
13
+ * @param init - The fetch init options being used
14
+ * @returns Optional Response to use instead of fetching, or void/undefined to proceed with normal fetch
15
+ *
16
+ * @example
17
+ * // Log all remote component requests
18
+ * const onRequest = async (url, init) => {
19
+ * console.log('Fetching remote component from:', url.href);
20
+ * };
21
+ *
22
+ * @example
23
+ * // Add custom headers
24
+ * const onRequest = async (url, init) => {
25
+ * (init.headers as Headers).set('X-Custom-Header', 'value');
26
+ * };
27
+ *
28
+ * @example
29
+ * // Provide a cached response
30
+ * const onRequest = async (url) => {
31
+ * const cached = cache.get(url.href);
32
+ * if (cached) {
33
+ * return new Response(cached);
34
+ * }
35
+ * };
36
+ */
37
+ type OnRequestHook = (url: URL, init: RequestInit) => Promise<Response | undefined> | Response | undefined;
38
+ /**
39
+ * Hook function that is called after a remote component fetch completes.
40
+ * Can be used to inspect the response, check for redirects, or transform the response.
41
+ *
42
+ * @param url - The original URL that was requested
43
+ * @param response - The Response object from the fetch
44
+ * @returns Optional Response to use instead of the original, or void/undefined to use the original response
45
+ *
46
+ * @example
47
+ * // Check for redirects
48
+ * const onResponse = async (url, response) => {
49
+ * if (response.redirected) {
50
+ * console.log(`Redirected from ${url.href} to ${response.url}`);
51
+ * }
52
+ * };
53
+ *
54
+ * @example
55
+ * // Cache the response
56
+ * const onResponse = async (url, response) => {
57
+ * const cloned = response.clone();
58
+ * cache.set(url.href, await cloned.text());
59
+ * };
60
+ *
61
+ * @example
62
+ * // Transform the response
63
+ * const onResponse = async (url, response) => {
64
+ * const text = await response.text();
65
+ * const modified = text.replace(/foo/g, 'bar');
66
+ * return new Response(modified, response);
67
+ * };
68
+ */
69
+ type OnResponseHook = (url: URL, response: Response) => Promise<Response | undefined> | Response | undefined;
70
+
71
+ export { OnRequestHook as O, RemoteComponentMetadata as R, OnResponseHook as a };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remote-components",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "private": false,
5
5
  "description": "Compose remote components at runtime between microfrontends applications.",
6
6
  "keywords": [
@@ -19,95 +19,117 @@
19
19
  "imports": {
20
20
  "#internal/*": {
21
21
  "import": "./dist/internal/*.js",
22
- "require": "./dist/internal/*.cjs"
22
+ "require": "./dist/internal/*.cjs",
23
+ "default": "./dist/internal/*.js"
23
24
  },
24
25
  "#remote-components/*": {
25
26
  "import": "./dist/*.js",
26
- "require": "./dist/*.cjs"
27
+ "require": "./dist/*.cjs",
28
+ "default": "./dist/*.js"
27
29
  }
28
30
  },
29
31
  "exports": {
30
32
  "./html/host": {
31
33
  "import": "./dist/html/host.js",
32
- "require": "./dist/html/host.cjs"
34
+ "require": "./dist/html/host.cjs",
35
+ "default": "./dist/html/host.js"
33
36
  },
34
37
  "./html/remote": {
35
38
  "import": "./dist/html/remote.js",
36
- "require": "./dist/html/remote.cjs"
39
+ "require": "./dist/html/remote.cjs",
40
+ "default": "./dist/html/remote.js"
37
41
  },
38
42
  "./next/config": {
39
43
  "import": "./dist/next/config.js",
40
- "require": "./dist/next/config.cjs"
44
+ "require": "./dist/next/config.cjs",
45
+ "default": "./dist/next/config.js"
41
46
  },
42
47
  "./next/middleware": {
43
48
  "import": "./dist/next/proxy.js",
44
- "require": "./dist/next/proxy.cjs"
49
+ "require": "./dist/next/proxy.cjs",
50
+ "default": "./dist/next/proxy.js"
45
51
  },
46
52
  "./next/proxy": {
47
53
  "import": "./dist/next/proxy.js",
48
- "require": "./dist/next/proxy.cjs"
54
+ "require": "./dist/next/proxy.cjs",
55
+ "default": "./dist/next/proxy.js"
49
56
  },
50
57
  "./next/host": {
51
58
  "import": "./dist/next/host/app-router-server.js",
52
- "require": "./dist/next/host/app-router-server.cjs"
59
+ "require": "./dist/next/host/app-router-server.cjs",
60
+ "default": "./dist/next/host/app-router-server.js"
53
61
  },
54
62
  "./next/host/client": {
55
63
  "import": "./dist/next/host/client/index.js",
56
- "require": "./dist/next/host/client/index.cjs"
64
+ "require": "./dist/next/host/client/index.cjs",
65
+ "default": "./dist/next/host/client/index.js"
57
66
  },
58
67
  "./next/host/pages-router": {
59
68
  "import": "./dist/next/host/pages-router-server.js",
60
- "require": "./dist/next/host/pages-router-server.cjs"
69
+ "require": "./dist/next/host/pages-router-server.cjs",
70
+ "default": "./dist/next/host/pages-router-server.js"
61
71
  },
62
72
  "./next/host/pages-router/client": {
63
73
  "import": "./dist/next/host/pages-router-client.js",
64
- "require": "./dist/next/host/pages-router-client.cjs"
74
+ "require": "./dist/next/host/pages-router-client.cjs",
75
+ "default": "./dist/next/host/pages-router-client.js"
65
76
  },
66
77
  "./next/remote": {
67
78
  "import": "./dist/next/remote/server.js",
68
- "require": "./dist/next/remote/server.cjs"
79
+ "require": "./dist/next/remote/server.cjs",
80
+ "default": "./dist/next/remote/server.js"
69
81
  },
70
82
  "./next/remote/pages-router": {
71
83
  "import": "./dist/next/remote/pages-router.js",
72
- "require": "./dist/next/remote/pages-router.cjs"
84
+ "require": "./dist/next/remote/pages-router.cjs",
85
+ "default": "./dist/next/remote/pages-router.js"
73
86
  },
74
87
  "./next": {
75
88
  "react-server": {
76
89
  "import": "./dist/next/index.js",
77
- "require": "./dist/next/index.cjs"
90
+ "require": "./dist/next/index.cjs",
91
+ "default": "./dist/next/index.js"
78
92
  },
79
93
  "default": {
80
94
  "import": "./dist/next/host/client/index.js",
81
- "require": "./dist/next/host/client/index.cjs"
95
+ "require": "./dist/next/host/client/index.cjs",
96
+ "default": "./dist/next/host/client/index.js"
82
97
  }
83
98
  },
84
99
  "./react": {
85
100
  "import": "./dist/react/index.js",
86
- "require": "./dist/react/index.cjs"
101
+ "require": "./dist/react/index.cjs",
102
+ "default": "./dist/react/index.js"
87
103
  },
88
104
  "./ssr": {
89
105
  "import": "./dist/internal/shared/ssr/fetch-remote-component.js",
90
- "require": "./dist/internal/shared/ssr/fetch-remote-component.cjs"
106
+ "require": "./dist/internal/shared/ssr/fetch-remote-component.cjs",
107
+ "default": "./dist/internal/shared/ssr/fetch-remote-component.js"
91
108
  },
92
109
  "./shared/remote/app": {
93
110
  "import": "./dist/shared/remote/app.js",
94
- "require": "./dist/shared/remote/app.cjs"
111
+ "require": "./dist/shared/remote/app.cjs",
112
+ "default": "./dist/shared/remote/app.js"
95
113
  },
96
114
  "./shared/remote/pages": {
97
115
  "import": "./dist/shared/remote/pages.js",
98
- "require": "./dist/shared/remote/pages.cjs"
116
+ "require": "./dist/shared/remote/pages.cjs",
117
+ "default": "./dist/shared/remote/pages.js"
99
118
  },
100
119
  "./shared/remote/wrapper": {
101
120
  "import": "./dist/shared/remote/wrapper.js",
102
- "require": "./dist/shared/remote/wrapper.cjs"
121
+ "require": "./dist/shared/remote/wrapper.cjs",
122
+ "default": "./dist/shared/remote/wrapper.js"
103
123
  },
104
124
  "./shared/host/app": {
105
125
  "import": "./dist/shared/host/app.js",
106
- "require": "./dist/shared/host/app.cjs"
126
+ "require": "./dist/shared/host/app.cjs",
127
+ "default": "./dist/shared/host/app.js"
107
128
  },
108
129
  "./shared/host/pages": {
109
130
  "import": "./dist/shared/host/pages.js",
110
- "require": "./dist/shared/host/pages.cjs"
131
+ "require": "./dist/shared/host/pages.cjs",
132
+ "default": "./dist/shared/host/pages.js"
111
133
  }
112
134
  },
113
135
  "typesVersions": {
@@ -179,8 +201,8 @@
179
201
  "find-up": "^7.0.0",
180
202
  "parse5": "^7.2.1",
181
203
  "picocolors": "^1.1.1",
182
- "react": "^19.2.1",
183
- "react-dom": "^19.2.1",
204
+ "react": "^19.2.3",
205
+ "react-dom": "^19.2.3",
184
206
  "react-property": "^2.0.2",
185
207
  "react-server-dom-turbopack": "^19.2.1",
186
208
  "react-server-dom-webpack": "^19.2.1",
@@ -192,12 +214,12 @@
192
214
  "devDependencies": {
193
215
  "@testing-library/react": "^15.0.7",
194
216
  "@types/node": "20.11.30",
195
- "@types/react": "^19.2.1",
196
- "@types/react-dom": "^19.2.1",
217
+ "@types/react": "^19.2.3",
218
+ "@types/react-dom": "^19.2.3",
197
219
  "jsdom": "^26.0.0",
198
- "next": "^16",
199
- "react": "^19.2.1",
200
- "react-dom": "^19.2.1",
220
+ "next": "^16.1.3",
221
+ "react": "^19.2.3",
222
+ "react-dom": "^19.2.3",
201
223
  "ts-json-schema-generator": "^1.1.2",
202
224
  "tsup": "^6.6.2",
203
225
  "tsx": "^4.6.2",
@@ -207,8 +229,8 @@
207
229
  },
208
230
  "peerDependencies": {
209
231
  "next": ">=15",
210
- "react": "^19.2.1",
211
- "react-dom": "^19.2.1"
232
+ "react": "^19.2.3",
233
+ "react-dom": "^19.2.3"
212
234
  },
213
235
  "peerDependenciesMeta": {
214
236
  "next": {
@@ -1,32 +0,0 @@
1
- import * as react from 'react';
2
- import { R as RemoteComponentMetadata } from './types-cbf6c34f.js';
3
-
4
- interface RemoteComponentProps {
5
- /** The src provided to the `<RemoteComponent>` component. May be relative or absolute URL. */
6
- src: string;
7
- /** The src converted to a URL object. For relative URLs, the VERCEL_URL is used as the origin. */
8
- serverUrl: string;
9
- name: string;
10
- bundle: string;
11
- route?: string;
12
- runtime?: RemoteComponentMetadata['runtime'];
13
- data: string[];
14
- nextData?: {
15
- props: {
16
- pageProps: Record<string, unknown>;
17
- };
18
- buildId?: string;
19
- } | null;
20
- scripts?: {
21
- src: string;
22
- }[];
23
- links?: Record<string, string | boolean | undefined>[];
24
- remoteShared?: Record<string, string>;
25
- isolate?: boolean;
26
- mode?: 'open' | 'closed';
27
- reset?: boolean;
28
- type?: RemoteComponentMetadata['type'];
29
- children: react.ReactNode;
30
- }
31
-
32
- export { RemoteComponentProps as R };
@@ -1,9 +0,0 @@
1
- interface RemoteComponentMetadata {
2
- bundle: string;
3
- route: string;
4
- runtime: 'webpack' | 'turbopack' | 'script';
5
- id: string;
6
- type: 'nextjs' | 'remote-component' | 'unknown';
7
- }
8
-
9
- export { RemoteComponentMetadata as R };