@genesislcap/foundation-store 14.65.2 → 14.66.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/dist/dts/store/errorMap.d.ts +1 -0
- package/dist/dts/store/errorMap.d.ts.map +1 -1
- package/dist/dts/store/foundationStore.d.ts +1 -1
- package/dist/dts/store/foundationStore.d.ts.map +1 -1
- package/dist/esm/store/errorMap.js +6 -1
- package/dist/esm/store/foundationStore.js +1 -2
- package/dist/foundation-store.api.json +3 -3
- package/dist/foundation-store.d.ts +4 -2
- package/docs/api/foundation-store.abstractstore.md +1 -1
- package/docs/api/foundation-store.createerrormap.md +5 -0
- package/docs/api/foundation-store.store.md +1 -1
- package/docs/api-report.md +4 -3
- package/package.json +5 -5
|
@@ -31,6 +31,7 @@ export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<M
|
|
|
31
31
|
* @param logger - A logger error method reference.
|
|
32
32
|
* @returns A ErrorMap instance.
|
|
33
33
|
*
|
|
34
|
+
* @deprecated - Use `createErrorMap` from `@genesislcap/foundation-utils` instead.
|
|
34
35
|
* @public
|
|
35
36
|
*/
|
|
36
37
|
export declare const createErrorMap: <TErrorDetailMap extends ErrorDetailMap>(logger: ErrorMapLogger) => ErrorMap<TErrorDetailMap>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorMap.d.ts","sourceRoot":"","sources":["../../../src/store/errorMap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errorMap.d.ts","sourceRoot":"","sources":["../../../src/store/errorMap.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,eAAe,SAAS,cAAc,CAC9D,SAAQ,IAAI,CAAC,GAAG,CAAC,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5F;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,eAAe,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrD;AAqFD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,mDACjB,cAAc,8BAOvB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EventDetailMap } from '@genesislcap/foundation-events';
|
|
2
|
+
import { ErrorMap } from '@genesislcap/foundation-utils';
|
|
2
3
|
import { BindingObserver, Constructable, ExecutionContext } from '@microsoft/fast-element';
|
|
3
4
|
import { Key } from '@microsoft/fast-foundation';
|
|
4
5
|
import { Observable as RXObservable } from 'rxjs';
|
|
5
|
-
import { ErrorMap } from './errorMap';
|
|
6
6
|
/**
|
|
7
7
|
* @typeParam TReturn - The return type.
|
|
8
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundationStore.d.ts","sourceRoot":"","sources":["../../../src/store/foundationStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"foundationStore.d.ts","sourceRoot":"","sources":["../../../src/store/foundationStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAkB,QAAQ,EAAS,MAAM,+BAA+B,CAAC;AAChF,OAAO,EACL,eAAe,EACf,aAAa,EAEb,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAM,GAAG,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EAA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WG;IACH,SAAS,CAAC,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,eAAe,GAAG,uBAAuB,CAAC,GAAG,MAAM,EACjF,GAAG,IAAI,EAAE,CAAC,eAAe,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAChE,CAAC,GAAG,EAAE,CAAC,CAAC,GACR,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,eAAe,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,GACnE,IAAI;CAUR;AAED;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,iBAAiB,EAAE,WAAW,CAAC;IAC/B,oBAAoB,EAAE,IAAI,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,8BAAsB,iBAAiB,CACnC,MAAM,SAAS,SAAS,EACxB,eAAe,SAAS,uBAAuB,GAAG,uBAAuB,EACzE,uBAAuB,SAAS,cAAc,GAAG,eAAe,CAElE,SAAQ,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,uBAAuB,CACtE,YAAW,SAAS;IAEpB,oCAAoC;IACxB,KAAK,EAAE,OAAO,CAAS;IAEnC,sCAAsC;IAC1B,OAAO,EAAE,WAAW,CAAC;IAEjC;;;;OAIG;IACH,SAAS,CAAC,IAAI,OAAQ;IAEtB;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAWtB,WAAW,gBAGT;IACF,cAAc,gBAGZ;IACF,OAAO,gBAAuF;CAC/F"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { observable } from '@microsoft/fast-element';
|
|
3
|
+
import { logger as pkgLogger } from '../utils';
|
|
3
4
|
class DefaultErrorMap {
|
|
4
5
|
/**
|
|
5
6
|
* @param logger - A logger error method reference.
|
|
@@ -84,6 +85,10 @@ __decorate([
|
|
|
84
85
|
* @param logger - A logger error method reference.
|
|
85
86
|
* @returns A ErrorMap instance.
|
|
86
87
|
*
|
|
88
|
+
* @deprecated - Use `createErrorMap` from `@genesislcap/foundation-utils` instead.
|
|
87
89
|
* @public
|
|
88
90
|
*/
|
|
89
|
-
export const createErrorMap = (logger) =>
|
|
91
|
+
export const createErrorMap = (logger) => {
|
|
92
|
+
pkgLogger.deprecated('createErrorMap', 'Use `createErrorMap` from `@genesislcap/foundation-utils` instead.');
|
|
93
|
+
return new DefaultErrorMap(logger);
|
|
94
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { isDev } from '@genesislcap/foundation-utils';
|
|
2
|
+
import { createErrorMap, isDev } from '@genesislcap/foundation-utils';
|
|
3
3
|
import { defaultExecutionContext, observable, Observable as FASTObservable, } from '@microsoft/fast-element';
|
|
4
4
|
import { DI } from '@microsoft/fast-foundation';
|
|
5
5
|
import safeStringify from 'fast-safe-stringify';
|
|
6
6
|
import { of } from 'rxjs';
|
|
7
7
|
import { distinctUntilChanged, map } from 'rxjs/operators';
|
|
8
8
|
import { logger } from '../utils';
|
|
9
|
-
import { createErrorMap } from './errorMap';
|
|
10
9
|
const getBindArgs = (...args) => {
|
|
11
10
|
const [token] = args;
|
|
12
11
|
let binding = (x) => x;
|
|
@@ -1080,7 +1080,7 @@
|
|
|
1080
1080
|
{
|
|
1081
1081
|
"kind": "Reference",
|
|
1082
1082
|
"text": "ErrorMap",
|
|
1083
|
-
"canonicalReference": "@genesislcap/foundation-
|
|
1083
|
+
"canonicalReference": "@genesislcap/foundation-utils!ErrorMap:interface"
|
|
1084
1084
|
},
|
|
1085
1085
|
{
|
|
1086
1086
|
"kind": "Content",
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
{
|
|
1488
1488
|
"kind": "Variable",
|
|
1489
1489
|
"canonicalReference": "@genesislcap/foundation-store!createErrorMap:var",
|
|
1490
|
-
"docComment": "/**\n * A factory to create the error map.\n *\n * @param logger - A logger error method reference.\n *\n * @returns A ErrorMap instance.\n *\n * @public\n */\n",
|
|
1490
|
+
"docComment": "/**\n * A factory to create the error map.\n *\n * @deprecated\n *\n * - Use `createErrorMap` from `@genesislcap/foundation-utils` instead.\n *\n * @param logger - A logger error method reference.\n *\n * @returns A ErrorMap instance.\n *\n * @public\n */\n",
|
|
1491
1491
|
"excerptTokens": [
|
|
1492
1492
|
{
|
|
1493
1493
|
"kind": "Content",
|
|
@@ -2216,7 +2216,7 @@
|
|
|
2216
2216
|
{
|
|
2217
2217
|
"kind": "Reference",
|
|
2218
2218
|
"text": "ErrorMap",
|
|
2219
|
-
"canonicalReference": "@genesislcap/foundation-
|
|
2219
|
+
"canonicalReference": "@genesislcap/foundation-utils!ErrorMap:interface"
|
|
2220
2220
|
},
|
|
2221
2221
|
{
|
|
2222
2222
|
"kind": "Content",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BindingObserver } from '@microsoft/fast-element';
|
|
2
2
|
import { Constructable } from '@microsoft/fast-element';
|
|
3
|
+
import { ErrorMap as ErrorMap_2 } from '@genesislcap/foundation-utils';
|
|
3
4
|
import type { EventDetailMap } from '@genesislcap/foundation-events';
|
|
4
5
|
import { ExecutionContext } from '@microsoft/fast-element';
|
|
5
6
|
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
@@ -86,7 +87,7 @@ export declare abstract class AbstractStore<TStore extends Store, TEventDetailMa
|
|
|
86
87
|
/** {@inheritDoc StoreConnectable.disconnect} */
|
|
87
88
|
disconnect(root: TStoreRoot): void;
|
|
88
89
|
/** {@inheritDoc Store.errors} */
|
|
89
|
-
errors:
|
|
90
|
+
errors: ErrorMap_2<TEventDetailMap & TInternalEventDetailMap>;
|
|
90
91
|
/** {@inheritDoc Store.name} */
|
|
91
92
|
get name(): string;
|
|
92
93
|
/**
|
|
@@ -235,6 +236,7 @@ export declare abstract class AbstractStoreRoot<TStore extends StoreRoot, TEvent
|
|
|
235
236
|
* @param logger - A logger error method reference.
|
|
236
237
|
* @returns A ErrorMap instance.
|
|
237
238
|
*
|
|
239
|
+
* @deprecated - Use `createErrorMap` from `@genesislcap/foundation-utils` instead.
|
|
238
240
|
* @public
|
|
239
241
|
*/
|
|
240
242
|
export declare const createErrorMap: <TErrorDetailMap extends ErrorDetailMap>(logger: ErrorMapLogger) => ErrorMap<TErrorDetailMap>;
|
|
@@ -319,7 +321,7 @@ export declare interface Store {
|
|
|
319
321
|
*
|
|
320
322
|
* @public
|
|
321
323
|
*/
|
|
322
|
-
readonly errors:
|
|
324
|
+
readonly errors: ErrorMap_2<EventDetailMap>;
|
|
323
325
|
/**
|
|
324
326
|
* An api to allow the observation of values and arbitrary bindings outside the template engine.
|
|
325
327
|
*
|
|
@@ -27,7 +27,7 @@ export declare abstract class AbstractStore<TStore extends Store, TEventDetailMa
|
|
|
27
27
|
| [createAsyncListener](./foundation-store.abstractstore.createasynclistener.md) | <code>protected</code> | <TDetail = void, TReturn = void>(key: keyof (TEventDetailMap & TInternalEventDetailMap), token: (detail: TDetail) => Promise<TReturn>) => EventListener | Creates an async event listener. |
|
|
28
28
|
| [createErrorListener](./foundation-store.abstractstore.createerrorlistener.md) | <code>protected</code> | <TDetail extends Error = Error>(key: keyof (TEventDetailMap & TInternalEventDetailMap), token?: (detail: TDetail) => void) => EventListener | Creates an error event listener. |
|
|
29
29
|
| [createListener](./foundation-store.abstractstore.createlistener.md) | <code>protected</code> | <TDetail = void>(key: keyof (TEventDetailMap & TInternalEventDetailMap), token: (detail: TDetail) => void) => EventListener | Creates an event listener. |
|
|
30
|
-
| [errors](./foundation-store.abstractstore.errors.md) | |
|
|
30
|
+
| [errors](./foundation-store.abstractstore.errors.md) | | ErrorMap<TEventDetailMap & TInternalEventDetailMap> | Contains any errors the store may have, see [ErrorMap](./foundation-store.errormap.md)<!-- -->. |
|
|
31
31
|
| [name](./foundation-store.abstractstore.name.md) | <code>readonly</code> | string | The name of the store fragment. |
|
|
32
32
|
| [root](./foundation-store.abstractstore.root.md) | <code>protected</code> | TStoreRoot | The store root fragment. |
|
|
33
33
|
|
|
@@ -20,7 +20,7 @@ The public interface available on the injected store fragment.
|
|
|
20
20
|
|
|
21
21
|
| Property | Modifiers | Type | Description |
|
|
22
22
|
| --- | --- | --- | --- |
|
|
23
|
-
| [errors](./foundation-store.store.errors.md) | <code>readonly</code> |
|
|
23
|
+
| [errors](./foundation-store.store.errors.md) | <code>readonly</code> | ErrorMap<EventDetailMap> | Contains any errors the store may have, see [ErrorMap](./foundation-store.errormap.md)<!-- -->. |
|
|
24
24
|
| [name?](./foundation-store.store.name.md) | <code>readonly</code> | string | _(Optional)_ The name of the store fragment. |
|
|
25
25
|
|
|
26
26
|
## Methods
|
package/docs/api-report.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { BindingObserver } from '@microsoft/fast-element';
|
|
8
8
|
import { Constructable } from '@microsoft/fast-element';
|
|
9
|
+
import { ErrorMap as ErrorMap_2 } from '@genesislcap/foundation-utils';
|
|
9
10
|
import type { EventDetailMap } from '@genesislcap/foundation-events';
|
|
10
11
|
import { ExecutionContext } from '@microsoft/fast-element';
|
|
11
12
|
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
@@ -46,7 +47,7 @@ export abstract class AbstractStore<TStore extends Store, TEventDetailMap extend
|
|
|
46
47
|
// @internal
|
|
47
48
|
protected disconnectStoreFragments(root: TStoreRoot): void;
|
|
48
49
|
protected emit<K extends keyof (TEventDetailMap & TInternalEventDetailMap) & string>(...args: (TEventDetailMap & TInternalEventDetailMap)[K] extends void ? [key: K] : [key: K, detail: (TEventDetailMap & TInternalEventDetailMap)[K]]): void;
|
|
49
|
-
errors:
|
|
50
|
+
errors: ErrorMap_2<TEventDetailMap & TInternalEventDetailMap>;
|
|
50
51
|
get name(): string;
|
|
51
52
|
// @internal
|
|
52
53
|
protected removeEventListeners(element: HTMLElement): void;
|
|
@@ -69,7 +70,7 @@ export abstract class AbstractStoreRoot<TStore extends StoreRoot, TEventDetailMa
|
|
|
69
70
|
protected root: this;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
// @public
|
|
73
|
+
// @public @deprecated
|
|
73
74
|
export const createErrorMap: <TErrorDetailMap extends ErrorDetailMap>(logger: ErrorMapLogger) => ErrorMap<TErrorDetailMap>;
|
|
74
75
|
|
|
75
76
|
// @public (undocumented)
|
|
@@ -103,7 +104,7 @@ export interface Store {
|
|
|
103
104
|
//
|
|
104
105
|
// (undocumented)
|
|
105
106
|
bindingAsRx<TReturn>(token?: ((store: this) => TReturn) | keyof this): Observable<TReturn | this>;
|
|
106
|
-
readonly errors:
|
|
107
|
+
readonly errors: ErrorMap_2<EventDetailMap>;
|
|
107
108
|
// @virtual
|
|
108
109
|
readonly name?: string;
|
|
109
110
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-store",
|
|
3
3
|
"description": "Genesis Foundation Store",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.66.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"serve": "genx serve"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@genesislcap/genx": "14.
|
|
25
|
+
"@genesislcap/genx": "14.66.0",
|
|
26
26
|
"rimraf": "^3.0.2"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@genesislcap/foundation-events": "14.
|
|
30
|
-
"@genesislcap/foundation-utils": "14.
|
|
29
|
+
"@genesislcap/foundation-events": "14.66.0",
|
|
30
|
+
"@genesislcap/foundation-utils": "14.66.0",
|
|
31
31
|
"@microsoft/fast-element": "^1.7.0",
|
|
32
32
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
33
33
|
"fast-safe-stringify": "^2.1.1",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "5db6eb3195619a1d3e2cc2fcdb201748c778c62f"
|
|
46
46
|
}
|