@appshell/react 0.4.0-alpha.0 → 0.4.1-alpha.0
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/CHANGELOG.md +27 -134
- package/dist/main.js +1 -1
- package/dist/types/config/src/configmap.d.ts +1 -1
- package/dist/types/config/src/configmap.d.ts.map +1 -1
- package/dist/types/config/src/generate.env.d.ts +1 -1
- package/dist/types/config/src/generate.env.d.ts.map +1 -1
- package/dist/types/config/src/generate.global-config.d.ts +3 -0
- package/dist/types/config/src/generate.global-config.d.ts.map +1 -1
- package/dist/types/config/src/generate.manifest.d.ts.map +1 -1
- package/dist/types/config/src/index.d.ts +3 -1
- package/dist/types/config/src/index.d.ts.map +1 -1
- package/dist/types/config/src/mappers/appshell.config.d.ts.map +1 -1
- package/dist/types/config/src/outdated.d.ts +4 -0
- package/dist/types/config/src/outdated.d.ts.map +1 -0
- package/dist/types/config/src/sync.d.ts +21 -0
- package/dist/types/config/src/sync.d.ts.map +1 -0
- package/dist/types/config/src/types.d.ts +43 -0
- package/dist/types/config/src/types.d.ts.map +1 -1
- package/dist/types/config/src/utils/blur.d.ts +3 -0
- package/dist/types/config/src/utils/blur.d.ts.map +1 -0
- package/dist/types/config/src/utils/compare.d.ts +8 -0
- package/dist/types/config/src/utils/compare.d.ts.map +1 -0
- package/dist/types/config/src/utils/config.d.ts +6 -0
- package/dist/types/config/src/utils/config.d.ts.map +1 -0
- package/dist/types/config/src/utils/index.d.ts +3 -0
- package/dist/types/config/src/utils/index.d.ts.map +1 -1
- package/dist/types/config/src/utils/load.d.ts.map +1 -1
- package/dist/types/config/src/utils/loadJson.d.ts +3 -0
- package/dist/types/config/src/utils/loadJson.d.ts.map +1 -1
- package/dist/types/config/src/utils/merge.d.ts.map +1 -1
- package/dist/types/config/src/validators/AppshellGlobalConfigValidator.d.ts.map +1 -1
- package/dist/types/config/src/validators/AppshellManifestValidator.d.ts.map +1 -1
- package/dist/types/config/src/validators/AppshellTemplateValidator.d.ts.map +1 -1
- package/dist/types/loader/src/loadAppshellComponent.d.ts.map +1 -1
- package/dist/types/loader/src/remoteLoader.d.ts +1 -1
- package/dist/types/loader/src/remoteLoader.d.ts.map +1 -1
- package/dist/types/react/src/components/AppshellComponent.d.ts +3 -3
- package/dist/types/react/src/components/AppshellComponent.d.ts.map +1 -1
- package/dist/types/react/src/contexts/GlobalConfigContext.d.ts +2 -2
- package/dist/types/react/src/contexts/GlobalConfigContext.d.ts.map +1 -1
- package/dist/types/react/src/contexts/ManifestContext.d.ts +2 -2
- package/dist/types/react/src/contexts/ManifestContext.d.ts.map +1 -1
- package/dist/types/react/src/resources/jsonResource.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,263 +3,156 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## [0.4.1-alpha.0](https://github.com/appshell-org/appshell/compare/@appshell/react@0.4.0...@appshell/react@0.4.1-alpha.0) (2026-04-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
7
9
|
|
|
10
|
+
- update repository URLs from navaris/appshell to appshell-org/appshell ([506a90d](https://github.com/appshell-org/appshell/commit/506a90d94a6f6e10f463987d408550f48624bfd0))
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
# [0.4.0](https://github.com/navaris/appshell/compare/@appshell/react@0.3.0...@appshell/react@0.4.0) (2024-09-24)
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
### Features
|
|
12
15
|
|
|
16
|
+
- api key support ([9cdcbee](https://github.com/navaris/appshell/commit/9cdcbee36e44b8a179b49768d74a25767f1cc5f2))
|
|
13
17
|
|
|
18
|
+
# [0.4.0-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react@0.3.1-alpha.0...@appshell/react@0.4.0-alpha.0) (2024-09-05)
|
|
14
19
|
|
|
20
|
+
### Features
|
|
15
21
|
|
|
22
|
+
- api key support ([8c91e62](https://github.com/navaris/appshell/commit/8c91e6240b3d879af9bdd5949924865da0e0f8a1))
|
|
16
23
|
|
|
17
24
|
## [0.3.1-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react@0.3.0...@appshell/react@0.3.1-alpha.0) (2024-08-31)
|
|
18
25
|
|
|
19
|
-
|
|
20
26
|
### Bug Fixes
|
|
21
27
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
- bump pipeline ([8bb63bc](https://github.com/navaris/appshell/commit/8bb63bcae1928c01bb6bc853d88010939e686af5))
|
|
27
29
|
|
|
28
30
|
# [0.3.0](https://github.com/navaris/appshell/compare/@appshell/react@0.2.2...@appshell/react@0.3.0) (2024-01-25)
|
|
29
31
|
|
|
30
|
-
|
|
31
32
|
### Features
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
- AppshellComponent impl ([2b82621](https://github.com/navaris/appshell/commit/2b82621c13302f790a8e1c457f9a82f39903fc1f))
|
|
38
35
|
|
|
39
36
|
## [0.2.2](https://github.com/navaris/appshell/compare/@appshell/react@0.2.1...@appshell/react@0.2.2) (2024-01-04)
|
|
40
37
|
|
|
41
|
-
|
|
42
38
|
### Bug Fixes
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
- capture direct dependencies passed to FederatedComponent for re-render ([3621879](https://github.com/navaris/appshell/commit/36218793a5cb47f74bd8d1ce93deffdb1b85cd1c))
|
|
49
41
|
|
|
50
42
|
## [0.2.1](https://github.com/navaris/appshell/compare/@appshell/react@0.2.0...@appshell/react@0.2.1) (2023-08-29)
|
|
51
43
|
|
|
52
|
-
|
|
53
44
|
### Bug Fixes
|
|
54
45
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
46
|
+
- appshell loader override check ([aedda4a](https://github.com/navaris/appshell/commit/aedda4abf81560297dce03df09fba68e8785242f))
|
|
60
47
|
|
|
61
48
|
# [0.2.0](https://github.com/navaris/appshell/compare/@appshell/react@0.2.0-alpha.0...@appshell/react@0.2.0) (2023-08-28)
|
|
62
49
|
|
|
63
50
|
**Note:** Version bump only for package @appshell/react
|
|
64
51
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
52
|
# [0.2.0-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react@0.1.0...@appshell/react@0.2.0-alpha.0) (2023-08-23)
|
|
70
53
|
|
|
71
|
-
|
|
72
54
|
### Features
|
|
73
55
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
56
|
+
- consolidate runtime artifacts ([#26](https://github.com/navaris/appshell/issues/26)) ([a29479a](https://github.com/navaris/appshell/commit/a29479a49f0c5ec1273c9f8e4c7384096f2d4ba0))
|
|
79
57
|
|
|
80
58
|
# [0.1.0](https://github.com/navaris/appshell/compare/@appshell/react@0.1.0-alpha.6...@appshell/react@0.1.0) (2023-07-11)
|
|
81
59
|
|
|
82
60
|
**Note:** Version bump only for package @appshell/react
|
|
83
61
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
62
|
# 0.1.0-alpha.6 (2023-07-10)
|
|
89
63
|
|
|
90
|
-
|
|
91
64
|
### Bug Fixes
|
|
92
65
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
66
|
+
- rename @appshell/react-federated-component package to @appshell/react ([0b74498](https://github.com/navaris/appshell/commit/0b74498bf17ba73db4d936c8a012af1d3b111a28))
|
|
98
67
|
|
|
99
68
|
# [0.1.0-alpha.5](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.4...@appshell/react-federated-component@0.1.0-alpha.5) (2023-07-10)
|
|
100
69
|
|
|
101
|
-
|
|
102
70
|
### Bug Fixes
|
|
103
71
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
72
|
+
- registry projection, enable env overwrite, refactor docker workflow, consolidate env names ([33a28fe](https://github.com/navaris/appshell/commit/33a28fe76b58e05c5b6b6b33d4b402e52bb29e70))
|
|
109
73
|
|
|
110
74
|
# [0.1.0-alpha.4](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.3...@appshell/react-federated-component@0.1.0-alpha.4) (2023-07-06)
|
|
111
75
|
|
|
112
|
-
|
|
113
76
|
### Bug Fixes
|
|
114
77
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
78
|
+
- metadata urls ([efcce1c](https://github.com/navaris/appshell/commit/efcce1ce4cb1745afa83661cae1414a73f837483))
|
|
120
79
|
|
|
121
80
|
# [0.1.0-alpha.3](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.2...@appshell/react-federated-component@0.1.0-alpha.3) (2023-07-06)
|
|
122
81
|
|
|
123
|
-
|
|
124
82
|
### Bug Fixes
|
|
125
83
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
84
|
+
- support metadata generation ([4df202f](https://github.com/navaris/appshell/commit/4df202f0fd3b9ca6c660975b75eb0ac9b60225c2))
|
|
131
85
|
|
|
132
86
|
# [0.1.0-alpha.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.1...@appshell/react-federated-component@0.1.0-alpha.2) (2023-07-06)
|
|
133
87
|
|
|
134
|
-
|
|
135
88
|
### Bug Fixes
|
|
136
89
|
|
|
137
|
-
|
|
138
|
-
|
|
90
|
+
- lint ([a4861ab](https://github.com/navaris/appshell/commit/a4861abfe82d1e0ab815aaa62cdf7907229d0136))
|
|
139
91
|
|
|
140
92
|
### Features
|
|
141
93
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
94
|
+
- appshell start, cleanup dev workflow ([74fd2e5](https://github.com/navaris/appshell/commit/74fd2e5a5acd2415482268175c7f3f16cd7c93ec))
|
|
147
95
|
|
|
148
96
|
# [0.1.0-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3...@appshell/react-federated-component@0.1.0-alpha.1) (2023-07-05)
|
|
149
97
|
|
|
150
|
-
|
|
151
98
|
### Features
|
|
152
99
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
100
|
+
- foundation refactor wip ([339b930](https://github.com/navaris/appshell/commit/339b9306accaa9aba1712f3a0dee6c4cab7ed273))
|
|
158
101
|
|
|
159
102
|
# [0.1.0-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3...@appshell/react-federated-component@0.1.0-alpha.0) (2023-07-05)
|
|
160
103
|
|
|
161
|
-
|
|
162
104
|
### Features
|
|
163
105
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
106
|
+
- registry index ([8e6ee0a](https://github.com/navaris/appshell/commit/8e6ee0a6a377584efa2ee702168025f46108b8c5))
|
|
169
107
|
|
|
170
108
|
## [0.0.3](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3-alpha.2...@appshell/react-federated-component@0.0.3) (2023-06-29)
|
|
171
109
|
|
|
172
110
|
**Note:** Version bump only for package @appshell/react-federated-component
|
|
173
111
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
112
|
## [0.0.3-alpha.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2...@appshell/react-federated-component@0.0.3-alpha.2) (2023-06-29)
|
|
179
113
|
|
|
180
114
|
**Note:** Version bump only for package @appshell/react-federated-component
|
|
181
115
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
116
|
## [0.0.3-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3-alpha.0...@appshell/react-federated-component@0.0.3-alpha.1) (2023-06-29)
|
|
188
117
|
|
|
189
|
-
|
|
190
118
|
### Bug Fixes
|
|
191
119
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
120
|
+
- update npm package visibility ([1ef4119](https://github.com/navaris/appshell/commit/1ef411903dd038dfc781e8ce0700811e5460c903))
|
|
197
121
|
|
|
198
122
|
## [0.0.3-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2-alpha.1...@appshell/react-federated-component@0.0.3-alpha.0) (2023-06-29)
|
|
199
123
|
|
|
200
124
|
**Note:** Version bump only for package @appshell/react-federated-component
|
|
201
125
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
126
|
## [0.0.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2-alpha.1...@appshell/react-federated-component@0.0.2) (2023-06-29)
|
|
207
127
|
|
|
208
128
|
**Note:** Version bump only for package @appshell/react-federated-component
|
|
209
129
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
130
|
## [0.0.2-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2-alpha.0...@appshell/react-federated-component@0.0.2-alpha.1) (2023-06-24)
|
|
215
131
|
|
|
216
|
-
|
|
217
132
|
### Bug Fixes
|
|
218
133
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
134
|
+
- add useEffect dependencies for federated component ([616039e](https://github.com/navaris/appshell/commit/616039ebb3f46f34db0b82acfb6ee5438a6b4731))
|
|
224
135
|
|
|
225
136
|
## [0.0.2-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.1...@appshell/react-federated-component@0.0.2-alpha.0) (2023-06-15)
|
|
226
137
|
|
|
227
|
-
|
|
228
138
|
### Bug Fixes
|
|
229
139
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
140
|
+
- hot module replacement support, example updates ([a67d230](https://github.com/navaris/appshell/commit/a67d2303b40f5911373225cc0b4ccf9b67c33d11))
|
|
235
141
|
|
|
236
142
|
## 0.0.1 (2023-06-15)
|
|
237
143
|
|
|
238
144
|
**Note:** Version bump only for package @appshell/react-federated-component
|
|
239
145
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
146
|
## [0.0.1-alpha.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.1-alpha.1...@appshell/react-federated-component@0.0.1-alpha.2) (2023-06-15)
|
|
245
147
|
|
|
246
|
-
|
|
247
148
|
### Bug Fixes
|
|
248
149
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
150
|
+
- hot module replacement support, example updates ([a67d230](https://github.com/navaris/appshell/commit/a67d2303b40f5911373225cc0b4ccf9b67c33d11))
|
|
254
151
|
|
|
255
152
|
## [0.0.1-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.1-alpha.0...@appshell/react-federated-component@0.0.1-alpha.1) (2023-03-19)
|
|
256
153
|
|
|
257
154
|
**Note:** Version bump only for package @appshell/react-federated-component
|
|
258
155
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
156
|
## 0.0.1-alpha.0 (2023-03-19)
|
|
264
157
|
|
|
265
158
|
**Note:** Version bump only for package @appshell/react-federated-component
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r="object"==typeof exports?t(require("react")):t(e.react);for(var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r="object"==typeof exports?t(require("react")):t(e.react);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={155(t){t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{n.S={};var e={},t={};n.I=(r,o)=>{o||(o=[]);var a=t[r];if(a||(a=t[r]={}),!(o.indexOf(a)>=0)){if(o.push(a),e[r])return e[r];n.o(n.S,r)||(n.S[r]={}),n.S[r];var c=[];return e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})();var o={};n.r(o),n.d(o,{AppshellComponent:()=>P,FederatedComponent:()=>E,GlobalConfigProvider:()=>w,ManifestProvider:()=>b,MetadataProvider:()=>_,ReactHost:()=>S,jsonResource:()=>A,useGlobalConfig:()=>h,useManifest:()=>M,useMetadata:()=>D});const a=new Set,c=async e=>{const t=document.createElement("script");return new Promise(((r,n)=>{a.has(e)?r(!1):(a.add(e),t.src=e,t.type="text/javascript",t.async=!0,t.onload=()=>{console.debug(`Remote entry fetched from '${e}'.`),r(!0)},t.onerror=()=>{const t=`Failed to fetch remote entry from '${e}'.`;console.error(t),a.delete(e),n(t)},document.head.appendChild(t))})).finally((()=>{document.head.contains(t)&&document.head.removeChild(t)}))};(Object.getOwnPropertyDescriptor(c,"name")||{}).writable||Object.defineProperty(c,"name",{value:"default",configurable:!0});const l=async(e,t,r="default")=>{console.debug(`loading Appshell component: { scope: ${e}, module: ${t}, shareScope: ${r} }`),await n.I(r);const o=window[e];if(!o)throw new Error(`Failed to find module container ${e}`);await o.init(n.S[r]);const a=await o.get(t);if(!a)throw new Error(`Invalid factory produced by container for module ${t}.`);const c=a();return console.debug(`Appshell component loaded: { scope: ${e}, module: ${t}, shareScope: ${r} }`),c.default};(Object.getOwnPropertyDescriptor(l,"name")||{}).writable||Object.defineProperty(l,"name",{value:"default",configurable:!0});const i=new Set,s=new Map,d=e=>async t=>{let r;const n=e.index[t];if(!n)throw new Error(`Remote resource not found in registry. Expected: ${t}`);try{const o=await(async e=>{if(s.has(e))return s.get(e);s.set(e,void 0);const t=await fetch(e,{credentials:"include"});if(t.ok)return t.json();const r=await t.text();throw new Error(`Failed to get manifest from ${e}. ${r}`)})(n);if(o){s.set(n,o);const a=o.remotes[t],d=o.environment[a.scope]||{},u=e.overrides?.environment&&e.overrides?.environment[a.scope]||{};if(window[`__appshell_env__${a.scope}`]={...d,...u},i.has(a.remoteEntryUrl)||await c(a.remoteEntryUrl))return i.add(a.remoteEntryUrl),r=await l(a.scope,a.module,a.shareScope),[r,o]}return[null,null]}catch(e){throw new Error(`Failed to load component '${t}'. ${e?.toString()}`)}};(Object.getOwnPropertyDescriptor(d,"name")||{}).writable||Object.defineProperty(d,"name",{value:"default",configurable:!0});const u=d;var f=n(155),p=n.n(f);const m=(0,f.createContext)({remotes:{},modules:{},environment:{}}),b=({manifest:e,children:t})=>p().createElement(m.Provider,{value:e},t),y=(m.Consumer,m),v=(0,f.createContext)({index:{}}),w=({config:e,children:t})=>p().createElement(v.Provider,{value:e},t),g=(v.Consumer,v),h=()=>p().useContext(g);(Object.getOwnPropertyDescriptor(h,"name")||{}).writable||Object.defineProperty(h,"name",{value:"default",configurable:!0});const j=({remote:e,reason:t})=>p().createElement("div",{style:{border:"3px solid red"}},p().createElement("h5",null,`Error loading Appshell component '${e}.'`),p().createElement("span",{style:{fontSize:"1rem"}},t)),O=({remote:e,fallback:t,...r})=>{const n=h(),[o,a]=(0,f.useState)();return(0,f.useEffect)((()=>{let t=!1;const o=u(n);return t||async function(){try{t=!0,a(void 0);const[n,c]=await o(e);if(!n)return;t=!1,a(p().createElement(b,{manifest:c},p().createElement(n,r)))}catch(t){a(p().createElement(j,{remote:e,reason:`${t}`}))}}(),()=>{t=!1}}),[e,n,...Object.values(r)]),console.debug(`rendering AppshellComponent[${e}], loading=${!o}`),p().createElement(p().Fragment,null,o||t)};O.defaultProps={fallback:void 0};const P=O,E=O;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(null,arguments)}const $=({configUrl:e,remote:t,fallback:r,...n})=>{const[o,a]=p().useState();return(0,f.useEffect)((()=>{o||(async()=>{const t=await fetch(e);if(t.ok){const e=await t.json();a(e)}else a({index:{}})})()}),[o,e]),o?p().createElement(w,{config:o},p().createElement(P,x({remote:t,fallback:r},n))):null};$.defaultProps={fallback:void 0};const S=$,C=(0,f.createContext)({}),_=({metata:e,children:t})=>p().createElement(C.Provider,{value:e},t),k=(C.Consumer,C),M=()=>p().useContext(y);(Object.getOwnPropertyDescriptor(M,"name")||{}).writable||Object.defineProperty(M,"name",{value:"default",configurable:!0});const D=()=>p().useContext(k);(Object.getOwnPropertyDescriptor(D,"name")||{}).writable||Object.defineProperty(D,"name",{value:"default",configurable:!0});const A=e=>{let t,r="pending";const n=fetch(e,{headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((e=>{if(e.ok)return e.json().then((e=>{r="success",t=e}));r="error",t=new Error(`${e.status} ${e.statusText} ${e.url}`)}));return{read(){if("pending"===r)throw n;if("error"===r)throw t;if("success"===r)return t}}};return(Object.getOwnPropertyDescriptor(A,"name")||{}).writable||Object.defineProperty(A,"name",{value:"default",configurable:!0}),o})()));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppshellConfig, ConfigMap } from './types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
apply: <T extends object>(obj: T, configMap: ConfigMap) => T;
|
|
4
|
-
create: (config: AppshellConfig
|
|
4
|
+
create: (config: AppshellConfig) => Record<string, string>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=configmap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configmap.d.ts","sourceRoot":"","sources":["../../../../../config/src/configmap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"configmap.d.ts","sourceRoot":"","sources":["../../../../../config/src/configmap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;YA0BrC,CAAC,SAAS,MAAM,OAAO,CAAC,aAAa,SAAS,KAAG,CAAC;qBAuBzC,cAAc;;AAEtC,wBAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.env.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate.env.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.env.ts"],"names":[],"mappings":";AAGA,wBAuBK"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AppshellGlobalConfig } from './types';
|
|
2
2
|
type GenerateGlobalConfigOptions = {
|
|
3
3
|
insecure: boolean;
|
|
4
|
+
apiKey?: string;
|
|
5
|
+
apiKeyHeader?: string;
|
|
6
|
+
proxyUrl?: string;
|
|
4
7
|
};
|
|
5
8
|
declare const _default: (registries: string[], options?: GenerateGlobalConfigOptions) => Promise<AppshellGlobalConfig>;
|
|
6
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.global-config.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.global-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate.global-config.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.global-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;qCAGY,MAAM,EAAE,YACX,2BAA2B,KACnC,OAAO,CAAC,oBAAoB,CAAC;AAHhC,wBA8CE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.manifest.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.manifest.ts"],"names":[],"mappings":"AAOA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"generate.manifest.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.manifest.ts"],"names":[],"mappings":"AAOA;;;;GAIG;yBACmB,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,MAAM;AAArF,wBAaE"}
|
|
@@ -6,8 +6,10 @@ export { default as deregister } from './deregister';
|
|
|
6
6
|
export { default as generateEnv } from './generate.env';
|
|
7
7
|
export { default as generateGlobalConfig } from './generate.global-config';
|
|
8
8
|
export { default as generateManifest } from './generate.manifest';
|
|
9
|
+
export { default as outdated } from './outdated';
|
|
9
10
|
export { default as register } from './register';
|
|
10
|
-
export
|
|
11
|
+
export { default as sync } from './sync';
|
|
12
|
+
export type { AppshellConfig, AppshellConfigRemote, AppshellGlobalConfig, AppshellIndex, AppshellManifest, AppshellRemote, AppshellTemplate, ComparisonResult, ComparisonResults, ComparisonTarget, Metadata, ModuleFederationPluginOptions, PackageSpec, Schema, SharedModuleSpec, } from './types';
|
|
11
13
|
export * as utils from './utils';
|
|
12
14
|
export * as validators from './validators';
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../config/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../config/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,6BAA6B,EAC7B,WAAW,EACX,MAAM,EACN,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appshell.config.d.ts","sourceRoot":"","sources":["../../../../../../config/src/mappers/appshell.config.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAChB,SAAS,EACV,MAAM,UAAU,CAAC;AAiElB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"appshell.config.d.ts","sourceRoot":"","sources":["../../../../../../config/src/mappers/appshell.config.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAChB,SAAS,EACV,MAAM,UAAU,CAAC;AAiElB,eAAO,MAAM,kBAAkB,GAAI,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAChE,gBAAgB,QACpB,SAAS,gCAQhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outdated.d.ts","sourceRoot":"","sources":["../../../../../config/src/outdated.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;sCAGrB,WAAW,oBAAoB,gBAAgB;AAAlF,wBAYE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComparisonResult } from './types';
|
|
2
|
+
export type ResolutionStrategy = 'highest' | 'lowest';
|
|
3
|
+
export type PackageManager = 'npm' | 'yarn';
|
|
4
|
+
export declare const logPackageConflicts: (conflicts: ComparisonResult[]) => void;
|
|
5
|
+
export declare const syncDependencies: (workingDir: string, registry: string, packages: string[], packageManager: "npm" | "yarn") => Promise<void>;
|
|
6
|
+
export declare const resolveConflicts: (conflicts: ComparisonResult[][], resolutionStrategy: ResolutionStrategy) => string[];
|
|
7
|
+
export declare const groupByPackageName: (conflicts: Record<string, ComparisonResult>) => ComparisonResult[][];
|
|
8
|
+
export declare const groupBySampleModule: (conflicts: Record<string, ComparisonResult>) => ComparisonResult[][];
|
|
9
|
+
export declare const groupByBaselineModule: (conflicts: Record<string, ComparisonResult>) => ComparisonResult[][];
|
|
10
|
+
/**
|
|
11
|
+
* Syncs shared dependencies
|
|
12
|
+
* @param workingDir - working directory
|
|
13
|
+
* @param registry - registry to sync dependencies with
|
|
14
|
+
* @param conflicts - shared dependencies to sync
|
|
15
|
+
* @param resolutionStrategy - resolution strategy to use for syncing dependencies (highest or lowest)
|
|
16
|
+
* @param packageManager - package manager to use for syncing dependencies (npm or yarn)
|
|
17
|
+
* @param dryRun - if true, only logs the shared dependencies to sync
|
|
18
|
+
*/
|
|
19
|
+
declare const _default: (workingDir: string, registry: string, conflicts: Record<string, ComparisonResult>, resolutionStrategy?: ResolutionStrategy, packageManager?: PackageManager, dryRun?: boolean) => Promise<void>;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../config/src/sync.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,mBAAmB,cAAe,gBAAgB,EAAE,SAuBhE,CAAC;AAEF,eAAO,MAAM,gBAAgB,eACf,MAAM,YACR,MAAM,YACN,MAAM,EAAE,kBACF,KAAK,GAAG,MAAM,kBAwB/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAChB,gBAAgB,EAAE,EAAE,sBACX,kBAAkB,aAmBvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAEvF,eAAO,MAAM,mBAAmB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAExF,eAAO,MAAM,qBAAqB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAE1F;;;;;;;;GAQG;qCAEW,MAAM,YACR,MAAM,aACL,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,uBACvB,kBAAkB,mBACtB,cAAc;AALhC,wBA6BE"}
|
|
@@ -4,6 +4,49 @@ export type ConfigValidator = {
|
|
|
4
4
|
validate: <T>(...config: T[]) => void;
|
|
5
5
|
};
|
|
6
6
|
export type ConfigMap = Record<string, string>;
|
|
7
|
+
export type PackageSpec = {
|
|
8
|
+
name: string;
|
|
9
|
+
version: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
main: string;
|
|
12
|
+
scripts?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
keywords?: string[];
|
|
16
|
+
author?: string;
|
|
17
|
+
license?: string;
|
|
18
|
+
dependencies?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
devDependencies?: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type SharedModuleSpec = {
|
|
26
|
+
name: string;
|
|
27
|
+
shared: SharedObject;
|
|
28
|
+
};
|
|
29
|
+
export type ComparisonResult = {
|
|
30
|
+
status: 'conflict' | 'missing' | 'satisfied';
|
|
31
|
+
packageName: string;
|
|
32
|
+
sampleModule: string;
|
|
33
|
+
sampleVersion: string;
|
|
34
|
+
baselineModule: string;
|
|
35
|
+
baselineVersion: string;
|
|
36
|
+
};
|
|
37
|
+
export type ComparisonResults = {
|
|
38
|
+
conflicts: Record<string, ComparisonResult>;
|
|
39
|
+
missing: Record<string, ComparisonResult>;
|
|
40
|
+
satisfied: Record<string, ComparisonResult>;
|
|
41
|
+
};
|
|
42
|
+
export type ComparisonTarget = {
|
|
43
|
+
name: string;
|
|
44
|
+
dependencies: Record<string, string | undefined>;
|
|
45
|
+
};
|
|
46
|
+
export type CliConfig = Record<string, string> & {
|
|
47
|
+
apiKey: string;
|
|
48
|
+
registry: string;
|
|
49
|
+
};
|
|
7
50
|
export type AppshellConfigRemote<TMetadata = Metadata> = {
|
|
8
51
|
id: string;
|
|
9
52
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../config/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,MAAM,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../config/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,MAAM,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,GA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CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,YAAY,CAAC,EAAE,GAAG,YAAY,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/blur.ts"],"names":[],"mappings":";AAAA,wBAA8F"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComparisonResults, ComparisonTarget, PackageSpec, SharedModuleSpec } from '../types';
|
|
2
|
+
export declare const extractDependencies: (sharedModule: SharedModuleSpec) => Record<string, string | undefined>;
|
|
3
|
+
export declare const compareDependency: (packageName: string, sampleModule: string, sampleVersion: string | undefined, baselineModule: string, baselineVersion: string | undefined, results: ComparisonResults) => ComparisonResults;
|
|
4
|
+
export declare const compareDependencies: (sample: ComparisonTarget, baseline: ComparisonTarget) => ComparisonResults;
|
|
5
|
+
export declare const compareSharedDependencies: (packageSpec: PackageSpec, sharedModule: SharedModuleSpec) => ComparisonResults;
|
|
6
|
+
export declare const compareSharedModules: (sampleSpec: SharedModuleSpec, baselineSpec: SharedModuleSpec) => ComparisonResults;
|
|
7
|
+
export declare const printResults: (results: ComparisonResults) => void;
|
|
8
|
+
//# sourceMappingURL=compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/compare.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,iBAAkB,gBAAgB,uCAMpB,CAAC;AAE/C,eAAO,MAAM,iBAAiB,gBACf,MAAM,gBACL,MAAM,iBACL,MAAM,GAAG,SAAS,kBACjB,MAAM,mBACL,MAAM,GAAG,SAAS,WAC1B,iBAAiB,sBAiD3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,gBAAgB,YAAY,gBAAgB,sBAYrF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,gBACvB,WAAW,gBACV,gBAAgB,sBAoB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,eACnB,gBAAgB,gBACd,gBAAgB,sBAY/B,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,iBAAiB,SAsBtD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import yargs from 'yargs';
|
|
2
|
+
import { CliConfig } from '../types';
|
|
3
|
+
export declare const readConfig: (configPath: string) => CliConfig;
|
|
4
|
+
export declare const writeConfig: (configPath: string, config: CliConfig) => void;
|
|
5
|
+
export declare const mergeConfigWithArgs: (config: CliConfig, argv: yargs.ArgumentsCamelCase<unknown>) => void;
|
|
6
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,eAAO,MAAM,UAAU,eAAgB,MAAM,cAkB5C,CAAC;AAEF,eAAO,MAAM,WAAW,eAAgB,MAAM,UAAU,SAAS,SAchE,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,SAAS,QAAQ,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,SAe7F,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { default as blur } from './blur';
|
|
2
|
+
export { compareDependencies, compareDependency, compareSharedDependencies, compareSharedModules, extractDependencies, printResults, } from './compare';
|
|
3
|
+
export { mergeConfigWithArgs, readConfig, writeConfig } from './config';
|
|
1
4
|
export { default as copy } from './copy';
|
|
2
5
|
export { default as isValidUrl } from './isValidUrl';
|
|
3
6
|
export { default as list } from './list';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,GACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/load.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/load.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,cAAc,MAAM,KAAG,OAU3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,MAAM,EAAE,KAAG,OAAO,EAAqC,CAAC;AAEnG,eAAe,IAAI,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
type LoadJsonOptions = {
|
|
2
2
|
insecure: boolean;
|
|
3
3
|
target: string | RegExp;
|
|
4
|
+
apiKey?: string;
|
|
5
|
+
apiKeyHeader?: string;
|
|
6
|
+
proxyUrl?: string;
|
|
4
7
|
};
|
|
5
8
|
declare const _default: <T = Record<string, unknown>>(jsonPathOrUrl: string, options?: LoadJsonOptions) => Promise<T[]>;
|
|
6
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadJson.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/loadJson.ts"],"names":[],"mappings":"AAOA,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"loadJson.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/loadJson.ts"],"names":[],"mappings":"AAOA,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;yBAsDoB,CAAC,2CACN,MAAM,YACZ,eAAe,KAOvB,OAAO,CAAC,CAAC,EAAE,CAAC;AATf,wBAqBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;yBAU3B,OAAO,aAAa,eAAe,gBAAgB,OAAO,EAAE;AAA5E,wBAiBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppshellGlobalConfigValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellGlobalConfigValidator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"AppshellGlobalConfigValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellGlobalConfigValidator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAC;wBAO5D,eAAe;AALpB,wBAKqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppshellManifestValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellManifestValidator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,eAAe,
|
|
1
|
+
{"version":3,"file":"AppshellManifestValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellManifestValidator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,eAAe,EAAgB,MAAM,UAAU,CAAC;wBA0EtE,eAAe;AAtBpB,wBAsBqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppshellTemplateValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellTemplateValidator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,eAAe,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"AppshellTemplateValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellTemplateValidator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,eAAe,EAAE,MAAM,UAAU,CAAC;wBAyCxD,eAAe;AAlBpB,wBAkBqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadAppshellComponent.d.ts","sourceRoot":"","sources":["../../../../../loader/src/loadAppshellComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,SAAS,CAAC;AAGtD,OAAO,CAAC,MAAM,CAAC;IACb,SAAS,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D,MAAM,wBAAwB,EAAE;QAAE,OAAO,EAAE,UAAU,CAAA;KAAE,CAAC;IACxD,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QACvB,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KACtD;CACF;
|
|
1
|
+
{"version":3,"file":"loadAppshellComponent.d.ts","sourceRoot":"","sources":["../../../../../loader/src/loadAppshellComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,SAAS,CAAC;AAGtD,OAAO,CAAC,MAAM,CAAC;IACb,SAAS,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D,MAAM,wBAAwB,EAAE;QAAE,OAAO,EAAE,UAAU,CAAA;KAAE,CAAC;IACxD,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QACvB,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KACtD;CACF;yBAIqB,UAAU,SAAS,MAAM,UAAU,MAAM;AAA/D,wBAgCE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AppshellManifest } from '@appshell/config';
|
|
2
2
|
import { AppshellGlobalConfig } from 'packages/config/src/types';
|
|
3
|
-
declare const _default: (config: AppshellGlobalConfig) => <TComponent>(key: string) => Promise<readonly [TComponent, AppshellManifest
|
|
3
|
+
declare const _default: (config: AppshellGlobalConfig) => <TComponent>(key: string) => Promise<readonly [TComponent, AppshellManifest] | readonly [null, null]>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=remoteLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remoteLoader.d.ts","sourceRoot":"","sources":["../../../../../loader/src/remoteLoader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;iCAwBzC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"remoteLoader.d.ts","sourceRoot":"","sources":["../../../../../loader/src/remoteLoader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;iCAwBzC,oBAAoB,MACnC,UAAU,OAAO,MAAM;AADhC,wBA4CI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppshellIndex } from '@appshell/config';
|
|
2
|
-
import
|
|
2
|
+
import { ReactElement, ReactNode } from 'react';
|
|
3
3
|
export type ExtendedProps = Record<string, unknown>;
|
|
4
4
|
declare global {
|
|
5
5
|
interface Window {
|
|
@@ -11,7 +11,7 @@ export type AppshellComponentProps<TProps extends ExtendedProps = ExtendedProps>
|
|
|
11
11
|
fallback?: ReactNode;
|
|
12
12
|
} & TProps;
|
|
13
13
|
declare const AppshellComponent: {
|
|
14
|
-
<TProps extends ExtendedProps>({ remote, fallback, ...rest }: AppshellComponentProps<TProps>):
|
|
14
|
+
<TProps extends ExtendedProps>({ remote, fallback, ...rest }: AppshellComponentProps<TProps>): ReactElement<TProps>;
|
|
15
15
|
defaultProps: {
|
|
16
16
|
fallback: undefined;
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ export default AppshellComponent;
|
|
|
22
22
|
* Please use AppshellComponent instead.
|
|
23
23
|
*/
|
|
24
24
|
export declare const FederatedComponent: {
|
|
25
|
-
<TProps extends ExtendedProps>({ remote, fallback, ...rest }: AppshellComponentProps<TProps>):
|
|
25
|
+
<TProps extends ExtendedProps>({ remote, fallback, ...rest }: AppshellComponentProps<TProps>): ReactElement<TProps>;
|
|
26
26
|
defaultProps: {
|
|
27
27
|
fallback: undefined;
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppshellComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppshellComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"AppshellComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppshellComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAc,EAAiB,YAAY,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAK3F,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,kBAAkB,EAAE,aAAa,CAAC;KACnC;CACF;AAED,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,aAAa,GAAG,aAAa,IAAI;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,MAAM,CAAC;AAEX,QAAA,MAAM,iBAAiB;KAAI,MAAM,SAAS,aAAa,iCAIpD,sBAAsB,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC;;;;CAyCvD,CAAC;AAMF,eAAe,iBAAiB,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;KAzDJ,MAAM,SAAS,aAAa,iCAIpD,sBAAsB,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC;;;;CAqDL,CAAC"}
|
|
@@ -4,8 +4,8 @@ interface GlobalConfigProviderProps {
|
|
|
4
4
|
config: AppshellGlobalConfig;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const GlobalConfigContext: React.Context<AppshellGlobalConfig
|
|
7
|
+
export declare const GlobalConfigContext: React.Context<AppshellGlobalConfig>;
|
|
8
8
|
export declare const GlobalConfigProvider: FC<GlobalConfigProviderProps>;
|
|
9
|
-
export declare const GlobalConfigConsumer: React.Consumer<AppshellGlobalConfig
|
|
9
|
+
export declare const GlobalConfigConsumer: React.Consumer<AppshellGlobalConfig>;
|
|
10
10
|
export default GlobalConfigContext;
|
|
11
11
|
//# sourceMappingURL=GlobalConfigContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalConfigContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/GlobalConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,EAAiB,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"GlobalConfigContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/GlobalConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,EAAiB,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,mBAAmB,qCAAqD,CAAC;AAEtF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAE9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,sCAA+B,CAAC;AAEjE,eAAe,mBAAmB,CAAC"}
|
|
@@ -5,8 +5,8 @@ interface ManifestProviderProps {
|
|
|
5
5
|
manifest: AppshellManifest;
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const ManifestContext: React.Context<AppshellManifest
|
|
8
|
+
export declare const ManifestContext: React.Context<AppshellManifest>;
|
|
9
9
|
export declare const ManifestProvider: FC<ManifestProviderProps>;
|
|
10
|
-
export declare const ManifestConsumer: React.Consumer<AppshellManifest
|
|
10
|
+
export declare const ManifestConsumer: React.Consumer<AppshellManifest>;
|
|
11
11
|
export default ManifestContext;
|
|
12
12
|
//# sourceMappingURL=ManifestContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManifestContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/ManifestContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ManifestContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/ManifestContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,iCAI1B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAEtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,kCAA2B,CAAC;AAEzD,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonResource.d.ts","sourceRoot":"","sources":["../../../../../src/resources/jsonResource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsonResource.d.ts","sourceRoot":"","sources":["../../../../../src/resources/jsonResource.ts"],"names":[],"mappings":"yBAAgB,SAAS,OAAO,MAAM;;;AAAtC,wBAkCE"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appshell/react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1-alpha.0",
|
|
4
4
|
"description": "React utilities for building micro-frontends with Appshell and Module Federation",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/types/react/src/index.d.ts",
|
|
7
|
-
"repository": "https://github.com/
|
|
7
|
+
"repository": "https://github.com/appshell-org/appshell.git",
|
|
8
8
|
"author": "Robert Hamilton <rh@navaris.com>",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"react": "^18.2.0",
|
|
28
28
|
"react-dom": "^18.2.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "daf7146c16005107f99312bb6241fbbd4e6176c6"
|
|
31
31
|
}
|