remote-components 0.4.2 → 0.4.3
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/{chunk-KVQI55BZ.cjs → chunk-2W7JBTID.cjs} +37 -36
- package/dist/chunk-2W7JBTID.cjs.map +1 -0
- package/dist/{chunk-TZT7DLO5.cjs → chunk-3AX5WLZD.cjs} +4 -4
- package/dist/{chunk-4O3EOST4.cjs → chunk-4AH3KXDW.cjs} +27 -27
- package/dist/{chunk-MTMDXJLM.js → chunk-4NW46ZVD.js} +410 -146
- package/dist/chunk-4NW46ZVD.js.map +1 -0
- package/dist/{chunk-SAGYPGIQ.js → chunk-55TEMSB5.js} +92 -23
- package/dist/chunk-55TEMSB5.js.map +1 -0
- package/dist/{chunk-RLI4YTBJ.cjs → chunk-7XXO2DLF.cjs} +96 -27
- package/dist/chunk-7XXO2DLF.cjs.map +1 -0
- package/dist/{chunk-RUWR74XQ.cjs → chunk-BBXVML3D.cjs} +1 -1
- package/dist/{chunk-RUWR74XQ.cjs.map → chunk-BBXVML3D.cjs.map} +1 -1
- package/dist/{chunk-42TVDI3G.cjs → chunk-C5EYU7EQ.cjs} +7 -7
- package/dist/{chunk-CC3WOSDO.js → chunk-DGZVFKSQ.js} +10 -9
- package/dist/chunk-DGZVFKSQ.js.map +1 -0
- package/dist/{chunk-AKOMV2UF.js → chunk-HL6BL5HY.js} +3 -3
- package/dist/chunk-HMB3SIVJ.cjs +973 -0
- package/dist/chunk-HMB3SIVJ.cjs.map +1 -0
- package/dist/{chunk-LOYJP2V2.js → chunk-HYVNEUIK.js} +5 -5
- package/dist/chunk-KV5J7PNM.js +152 -0
- package/dist/chunk-KV5J7PNM.js.map +1 -0
- package/dist/{chunk-LQ7VQ74E.js → chunk-LEKG4YWI.js} +2 -2
- package/dist/chunk-SECN7UAL.cjs +152 -0
- package/dist/chunk-SECN7UAL.cjs.map +1 -0
- package/dist/{chunk-S2A4TFLS.js → chunk-ULXU6XWH.js} +1 -1
- package/dist/{chunk-S2A4TFLS.js.map → chunk-ULXU6XWH.js.map} +1 -1
- package/dist/config/nextjs.cjs +7 -7
- package/dist/config/nextjs.js +2 -2
- package/dist/host/html.cjs +36 -36
- package/dist/host/html.js +10 -10
- package/dist/host/nextjs/app/client-only.cjs +17 -17
- package/dist/host/nextjs/app/client-only.js +8 -8
- package/dist/host/react.cjs +9 -9
- package/dist/host/react.js +8 -8
- package/dist/internal/config/webpack/next-client-pages-loader.cjs +151 -53
- package/dist/internal/config/webpack/next-client-pages-loader.cjs.map +1 -1
- package/dist/internal/config/webpack/next-client-pages-loader.d.ts +8 -4
- package/dist/internal/config/webpack/next-client-pages-loader.js +153 -53
- package/dist/internal/config/webpack/next-client-pages-loader.js.map +1 -1
- package/dist/internal/host/shared/pipeline.d.ts +1 -1
- package/dist/internal/host/shared/shared-broker.cjs +106 -0
- package/dist/internal/host/shared/shared-broker.cjs.map +1 -0
- package/dist/internal/host/shared/shared-broker.d.ts +35 -0
- package/dist/internal/host/shared/shared-broker.js +80 -0
- package/dist/internal/host/shared/shared-broker.js.map +1 -0
- package/dist/internal/host/shared/shared-module-resolver.cjs +13 -22
- package/dist/internal/host/shared/shared-module-resolver.cjs.map +1 -1
- package/dist/internal/host/shared/shared-module-resolver.d.ts +1 -1
- package/dist/internal/host/shared/shared-module-resolver.js +16 -22
- package/dist/internal/host/shared/shared-module-resolver.js.map +1 -1
- package/dist/internal/runtime/loaders/component-loader.cjs +2 -1
- package/dist/internal/runtime/loaders/component-loader.cjs.map +1 -1
- package/dist/internal/runtime/loaders/component-loader.d.ts +1 -1
- package/dist/internal/runtime/loaders/component-loader.js +2 -1
- package/dist/internal/runtime/loaders/component-loader.js.map +1 -1
- package/dist/internal/runtime/loaders/static-loader.d.ts +1 -1
- package/dist/internal/runtime/namespace.d.ts +1 -1
- package/dist/internal/runtime/turbopack/module.cjs +26 -4
- package/dist/internal/runtime/turbopack/module.cjs.map +1 -1
- package/dist/internal/runtime/turbopack/module.d.ts +14 -7
- package/dist/internal/runtime/turbopack/module.js +27 -5
- package/dist/internal/runtime/turbopack/module.js.map +1 -1
- package/dist/internal/runtime/turbopack/remote-scope-setup.cjs +5 -4
- package/dist/internal/runtime/turbopack/remote-scope-setup.cjs.map +1 -1
- package/dist/internal/runtime/turbopack/remote-scope-setup.js +5 -4
- package/dist/internal/runtime/turbopack/remote-scope-setup.js.map +1 -1
- package/dist/internal/runtime/turbopack/shared-modules.cjs +113 -26
- package/dist/internal/runtime/turbopack/shared-modules.cjs.map +1 -1
- package/dist/internal/runtime/turbopack/shared-modules.d.ts +3 -1
- package/dist/internal/runtime/turbopack/shared-modules.js +116 -26
- package/dist/internal/runtime/turbopack/shared-modules.js.map +1 -1
- package/dist/internal/runtime/types.cjs.map +1 -1
- package/dist/internal/runtime/types.d.ts +1 -1
- package/dist/internal/utils/logger.cjs.map +1 -1
- package/dist/internal/utils/logger.d.ts +1 -1
- package/dist/internal/utils/logger.js.map +1 -1
- package/dist/remote/html.cjs +6 -6
- package/dist/remote/html.js +2 -2
- package/dist/{script-VPOI7ARP.js → script-ISAHSV3X.js} +3 -3
- package/dist/{script-D5AD7HLV.cjs → script-YQCDUYDP.cjs} +4 -4
- package/dist/static-loader-EOJQHFZ6.cjs +11 -0
- package/dist/{static-loader-OHSAUD62.js → static-loader-Z24427MK.js} +3 -3
- package/dist/{turbopack-5N44NVPT.js → turbopack-7F757Z7V.js} +6 -6
- package/dist/{turbopack-EPXGK4EV.cjs → turbopack-DULMVTWV.cjs} +12 -12
- package/dist/{types-8b0edd78.d.ts → types-bd7be268.d.ts} +1 -5
- package/dist/{webpack-SIFRCBIN.cjs → webpack-6LXCB7WA.cjs} +14 -14
- package/dist/{webpack-KSDNIXMS.js → webpack-WGVTKJ3W.js} +5 -5
- package/package.json +1 -1
- package/dist/chunk-CC3WOSDO.js.map +0 -1
- package/dist/chunk-JJTCFQHE.cjs +0 -202
- package/dist/chunk-JJTCFQHE.cjs.map +0 -1
- package/dist/chunk-KVQI55BZ.cjs.map +0 -1
- package/dist/chunk-MKO52FRO.js +0 -202
- package/dist/chunk-MKO52FRO.js.map +0 -1
- package/dist/chunk-MQ2BBSL4.cjs +0 -709
- package/dist/chunk-MQ2BBSL4.cjs.map +0 -1
- package/dist/chunk-MTMDXJLM.js.map +0 -1
- package/dist/chunk-RLI4YTBJ.cjs.map +0 -1
- package/dist/chunk-SAGYPGIQ.js.map +0 -1
- package/dist/static-loader-UDIXK5MV.cjs +0 -11
- /package/dist/{chunk-TZT7DLO5.cjs.map → chunk-3AX5WLZD.cjs.map} +0 -0
- /package/dist/{chunk-4O3EOST4.cjs.map → chunk-4AH3KXDW.cjs.map} +0 -0
- /package/dist/{chunk-42TVDI3G.cjs.map → chunk-C5EYU7EQ.cjs.map} +0 -0
- /package/dist/{chunk-AKOMV2UF.js.map → chunk-HL6BL5HY.js.map} +0 -0
- /package/dist/{chunk-LOYJP2V2.js.map → chunk-HYVNEUIK.js.map} +0 -0
- /package/dist/{chunk-LQ7VQ74E.js.map → chunk-LEKG4YWI.js.map} +0 -0
- /package/dist/{script-VPOI7ARP.js.map → script-ISAHSV3X.js.map} +0 -0
- /package/dist/{script-D5AD7HLV.cjs.map → script-YQCDUYDP.cjs.map} +0 -0
- /package/dist/{static-loader-UDIXK5MV.cjs.map → static-loader-EOJQHFZ6.cjs.map} +0 -0
- /package/dist/{static-loader-OHSAUD62.js.map → static-loader-Z24427MK.js.map} +0 -0
- /package/dist/{turbopack-5N44NVPT.js.map → turbopack-7F757Z7V.js.map} +0 -0
- /package/dist/{turbopack-EPXGK4EV.cjs.map → turbopack-DULMVTWV.cjs.map} +0 -0
- /package/dist/{webpack-SIFRCBIN.cjs.map → webpack-6LXCB7WA.cjs.map} +0 -0
- /package/dist/{webpack-KSDNIXMS.js.map → webpack-WGVTKJ3W.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/abort.ts","../src/utils/error.ts","../src/utils/logger.ts"],"sourcesContent":["/**\n * Type guard to check if an error is an AbortError.\n * Handles cross-environment differences (Node.js, browsers, JSDOM).\n */\nexport function isAbortError(error: unknown): error is DOMException {\n if (error instanceof DOMException && error.name === 'AbortError') {\n return true;\n }\n\n // Handle Node.js native AbortError which may not be instanceof global DOMException\n if (\n error !== null &&\n typeof error === 'object' &&\n 'name' in error &&\n error.name === 'AbortError' &&\n 'message' in error &&\n typeof (error as { message: unknown }).message === 'string'\n ) {\n // Additional check: verify it has DOMException-like structure\n const e = error as { code?: unknown; constructor?: { name?: string } };\n return typeof e.code === 'number' || e.constructor?.name === 'DOMException';\n }\n\n return false;\n}\n","import { isProxiedUrl } from '#internal/runtime/url/protected-rc-fallback';\nimport { isAbortError } from '#internal/utils/abort';\nimport {\n CORS_DOCS_URL,\n RC_PROTECTED_REMOTE_FETCH_PATHNAME,\n} from '#internal/utils/constants';\n\nexport class RemoteComponentsError extends Error {\n code = 'REMOTE_COMPONENTS_ERROR';\n\n constructor(message: string, options?: { cause?: unknown }) {\n super(message, options);\n this.name = 'RemoteComponentsError';\n }\n}\n\nexport function multipleRemoteComponentsError(url: string | undefined) {\n return new RemoteComponentsError(\n `Multiple Remote Components found at \"${url}\". When a page exposes multiple Remote Components you must specify the \"name\" prop to select which one to load.`,\n );\n}\n\nexport function failedToFetchRemoteComponentError(\n url: string,\n { status, statusText }: { status: number; statusText: string },\n help: string = 'Is the URL correct and accessible?',\n) {\n return new RemoteComponentsError(\n `Failed to fetch Remote Component from \"${url}\". ${help}`,\n { cause: new Error(`${status} ${statusText}`) },\n );\n}\n\nexport async function errorFromFailedFetch(\n originalUrl: string,\n resolvedUrl: URL,\n res: Response | null | undefined,\n): Promise<RemoteComponentsError> {\n const isProxied = isProxiedUrl(resolvedUrl.href);\n\n if (isProxied && res) {\n const body = await res.text().catch(() => '');\n return failedProxyFetchError(\n originalUrl,\n resolvedUrl.href,\n res.status,\n body,\n );\n }\n\n const fallback = failedToFetchRemoteComponentError(\n originalUrl,\n res ?? { status: 0, statusText: 'No Response' },\n );\n\n if (!res) return fallback;\n\n try {\n const body = await res.text();\n const parser = new DOMParser();\n const doc = parser.parseFromString(body, 'text/html');\n const errorTemplate = doc.querySelector(\n 'template[data-next-error-message]',\n );\n const errorMessage = errorTemplate?.getAttribute('data-next-error-message');\n if (errorMessage) {\n const error = new RemoteComponentsError(errorMessage);\n const errorStack = errorTemplate?.getAttribute('data-next-error-stack');\n if (errorStack) {\n error.stack = errorStack;\n }\n return error;\n }\n } catch (parseError) {\n // Re-throw abort errors, ignore parse errors\n if (isAbortError(parseError)) throw parseError;\n }\n\n return fallback;\n}\n\nexport function failedProxiedAssetError(\n kind: 'chunk' | 'script',\n url: string,\n resolvedUrl: string,\n): RemoteComponentsError {\n return new RemoteComponentsError(\n `Failed to load ${kind} \"${url}\" via proxy \"${resolvedUrl}\". ` +\n `Ensure withRemoteComponentsHostProxy middleware is configured, \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\" is in the matcher, ` +\n `and the remote URL is included in allowedProxyUrls. ` +\n `See: ${CORS_DOCS_URL}`,\n );\n}\n\nexport function failedProxyFetchError(\n originalUrl: string,\n proxyUrl: string,\n status: number,\n responseBody?: string,\n): RemoteComponentsError {\n if (status === 404) {\n return new RemoteComponentsError(\n `Could not proxy the request to \"${originalUrl}\" — the proxy endpoint \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\" returned 404.\\n\\n` +\n `The host server needs middleware or a route that handles \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\".\\n\\n` +\n `Proxying requires two pieces:\\n` +\n ` 1. resolveClientUrl={routeThroughHostProxy} on <RemoteComponent>\\n` +\n ` 2. Middleware or a route for \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\" on the host server\\n\\n` +\n `Docs: ${CORS_DOCS_URL}`,\n );\n }\n if (status === 403) {\n const detail = responseBody ? ` ${responseBody}` : '';\n return new RemoteComponentsError(\n `Proxied request to \"${proxyUrl}\" was forbidden.${detail} ` +\n `See: ${CORS_DOCS_URL}`,\n );\n }\n return new RemoteComponentsError(\n `Proxied request for \"${originalUrl}\" via \"${proxyUrl}\" failed with status ${status}. ` +\n `See: ${CORS_DOCS_URL}`,\n );\n}\n","import { CORS_DOCS_URL } from '#internal/utils/constants';\nimport { RemoteComponentsError } from '#internal/utils/error';\n\nexport type LogLocation =\n | 'ChunkLoader'\n | 'ChunkDispatcher'\n | 'ComponentLoader'\n | 'ModuleDispatcher'\n | 'RemoteScope'\n | 'SharedModules'\n | 'WebpackRuntime'\n | 'TurbopackModule'\n | 'StaticLoader'\n | 'ScriptLoader'\n | 'Polyfill'\n | 'HtmlRemote'\n | 'HtmlHost'\n | 'Config'\n | 'NextAppRouter'\n | 'NextAppRouterCompat'\n | 'FetchRemoteComponent'\n | 'SharedModuleResolver';\n\nconst PREFIX = 'remote-components';\nconst DEBUG =\n (typeof window !== 'undefined' &&\n localStorage.getItem('RC_DEBUG') === 'true') ||\n (typeof process !== 'undefined' && process.env.RC_DEBUG === 'true');\n\nexport function logDebug(location: LogLocation, message: string) {\n if (DEBUG) {\n // eslint-disable-next-line no-console\n console.debug(`[${PREFIX}:${location}]: ${message}`);\n }\n}\n\nexport function logInfo(location: LogLocation, message: string) {\n // eslint-disable-next-line no-console\n console.info(`[${PREFIX}:${location}]: ${message}`);\n}\n\nexport function logWarn(location: LogLocation, message: string) {\n // eslint-disable-next-line no-console\n console.warn(`[${PREFIX}:${location}]: ${message}`);\n}\n\nexport function logError(\n location: LogLocation,\n message: string,\n cause?: unknown,\n) {\n // eslint-disable-next-line no-console\n console.error(\n new RemoteComponentsError(`[${PREFIX}:${location}]: ${message}`, {\n cause,\n }),\n );\n}\n\n/**\n * Logs a warning when a cross-origin asset request fails, guiding users\n * to configure the proxy middleware and resolveClientUrl on their host.\n */\nexport function warnCrossOriginFetchError(\n logLocation: LogLocation,\n url: string | URL,\n): void {\n try {\n const parsed = typeof url === 'string' ? new URL(url) : url;\n if (typeof location === 'undefined' || parsed.origin === location.origin) {\n return;\n }\n logWarn(\n logLocation,\n `Failed to fetch cross-origin resource \"${parsed.href}\". ` +\n 'To load assets from a protected deployment, two steps are required: ' +\n '(1) configure withRemoteComponentsHostProxy middleware in your host with the remote URL in allowedProxyUrls, ' +\n 'and (2) provide a resolveClientUrl prop that rewrites cross-origin asset URLs to go through the proxy. ' +\n `See: ${CORS_DOCS_URL}`,\n );\n } catch {\n // URL parsing failed — skip the warning\n }\n}\n"],"mappings":";;;;;;;;;AAIO,SAAS,aAAa,OAAuC;AAClE,MAAI,iBAAiB,gBAAgB,MAAM,SAAS,cAAc;AAChE,WAAO;AAAA,EACT;AAGA,MACE,UAAU,QACV,OAAO,UAAU,YACjB,UAAU,SACV,MAAM,SAAS,gBACf,aAAa,SACb,OAAQ,MAA+B,YAAY,UACnD;AAEA,UAAM,IAAI;AACV,WAAO,OAAO,EAAE,SAAS,YAAY,EAAE,aAAa,SAAS;AAAA,EAC/D;AAEA,SAAO;AACT;;;ACjBO,IAAM,wBAAN,cAAoC,MAAM;AAAA,EAC/C,OAAO;AAAA,EAEP,YAAY,SAAiB,SAA+B;AAC1D,UAAM,SAAS,OAAO;AACtB,SAAK,OAAO;AAAA,EACd;AACF;AAEO,SAAS,8BAA8B,KAAyB;AACrE,SAAO,IAAI;AAAA,IACT,wCAAwC;AAAA,EAC1C;AACF;AAEO,SAAS,kCACd,KACA,EAAE,QAAQ,WAAW,GACrB,OAAe,sCACf;AACA,SAAO,IAAI;AAAA,IACT,0CAA0C,SAAS;AAAA,IACnD,EAAE,OAAO,IAAI,MAAM,GAAG,UAAU,YAAY,EAAE;AAAA,EAChD;AACF;AAEA,eAAsB,qBACpB,aACA,aACA,KACgC;AAChC,QAAM,YAAY,aAAa,YAAY,IAAI;AAE/C,MAAI,aAAa,KAAK;AACpB,UAAM,OAAO,MAAM,IAAI,KAAK,EAAE,MAAM,MAAM,EAAE;AAC5C,WAAO;AAAA,MACL;AAAA,MACA,YAAY;AAAA,MACZ,IAAI;AAAA,MACJ;AAAA,IACF;AAAA,EACF;AAEA,QAAM,WAAW;AAAA,IACf;AAAA,IACA,OAAO,EAAE,QAAQ,GAAG,YAAY,cAAc;AAAA,EAChD;AAEA,MAAI,CAAC;AAAK,WAAO;AAEjB,MAAI;AACF,UAAM,OAAO,MAAM,IAAI,KAAK;AAC5B,UAAM,SAAS,IAAI,UAAU;AAC7B,UAAM,MAAM,OAAO,gBAAgB,MAAM,WAAW;AACpD,UAAM,gBAAgB,IAAI;AAAA,MACxB;AAAA,IACF;AACA,UAAM,eAAe,eAAe,aAAa,yBAAyB;AAC1E,QAAI,cAAc;AAChB,YAAM,QAAQ,IAAI,sBAAsB,YAAY;AACpD,YAAM,aAAa,eAAe,aAAa,uBAAuB;AACtE,UAAI,YAAY;AACd,cAAM,QAAQ;AAAA,MAChB;AACA,aAAO;AAAA,IACT;AAAA,EACF,SAAS,YAAP;AAEA,QAAI,aAAa,UAAU;AAAG,YAAM;AAAA,EACtC;AAEA,SAAO;AACT;AAEO,SAAS,wBACd,MACA,KACA,aACuB;AACvB,SAAO,IAAI;AAAA,IACT,kBAAkB,SAAS,mBAAmB,iFACuB,mHAE3D;AAAA,EACZ;AACF;AAEO,SAAS,sBACd,aACA,UACA,QACA,cACuB;AACvB,MAAI,WAAW,KAAK;AAClB,WAAO,IAAI;AAAA,MACT,mCAAmC,2CAAsC;AAAA;AAAA,4DACV;AAAA;AAAA;AAAA;AAAA,kCAG1B;AAAA;AAAA,QAC1B;AAAA,IACb;AAAA,EACF;AACA,MAAI,WAAW,KAAK;AAClB,UAAM,SAAS,eAAe,IAAI,iBAAiB;AACnD,WAAO,IAAI;AAAA,MACT,uBAAuB,2BAA2B,eACxC;AAAA,IACZ;AAAA,EACF;AACA,SAAO,IAAI;AAAA,IACT,wBAAwB,qBAAqB,gCAAgC,gBACnE;AAAA,EACZ;AACF;;;AClGA,IAAM,SAAS;AACf,IAAM,QACH,OAAO,WAAW,eACjB,aAAa,QAAQ,UAAU,MAAM,UACtC,OAAO,YAAY,eAAe,QAAQ,IAAI,aAAa;AAEvD,SAAS,SAASA,WAAuB,SAAiB;AAC/D,MAAI,OAAO;AAET,YAAQ,MAAM,IAAI,UAAUA,eAAc,SAAS;AAAA,EACrD;AACF;AAOO,SAAS,QAAQC,WAAuB,SAAiB;AAE9D,UAAQ,KAAK,IAAI,UAAUA,eAAc,SAAS;AACpD;AAEO,SAAS,SACdA,WACA,SACA,OACA;AAEA,UAAQ;AAAA,IACN,IAAI,sBAAsB,IAAI,UAAUA,eAAc,WAAW;AAAA,MAC/D;AAAA,IACF,CAAC;AAAA,EACH;AACF;AAMO,SAAS,0BACd,aACA,KACM;AACN,MAAI;AACF,UAAM,SAAS,OAAO,QAAQ,WAAW,IAAI,IAAI,GAAG,IAAI;AACxD,QAAI,OAAO,aAAa,eAAe,OAAO,WAAW,SAAS,QAAQ;AACxE;AAAA,IACF;AACA;AAAA,MACE;AAAA,MACA,0CAA0C,OAAO,uSAIvC;AAAA,IACZ;AAAA,EACF,QAAE;AAAA,EAEF;AACF;","names":["location","location"]}
|
|
1
|
+
{"version":3,"sources":["../src/utils/abort.ts","../src/utils/error.ts","../src/utils/logger.ts"],"sourcesContent":["/**\n * Type guard to check if an error is an AbortError.\n * Handles cross-environment differences (Node.js, browsers, JSDOM).\n */\nexport function isAbortError(error: unknown): error is DOMException {\n if (error instanceof DOMException && error.name === 'AbortError') {\n return true;\n }\n\n // Handle Node.js native AbortError which may not be instanceof global DOMException\n if (\n error !== null &&\n typeof error === 'object' &&\n 'name' in error &&\n error.name === 'AbortError' &&\n 'message' in error &&\n typeof (error as { message: unknown }).message === 'string'\n ) {\n // Additional check: verify it has DOMException-like structure\n const e = error as { code?: unknown; constructor?: { name?: string } };\n return typeof e.code === 'number' || e.constructor?.name === 'DOMException';\n }\n\n return false;\n}\n","import { isProxiedUrl } from '#internal/runtime/url/protected-rc-fallback';\nimport { isAbortError } from '#internal/utils/abort';\nimport {\n CORS_DOCS_URL,\n RC_PROTECTED_REMOTE_FETCH_PATHNAME,\n} from '#internal/utils/constants';\n\nexport class RemoteComponentsError extends Error {\n code = 'REMOTE_COMPONENTS_ERROR';\n\n constructor(message: string, options?: { cause?: unknown }) {\n super(message, options);\n this.name = 'RemoteComponentsError';\n }\n}\n\nexport function multipleRemoteComponentsError(url: string | undefined) {\n return new RemoteComponentsError(\n `Multiple Remote Components found at \"${url}\". When a page exposes multiple Remote Components you must specify the \"name\" prop to select which one to load.`,\n );\n}\n\nexport function failedToFetchRemoteComponentError(\n url: string,\n { status, statusText }: { status: number; statusText: string },\n help: string = 'Is the URL correct and accessible?',\n) {\n return new RemoteComponentsError(\n `Failed to fetch Remote Component from \"${url}\". ${help}`,\n { cause: new Error(`${status} ${statusText}`) },\n );\n}\n\nexport async function errorFromFailedFetch(\n originalUrl: string,\n resolvedUrl: URL,\n res: Response | null | undefined,\n): Promise<RemoteComponentsError> {\n const isProxied = isProxiedUrl(resolvedUrl.href);\n\n if (isProxied && res) {\n const body = await res.text().catch(() => '');\n return failedProxyFetchError(\n originalUrl,\n resolvedUrl.href,\n res.status,\n body,\n );\n }\n\n const fallback = failedToFetchRemoteComponentError(\n originalUrl,\n res ?? { status: 0, statusText: 'No Response' },\n );\n\n if (!res) return fallback;\n\n try {\n const body = await res.text();\n const parser = new DOMParser();\n const doc = parser.parseFromString(body, 'text/html');\n const errorTemplate = doc.querySelector(\n 'template[data-next-error-message]',\n );\n const errorMessage = errorTemplate?.getAttribute('data-next-error-message');\n if (errorMessage) {\n const error = new RemoteComponentsError(errorMessage);\n const errorStack = errorTemplate?.getAttribute('data-next-error-stack');\n if (errorStack) {\n error.stack = errorStack;\n }\n return error;\n }\n } catch (parseError) {\n // Re-throw abort errors, ignore parse errors\n if (isAbortError(parseError)) throw parseError;\n }\n\n return fallback;\n}\n\nexport function failedProxiedAssetError(\n kind: 'chunk' | 'script',\n url: string,\n resolvedUrl: string,\n): RemoteComponentsError {\n return new RemoteComponentsError(\n `Failed to load ${kind} \"${url}\" via proxy \"${resolvedUrl}\". ` +\n `Ensure withRemoteComponentsHostProxy middleware is configured, \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\" is in the matcher, ` +\n `and the remote URL is included in allowedProxyUrls. ` +\n `See: ${CORS_DOCS_URL}`,\n );\n}\n\nexport function failedProxyFetchError(\n originalUrl: string,\n proxyUrl: string,\n status: number,\n responseBody?: string,\n): RemoteComponentsError {\n if (status === 404) {\n return new RemoteComponentsError(\n `Could not proxy the request to \"${originalUrl}\" — the proxy endpoint \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\" returned 404.\\n\\n` +\n `The host server needs middleware or a route that handles \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\".\\n\\n` +\n `Proxying requires two pieces:\\n` +\n ` 1. resolveClientUrl={routeThroughHostProxy} on <RemoteComponent>\\n` +\n ` 2. Middleware or a route for \"${RC_PROTECTED_REMOTE_FETCH_PATHNAME}\" on the host server\\n\\n` +\n `Docs: ${CORS_DOCS_URL}`,\n );\n }\n if (status === 403) {\n const detail = responseBody ? ` ${responseBody}` : '';\n return new RemoteComponentsError(\n `Proxied request to \"${proxyUrl}\" was forbidden.${detail} ` +\n `See: ${CORS_DOCS_URL}`,\n );\n }\n return new RemoteComponentsError(\n `Proxied request for \"${originalUrl}\" via \"${proxyUrl}\" failed with status ${status}. ` +\n `See: ${CORS_DOCS_URL}`,\n );\n}\n","import { CORS_DOCS_URL } from '#internal/utils/constants';\nimport { RemoteComponentsError } from '#internal/utils/error';\n\nexport type LogLocation =\n | 'ChunkLoader'\n | 'ChunkDispatcher'\n | 'ComponentLoader'\n | 'ModuleDispatcher'\n | 'RemoteScope'\n | 'SharedModules'\n | 'WebpackRuntime'\n | 'TurbopackModule'\n | 'StaticLoader'\n | 'ScriptLoader'\n | 'Polyfill'\n | 'HtmlRemote'\n | 'HtmlHost'\n | 'Config'\n | 'NextAppRouter'\n | 'NextAppRouterCompat'\n | 'FetchRemoteComponent'\n | 'SharedModuleResolver'\n | 'SharedBroker';\n\nconst PREFIX = 'remote-components';\nconst DEBUG =\n (typeof window !== 'undefined' &&\n localStorage.getItem('RC_DEBUG') === 'true') ||\n (typeof process !== 'undefined' && process.env.RC_DEBUG === 'true');\n\nexport function logDebug(location: LogLocation, message: string) {\n if (DEBUG) {\n // eslint-disable-next-line no-console\n console.debug(`[${PREFIX}:${location}]: ${message}`);\n }\n}\n\nexport function logInfo(location: LogLocation, message: string) {\n // eslint-disable-next-line no-console\n console.info(`[${PREFIX}:${location}]: ${message}`);\n}\n\nexport function logWarn(location: LogLocation, message: string) {\n // eslint-disable-next-line no-console\n console.warn(`[${PREFIX}:${location}]: ${message}`);\n}\n\nexport function logError(\n location: LogLocation,\n message: string,\n cause?: unknown,\n) {\n // eslint-disable-next-line no-console\n console.error(\n new RemoteComponentsError(`[${PREFIX}:${location}]: ${message}`, {\n cause,\n }),\n );\n}\n\n/**\n * Logs a warning when a cross-origin asset request fails, guiding users\n * to configure the proxy middleware and resolveClientUrl on their host.\n */\nexport function warnCrossOriginFetchError(\n logLocation: LogLocation,\n url: string | URL,\n): void {\n try {\n const parsed = typeof url === 'string' ? new URL(url) : url;\n if (typeof location === 'undefined' || parsed.origin === location.origin) {\n return;\n }\n logWarn(\n logLocation,\n `Failed to fetch cross-origin resource \"${parsed.href}\". ` +\n 'To load assets from a protected deployment, two steps are required: ' +\n '(1) configure withRemoteComponentsHostProxy middleware in your host with the remote URL in allowedProxyUrls, ' +\n 'and (2) provide a resolveClientUrl prop that rewrites cross-origin asset URLs to go through the proxy. ' +\n `See: ${CORS_DOCS_URL}`,\n );\n } catch {\n // URL parsing failed — skip the warning\n }\n}\n"],"mappings":"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","names":["location","location"]}
|
package/dist/config/nextjs.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7XXO2DLFcjs = require('../chunk-7XXO2DLF.cjs');
|
|
5
5
|
require('../chunk-Z2SLBFQL.cjs');
|
|
6
6
|
require('../chunk-5KTAEO52.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBBXVML3Dcjs = require('../chunk-BBXVML3D.cjs');
|
|
12
12
|
require('../chunk-KE7QPAQ4.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
@@ -142,7 +142,7 @@ function withRemoteComponentsConfig(nextConfig, options) {
|
|
|
142
142
|
".remote-components/shared/pages-host.tsx"
|
|
143
143
|
);
|
|
144
144
|
const appShared = /* @__PURE__ */ new Set([
|
|
145
|
-
...
|
|
145
|
+
..._chunk7XXO2DLFcjs.CORE_REACT_SHARED_KEYS,
|
|
146
146
|
"next/navigation",
|
|
147
147
|
"next/dist/client/components/navigation",
|
|
148
148
|
"next/link",
|
|
@@ -156,7 +156,7 @@ function withRemoteComponentsConfig(nextConfig, options) {
|
|
|
156
156
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.shared]), () => ( []))
|
|
157
157
|
]);
|
|
158
158
|
const pagesShared = /* @__PURE__ */ new Set([
|
|
159
|
-
...
|
|
159
|
+
..._chunk7XXO2DLFcjs.CORE_REACT_SHARED_KEYS,
|
|
160
160
|
"next/router",
|
|
161
161
|
"next/link",
|
|
162
162
|
"next/dist/shared/lib/image-loader",
|
|
@@ -164,7 +164,7 @@ function withRemoteComponentsConfig(nextConfig, options) {
|
|
|
164
164
|
"next/form",
|
|
165
165
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _2 => _2.shared]), () => ( []))
|
|
166
166
|
]);
|
|
167
|
-
const vendorShared = { ...
|
|
167
|
+
const vendorShared = { ..._chunk7XXO2DLFcjs.VENDOR_SHARED };
|
|
168
168
|
const resolve = _enhancedresolve2.default.create.sync({
|
|
169
169
|
conditionNames: ["browser", "import", "module", "require"],
|
|
170
170
|
..._fs.existsSync.call(void 0, _path.join.call(void 0, process.cwd(), "tsconfig.json")) ? {
|
|
@@ -263,7 +263,7 @@ ${exportPre}${Array.from(sharedHost).reduce((acc, curr) => {
|
|
|
263
263
|
if (hasPagesDirectory()) {
|
|
264
264
|
const nextMajor = getNextMajorVersion();
|
|
265
265
|
if (nextMajor !== void 0 && nextMajor < 16) {
|
|
266
|
-
const log = process.env.NODE_ENV !== "production" || process.env.VERCEL_ENV === "preview" ?
|
|
266
|
+
const log = process.env.NODE_ENV !== "production" || process.env.VERCEL_ENV === "preview" ? _chunkBBXVML3Dcjs.logWarn : _chunkBBXVML3Dcjs.logDebug;
|
|
267
267
|
log(
|
|
268
268
|
"Config",
|
|
269
269
|
`Remote Components does not support Pages Router hosts on Next.js ${nextMajor}. Pages Router remotes are unaffected. Upgrade to Next.js 16+ for host support.`
|
|
@@ -283,7 +283,7 @@ ${exportPre}${Array.from(sharedHost).reduce((acc, curr) => {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}).success) {
|
|
286
|
-
|
|
286
|
+
_chunkBBXVML3Dcjs.logError.call(void 0,
|
|
287
287
|
"Config",
|
|
288
288
|
"Turbopack support requires a Next.js version that includes `compiler.defineServer`. Upgrade Next.js to continue using Remote Components with Turbopack."
|
|
289
289
|
);
|
package/dist/config/nextjs.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CORE_REACT_SHARED_KEYS,
|
|
3
3
|
VENDOR_SHARED
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-55TEMSB5.js";
|
|
5
5
|
import "../chunk-D5GNZB6O.js";
|
|
6
6
|
import "../chunk-STIJO4AG.js";
|
|
7
7
|
import {
|
|
8
8
|
logDebug,
|
|
9
9
|
logError,
|
|
10
10
|
logWarn
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-ULXU6XWH.js";
|
|
12
12
|
import "../chunk-X6YKUJKH.js";
|
|
13
13
|
import {
|
|
14
14
|
ConditionalExecPlugin,
|
package/dist/host/html.cjs
CHANGED
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
10
|
+
var _chunk2W7JBTIDcjs = require('../chunk-2W7JBTID.cjs');
|
|
11
|
+
require('../chunk-C5EYU7EQ.cjs');
|
|
12
|
+
require('../chunk-SECN7UAL.cjs');
|
|
13
|
+
require('../chunk-HMB3SIVJ.cjs');
|
|
14
|
+
require('../chunk-3AX5WLZD.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk7XXO2DLFcjs = require('../chunk-7XXO2DLF.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunkZ2SLBFQLcjs = require('../chunk-Z2SLBFQL.cjs');
|
|
@@ -26,7 +26,7 @@ require('../chunk-5KTAEO52.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkBBXVML3Dcjs = require('../chunk-BBXVML3D.cjs');
|
|
30
30
|
require('../chunk-KE7QPAQ4.cjs');
|
|
31
31
|
require('../chunk-TCFLEBQM.cjs');
|
|
32
32
|
require('../chunk-SHFJ5OQA.cjs');
|
|
@@ -69,7 +69,7 @@ async function attachStyles({
|
|
|
69
69
|
if (link.rel === "stylesheet") {
|
|
70
70
|
newLink.onload = () => resolve();
|
|
71
71
|
newLink.onerror = () => reject(
|
|
72
|
-
new (0,
|
|
72
|
+
new (0, _chunkBBXVML3Dcjs.RemoteComponentsError)(
|
|
73
73
|
`Failed to load <link href="${link.href}"> for Remote Component. Check the URL is correct.`
|
|
74
74
|
)
|
|
75
75
|
);
|
|
@@ -125,10 +125,10 @@ async function getRuntime(type, url, bundle, shared, remoteShared, resolveClient
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
if (type === "webpack") {
|
|
128
|
-
const { webpackRuntime } = await Promise.resolve().then(() => _interopRequireWildcard(require("../webpack-
|
|
128
|
+
const { webpackRuntime } = await Promise.resolve().then(() => _interopRequireWildcard(require("../webpack-6LXCB7WA.cjs")));
|
|
129
129
|
return webpackRuntime(bundle, shared, remoteShared, resolveClientUrl);
|
|
130
130
|
} else if (type === "turbopack") {
|
|
131
|
-
const { turbopackRuntime } = await Promise.resolve().then(() => _interopRequireWildcard(require("../turbopack-
|
|
131
|
+
const { turbopackRuntime } = await Promise.resolve().then(() => _interopRequireWildcard(require("../turbopack-DULMVTWV.cjs")));
|
|
132
132
|
return turbopackRuntime(
|
|
133
133
|
url,
|
|
134
134
|
bundle,
|
|
@@ -137,10 +137,10 @@ async function getRuntime(type, url, bundle, shared, remoteShared, resolveClient
|
|
|
137
137
|
resolveClientUrl
|
|
138
138
|
);
|
|
139
139
|
} else if (type === "script") {
|
|
140
|
-
const { scriptRuntime } = await Promise.resolve().then(() => _interopRequireWildcard(require("../script-
|
|
140
|
+
const { scriptRuntime } = await Promise.resolve().then(() => _interopRequireWildcard(require("../script-YQCDUYDP.cjs")));
|
|
141
141
|
return scriptRuntime(resolveClientUrl);
|
|
142
142
|
}
|
|
143
|
-
throw new (0,
|
|
143
|
+
throw new (0, _chunkBBXVML3Dcjs.RemoteComponentsError)(
|
|
144
144
|
`Remote Components runtime "${type}" is not supported. Supported runtimes are "webpack", "turbopack", and "script".`
|
|
145
145
|
);
|
|
146
146
|
}
|
|
@@ -149,15 +149,15 @@ async function getRuntime(type, url, bundle, shared, remoteShared, resolveClient
|
|
|
149
149
|
var _jsxruntime = require('react/jsx-runtime');
|
|
150
150
|
if (typeof HTMLElement !== "undefined") {
|
|
151
151
|
class RemoteComponent extends HTMLElement {constructor(...args) { super(...args); RemoteComponent.prototype.__init.call(this);RemoteComponent.prototype.__init2.call(this);RemoteComponent.prototype.__init3.call(this);RemoteComponent.prototype.__init4.call(this);RemoteComponent.prototype.__init5.call(this);RemoteComponent.prototype.__init6.call(this);RemoteComponent.prototype.__init7.call(this); }
|
|
152
|
-
__init() {this.name =
|
|
153
|
-
__init2() {this.bundle =
|
|
152
|
+
__init() {this.name = _chunk7XXO2DLFcjs.DEFAULT_COMPONENT_NAME}
|
|
153
|
+
__init2() {this.bundle = _chunk7XXO2DLFcjs.DEFAULT_BUNDLE_NAME}
|
|
154
154
|
|
|
155
155
|
__init3() {this.__next = null}
|
|
156
156
|
__init4() {this.fouc = null}
|
|
157
|
-
__init5() {this.hostState =
|
|
157
|
+
__init5() {this.hostState = _chunk2W7JBTIDcjs.createHostState.call(void 0, )}
|
|
158
158
|
__init6() {this.root = null}
|
|
159
159
|
|
|
160
|
-
__init7() {this.emitter =
|
|
160
|
+
__init7() {this.emitter = _chunk2W7JBTIDcjs.makeEventEmitter.call(void 0, this)}
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
@@ -212,10 +212,10 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
212
212
|
if ((name === "src" || name === "name") && oldValue !== newValue) {
|
|
213
213
|
if (this.src) {
|
|
214
214
|
this.load().catch((e) => {
|
|
215
|
-
if (
|
|
215
|
+
if (_chunkBBXVML3Dcjs.isAbortError.call(void 0, e)) {
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
_chunkBBXVML3Dcjs.logError.call(void 0, "HtmlHost", "Error loading remote component.", e);
|
|
219
219
|
this.emitter.error(e, this.src);
|
|
220
220
|
this.hostState.stage = "error";
|
|
221
221
|
});
|
|
@@ -229,10 +229,10 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
229
229
|
});
|
|
230
230
|
this.root = newRoot;
|
|
231
231
|
this.load().catch((e) => {
|
|
232
|
-
if (
|
|
232
|
+
if (_chunkBBXVML3Dcjs.isAbortError.call(void 0, e)) {
|
|
233
233
|
return;
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
_chunkBBXVML3Dcjs.logError.call(void 0, "HtmlHost", "Error reloading remote component.", e);
|
|
236
236
|
this.emitter.error(e, this.src);
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -274,15 +274,15 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
274
274
|
this.emitter.beforeLoad(_nullishCoalesce(src, () => ( "")));
|
|
275
275
|
const remoteComponentChild = this.querySelector("div#__REMOTE_COMPONENT__") || this.querySelector("div[data-bundle][data-route]");
|
|
276
276
|
if (!src && !remoteComponentChild) {
|
|
277
|
-
throw new (0,
|
|
277
|
+
throw new (0, _chunkBBXVML3Dcjs.RemoteComponentsError)('"src" attribute is required');
|
|
278
278
|
}
|
|
279
279
|
let url = null;
|
|
280
280
|
let html = this.innerHTML;
|
|
281
281
|
if (src) {
|
|
282
|
-
url =
|
|
283
|
-
this.name =
|
|
282
|
+
url = _chunk2W7JBTIDcjs.getClientOrServerUrl.call(void 0, src, window.location.href);
|
|
283
|
+
this.name = _chunk2W7JBTIDcjs.resolveNameFromSrc.call(void 0, src, this.name);
|
|
284
284
|
}
|
|
285
|
-
const resolveClientUrl = url ?
|
|
285
|
+
const resolveClientUrl = url ? _chunk2W7JBTIDcjs.bindResolveClientUrl.call(void 0, this.resolveClientUrl, url.href) : void 0;
|
|
286
286
|
if (!remoteComponentChild && url) {
|
|
287
287
|
const fetchInit = {
|
|
288
288
|
credentials: this.credentials || "same-origin"
|
|
@@ -293,24 +293,24 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
293
293
|
);
|
|
294
294
|
let res;
|
|
295
295
|
try {
|
|
296
|
-
res = await
|
|
296
|
+
res = await _chunk2W7JBTIDcjs.fetchWithHooks.call(void 0, resolvedUrl, fetchInit, {
|
|
297
297
|
onRequest: this.onRequest,
|
|
298
298
|
onResponse: this.onResponse,
|
|
299
299
|
abortController: this.hostState.abortController
|
|
300
300
|
});
|
|
301
301
|
} catch (e) {
|
|
302
|
-
if (
|
|
302
|
+
if (_chunkBBXVML3Dcjs.isAbortError.call(void 0, e)) {
|
|
303
303
|
return abandonLoad();
|
|
304
304
|
}
|
|
305
305
|
throw e;
|
|
306
306
|
}
|
|
307
307
|
if (!res || !res.ok) {
|
|
308
|
-
throw await
|
|
308
|
+
throw await _chunkBBXVML3Dcjs.errorFromFailedFetch.call(void 0, url.href, resolvedUrl, res);
|
|
309
309
|
}
|
|
310
310
|
try {
|
|
311
311
|
html = await res.text();
|
|
312
312
|
} catch (e) {
|
|
313
|
-
if (
|
|
313
|
+
if (_chunkBBXVML3Dcjs.isAbortError.call(void 0, e)) {
|
|
314
314
|
return abandonLoad();
|
|
315
315
|
}
|
|
316
316
|
throw e;
|
|
@@ -320,7 +320,7 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
const effectiveUrl = _nullishCoalesce(url, () => ( new URL(window.location.href)));
|
|
323
|
-
const { doc, parsed } =
|
|
323
|
+
const { doc, parsed } = _chunk2W7JBTIDcjs.preparePipeline.call(void 0, {
|
|
324
324
|
html,
|
|
325
325
|
name: this.name,
|
|
326
326
|
url: effectiveUrl,
|
|
@@ -371,7 +371,7 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
371
371
|
try {
|
|
372
372
|
await unmount(this.root);
|
|
373
373
|
} catch (e) {
|
|
374
|
-
|
|
374
|
+
_chunkBBXVML3Dcjs.logError.call(void 0,
|
|
375
375
|
"HtmlHost",
|
|
376
376
|
`Error while calling unmount() for Remote Component from ${prevUrl.href}.`,
|
|
377
377
|
e
|
|
@@ -553,9 +553,9 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
553
553
|
};
|
|
554
554
|
if (rsc) {
|
|
555
555
|
_optionalChain([rsc, 'access', _62 => _62.parentElement, 'optionalAccess', _63 => _63.removeChild, 'call', _64 => _64(rsc)]);
|
|
556
|
-
const rscName = `__remote_component_rsc_${
|
|
556
|
+
const rscName = `__remote_component_rsc_${_chunk7XXO2DLFcjs.escapeString.call(void 0,
|
|
557
557
|
url.href
|
|
558
|
-
)}_${
|
|
558
|
+
)}_${_chunk7XXO2DLFcjs.escapeString.call(void 0, this.name)}`;
|
|
559
559
|
const rscClone = document.createElement("script");
|
|
560
560
|
rscClone.id = `${rscName}_rsc`;
|
|
561
561
|
rscClone.textContent = _nullishCoalesce(_optionalChain([rsc, 'access', _65 => _65.textContent, 'optionalAccess', _66 => _66.replace, 'call', _67 => _67(
|
|
@@ -568,7 +568,7 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
568
568
|
name,
|
|
569
569
|
initial
|
|
570
570
|
}) => {
|
|
571
|
-
const stream =
|
|
571
|
+
const stream = _chunk2W7JBTIDcjs.createRSCStream.call(void 0,
|
|
572
572
|
rscName,
|
|
573
573
|
_nullishCoalesce(self[rscName], () => ( [`0:[null]
|
|
574
574
|
`]))
|
|
@@ -587,7 +587,7 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
587
587
|
applyReset();
|
|
588
588
|
if (!initial) {
|
|
589
589
|
doAttachStyles().catch((e) => {
|
|
590
|
-
|
|
590
|
+
_chunkBBXVML3Dcjs.logError.call(void 0, "HtmlHost", "Error attaching styles.", e);
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
if (isCurrentLoad()) {
|
|
@@ -631,7 +631,7 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
631
631
|
if (!initial) {
|
|
632
632
|
applyReset();
|
|
633
633
|
doAttachStyles().catch((e) => {
|
|
634
|
-
|
|
634
|
+
_chunkBBXVML3Dcjs.logError.call(void 0, "HtmlHost", "Error attaching styles.", e);
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
if (isCurrentLoad()) {
|
|
@@ -669,7 +669,7 @@ if (typeof HTMLElement !== "undefined") {
|
|
|
669
669
|
try {
|
|
670
670
|
await mount(this.root);
|
|
671
671
|
} catch (e) {
|
|
672
|
-
|
|
672
|
+
_chunkBBXVML3Dcjs.logError.call(void 0,
|
|
673
673
|
"HtmlHost",
|
|
674
674
|
`Error while calling mount() for Remote Component from ${url.href}.`,
|
|
675
675
|
e
|
package/dist/host/html.js
CHANGED
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
makeEventEmitter,
|
|
8
8
|
preparePipeline,
|
|
9
9
|
resolveNameFromSrc
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-DGZVFKSQ.js";
|
|
11
|
+
import "../chunk-HL6BL5HY.js";
|
|
12
|
+
import "../chunk-KV5J7PNM.js";
|
|
13
|
+
import "../chunk-4NW46ZVD.js";
|
|
14
|
+
import "../chunk-LEKG4YWI.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUNDLE_NAME,
|
|
17
17
|
DEFAULT_COMPONENT_NAME,
|
|
18
18
|
escapeString
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-55TEMSB5.js";
|
|
20
20
|
import {
|
|
21
21
|
getNamespace
|
|
22
22
|
} from "../chunk-D5GNZB6O.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
errorFromFailedFetch,
|
|
27
27
|
isAbortError,
|
|
28
28
|
logError
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-ULXU6XWH.js";
|
|
30
30
|
import "../chunk-X6YKUJKH.js";
|
|
31
31
|
import "../chunk-GAXJTFBV.js";
|
|
32
32
|
import "../chunk-ENYGL5CO.js";
|
|
@@ -125,10 +125,10 @@ async function getRuntime(type, url, bundle, shared, remoteShared, resolveClient
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
if (type === "webpack") {
|
|
128
|
-
const { webpackRuntime } = await import("../webpack-
|
|
128
|
+
const { webpackRuntime } = await import("../webpack-WGVTKJ3W.js");
|
|
129
129
|
return webpackRuntime(bundle, shared, remoteShared, resolveClientUrl);
|
|
130
130
|
} else if (type === "turbopack") {
|
|
131
|
-
const { turbopackRuntime } = await import("../turbopack-
|
|
131
|
+
const { turbopackRuntime } = await import("../turbopack-7F757Z7V.js");
|
|
132
132
|
return turbopackRuntime(
|
|
133
133
|
url,
|
|
134
134
|
bundle,
|
|
@@ -137,7 +137,7 @@ async function getRuntime(type, url, bundle, shared, remoteShared, resolveClient
|
|
|
137
137
|
resolveClientUrl
|
|
138
138
|
);
|
|
139
139
|
} else if (type === "script") {
|
|
140
|
-
const { scriptRuntime } = await import("../script-
|
|
140
|
+
const { scriptRuntime } = await import("../script-ISAHSV3X.js");
|
|
141
141
|
return scriptRuntime(resolveClientUrl);
|
|
142
142
|
}
|
|
143
143
|
throw new RemoteComponentsError(
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4AH3KXDWcjs = require('../../../chunk-4AH3KXDW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../../../chunk-
|
|
9
|
-
require('../../../chunk-
|
|
10
|
-
require('../../../chunk-
|
|
11
|
-
require('../../../chunk-
|
|
7
|
+
var _chunk2W7JBTIDcjs = require('../../../chunk-2W7JBTID.cjs');
|
|
8
|
+
require('../../../chunk-C5EYU7EQ.cjs');
|
|
9
|
+
require('../../../chunk-SECN7UAL.cjs');
|
|
10
|
+
require('../../../chunk-HMB3SIVJ.cjs');
|
|
11
|
+
require('../../../chunk-3AX5WLZD.cjs');
|
|
12
12
|
require('../../../chunk-N3SQTOSE.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk7XXO2DLFcjs = require('../../../chunk-7XXO2DLF.cjs');
|
|
17
17
|
require('../../../chunk-Z2SLBFQL.cjs');
|
|
18
18
|
require('../../../chunk-5KTAEO52.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkBBXVML3Dcjs = require('../../../chunk-BBXVML3D.cjs');
|
|
22
22
|
require('../../../chunk-KE7QPAQ4.cjs');
|
|
23
23
|
require('../../../chunk-TCFLEBQM.cjs');
|
|
24
24
|
require('../../../chunk-SHFJ5OQA.cjs');
|
|
@@ -31,8 +31,8 @@ var _react = require('react');
|
|
|
31
31
|
function resolveForBundle(unbound, bundle) {
|
|
32
32
|
if (!unbound)
|
|
33
33
|
return void 0;
|
|
34
|
-
const remoteSrc = _nullishCoalesce(_optionalChain([
|
|
35
|
-
return
|
|
34
|
+
const remoteSrc = _nullishCoalesce(_optionalChain([_chunk7XXO2DLFcjs.getScope.call(void 0, bundle), 'optionalAccess', _2 => _2.url, 'access', _3 => _3.href]), () => ( ""));
|
|
35
|
+
return _chunk2W7JBTIDcjs.bindResolveClientUrl.call(void 0, unbound, remoteSrc);
|
|
36
36
|
}
|
|
37
37
|
function createImageLoaderSharedEntries({
|
|
38
38
|
bound,
|
|
@@ -41,13 +41,13 @@ function createImageLoaderSharedEntries({
|
|
|
41
41
|
const loaderEntry = (bundle) => {
|
|
42
42
|
const resolveClientUrl = _nullishCoalesce(bound, () => ( resolveForBundle(unbound, bundle)));
|
|
43
43
|
return Promise.resolve({
|
|
44
|
-
default:
|
|
44
|
+
default: _chunk7XXO2DLFcjs.createRemoteImageLoader.call(void 0, bundle, resolveClientUrl),
|
|
45
45
|
__esModule: true
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
const imageEntry = async (bundle) => {
|
|
49
49
|
const resolveClientUrl = _nullishCoalesce(bound, () => ( resolveForBundle(unbound, bundle)));
|
|
50
|
-
const rawLoader =
|
|
50
|
+
const rawLoader = _chunk7XXO2DLFcjs.createRemoteImageLoader.call(void 0, bundle, resolveClientUrl);
|
|
51
51
|
const remoteLoader = Object.assign(
|
|
52
52
|
(p) => rawLoader({ ...p, config: { path: "/_next/image" } }),
|
|
53
53
|
{ __next_img_default: true }
|
|
@@ -113,7 +113,7 @@ var routerImpl = async () => {
|
|
|
113
113
|
},
|
|
114
114
|
refresh: () => Promise.resolve(router.refresh()),
|
|
115
115
|
prefetch: async () => {
|
|
116
|
-
|
|
116
|
+
_chunkBBXVML3Dcjs.logWarn.call(void 0,
|
|
117
117
|
"NextAppRouterCompat",
|
|
118
118
|
"You are using router.prefetch() in a remote component loaded in the Next.js App Router. prefetch() is a no-op in the App Router."
|
|
119
119
|
);
|
|
@@ -131,19 +131,19 @@ var routerImpl = async () => {
|
|
|
131
131
|
},
|
|
132
132
|
events: {
|
|
133
133
|
on: () => {
|
|
134
|
-
|
|
134
|
+
_chunkBBXVML3Dcjs.logWarn.call(void 0,
|
|
135
135
|
"NextAppRouterCompat",
|
|
136
136
|
"You are using router.events.on() in a remote component loaded in the Next.js App Router. events.on() is a no-op in the App Router."
|
|
137
137
|
);
|
|
138
138
|
},
|
|
139
139
|
off: () => {
|
|
140
|
-
|
|
140
|
+
_chunkBBXVML3Dcjs.logWarn.call(void 0,
|
|
141
141
|
"NextAppRouterCompat",
|
|
142
142
|
"You are using router.events.off() in a remote component loaded in the Next.js App Router. events.off() is a no-op in the App Router."
|
|
143
143
|
);
|
|
144
144
|
},
|
|
145
145
|
emit: () => {
|
|
146
|
-
|
|
146
|
+
_chunkBBXVML3Dcjs.logWarn.call(void 0,
|
|
147
147
|
"NextAppRouterCompat",
|
|
148
148
|
"You are using router.events.emit() in a remote component loaded in the Next.js App Router. events.emit() is a no-op in the App Router."
|
|
149
149
|
);
|
|
@@ -191,7 +191,7 @@ function ConsumeRemoteComponent2(props) {
|
|
|
191
191
|
return _nullishCoalesce(props.children, () => ( null));
|
|
192
192
|
}
|
|
193
193
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
194
|
-
|
|
194
|
+
_chunk4AH3KXDWcjs.ConsumeRemoteComponent,
|
|
195
195
|
{
|
|
196
196
|
...props,
|
|
197
197
|
shared: sharedModules(props.shared, props.resolveClientUrl)
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ConsumeRemoteComponent
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-HYVNEUIK.js";
|
|
5
5
|
import {
|
|
6
6
|
bindResolveClientUrl
|
|
7
|
-
} from "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
11
|
-
import "../../../chunk-
|
|
7
|
+
} from "../../../chunk-DGZVFKSQ.js";
|
|
8
|
+
import "../../../chunk-HL6BL5HY.js";
|
|
9
|
+
import "../../../chunk-KV5J7PNM.js";
|
|
10
|
+
import "../../../chunk-4NW46ZVD.js";
|
|
11
|
+
import "../../../chunk-LEKG4YWI.js";
|
|
12
12
|
import "../../../chunk-RHGEBXPL.js";
|
|
13
13
|
import {
|
|
14
14
|
createRemoteImageLoader,
|
|
15
15
|
getScope
|
|
16
|
-
} from "../../../chunk-
|
|
16
|
+
} from "../../../chunk-55TEMSB5.js";
|
|
17
17
|
import "../../../chunk-D5GNZB6O.js";
|
|
18
18
|
import "../../../chunk-STIJO4AG.js";
|
|
19
19
|
import {
|
|
20
20
|
logWarn
|
|
21
|
-
} from "../../../chunk-
|
|
21
|
+
} from "../../../chunk-ULXU6XWH.js";
|
|
22
22
|
import "../../../chunk-X6YKUJKH.js";
|
|
23
23
|
import "../../../chunk-GAXJTFBV.js";
|
|
24
24
|
import "../../../chunk-ENYGL5CO.js";
|
package/dist/host/react.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
4
|
+
var _chunk4AH3KXDWcjs = require('../chunk-4AH3KXDW.cjs');
|
|
5
|
+
require('../chunk-2W7JBTID.cjs');
|
|
6
|
+
require('../chunk-C5EYU7EQ.cjs');
|
|
7
|
+
require('../chunk-SECN7UAL.cjs');
|
|
8
|
+
require('../chunk-HMB3SIVJ.cjs');
|
|
9
|
+
require('../chunk-3AX5WLZD.cjs');
|
|
10
10
|
require('../chunk-N3SQTOSE.cjs');
|
|
11
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-7XXO2DLF.cjs');
|
|
12
12
|
require('../chunk-Z2SLBFQL.cjs');
|
|
13
13
|
require('../chunk-5KTAEO52.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-BBXVML3D.cjs');
|
|
15
15
|
require('../chunk-KE7QPAQ4.cjs');
|
|
16
16
|
require('../chunk-TCFLEBQM.cjs');
|
|
17
17
|
require('../chunk-SHFJ5OQA.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.ConsumeRemoteComponent =
|
|
21
|
+
exports.ConsumeRemoteComponent = _chunk4AH3KXDWcjs.ConsumeRemoteComponent; exports.useRemoteNavigate = _chunk4AH3KXDWcjs.useRemoteNavigate;
|
|
22
22
|
//# sourceMappingURL=react.cjs.map
|
package/dist/host/react.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConsumeRemoteComponent,
|
|
3
3
|
useRemoteNavigate
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-HYVNEUIK.js";
|
|
5
|
+
import "../chunk-DGZVFKSQ.js";
|
|
6
|
+
import "../chunk-HL6BL5HY.js";
|
|
7
|
+
import "../chunk-KV5J7PNM.js";
|
|
8
|
+
import "../chunk-4NW46ZVD.js";
|
|
9
|
+
import "../chunk-LEKG4YWI.js";
|
|
10
10
|
import "../chunk-RHGEBXPL.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-55TEMSB5.js";
|
|
12
12
|
import "../chunk-D5GNZB6O.js";
|
|
13
13
|
import "../chunk-STIJO4AG.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-ULXU6XWH.js";
|
|
15
15
|
import "../chunk-X6YKUJKH.js";
|
|
16
16
|
import "../chunk-GAXJTFBV.js";
|
|
17
17
|
import "../chunk-ENYGL5CO.js";
|