repluggable-core 0.0.0-pr280.413 → 1.302.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/API.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- /// <reference types="lodash" />
3
- import * as Redux from 'redux';
4
1
  export interface AnySlotKey {
5
2
  readonly name: string;
6
3
  readonly public?: boolean;
@@ -31,430 +28,4 @@ export interface SlotKey<T> extends AnySlotKey {
31
28
  */
32
29
  readonly version?: number;
33
30
  }
34
- export type ReactComponentContributor<TProps = {}> = (props?: TProps) => React.ReactNode;
35
- export type ReducersMapObjectContributor<TState = {}, TAction extends Redux.AnyAction = Redux.AnyAction> = () => Redux.ReducersMapObject<TState, TAction>;
36
- export type ContributionPredicate = () => boolean;
37
- export interface EntryPointTags {
38
- [name: string]: string;
39
- }
40
- export type LazyEntryPointFactory = () => Promise<EntryPoint>;
41
- export type ShellsChangedCallback = (shellNames: string[]) => void;
42
- export type ShellBoundaryAspect = React.FunctionComponent<React.PropsWithChildren<unknown>>;
43
- export interface LazyEntryPointDescriptor {
44
- readonly name: string;
45
- readonly factory: LazyEntryPointFactory;
46
- }
47
- /**
48
- * Application part that will receive a {Shell} when loaded into the {AppHost}
49
- * @export
50
- * @interface EntryPoint
51
- */
52
- export interface EntryPoint {
53
- /**
54
- * Unique name that will represent this entry point in the host
55
- */
56
- readonly name: string;
57
- readonly tags?: EntryPointTags;
58
- /**
59
- * Application layer / layers that will restrict usage of APIs contributed by this entry point.
60
- * Layers hierarchy is defined in the host options
61
- * See {AppHostOptions.layers}
62
- */
63
- readonly layer?: string | string[];
64
- /**
65
- * Define which API keys (a.k.a. contracts) are mandatory for this entry point to be executed
66
- * @return {SlotKey<any>[]} API keys to wait for implementation
67
- */
68
- getDependencyAPIs?(): SlotKey<any>[];
69
- /**
70
- * Define which API keys (a.k.a. contracts) this entry point is going to implement and contribute
71
- * @return {SlotKey<any>[]} API keys that will be contributed
72
- */
73
- declareAPIs?(): SlotKey<any>[];
74
- /**
75
- * Execute logic that is independent from other entry points
76
- * Most commonly - contribute APIs and state
77
- * @param {Shell} shell
78
- */
79
- attach?(shell: Shell): void;
80
- /**
81
- * Execute logic that is dependent on other entry points
82
- * @param {Shell} shell
83
- */
84
- extend?(shell: Shell): void;
85
- /**
86
- * Clean side effects
87
- * @param {Shell} shell
88
- */
89
- detach?(shell: Shell): void;
90
- }
91
- export type AnyEntryPoint = EntryPoint | LazyEntryPointDescriptor;
92
- export type EntryPointOrPackage = AnyEntryPoint | AnyEntryPoint[];
93
- export interface EntryPointOrPackagesMap {
94
- [name: string]: EntryPointOrPackage;
95
- }
96
- export type ExtensionItemFilter<T> = (extensionItem: ExtensionItem<T>) => boolean;
97
- /**
98
- * A slot/container for holding any contribution of shape T
99
- * Access to the slot is scoped to the {Shell}
100
- *
101
- * @export
102
- * @interface ExtensionSlot
103
- * @template T
104
- */
105
- export interface ExtensionSlot<T> {
106
- /**
107
- * a unique identifier for the slot
108
- */
109
- readonly name: string;
110
- readonly host: AppHost;
111
- /**
112
- * Which {Shell} owns this slot
113
- */
114
- readonly declaringShell?: Shell;
115
- /**
116
- * Add an item to the slot
117
- *
118
- * @param {Shell} shell Who owns the contributed item
119
- * @param {T} item Extension item to be added to the slot
120
- * @param {ContributionPredicate} [condition] A predicate to condition the retrieval of the item when slot items are requested with {ExtensionSlot<T>.getItems}
121
- */
122
- contribute(shell: Shell, item: T, condition?: ContributionPredicate): void;
123
- /**
124
- * Get all items contributed to the slot
125
- *
126
- * @param {boolean} [forceAll] Ignore items' contribution predicates and get all anyway
127
- * @return {ExtensionItem<T>[]} All items contributed to the slot
128
- */
129
- getItems(forceAll?: boolean): ExtensionItem<T>[];
130
- /**
131
- * Get the first item in the slot
132
- *
133
- * @return {ExtensionItem<T>} The first item in the slot
134
- */
135
- getSingleItem(): ExtensionItem<T> | undefined;
136
- /**
137
- * Get a specific item in the slot
138
- *
139
- * @param {string} name Extension item name
140
- * @return {ExtensionItem<T> | undefined} Extension item
141
- */
142
- getItemByName(name: string): ExtensionItem<T> | undefined;
143
- /**
144
- * Remove items from the slot by predicate
145
- *
146
- * @param {ExtensionItemFilter<T> | undefined} predicate Remove all items matching this predicate
147
- */
148
- discardBy(predicate: ExtensionItemFilter<T>): void;
149
- }
150
- export interface PrivateExtensionSlot<T> extends ExtensionSlot<T> {
151
- subscribe(callback: () => void): () => void;
152
- }
153
- export interface CustomExtensionSlotHandler<T> {
154
- contribute(fromShell: Shell, item: T, condition?: ContributionPredicate): void;
155
- discardBy(predicate: ExtensionItemFilter<T>): void;
156
- }
157
- export interface CustomExtensionSlot<T> extends CustomExtensionSlotHandler<T> {
158
- readonly name: string;
159
- readonly host: AppHost;
160
- readonly declaringShell?: Shell;
161
- }
162
- /**
163
- * Item of shape T that is contributed to a slot of shape T
164
- *
165
- * @export
166
- * @interface ExtensionItem
167
- * @template T
168
- */
169
- export interface ExtensionItem<T> {
170
- readonly name?: string;
171
- /**
172
- * Which {Shell} owns this item
173
- */
174
- readonly shell: Shell;
175
- /**
176
- * Contribution content
177
- */
178
- readonly contribution: T;
179
- /**
180
- * Condition for the retrieval of this item by {ExtensionSlot<T>.getItems}
181
- */
182
- readonly condition: ContributionPredicate;
183
- readonly uniqueId: string;
184
- }
185
- /**
186
- * An application content container that will accept {EntryPoint} and provide registry for contracts
187
- *
188
- * @export
189
- * @interface AppHost
190
- */
191
- export interface AppHost {
192
- /**
193
- * Get an implementation of API previously contributed to the {AppHost}
194
- *
195
- * @template TAPI
196
- * @param {SlotKey<TAPI>} key API Key
197
- * @return {*} {TAPI}
198
- */
199
- getAPI<TAPI>(key: SlotKey<TAPI>): TAPI;
200
- /**
201
- * Get an extension slot defined on the host
202
- *
203
- * @template TItem
204
- * @param {SlotKey<TItem>} key
205
- * @return {ExtensionSlot<TItem>}
206
- */
207
- getSlot<TItem>(key: SlotKey<TItem>): ExtensionSlot<TItem>;
208
- /**
209
- * Get all the extension slots defined on the host
210
- *
211
- * @return {*} {AnySlotKey[]}
212
- */
213
- getAllSlotKeys(): AnySlotKey[];
214
- /**
215
- * Get all {EntryPoint}s addded to the {AppHost}
216
- *
217
- * @return {EntryPointsInfo[]}
218
- */
219
- getAllEntryPoints(): EntryPointsInfo[];
220
- /**
221
- * Does the {AppHost} contain a specific {Shell}
222
- *
223
- * @param {string} name
224
- * @return {boolean}
225
- */
226
- hasShell(name: string): boolean;
227
- isLazyEntryPoint(name: string): boolean;
228
- /**
229
- * Dynamically add {Shell}s after the host is created
230
- *
231
- * @param {EntryPointOrPackage[]} entryPointsOrPackages New packages or entry points to be added to the {AppHost}
232
- * @return {Promise<void>}
233
- */
234
- addShells(entryPointsOrPackages: EntryPointOrPackage[]): Promise<void>;
235
- /**
236
- * Dynamically remove {Shell}s after the host is created
237
- *
238
- * @param {string[]} names {Shell} names to be removed
239
- * @return {Promise<void>}
240
- */
241
- removeShells(names: string[]): Promise<void>;
242
- onShellsChanged(callback: ShellsChangedCallback): string;
243
- removeShellsChangedCallback(callbackId: string): void;
244
- readonly log: HostLogger;
245
- readonly options: AppHostOptions;
246
- }
247
- export interface PrivateAppHost extends AppHost {
248
- executeWhenFree(identifier: string, callback: () => void): void;
249
- }
250
- export interface MonitoringOptions {
251
- enablePerformance?: boolean;
252
- readonly disableMonitoring?: boolean;
253
- readonly disableMemoization?: boolean;
254
- readonly debugMemoization?: boolean;
255
- }
256
- export interface Trace {
257
- name: string;
258
- duration: number;
259
- startTime: number;
260
- res: any;
261
- args: any[];
262
- }
263
- export interface APILayer {
264
- level: number;
265
- name: string;
266
- }
267
- export interface AppHostOptions {
268
- readonly logger?: HostLogger;
269
- readonly monitoring: MonitoringOptions;
270
- readonly layers?: APILayer[] | APILayer[][];
271
- readonly disableLayersValidation?: boolean;
272
- readonly disableCheckCircularDependencies?: boolean;
273
- readonly enableStickyErrorBoundaries?: boolean;
274
- readonly enableReduxDevtoolsExtension?: boolean;
275
- readonly experimentalCyclicMode?: boolean;
276
- readonly shouldScopeReducers?: boolean;
277
- }
278
- export interface MemoizeMissHit {
279
- miss: number;
280
- calls: number;
281
- hit: number;
282
- printHitMiss(): void;
283
- }
284
- export type enrichedMemoizationFunction = MemoizeMissHit & AnyFunction & _.MemoizedFunction;
285
- export interface StatisticsMemoization {
286
- func: enrichedMemoizationFunction;
287
- name: string;
288
- }
289
- export interface ContributeAPIOptions<TAPI> {
290
- includesNamespaces?: boolean;
291
- disableMonitoring?: boolean | (keyof TAPI)[];
292
- }
293
- export type StateObserverUnsubscribe = () => void;
294
- export type StateObserver<TSelectorAPI> = (next: TSelectorAPI) => void;
295
- export interface ObservableState<TSelectorAPI> {
296
- subscribe(fromShell: Shell, callback: StateObserver<TSelectorAPI>): StateObserverUnsubscribe;
297
- current(allowUnsafeReading?: boolean): TSelectorAPI;
298
- }
299
- export type AnyFunction = (...args: any[]) => any;
300
- export type FunctionWithSameArgs<F extends AnyFunction> = (...args: Parameters<F>) => any;
301
- export interface Lazy<T> {
302
- get(): T;
303
- }
304
- /**
305
- * An scoped communication terminal provided for an {EntryPoint}
306
- * in order to contribute its application content to the {AppHost}
307
- *
308
- * @export
309
- * @interface Shell
310
- * @extends {(Pick<AppHost, Exclude<keyof AppHost, 'getStore' | 'log' | 'options'>>)}
311
- */
312
- export interface Shell extends Pick<AppHost, Exclude<keyof AppHost, 'getStore' | 'log' | 'options'>> {
313
- /**
314
- * Are APIs ready to be requested
315
- *
316
- * @return {*} {boolean}
317
- */
318
- canUseAPIs(): boolean;
319
- /**
320
- * Is store ready to be requested
321
- *
322
- * @return {*} {boolean}
323
- */
324
- canUseStore(): boolean;
325
- /**
326
- * Did the execution of {EntryPoint}s' lifecycle phases (attach, detach) are done
327
- *
328
- * @return {*} {boolean}
329
- */
330
- wasInitializationCompleted(): boolean;
331
- runLateInitializer<T>(initializer: () => T): T;
332
- /**
333
- * Create an {ExtensionSlot}
334
- *
335
- * @template TItem
336
- * @param {SlotKey<TItem>} key Key that will represent the slot (an will be used for retrieval)
337
- * @return {ExtensionSlot<TItem>} Actual slot
338
- */
339
- declareSlot<TItem>(key: SlotKey<TItem>): ExtensionSlot<TItem>;
340
- declareCustomSlot<TItem>(key: SlotKey<TItem>, handler: CustomExtensionSlotHandler<TItem>): CustomExtensionSlot<TItem>;
341
- /**
342
- * Contribute an implementation of an API (a.k.a contract)
343
- *
344
- * @template TAPI
345
- * @param {SlotKey<TAPI>} key API Key that represents an interface TAPI
346
- * @param {() => TAPI} factory Create an implementation of TAPI
347
- * @param {ContributeAPIOptions<TAPI>} [options] Contribution options {ContributeAPIOptions}
348
- * @return {TAPI} Result of the factory execution
349
- */
350
- contributeAPI<TAPI>(key: SlotKey<TAPI>, factory: () => TAPI, options?: ContributeAPIOptions<TAPI>): TAPI;
351
- /**
352
- * Contribute a Redux reducer that will be added to the host store.
353
- * Use it for slowly changing state (e.g. not changing because of mouse movement)
354
- *
355
- * @template TState
356
- * @param {ReducersMapObjectContributor<TState>} contributor
357
- */
358
- contributeState<TState, TAction extends Redux.AnyAction = Redux.AnyAction>(contributor: ReducersMapObjectContributor<TState, TAction>): void;
359
- /**
360
- * Contribute a Redux reducer that will be added to the host store
361
- * Use it for rapidly changing state (e.g. changing on every mouse movement event)
362
- * Changes to this state won't trigger the usual subscribers.
363
- * In order to subscribe to changes in this state, use the observer object returned by this function.
364
- *
365
- * @template TState
366
- * @param {ReducersMapObjectContributor<TState>} contributor
367
- * @return {TAPI} Observer object for subscribing to state changes. The observer can also be passed to {connectWithShell}.
368
- */
369
- contributeObservableState<TState, TSelector, TAction extends Redux.AnyAction = Redux.AnyAction>(contributor: ReducersMapObjectContributor<TState, TAction>, selectorFactory: (state: TState) => TSelector): ObservableState<TSelector>;
370
- /**
371
- * Contribute the main view (root) of the application
372
- * Intended to be used by a single {Shell} in an application
373
- *
374
- * @param {Shell} fromShell Who owns the main view
375
- * @param {ReactComponentContributor} contributor Create the main view component
376
- */
377
- contributeMainView(fromShell: Shell, contributor: ReactComponentContributor): void;
378
- contributeBoundaryAspect(component: ShellBoundaryAspect): void;
379
- /**
380
- * Create a function with internal cache until any state change in the {AppHost} store
381
- *
382
- * @template T
383
- * @param {T} func Function to build cache for
384
- * @param {FunctionWithSameArgs<T>} resolver Key creator to index results by
385
- * @param {() => boolean} [shouldClear] Custom clear condition (if not provided, behaves like () => true)
386
- * @return {*} {(((...args: Parameters<T>) => ReturnType<T>) & Partial<_.MemoizedFunction> & Partial<MemoizeMissHit>)}
387
- */
388
- memoizeForState<T extends AnyFunction>(func: T, resolver: FunctionWithSameArgs<T>, shouldClear?: () => boolean): ((...args: Parameters<T>) => ReturnType<T>) & Partial<_.MemoizedFunction> & Partial<MemoizeMissHit>;
389
- /**
390
- * Manually trigger clear condition for function memoized with {Shell.memoizeForState}
391
- */
392
- flushMemoizedForState(): void;
393
- /**
394
- * Create a function with internal cache
395
- *
396
- * @template T
397
- * @param {T} func Function to build cache for
398
- * @param {FunctionWithSameArgs<T>} resolver Key creator to index results by
399
- * @return {*} {(((...args: Parameters<T>) => ReturnType<T>) & Partial<_.MemoizedFunction> & Partial<MemoizeMissHit>)}
400
- */
401
- memoize<T extends AnyFunction>(func: T, resolver: FunctionWithSameArgs<T>): ((...args: Parameters<T>) => ReturnType<T>) & Partial<_.MemoizedFunction> & Partial<MemoizeMissHit>;
402
- /**
403
- * Clear cache of a memoized function
404
- *
405
- * @param {(Partial<_.MemoizedFunction> & Partial<MemoizeMissHit>)} memoizedFunction
406
- */
407
- clearCache(memoizedFunction: Partial<_.MemoizedFunction> & Partial<MemoizeMissHit>): void;
408
- /**
409
- * Creates a lazy-evaluated value. The function `func` is only executed once when `get` is called for the first time,
410
- * and the result is cached for subsequent calls.
411
- *
412
- * @template T
413
- * @param {F} func - The function that will be lazily evaluated. It should not take any arguments.
414
- * @returns {Lazy<T>} An object with a `get` method that returns the lazily evaluated value of type `T`.
415
- */
416
- lazyEvaluator<F extends AnyFunction, T extends ReturnType<F>>(func: F): Lazy<T>;
417
- }
418
- export interface PrivateShell extends Shell {
419
- readonly entryPoint: EntryPoint;
420
- setDependencyAPIs(APIs: AnySlotKey[]): void;
421
- setLifecycleState(enableStore: boolean, enableAPIs: boolean, initCompleted: boolean): void;
422
- getBoundaryAspects(): ShellBoundaryAspect[];
423
- getHostOptions(): AppHostOptions;
424
- wrapWithShellRenderer(component: JSX.Element): JSX.Element;
425
- }
426
- export interface EntryPointsInfo {
427
- readonly name: string;
428
- readonly lazy: boolean;
429
- readonly attached: boolean;
430
- }
431
- export interface EntryPointInterceptor {
432
- interceptName?(innerName: string): string;
433
- interceptTags?(innerTags?: EntryPointTags): EntryPointTags;
434
- interceptGetDependencyAPIs?(innerGetDependencyAPIs?: EntryPoint['getDependencyAPIs']): EntryPoint['getDependencyAPIs'];
435
- interceptDeclareAPIs?(innerDeclareAPIs?: EntryPoint['declareAPIs']): EntryPoint['declareAPIs'];
436
- interceptAttach?(innerAttach?: EntryPoint['attach']): EntryPoint['attach'];
437
- interceptDetach?(innerDetach?: EntryPoint['detach']): EntryPoint['detach'];
438
- interceptExtend?(innerExtend?: EntryPoint['extend']): EntryPoint['extend'];
439
- }
440
- export type LogSeverity = 'debug' | 'info' | 'event' | 'warning' | 'error' | 'critical';
441
- export type LogSpanFlag = 'begin' | 'end';
442
- export interface HostLogger {
443
- log(severity: LogSeverity, id: string, error?: Error, keyValuePairs?: Object): void;
444
- spanChild(messageId: string, keyValuePairs?: Object): ShellLoggerSpan;
445
- spanRoot(messageId: string, keyValuePairs?: Object): ShellLoggerSpan;
446
- }
447
- export interface ShellLogger extends HostLogger {
448
- debug(messageId: string, keyValuePairs?: Object): void;
449
- info(messageId: string, keyValuePairs?: Object): void;
450
- warning(messageId: string, keyValuePairs?: Object): void;
451
- error(messageId: string, error?: Error, keyValuePairs?: Object): void;
452
- critical(messageId: string, error?: Error, keyValuePairs?: Object): void;
453
- spanChild(messageId: string, keyValuePairs?: Object): ShellLoggerSpan;
454
- spanRoot(messageId: string, keyValuePairs?: Object): ShellLoggerSpan;
455
- monitor<T>(messageId: string, keyValuePairs: Object, monitoredCode: () => T): T;
456
- }
457
- export interface ShellLoggerSpan {
458
- end(success: boolean, error?: Error, keyValuePairs?: Object): void;
459
- }
460
31
  //# sourceMappingURL=API.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"API.d.ts","sourceRoot":"","sources":["../../src/API.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,WAAW,UAAU;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,OAAO,CAAC,CAAC,CAAE,SAAQ,UAAU;IAC1C;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;IAClB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAClC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,MAAM,yBAAyB,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;AACxF,MAAM,MAAM,4BAA4B,CAAC,MAAM,GAAG,EAAE,EAAE,OAAO,SAAS,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,MAAM,KAAK,CAAC,iBAAiB,CACpI,MAAM,EACN,OAAO,CACV,CAAA;AACD,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAA;AACjD,MAAM,WAAW,cAAc;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AACD,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAA;AAC7D,MAAM,MAAM,qBAAqB,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,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