@genesislcap/foundation-shell 14.408.0 → 14.409.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/package.json +14 -15
- package/docs/api/foundation-shell.app.config.md +0 -13
- package/docs/api/foundation-shell.app.deregisterassets.md +0 -17
- package/docs/api/foundation-shell.app.hasassets.md +0 -17
- package/docs/api/foundation-shell.app.md +0 -129
- package/docs/api/foundation-shell.app.registerassets.md +0 -82
- package/docs/api/foundation-shell.appassets.elements.md +0 -13
- package/docs/api/foundation-shell.appassets.md +0 -165
- package/docs/api/foundation-shell.appassets.metadata.md +0 -13
- package/docs/api/foundation-shell.appassets.registrations.md +0 -13
- package/docs/api/foundation-shell.appassets.routes.md +0 -13
- package/docs/api/foundation-shell.appassets.stores.md +0 -13
- package/docs/api/foundation-shell.appassets.styles.md +0 -13
- package/docs/api/foundation-shell.appconfig.context.md +0 -11
- package/docs/api/foundation-shell.appconfig.defaultelementrepeatoptions.md +0 -11
- package/docs/api/foundation-shell.appconfig.md +0 -77
- package/docs/api/foundation-shell.appcontext.md +0 -13
- package/docs/api/foundation-shell.appdependencies.md +0 -15
- package/docs/api/foundation-shell.appdependencyprerequisites.md +0 -15
- package/docs/api/foundation-shell.appelement.md +0 -56
- package/docs/api/foundation-shell.appelementpredicate.md +0 -17
- package/docs/api/foundation-shell.appmetadata.md +0 -45
- package/docs/api/foundation-shell.appregister.deregisterelement.md +0 -61
- package/docs/api/foundation-shell.appregister.deregisterroute.md +0 -61
- package/docs/api/foundation-shell.appregister.deregisterstore.md +0 -61
- package/docs/api/foundation-shell.appregister.deregisterstyle.md +0 -61
- package/docs/api/foundation-shell.appregister.md +0 -237
- package/docs/api/foundation-shell.appregister.registercomponents.md +0 -13
- package/docs/api/foundation-shell.appregister.registerelement.md +0 -61
- package/docs/api/foundation-shell.appregister.registerelementstarget.md +0 -13
- package/docs/api/foundation-shell.appregister.registerroute.md +0 -61
- package/docs/api/foundation-shell.appregister.registerroutecollection.md +0 -13
- package/docs/api/foundation-shell.appregister.registerstore.md +0 -61
- package/docs/api/foundation-shell.appregister.registerstoreroot.md +0 -13
- package/docs/api/foundation-shell.appregister.registerstyle.md +0 -61
- package/docs/api/foundation-shell.appregister.registerstylestarget.md +0 -13
- package/docs/api/foundation-shell.appregistration.md +0 -57
- package/docs/api/foundation-shell.appregistrationcontext.md +0 -15
- package/docs/api/foundation-shell.approute.md +0 -49
- package/docs/api/foundation-shell.approutepredicate.md +0 -17
- package/docs/api/foundation-shell.appstore.md +0 -45
- package/docs/api/foundation-shell.appstorepredicate.md +0 -17
- package/docs/api/foundation-shell.appstyle.md +0 -48
- package/docs/api/foundation-shell.appstylepredicate.md +0 -17
- package/docs/api/foundation-shell.apptargetid.md +0 -43
- package/docs/api/foundation-shell.apptokentypepredicate.md +0 -13
- package/docs/api/foundation-shell.appvalidity.isvalid.md +0 -56
- package/docs/api/foundation-shell.appvalidity.md +0 -40
- package/docs/api/foundation-shell.appvaliditycontext.md +0 -18
- package/docs/api/foundation-shell.assetpredicate.md +0 -15
- package/docs/api/foundation-shell.defaultapp.deregisterassets.md +0 -17
- package/docs/api/foundation-shell.defaultapp.deregisterelement.md +0 -54
- package/docs/api/foundation-shell.defaultapp.deregisterroute.md +0 -54
- package/docs/api/foundation-shell.defaultapp.deregisterstore.md +0 -54
- package/docs/api/foundation-shell.defaultapp.deregisterstyle.md +0 -54
- package/docs/api/foundation-shell.defaultapp.elements.md +0 -13
- package/docs/api/foundation-shell.defaultapp.hasassets.md +0 -17
- package/docs/api/foundation-shell.defaultapp.isvalid.md +0 -56
- package/docs/api/foundation-shell.defaultapp.md +0 -412
- package/docs/api/foundation-shell.defaultapp.metadata.md +0 -13
- package/docs/api/foundation-shell.defaultapp.registerassets.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registercomponents.md +0 -52
- package/docs/api/foundation-shell.defaultapp.registerelement.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerelementstarget.md +0 -88
- package/docs/api/foundation-shell.defaultapp.registerroute.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerroutecollection.md +0 -70
- package/docs/api/foundation-shell.defaultapp.registerstore.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerstoreroot.md +0 -70
- package/docs/api/foundation-shell.defaultapp.registerstyle.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerstylestarget.md +0 -72
- package/docs/api/foundation-shell.defaultapp.registrations.md +0 -13
- package/docs/api/foundation-shell.defaultapp.routes.md +0 -13
- package/docs/api/foundation-shell.defaultapp.stores.md +0 -13
- package/docs/api/foundation-shell.defaultapp.styles.md +0 -13
- package/docs/api/foundation-shell.defaultappconfig.md +0 -13
- package/docs/api/foundation-shell.dynamictemplate.md +0 -12
- package/docs/api/foundation-shell.getapp.md +0 -30
- package/docs/api/foundation-shell.getqualifiedmoduletokens.md +0 -68
- package/docs/api/foundation-shell.haspredicate.md +0 -17
- package/docs/api/foundation-shell.hastarget.md +0 -15
- package/docs/api/foundation-shell.importpbcassets.md +0 -75
- package/docs/api/foundation-shell.isappelement.md +0 -52
- package/docs/api/foundation-shell.isappmetadata.md +0 -52
- package/docs/api/foundation-shell.isappregistration.md +0 -52
- package/docs/api/foundation-shell.isapproute.md +0 -52
- package/docs/api/foundation-shell.isappstore.md +0 -52
- package/docs/api/foundation-shell.isappstyle.md +0 -52
- package/docs/api/foundation-shell.iscomposablestyles.md +0 -52
- package/docs/api/foundation-shell.isviewtemplate.md +0 -52
- package/docs/api/foundation-shell.loadingtemplate.md +0 -12
- package/docs/api/foundation-shell.logger.md +0 -13
- package/docs/api/foundation-shell.mainapplication.connectedcallback.md +0 -15
- package/docs/api/foundation-shell.mainapplication.md +0 -100
- package/docs/api/foundation-shell.mainapplication.ready.md +0 -11
- package/docs/api/foundation-shell.mainapplication.selecttemplate.md +0 -15
- package/docs/api/foundation-shell.maintemplate.md +0 -12
- package/docs/api/foundation-shell.md +0 -617
- package/docs/api/foundation-shell.registercomponents.md +0 -34
- package/docs/api/foundation-shell.registerelementstarget.md +0 -39
- package/docs/api/foundation-shell.registerroutecollection.md +0 -24
- package/docs/api/foundation-shell.registerstoreroot.md +0 -33
- package/docs/api/foundation-shell.registerstylestarget.md +0 -27
- package/docs/api/foundation-shell.registrationpredicate.md +0 -79
- package/docs/api/foundation-shell.targetidpredicate.md +0 -65
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -296
|
@@ -1,617 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md)
|
|
4
|
-
|
|
5
|
-
## foundation-shell package
|
|
6
|
-
|
|
7
|
-
## Classes
|
|
8
|
-
|
|
9
|
-
<table><thead><tr><th>
|
|
10
|
-
|
|
11
|
-
Class
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</th><th>
|
|
15
|
-
|
|
16
|
-
Description
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</th></tr></thead>
|
|
20
|
-
<tbody><tr><td>
|
|
21
|
-
|
|
22
|
-
[DefaultApp](./foundation-shell.defaultapp.md)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</td><td>
|
|
26
|
-
|
|
27
|
-
Default App implementation.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</td></tr>
|
|
31
|
-
<tr><td>
|
|
32
|
-
|
|
33
|
-
[MainApplication](./foundation-shell.mainapplication.md)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</td></tr>
|
|
41
|
-
</tbody></table>
|
|
42
|
-
|
|
43
|
-
## Functions
|
|
44
|
-
|
|
45
|
-
<table><thead><tr><th>
|
|
46
|
-
|
|
47
|
-
Function
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</th><th>
|
|
51
|
-
|
|
52
|
-
Description
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</th></tr></thead>
|
|
56
|
-
<tbody><tr><td>
|
|
57
|
-
|
|
58
|
-
[assetPredicate(asset, context)](./foundation-shell.assetpredicate.md)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</td><td>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</td></tr>
|
|
66
|
-
<tr><td>
|
|
67
|
-
|
|
68
|
-
[getApp()](./foundation-shell.getapp.md)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
Gets App from the DI container.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</td></tr>
|
|
77
|
-
<tr><td>
|
|
78
|
-
|
|
79
|
-
[getQualifiedModuleTokens(module, predicate)](./foundation-shell.getqualifiedmoduletokens.md)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
</td><td>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</td></tr>
|
|
86
|
-
<tr><td>
|
|
87
|
-
|
|
88
|
-
[importPBCAssets()](./foundation-shell.importpbcassets.md)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</td><td>
|
|
92
|
-
|
|
93
|
-
A utility for importing PBC assets that have been added to the application's src/pbc directory via genx add.
|
|
94
|
-
|
|
95
|
-
The `genx` builder (webpack or vite) will attempt to dynamically load all PBC assets from the application's `src/pbc` directory by default. The returned AppAssets can then be applied to the App. Please note that `app.registerAssets` is a one-time operation, intended for upfront bulk registration. After this point, you must use the single asset APIs of the `App` for lazy asset registration or deregistration.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
</td></tr>
|
|
99
|
-
<tr><td>
|
|
100
|
-
|
|
101
|
-
[isAppElement(token)](./foundation-shell.isappelement.md)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</td><td>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</td></tr>
|
|
108
|
-
<tr><td>
|
|
109
|
-
|
|
110
|
-
[isAppMetadata(token)](./foundation-shell.isappmetadata.md)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</td><td>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
</td></tr>
|
|
117
|
-
<tr><td>
|
|
118
|
-
|
|
119
|
-
[isAppRegistration(token)](./foundation-shell.isappregistration.md)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
</td><td>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</td></tr>
|
|
126
|
-
<tr><td>
|
|
127
|
-
|
|
128
|
-
[isAppRoute(token)](./foundation-shell.isapproute.md)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</td><td>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
</td></tr>
|
|
135
|
-
<tr><td>
|
|
136
|
-
|
|
137
|
-
[isAppStore(token)](./foundation-shell.isappstore.md)
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
</td><td>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
</td></tr>
|
|
144
|
-
<tr><td>
|
|
145
|
-
|
|
146
|
-
[isAppStyle(token)](./foundation-shell.isappstyle.md)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
</td><td>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
</td></tr>
|
|
153
|
-
<tr><td>
|
|
154
|
-
|
|
155
|
-
[isComposableStyles(token)](./foundation-shell.iscomposablestyles.md)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
</td><td>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
</td></tr>
|
|
162
|
-
<tr><td>
|
|
163
|
-
|
|
164
|
-
[isViewTemplate(token)](./foundation-shell.isviewtemplate.md)
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
</td><td>
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
</td></tr>
|
|
171
|
-
<tr><td>
|
|
172
|
-
|
|
173
|
-
[registrationPredicate(asset, predicate, context)](./foundation-shell.registrationpredicate.md)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
</td><td>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</td></tr>
|
|
181
|
-
<tr><td>
|
|
182
|
-
|
|
183
|
-
[targetIdPredicate(asset, targetId)](./foundation-shell.targetidpredicate.md)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
</td><td>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
</td></tr>
|
|
191
|
-
</tbody></table>
|
|
192
|
-
|
|
193
|
-
## Interfaces
|
|
194
|
-
|
|
195
|
-
<table><thead><tr><th>
|
|
196
|
-
|
|
197
|
-
Interface
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
</th><th>
|
|
201
|
-
|
|
202
|
-
Description
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
</th></tr></thead>
|
|
206
|
-
<tbody><tr><td>
|
|
207
|
-
|
|
208
|
-
[App](./foundation-shell.app.md)
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
</td><td>
|
|
212
|
-
|
|
213
|
-
`App` provides APIs to register integration targets for PBCs and other actors to register their assets in bulk via token exports. It also provides specific APIs to add single assets to the application itself, like routes, elements, styles, store fragments etc.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
</td></tr>
|
|
217
|
-
<tr><td>
|
|
218
|
-
|
|
219
|
-
[AppAssets](./foundation-shell.appassets.md)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
</td><td>
|
|
223
|
-
|
|
224
|
-
Dynamically registered assets.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
</td></tr>
|
|
228
|
-
<tr><td>
|
|
229
|
-
|
|
230
|
-
[AppConfig](./foundation-shell.appconfig.md)
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
</td><td>
|
|
234
|
-
|
|
235
|
-
AppConfig DI interface.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
</td></tr>
|
|
239
|
-
<tr><td>
|
|
240
|
-
|
|
241
|
-
[AppRegister](./foundation-shell.appregister.md)
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
</td><td>
|
|
245
|
-
|
|
246
|
-
APIs to register asset targets and assets. These can be lazily registered and deregistered.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
</td></tr>
|
|
250
|
-
<tr><td>
|
|
251
|
-
|
|
252
|
-
[AppValidity](./foundation-shell.appvalidity.md)
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
</td><td>
|
|
256
|
-
|
|
257
|
-
APIs to check app validity.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
</td></tr>
|
|
261
|
-
</tbody></table>
|
|
262
|
-
|
|
263
|
-
## Variables
|
|
264
|
-
|
|
265
|
-
<table><thead><tr><th>
|
|
266
|
-
|
|
267
|
-
Variable
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
</th><th>
|
|
271
|
-
|
|
272
|
-
Description
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
</th></tr></thead>
|
|
276
|
-
<tbody><tr><td>
|
|
277
|
-
|
|
278
|
-
[defaultAppConfig](./foundation-shell.defaultappconfig.md)
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
</td><td>
|
|
282
|
-
|
|
283
|
-
Default AppConfig DI implementation.
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
</td></tr>
|
|
287
|
-
<tr><td>
|
|
288
|
-
|
|
289
|
-
[DynamicTemplate](./foundation-shell.dynamictemplate.md)
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
</td><td>
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
</td></tr>
|
|
297
|
-
<tr><td>
|
|
298
|
-
|
|
299
|
-
[LoadingTemplate](./foundation-shell.loadingtemplate.md)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
</td><td>
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
</td></tr>
|
|
307
|
-
<tr><td>
|
|
308
|
-
|
|
309
|
-
[logger](./foundation-shell.logger.md)
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
</td><td>
|
|
313
|
-
|
|
314
|
-
Logger for the foundation-shell package
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
</td></tr>
|
|
318
|
-
<tr><td>
|
|
319
|
-
|
|
320
|
-
[MainTemplate](./foundation-shell.maintemplate.md)
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
</td><td>
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
</td></tr>
|
|
328
|
-
</tbody></table>
|
|
329
|
-
|
|
330
|
-
## Type Aliases
|
|
331
|
-
|
|
332
|
-
<table><thead><tr><th>
|
|
333
|
-
|
|
334
|
-
Type Alias
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
</th><th>
|
|
338
|
-
|
|
339
|
-
Description
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
</th></tr></thead>
|
|
343
|
-
<tbody><tr><td>
|
|
344
|
-
|
|
345
|
-
[AppContext](./foundation-shell.appcontext.md)
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
</td><td>
|
|
349
|
-
|
|
350
|
-
Context passed to predicate functions and other utilities.
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
</td></tr>
|
|
354
|
-
<tr><td>
|
|
355
|
-
|
|
356
|
-
[AppDependencies](./foundation-shell.appdependencies.md)
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
</td><td>
|
|
360
|
-
|
|
361
|
-
A record of app dependencies.
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
</td></tr>
|
|
365
|
-
<tr><td>
|
|
366
|
-
|
|
367
|
-
[AppDependencyPrerequisites](./foundation-shell.appdependencyprerequisites.md)
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
</td><td>
|
|
371
|
-
|
|
372
|
-
A record of app dependency prerequisites.
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
</td></tr>
|
|
376
|
-
<tr><td>
|
|
377
|
-
|
|
378
|
-
[AppElement](./foundation-shell.appelement.md)
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
</td><td>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
</td></tr>
|
|
385
|
-
<tr><td>
|
|
386
|
-
|
|
387
|
-
[AppElementPredicate](./foundation-shell.appelementpredicate.md)
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
</td><td>
|
|
391
|
-
|
|
392
|
-
Determine if [AppElement](./foundation-shell.appelement.md) should be included during runtime integration.
|
|
393
|
-
|
|
394
|
-
Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their target integration points. This is a similar concept to which may be applied to slotted content. For example the accordion accepts slotted accordionItems only.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
</td></tr>
|
|
398
|
-
<tr><td>
|
|
399
|
-
|
|
400
|
-
[AppMetadata](./foundation-shell.appmetadata.md)
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
</td><td>
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
</td></tr>
|
|
407
|
-
<tr><td>
|
|
408
|
-
|
|
409
|
-
[AppRegistration](./foundation-shell.appregistration.md)
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
</td><td>
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
</td></tr>
|
|
416
|
-
<tr><td>
|
|
417
|
-
|
|
418
|
-
[AppRegistrationContext](./foundation-shell.appregistrationcontext.md)
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
</td><td>
|
|
422
|
-
|
|
423
|
-
Context used during component registration.
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
</td></tr>
|
|
427
|
-
<tr><td>
|
|
428
|
-
|
|
429
|
-
[AppRoute](./foundation-shell.approute.md)
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
</td><td>
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
</td></tr>
|
|
436
|
-
<tr><td>
|
|
437
|
-
|
|
438
|
-
[AppRoutePredicate](./foundation-shell.approutepredicate.md)
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
</td><td>
|
|
442
|
-
|
|
443
|
-
Determine if the [AppRoute](./foundation-shell.approute.md) should be integrated.
|
|
444
|
-
|
|
445
|
-
Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their target integration points.
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
</td></tr>
|
|
449
|
-
<tr><td>
|
|
450
|
-
|
|
451
|
-
[AppStore](./foundation-shell.appstore.md)
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
</td><td>
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
</td></tr>
|
|
458
|
-
<tr><td>
|
|
459
|
-
|
|
460
|
-
[AppStorePredicate](./foundation-shell.appstorepredicate.md)
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
</td><td>
|
|
464
|
-
|
|
465
|
-
Determine if [AppStore](./foundation-shell.appstore.md) should be included during runtime integration.
|
|
466
|
-
|
|
467
|
-
Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their target integration points.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
</td></tr>
|
|
471
|
-
<tr><td>
|
|
472
|
-
|
|
473
|
-
[AppStyle](./foundation-shell.appstyle.md)
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
</td><td>
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
</td></tr>
|
|
480
|
-
<tr><td>
|
|
481
|
-
|
|
482
|
-
[AppStylePredicate](./foundation-shell.appstylepredicate.md)
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
</td><td>
|
|
486
|
-
|
|
487
|
-
Determine if [AppStyle](./foundation-shell.appstyle.md) should be included during runtime integration.
|
|
488
|
-
|
|
489
|
-
Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their target integration points.
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
</td></tr>
|
|
493
|
-
<tr><td>
|
|
494
|
-
|
|
495
|
-
[AppTargetId](./foundation-shell.apptargetid.md)
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
</td><td>
|
|
499
|
-
|
|
500
|
-
A targetId string or an array of targetId strings.
|
|
501
|
-
|
|
502
|
-
Apps and micro frontends will predefine integration targets that dynamic app assets can target using a `targetId` property. This creates a pull-like effect where the host can live reload itself should any matching asset be lazily added, removed, or customised.
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
</td></tr>
|
|
506
|
-
<tr><td>
|
|
507
|
-
|
|
508
|
-
[AppTokenTypePredicate](./foundation-shell.apptokentypepredicate.md)
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
</td><td>
|
|
512
|
-
|
|
513
|
-
Determine if export token should be included in the import all glob.
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
</td></tr>
|
|
517
|
-
<tr><td>
|
|
518
|
-
|
|
519
|
-
[AppValidityContext](./foundation-shell.appvaliditycontext.md)
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
</td><td>
|
|
523
|
-
|
|
524
|
-
Context used to assess app validity.
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
</td></tr>
|
|
528
|
-
<tr><td>
|
|
529
|
-
|
|
530
|
-
[AssetPredicate](./foundation-shell.assetpredicate.md)
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
</td><td>
|
|
534
|
-
|
|
535
|
-
Asset runtime predicate function.
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
</td></tr>
|
|
539
|
-
<tr><td>
|
|
540
|
-
|
|
541
|
-
[HasPredicate](./foundation-shell.haspredicate.md)
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
</td><td>
|
|
545
|
-
|
|
546
|
-
Interface that includes `predicate` function.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
</td></tr>
|
|
550
|
-
<tr><td>
|
|
551
|
-
|
|
552
|
-
[HasTarget](./foundation-shell.hastarget.md)
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
</td><td>
|
|
556
|
-
|
|
557
|
-
Interface that includes `targetId`<!-- -->.
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
</td></tr>
|
|
561
|
-
<tr><td>
|
|
562
|
-
|
|
563
|
-
[RegisterComponents](./foundation-shell.registercomponents.md)
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
</td><td>
|
|
567
|
-
|
|
568
|
-
API for Application and Seed authors to register dynamic components.
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
</td></tr>
|
|
572
|
-
<tr><td>
|
|
573
|
-
|
|
574
|
-
[RegisterElementsTarget](./foundation-shell.registerelementstarget.md)
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
</td><td>
|
|
578
|
-
|
|
579
|
-
API for Application and Seed authors to define dynamic [AppElement](./foundation-shell.appelement.md) integration points.
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
</td></tr>
|
|
583
|
-
<tr><td>
|
|
584
|
-
|
|
585
|
-
[RegisterRouteCollection](./foundation-shell.registerroutecollection.md)
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
</td><td>
|
|
589
|
-
|
|
590
|
-
API for Application and Seed authors to register the main .
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
</td></tr>
|
|
594
|
-
<tr><td>
|
|
595
|
-
|
|
596
|
-
[RegisterStoreRoot](./foundation-shell.registerstoreroot.md)
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
</td><td>
|
|
600
|
-
|
|
601
|
-
API for Application and Seed authors to register the .
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
</td></tr>
|
|
605
|
-
<tr><td>
|
|
606
|
-
|
|
607
|
-
[RegisterStylesTarget](./foundation-shell.registerstylestarget.md)
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
</td><td>
|
|
611
|
-
|
|
612
|
-
API for Application and Seed authors to define dynamic [AppStyle](./foundation-shell.appstyle.md) integration points.
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
</td></tr>
|
|
616
|
-
</tbody></table>
|
|
617
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [RegisterComponents](./foundation-shell.registercomponents.md)
|
|
4
|
-
|
|
5
|
-
## RegisterComponents type
|
|
6
|
-
|
|
7
|
-
API for Application and Seed authors to register dynamic components.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type RegisterComponents = AppRegistration;
|
|
13
|
-
```
|
|
14
|
-
**References:** [AppRegistration](./foundation-shell.appregistration.md)
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
Register components.
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
export async function registerComponents() {
|
|
22
|
-
const designSystem = await designSystemImport();
|
|
23
|
-
const { provideDesignSystem, baseComponents } = designSystem;
|
|
24
|
-
...
|
|
25
|
-
// Register any pbc components with the design system
|
|
26
|
-
getApp().registerComponents({
|
|
27
|
-
designSystem,
|
|
28
|
-
});
|
|
29
|
-
...
|
|
30
|
-
provideDesignSystem().register(...);
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
PBCs or other application assets may need to register components with the design system of the application, or simply to ensure they are referenced, so they can be used in template literals without the risk of them being tree-shaken out by the application's build process.
|
|
34
|
-
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [RegisterElementsTarget](./foundation-shell.registerelementstarget.md)
|
|
4
|
-
|
|
5
|
-
## RegisterElementsTarget type
|
|
6
|
-
|
|
7
|
-
API for Application and Seed authors to define dynamic [AppElement](./foundation-shell.appelement.md) integration points.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type RegisterElementsTarget = <T = string>(targetId: AppTargetId<T>, predicate?: AppElementPredicate, repeatOptions?: RepeatOptions) => ViewTemplate;
|
|
13
|
-
```
|
|
14
|
-
**References:** [AppTargetId](./foundation-shell.apptargetid.md)<!-- -->, [AppElementPredicate](./foundation-shell.appelementpredicate.md)
|
|
15
|
-
|
|
16
|
-
## Example 1
|
|
17
|
-
|
|
18
|
-
Register elements targets within a template literal. An array can be used to integrate assets targeting N number of targets to the one integration location, ie. `['layout', 'layout-end']`<!-- -->.
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
html`
|
|
22
|
-
${app.registerElementsTarget('layout-start')}
|
|
23
|
-
...
|
|
24
|
-
${app.registerElementsTarget(['layout', 'layout-end'])}
|
|
25
|
-
`
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Example 2
|
|
29
|
-
|
|
30
|
-
Providing a predicate function to filter what elements you will allow.
|
|
31
|
-
|
|
32
|
-
```ts
|
|
33
|
-
html`
|
|
34
|
-
${app.registerElementsTarget('admin-tools', (element: AppElement, context: AppContext) => {
|
|
35
|
-
return context.user.isAdmin();
|
|
36
|
-
})}
|
|
37
|
-
`
|
|
38
|
-
```
|
|
39
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [RegisterRouteCollection](./foundation-shell.registerroutecollection.md)
|
|
4
|
-
|
|
5
|
-
## RegisterRouteCollection type
|
|
6
|
-
|
|
7
|
-
API for Application and Seed authors to register the main .
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type RegisterRouteCollection = (routeCollection: FoundationRouteCollection, predicate?: AppRoutePredicate) => (source: unknown) => void;
|
|
13
|
-
```
|
|
14
|
-
**References:** [AppRoutePredicate](./foundation-shell.approutepredicate.md)
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
// src/main/main.ts
|
|
21
|
-
...
|
|
22
|
-
getApp().registerRouteCollection(this.config.routes);
|
|
23
|
-
```
|
|
24
|
-
|