@granite-js/micro-frontend 2.5.5 → 3.0.1

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 (76) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +20 -6
  3. package/dist/module/host/PendingHostComponent.js.map +1 -1
  4. package/dist/module/host/index.js.map +1 -1
  5. package/dist/module/host/resolveParams.js.map +1 -1
  6. package/dist/module/index.js.map +1 -1
  7. package/dist/module/next/README.md +15 -0
  8. package/dist/module/next/index.js +109 -0
  9. package/dist/module/next/index.js.map +1 -0
  10. package/dist/module/next/types.js +4 -0
  11. package/dist/module/next/types.js.map +1 -0
  12. package/dist/module/plugin/microFrontendPlugin.js +4 -5
  13. package/dist/module/plugin/microFrontendPlugin.js.map +1 -1
  14. package/dist/module/plugin-utils/disposeBabelPlugin.js.map +1 -0
  15. package/dist/module/plugin-utils/disposeTransform.js.map +1 -0
  16. package/dist/module/{plugin → plugin-utils}/globalContextScript.js.map +1 -1
  17. package/dist/module/plugin-utils/intoShared.js.map +1 -0
  18. package/dist/module/{plugin → plugin-utils}/prelude.js +4 -2
  19. package/dist/module/plugin-utils/prelude.js.map +1 -0
  20. package/dist/module/runtime/containerModuleExposure.js +1 -37
  21. package/dist/module/runtime/containerModuleExposure.js.map +1 -1
  22. package/dist/module/runtime/legacyEsm.js +41 -0
  23. package/dist/module/runtime/legacyEsm.js.map +1 -0
  24. package/dist/module/runtime/registry.js +3 -12
  25. package/dist/module/runtime/registry.js.map +1 -1
  26. package/dist/module/runtime/sharedModule.js +22 -0
  27. package/dist/module/runtime/sharedModule.js.map +1 -0
  28. package/dist/module/session/MicroFrontendSessionContext.js.map +1 -1
  29. package/dist/module/specs/PortalHostViewNativeComponent.ts +2 -2
  30. package/dist/module/specs/PortalViewNativeComponent.ts +2 -2
  31. package/dist/typescript/host/index.d.ts +1 -1
  32. package/dist/typescript/index.d.ts +1 -1
  33. package/dist/typescript/next/index.d.ts +4 -0
  34. package/dist/typescript/next/types.d.ts +6 -0
  35. package/dist/typescript/plugin-utils/intoShared.d.ts +2 -0
  36. package/dist/typescript/plugin-utils/prelude.d.ts +11 -0
  37. package/dist/typescript/runtime/legacyEsm.d.ts +1 -0
  38. package/dist/typescript/runtime/sharedModule.d.ts +4 -0
  39. package/dist/typescript/specs/PortalHostViewNativeComponent.d.ts +1 -1
  40. package/dist/typescript/specs/PortalViewNativeComponent.d.ts +1 -1
  41. package/package.json +14 -5
  42. package/react-native.config.js +1 -4
  43. package/src/host/PendingHostComponent.tsx +10 -2
  44. package/src/host/index.ts +1 -4
  45. package/src/host/resolveParams.ts +1 -1
  46. package/src/host/types.ts +1 -3
  47. package/src/index.ts +1 -4
  48. package/src/next/README.md +15 -0
  49. package/src/next/index.ts +107 -0
  50. package/src/next/types.ts +7 -0
  51. package/src/plugin/microFrontendPlugin.ts +5 -6
  52. package/src/{plugin → plugin-utils}/intoShared.ts +1 -2
  53. package/src/{plugin → plugin-utils}/prelude.ts +14 -47
  54. package/src/runtime/containerModuleExposure.ts +1 -39
  55. package/src/runtime/legacyEsm.ts +39 -0
  56. package/src/runtime/registry.ts +3 -18
  57. package/src/runtime/sharedModule.ts +26 -0
  58. package/src/session/MicroFrontendSessionContext.tsx +1 -3
  59. package/src/specs/PortalHostViewNativeComponent.ts +2 -2
  60. package/src/specs/PortalViewNativeComponent.ts +2 -2
  61. package/dist/module/plugin/disposeBabelPlugin.js.map +0 -1
  62. package/dist/module/plugin/disposeTransform.js.map +0 -1
  63. package/dist/module/plugin/intoShared.js.map +0 -1
  64. package/dist/module/plugin/prelude.js.map +0 -1
  65. package/dist/typescript/plugin/intoShared.d.ts +0 -3
  66. package/dist/typescript/plugin/prelude.d.ts +0 -6
  67. /package/dist/module/{plugin → plugin-utils}/disposeBabelPlugin.js +0 -0
  68. /package/dist/module/{plugin → plugin-utils}/disposeTransform.js +0 -0
  69. /package/dist/module/{plugin → plugin-utils}/globalContextScript.js +0 -0
  70. /package/dist/module/{plugin → plugin-utils}/intoShared.js +0 -0
  71. /package/dist/typescript/{plugin → plugin-utils}/disposeBabelPlugin.d.ts +0 -0
  72. /package/dist/typescript/{plugin → plugin-utils}/disposeTransform.d.ts +0 -0
  73. /package/dist/typescript/{plugin → plugin-utils}/globalContextScript.d.ts +0 -0
  74. /package/src/{plugin → plugin-utils}/disposeBabelPlugin.ts +0 -0
  75. /package/src/{plugin → plugin-utils}/disposeTransform.ts +0 -0
  76. /package/src/{plugin → plugin-utils}/globalContextScript.ts +0 -0
@@ -3,7 +3,9 @@ import { createContainer, exposeModule, getContainer, getExposedModule, removeCo
3
3
  import type { MicroFrontendModuleRegistry } from './createMicroFrontendRuntime';
4
4
  import { ExposedModuleNotFoundError, SharedModuleAlreadyRegisteredError } from './errors';
5
5
  import { getMicroFrontendGlobalContext, type MicroFrontendGlobalContext } from './globalContext';
6
+ import { toLegacyEsm } from './legacyEsm';
6
7
  import { parseAppRequest } from './parseAppRequest';
8
+ import { registerSharedValue } from './sharedModule';
7
9
  export { createContainer, exposeModule, getContainer, removeContainer };
8
10
 
9
11
  export interface SharedModuleConfig {
@@ -54,26 +56,9 @@ export function getMicroFrontendRuntimeContext(): MicroFrontendRuntimeContext {
54
56
 
55
57
  export function registerShared(moduleName: string, module: unknown): void {
56
58
  const sharedModules = getMicroFrontendGlobalContext().__SHARED__;
57
- const existingModule = sharedModules[moduleName];
58
- if (existingModule != null) {
59
- if (isSharedModule(existingModule) && Object.is(existingModule.get(), module)) {
60
- return;
61
- }
59
+ if (!registerSharedValue(sharedModules, moduleName, module, toLegacyEsm)) {
62
60
  throw new SharedModuleAlreadyRegisteredError(moduleName);
63
61
  }
64
- sharedModules[moduleName] = {
65
- get: () => module,
66
- loaded: true,
67
- };
68
- }
69
-
70
- function isSharedModule(value: unknown): value is SharedModule {
71
- return (
72
- typeof value === 'object' &&
73
- value != null &&
74
- typeof Reflect.get(value, 'get') === 'function' &&
75
- typeof Reflect.get(value, 'loaded') === 'boolean'
76
- );
77
62
  }
78
63
 
79
64
  export async function disposeAppResources(appName: string): Promise<void> {
@@ -0,0 +1,26 @@
1
+ // Keep this helper self-contained so runtime and generated registrations stay identical.
2
+ export function registerSharedValue(
3
+ sharedModules: Record<string, { readonly get: () => unknown; readonly loaded: boolean }>,
4
+ moduleName: string,
5
+ module: unknown,
6
+ normalize: (value: unknown) => unknown
7
+ ): boolean {
8
+ // Preserve original identity across independently bundled runtimes.
9
+ const sourceKey = Symbol.for('granite.microFrontend.sharedModuleSource');
10
+ const existingModule = sharedModules[moduleName];
11
+ if (existingModule != null) {
12
+ return (
13
+ typeof existingModule === 'object' &&
14
+ typeof existingModule.get === 'function' &&
15
+ typeof existingModule.loaded === 'boolean' &&
16
+ (Object.is(existingModule.get(), module) ||
17
+ (Object.prototype.hasOwnProperty.call(existingModule, sourceKey) &&
18
+ Object.is(Reflect.get(existingModule, sourceKey), module)))
19
+ );
20
+ }
21
+ const value = normalize(module);
22
+ const entry = { get: () => value, loaded: true };
23
+ Object.defineProperty(entry, sourceKey, { value: module });
24
+ sharedModules[moduleName] = entry;
25
+ return true;
26
+ }
@@ -29,9 +29,7 @@ export function MicroFrontendSessionProvider(props: MicroFrontendSessionProvider
29
29
 
30
30
  return (
31
31
  <MicroFrontendSessionContext.Provider value={value}>
32
- <VisibilityChangedProvider isVisible={props.presentationVisibility}>
33
- {props.children}
34
- </VisibilityChangedProvider>
32
+ <VisibilityChangedProvider isVisible={props.presentationVisibility}>{props.children}</VisibilityChangedProvider>
35
33
  </MicroFrontendSessionContext.Provider>
36
34
  );
37
35
  }
@@ -1,9 +1,9 @@
1
- import { codegenNativeComponent, type ViewProps } from "react-native";
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
 
3
3
  interface NativeProps extends ViewProps {
4
4
  readonly name?: string;
5
5
  }
6
6
 
7
- export default codegenNativeComponent<NativeProps>("PortalHostView", {
7
+ export default codegenNativeComponent<NativeProps>('PortalHostView', {
8
8
  interfaceOnly: true,
9
9
  });
@@ -1,9 +1,9 @@
1
- import { codegenNativeComponent, type ViewProps } from "react-native";
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
 
3
3
  interface NativeProps extends ViewProps {
4
4
  readonly hostName: string;
5
5
  }
6
6
 
7
- export default codegenNativeComponent<NativeProps>("PortalView", {
7
+ export default codegenNativeComponent<NativeProps>('PortalView', {
8
8
  interfaceOnly: true,
9
9
  });
@@ -1 +0,0 @@
1
- {"version":3,"names":["injectDisposeAppName","types","babelTypes","options","name","visitor","CallExpression","path","appName","node","arguments","length","runtimeIdentifier","getRuntimeIdentifier","callee","scope","getBinding","unshift","stringLiteral","isMemberExpression","computed","isIdentifier","property","object"],"sourceRoot":"../../../src","sources":["plugin/disposeBabelPlugin.ts"],"mappings":";;AAOA,OAAO,SAASA,oBAAoBA,CAClC;EAAEC,KAAK,EAAEC;AAAyC,CAAC,EACnDC,OAAsC,EAC3B;EACX,OAAO;IACLC,IAAI,EAAE,wCAAwC;IAC9CC,OAAO,EAAE;MACPC,cAAcA,CAACC,IAAI,EAAE;QACnB,IAAIJ,OAAO,CAACK,OAAO,IAAI,IAAI,IAAID,IAAI,CAACE,IAAI,CAACC,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE;UAC/D;QACF;QAEA,MAAMC,iBAAiB,GAAGC,oBAAoB,CAACN,IAAI,CAACE,IAAI,CAACK,MAAM,EAAEZ,UAAU,CAAC;QAC5E,IAAIU,iBAAiB,IAAI,IAAI,IAAIL,IAAI,CAACQ,KAAK,CAACC,UAAU,CAACJ,iBAAiB,CAAC,IAAI,IAAI,EAAE;UACjF;QACF;QAEAL,IAAI,CAACE,IAAI,CAACC,SAAS,CAACO,OAAO,CAACf,UAAU,CAACgB,aAAa,CAACf,OAAO,CAACK,OAAO,CAAC,CAAC;MACxE;IACF;EACF,CAAC;AACH;AAEA,SAASK,oBAAoBA,CAC3BC,MAAgE,EAChEZ,UAA6B,EACd;EACf;EACA;EACA,IACE,CAACA,UAAU,CAACiB,kBAAkB,CAACL,MAAM,CAAC,IACtCA,MAAM,CAACM,QAAQ,IACf,CAAClB,UAAU,CAACmB,YAAY,CAACP,MAAM,CAACQ,QAAQ,EAAE;IAAElB,IAAI,EAAE;EAAU,CAAC,CAAC,IAC9D,CAACF,UAAU,CAACiB,kBAAkB,CAACL,MAAM,CAACS,MAAM,CAAC,IAC7CT,MAAM,CAACS,MAAM,CAACH,QAAQ,IACtB,CAAClB,UAAU,CAACmB,YAAY,CAACP,MAAM,CAACS,MAAM,CAACD,QAAQ,EAAE;IAAElB,IAAI,EAAE;EAAqB,CAAC,CAAC,IAC/E,CAACF,UAAU,CAACmB,YAAY,CAACP,MAAM,CAACS,MAAM,CAACA,MAAM,EAAE;IAAEnB,IAAI,EAAE;EAAS,CAAC,CAAC,IACjE,CAACF,UAAU,CAACmB,YAAY,CAACP,MAAM,CAACS,MAAM,CAACA,MAAM,EAAE;IAAEnB,IAAI,EAAE;EAAa,CAAC,CAAE,EACzE;IACA,OAAO,IAAI;EACb;EAEA,OAAOU,MAAM,CAACS,MAAM,CAACA,MAAM,CAACnB,IAAI;AAClC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["babel","injectDisposeAppName","shouldTransformDispose","code","includes","transformDisposeOwnership","id","options","appName","transformSync","ast","babelrc","configFile","filename","parserOpts","plugins","getParserPlugins","sourceType","retainLines","test","push"],"sourceRoot":"../../../src","sources":["plugin/disposeTransform.ts"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,aAAa;AACpC,SAASC,oBAAoB,QAA4C,yBAAsB;AAE/F,OAAO,SAASC,sBAAsBA,CAACC,IAAY,EAAW;EAC5D,OAAOA,IAAI,CAACC,QAAQ,CAAC,uCAAuC,CAAC,IAAID,IAAI,CAACC,QAAQ,CAAC,mCAAmC,CAAC;AACrH;AAEA,OAAO,SAASC,yBAAyBA,CAACC,EAAU,EAAEH,IAAY,EAAEI,OAAsC,EAAU;EAClH,IAAIA,OAAO,CAACC,OAAO,IAAI,IAAI,IAAI,CAACN,sBAAsB,CAACC,IAAI,CAAC,EAAE;IAC5D,OAAOA,IAAI;EACb;EAEA,OACEH,KAAK,CAACS,aAAa,CAACN,IAAI,EAAE;IACxBO,GAAG,EAAE,KAAK;IACVC,OAAO,EAAE,KAAK;IACdC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAEP,EAAE;IACZQ,UAAU,EAAE;MACVC,OAAO,EAAEC,gBAAgB,CAACV,EAAE,CAAC;MAC7BW,UAAU,EAAE;IACd,CAAC;IACDF,OAAO,EAAE,CAAC,CAACd,oBAAoB,EAAEM,OAAO,CAAC,CAAC;IAC1CW,WAAW,EAAE;EACf,CAAC,CAAC,EAAEf,IAAI,IAAIA,IAAI;AAEpB;AAEA,SAASa,gBAAgBA,CAACV,EAAU,EAAkC;EACpE,MAAMS,OAAuC,GAAG,EAAE;EAElD,IAAI,cAAc,CAACI,IAAI,CAACb,EAAE,CAAC,EAAE;IAC3BS,OAAO,CAACK,IAAI,CAAC,YAAY,CAAC;EAC5B,CAAC,MAAM,IAAI,cAAc,CAACD,IAAI,CAACb,EAAE,CAAC,EAAE;IAClCS,OAAO,CAACK,IAAI,CAAC,MAAM,CAAC;EACtB;EAEA,IAAI,gBAAgB,CAACD,IAAI,CAACb,EAAE,CAAC,EAAE;IAC7BS,OAAO,CAACK,IAAI,CAAC,KAAK,CAAC;EACrB;EAEA,OAAOL,OAAO;AAChB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["SHARED_PRESETS","react","intoShared","shared","undefined","normalized","Array","isArray","moduleName","Object","assign","subpaths","entries","moduleConfig","subpath"],"sourceRoot":"../../../src","sources":["plugin/intoShared.ts"],"mappings":";;AAGA,MAAMA,cAAc,GAAG;EACrBC,KAAK,EAAE,CAAC,mBAAmB,EAAE,uBAAuB,CAAC;EACrD,cAAc,EAAE,CACd,oDAAoD,EACpD,oDAAoD,EACpD,mDAAmD,EACnD,gEAAgE,EAChE,wEAAwE,EACxE,yDAAyD,EACzD,kDAAkD,EAClD,2DAA2D,EAC3D,kDAAkD,EAClD,gDAAgD,EAChD,wDAAwD,EACxD,6DAA6D,EAC7D,2CAA2C,EAC3C,2DAA2D;AAE/D,CAAU;AAEV,OAAO,SAASC,UAAUA,CAACC,MAA4C,EAA4B;EACjG,IAAIA,MAAM,IAAI,IAAI,EAAE;IAClB,OAAOC,SAAS;EAClB;EAEA,MAAMC,UAA8C,GAAG,CAAC,CAAC;EACzD,IAAIC,KAAK,CAACC,OAAO,CAACJ,MAAM,CAAC,EAAE;IACzB,KAAK,MAAMK,UAAU,IAAIL,MAAM,EAAE;MAC/BE,UAAU,CAACG,UAAU,CAAC,GAAG,CAAC,CAAC;IAC7B;EACF,CAAC,MAAM;IACLC,MAAM,CAACC,MAAM,CAACL,UAAU,EAAEF,MAAM,CAAC;EACnC;EAEA,KAAK,MAAM,CAACK,UAAU,EAAEG,QAAQ,CAAC,IAAIF,MAAM,CAACG,OAAO,CAACZ,cAAc,CAAC,EAAE;IACnE,MAAMa,YAAY,GAAGR,UAAU,CAACG,UAAU,CAAC;IAC3C,IAAIK,YAAY,IAAI,IAAI,EAAE;MACxB;IACF;IAEA,KAAK,MAAMC,OAAO,IAAIH,QAAQ,EAAE;MAC9BN,UAAU,CAACS,OAAO,CAAC,KAAK;QAAE,GAAGD;MAAa,CAAC;IAC7C;EACF;EAEA,OAAOR,UAAU;AACnB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["path","globalContextScript","CONTAINER_PAIRING_KEY","captureStackFrames","resolveCurrentSourceURL","getPreludeConfig","options","appName","eagerSharedModules","Object","entries","shared","filter","config","Array","isArray","eager","registerStatements","map","moduleName","index","identifier","JSON","stringify","join","exposeStatements","exposes","exposedModule","modulePath","resolve","containerConfig","containerName","captureFrames","toString","resolveSourceURL","banner","preludeScript"],"sourceRoot":"../../../src","sources":["plugin/prelude.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,MAAM;AACvB,SAASC,mBAAmB,QAAQ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P,oCAAoC,EACpC,wEAAwE,EACxE,6BAA6B,EAC7B,2BAA2B,EAC3B,yDAAyD,EACzD,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,gCAAgC,EAChC,2EAA2E,EAC3E,OAAO,EACP,oCAAoC,EACpC,wEAAwE,EACxE,OAAO,EACP,kBAAkB,EAClB,KAAK,EACL,GAAG,EACH,oDAAoD,EACpD,+DAA+D,EAC/D,qDAAqD,EACrD,iCAAiC,EACjC,+CAA+C,EAC/C,qDAAqD,EACrD,uDAAuD,EACvD,yDAAyD,EACzD,eAAe,EACf,OAAO,EACP,6EAA6E,EAC7E,KAAK,EACL,yEAAyE,EACzE,GAAG,EACH,uCAAuCH,aAAa,KAAKD,eAAe,IAAI,EAC5E,GAAGb,kBAAkB,EACrB,GAAGQ,gBAAgB,CACpB,CAACD,IAAI,CAAC,IAAI;EACb,CAAC;AACH","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import type { MicroFrontendPluginOptions } from './types';
2
- import type { SharedConfig } from '../runtime/registry';
3
- export declare function intoShared(shared: MicroFrontendPluginOptions['shared']): SharedConfig | undefined;
@@ -1,6 +0,0 @@
1
- import type { MicroFrontendPluginOptions } from './types';
2
- export interface MicroFrontendPreludeConfig {
3
- readonly banner: string;
4
- readonly preludeScript: string;
5
- }
6
- export declare function getPreludeConfig(options: MicroFrontendPluginOptions, appName?: string): MicroFrontendPreludeConfig;