repluggable-core 0.0.0-pr272.401 → 0.0.0-pr273.404

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.
@@ -0,0 +1,31 @@
1
+ export interface AnySlotKey {
2
+ readonly name: string;
3
+ readonly public?: boolean;
4
+ }
5
+ /**
6
+ * A key that represents an {ExtensionSlot} of shape T that's held in the {AppHost}
7
+ * Created be calling {Shell.declareSlot}
8
+ * Retrieved by calling {Shell.getSlot} (scoped to specific {Shell})
9
+ *
10
+ * @export
11
+ * @interface SlotKey
12
+ * @extends {AnySlotKey}
13
+ * @template T
14
+ */
15
+ export interface SlotKey<T> extends AnySlotKey {
16
+ /**
17
+ * Holds no value, only triggers type-checking of T
18
+ */
19
+ readonly empty?: T;
20
+ /**
21
+ * Application layer/layers that will restrict usage of APIs contributed by this entry point.
22
+ * Layers hierarchy is defined in the host options
23
+ * @See {AppHostOptions.layers}
24
+ */
25
+ readonly layer?: string | string[];
26
+ /**
27
+ * Version of the API that will be part of the API key unique identification
28
+ */
29
+ readonly version?: number;
30
+ }
31
+ //# sourceMappingURL=API.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"API.d.ts","sourceRoot":"","sources":["../../src/API.ts"],"names":[],"mappings":"AAAA,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"}
package/dist/es/API.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=API.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"API.js","sourceRoot":"","sources":["../../src/API.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const x: number;
1
+ export { AnySlotKey, SlotKey } from './API';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,EAAE,MAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,OAAO,EACV,MAAM,OAAO,CAAA"}
package/dist/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export const x = 1;
1
+ export {};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,CAAC,GAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ export interface AnySlotKey {
2
+ readonly name: string;
3
+ readonly public?: boolean;
4
+ }
5
+ /**
6
+ * A key that represents an {ExtensionSlot} of shape T that's held in the {AppHost}
7
+ * Created be calling {Shell.declareSlot}
8
+ * Retrieved by calling {Shell.getSlot} (scoped to specific {Shell})
9
+ *
10
+ * @export
11
+ * @interface SlotKey
12
+ * @extends {AnySlotKey}
13
+ * @template T
14
+ */
15
+ export interface SlotKey<T> extends AnySlotKey {
16
+ /**
17
+ * Holds no value, only triggers type-checking of T
18
+ */
19
+ readonly empty?: T;
20
+ /**
21
+ * Application layer/layers that will restrict usage of APIs contributed by this entry point.
22
+ * Layers hierarchy is defined in the host options
23
+ * @See {AppHostOptions.layers}
24
+ */
25
+ readonly layer?: string | string[];
26
+ /**
27
+ * Version of the API that will be part of the API key unique identification
28
+ */
29
+ readonly version?: number;
30
+ }
31
+ //# sourceMappingURL=API.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"API.d.ts","sourceRoot":"","sources":["../../src/API.ts"],"names":[],"mappings":"AAAA,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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=API.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"API.js","sourceRoot":"","sources":["../../src/API.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const x: number;
1
+ export { AnySlotKey, SlotKey } from './API';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,EAAE,MAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,OAAO,EACV,MAAM,OAAO,CAAA"}
package/dist/src/index.js CHANGED
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.x = void 0;
4
- exports.x = 1;
5
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repluggable-core",
3
- "version": "0.0.0-pr272.401",
3
+ "version": "0.0.0-pr273.404",
4
4
  "license": "MIT",
5
5
  "description": "Allows composition of a React-with-Redux application entirely from a list of pluggable packages",
6
6
  "main": "dist/src/index.js",
@@ -27,5 +27,5 @@
27
27
  "registry": "https://registry.npmjs.org/",
28
28
  "versionBumpStrategy": "patch"
29
29
  },
30
- "stableVersion": "1.0.0"
30
+ "stableVersion": "1.302.62"
31
31
  }
package/src/API.ts ADDED
@@ -0,0 +1,31 @@
1
+ export interface AnySlotKey {
2
+ readonly name: string
3
+ readonly public?: boolean // TODO: Move to new interface - APIKey
4
+ }
5
+
6
+ /**
7
+ * A key that represents an {ExtensionSlot} of shape T that's held in the {AppHost}
8
+ * Created be calling {Shell.declareSlot}
9
+ * Retrieved by calling {Shell.getSlot} (scoped to specific {Shell})
10
+ *
11
+ * @export
12
+ * @interface SlotKey
13
+ * @extends {AnySlotKey}
14
+ * @template T
15
+ */
16
+ export interface SlotKey<T> extends AnySlotKey {
17
+ /**
18
+ * Holds no value, only triggers type-checking of T
19
+ */
20
+ readonly empty?: T
21
+ /**
22
+ * Application layer/layers that will restrict usage of APIs contributed by this entry point.
23
+ * Layers hierarchy is defined in the host options
24
+ * @See {AppHostOptions.layers}
25
+ */
26
+ readonly layer?: string | string[] // TODO: Move to new interface - APIKey
27
+ /**
28
+ * Version of the API that will be part of the API key unique identification
29
+ */
30
+ readonly version?: number // TODO: Move to new interface - APIKey
31
+ }
package/src/index.ts CHANGED
@@ -1 +1,4 @@
1
- export const x: number = 1
1
+ export {
2
+ AnySlotKey,
3
+ SlotKey
4
+ } from './API'