piral-core 0.14.3-beta.3297 → 0.14.4-beta.3311

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/esm/Piral.js CHANGED
@@ -18,9 +18,10 @@ const app = (
18
18
  ```
19
19
  */
20
20
  export const Piral = ({ instance = createInstance(), breakpoints, children }) => (React.createElement(StateContext.Provider, { value: instance.context },
21
- React.createElement(PortalRenderer, { id: "root" }),
22
21
  React.createElement(ResponsiveLayout, { breakpoints: breakpoints }),
23
22
  React.createElement(Mediator, { options: instance.options }),
24
- React.createElement(PiralView, null, children)));
23
+ React.createElement(PiralView, null,
24
+ React.createElement(PortalRenderer, { id: "root" }),
25
+ children)));
25
26
  Piral.displayName = 'Piral';
26
27
  //# sourceMappingURL=Piral.js.map
package/esm/Piral.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Piral.js","sourceRoot":"","sources":["../src/Piral.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGrF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,KAAK,GAA0B,CAAC,EAAE,QAAQ,GAAG,cAAc,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtG,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,OAAO;IAC5C,oBAAC,cAAc,IAAC,EAAE,EAAC,MAAM,GAAG;IAC5B,oBAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,GAAI;IAC9C,oBAAC,QAAQ,IAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAI;IACvC,oBAAC,SAAS,QAAE,QAAQ,CAAa,CACX,CACzB,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"Piral.js","sourceRoot":"","sources":["../src/Piral.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGrF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,KAAK,GAA0B,CAAC,EAAE,QAAQ,GAAG,cAAc,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtG,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,OAAO;IAC5C,oBAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,GAAI;IAC9C,oBAAC,QAAQ,IAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAI;IACvC,oBAAC,SAAS;QACR,oBAAC,cAAc,IAAC,EAAE,EAAC,MAAM,GAAG;QAC3B,QAAQ,CACC,CACU,CACzB,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
package/lib/Piral.js CHANGED
@@ -21,10 +21,11 @@ const app = (
21
21
  ```
22
22
  */
23
23
  const Piral = ({ instance = (0, createInstance_1.createInstance)(), breakpoints, children }) => (React.createElement(state_1.StateContext.Provider, { value: instance.context },
24
- React.createElement(components_1.PortalRenderer, { id: "root" }),
25
24
  React.createElement(components_1.ResponsiveLayout, { breakpoints: breakpoints }),
26
25
  React.createElement(components_1.Mediator, { options: instance.options }),
27
- React.createElement(components_1.PiralView, null, children)));
26
+ React.createElement(components_1.PiralView, null,
27
+ React.createElement(components_1.PortalRenderer, { id: "root" }),
28
+ children)));
28
29
  exports.Piral = Piral;
29
30
  exports.Piral.displayName = 'Piral';
30
31
  //# sourceMappingURL=Piral.js.map
package/lib/Piral.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Piral.js","sourceRoot":"","sources":["../src/Piral.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,mCAAuC;AACvC,qDAAkD;AAClD,6CAAqF;AAGrF;;;;;;;;;;;;;;GAcG;AACI,MAAM,KAAK,GAA0B,CAAC,EAAE,QAAQ,GAAG,IAAA,+BAAc,GAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtG,oBAAC,oBAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,OAAO;IAC5C,oBAAC,2BAAc,IAAC,EAAE,EAAC,MAAM,GAAG;IAC5B,oBAAC,6BAAgB,IAAC,WAAW,EAAE,WAAW,GAAI;IAC9C,oBAAC,qBAAQ,IAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAI;IACvC,oBAAC,sBAAS,QAAE,QAAQ,CAAa,CACX,CACzB,CAAC;AAPW,QAAA,KAAK,SAOhB;AACF,aAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"Piral.js","sourceRoot":"","sources":["../src/Piral.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,mCAAuC;AACvC,qDAAkD;AAClD,6CAAqF;AAGrF;;;;;;;;;;;;;;GAcG;AACI,MAAM,KAAK,GAA0B,CAAC,EAAE,QAAQ,GAAG,IAAA,+BAAc,GAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtG,oBAAC,oBAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,OAAO;IAC5C,oBAAC,6BAAgB,IAAC,WAAW,EAAE,WAAW,GAAI;IAC9C,oBAAC,qBAAQ,IAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAI;IACvC,oBAAC,sBAAS;QACR,oBAAC,2BAAc,IAAC,EAAE,EAAC,MAAM,GAAG;QAC3B,QAAQ,CACC,CACU,CACzB,CAAC;AATW,QAAA,KAAK,SAShB;AACF,aAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-core",
3
- "version": "0.14.3-beta.3297",
3
+ "version": "0.14.4-beta.3311",
4
4
  "description": "The core library for creating a Piral instance.",
5
5
  "keywords": [
6
6
  "portal",
@@ -48,6 +48,17 @@
48
48
  "typedoc": "typedoc --json ../../../docs/types/piral-core.json src --exclude \"src/**/*.test.*\"",
49
49
  "test": "echo \"Error: run tests from root\" && exit 1"
50
50
  },
51
+ "dependencies": {
52
+ "@dbeining/react-atom": "^4.0.0",
53
+ "piral-base": "0.14.4-beta.3311",
54
+ "piral-debug-utils": "0.14.4-beta.3311"
55
+ },
56
+ "peerDependencies": {
57
+ "react": ">=16.8.0",
58
+ "react-dom": ">=16.8.0",
59
+ "react-router": ">=5.0.0",
60
+ "react-router-dom": ">=5.0.0"
61
+ },
51
62
  "devDependencies": {
52
63
  "@types/history": "^4.7.8",
53
64
  "@types/react": "^17.0.0",
@@ -56,12 +67,6 @@
56
67
  "react": "^17.0.1",
57
68
  "react-dom": "^17.0.1"
58
69
  },
59
- "peerDependencies": {
60
- "react": ">=16.8.0",
61
- "react-dom": ">=16.8.0",
62
- "react-router": ">=5.0.0",
63
- "react-router-dom": ">=5.0.0"
64
- },
65
70
  "sharedDependencies": [
66
71
  "react",
67
72
  "react-dom",
@@ -73,10 +78,5 @@
73
78
  "@libre/atom",
74
79
  "@dbeining/react-atom"
75
80
  ],
76
- "dependencies": {
77
- "@dbeining/react-atom": "^4.0.0",
78
- "piral-base": "0.14.3-beta.3297",
79
- "piral-debug-utils": "0.14.3-beta.3297"
80
- },
81
- "gitHead": "42d5359bb0a4d0d9f3bf27e8acb205419bb4cc58"
81
+ "gitHead": "c2e4e413b6505da88b6296efa694b3b96c11f77b"
82
82
  }
package/src/Piral.tsx CHANGED
@@ -21,10 +21,12 @@ const app = (
21
21
  */
22
22
  export const Piral: React.FC<PortalProps> = ({ instance = createInstance(), breakpoints, children }) => (
23
23
  <StateContext.Provider value={instance.context}>
24
- <PortalRenderer id="root" />
25
24
  <ResponsiveLayout breakpoints={breakpoints} />
26
25
  <Mediator options={instance.options} />
27
- <PiralView>{children}</PiralView>
26
+ <PiralView>
27
+ <PortalRenderer id="root" />
28
+ {children}
29
+ </PiralView>
28
30
  </StateContext.Provider>
29
31
  );
30
32
  Piral.displayName = 'Piral';
@@ -36,7 +36,7 @@ export function injectPilet(ctx: GlobalStateContext, pilet: Pilet) {
36
36
  modules: replaceOrAddItem(state.modules, pilet, (m) => m.name === pilet.name),
37
37
  registry: removeNested<RegistryState, BaseRegistration>(state.registry, (m) => m.pilet === pilet.name),
38
38
  }));
39
-
39
+
40
40
  ctx.emit('unload-pilet', {
41
41
  name: pilet.name,
42
42
  });
@@ -74,7 +74,7 @@ describe('Piral-Core helpers module', () => {
74
74
  const optionsConfig: PiletOptionsConfig = {
75
75
  createApi: createMockApi,
76
76
  availablePilets: providedPilets,
77
- shareDependencies: jest.fn(deps => deps),
77
+ shareDependencies: jest.fn((deps) => deps),
78
78
  context: globalContext,
79
79
  loadPilet: jest.fn(),
80
80
  requestPilets: jest.fn(() => Promise.resolve(providedPilets)),
@@ -114,7 +114,7 @@ describe('Piral-Core helpers module', () => {
114
114
  createApi: createMockApi,
115
115
  availablePilets: providedPilets,
116
116
  context: globalContext,
117
- shareDependencies: jest.fn(deps => deps),
117
+ shareDependencies: jest.fn((deps) => deps),
118
118
  loadPilet: jest.fn(),
119
119
  requestPilets: jest.fn(() => Promise.resolve(providedPilets)),
120
120
  strategy: jest.fn(),
@@ -153,7 +153,7 @@ describe('Piral-Core helpers module', () => {
153
153
  createApi: createMockApi,
154
154
  availablePilets: providedPilets,
155
155
  context: globalContext,
156
- shareDependencies: jest.fn(deps => deps),
156
+ shareDependencies: jest.fn((deps) => deps),
157
157
  loadPilet: jest.fn(),
158
158
  requestPilets: requestPilets,
159
159
  strategy: jest.fn(),
@@ -207,7 +207,7 @@ describe('Piral-Core helpers module', () => {
207
207
  createApi: createMockApi,
208
208
  availablePilets: providedPilets,
209
209
  context: globalContext,
210
- shareDependencies: jest.fn(deps => deps),
210
+ shareDependencies: jest.fn((deps) => deps),
211
211
  loadPilet: jest.fn(),
212
212
  requestPilets: requestPilets,
213
213
  strategy: jest.fn(),