repluggable-core 0.0.0-pr272.402 → 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.
- package/dist/es/API.d.ts +31 -0
- package/dist/es/API.d.ts.map +1 -0
- package/dist/es/API.js +2 -0
- package/dist/es/API.js.map +1 -0
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/src/API.d.ts +31 -0
- package/dist/src/API.d.ts.map +1 -0
- package/dist/src/API.js +3 -0
- package/dist/src/API.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/src/API.ts +31 -0
- package/src/index.ts +4 -1
package/dist/es/API.d.ts
ADDED
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"API.js","sourceRoot":"","sources":["../../src/API.ts"],"names":[],"mappings":""}
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AnySlotKey, SlotKey } from './API';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/es/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
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
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
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"}
|
package/dist/src/API.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"API.js","sourceRoot":"","sources":["../../src/API.ts"],"names":[],"mappings":""}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AnySlotKey, SlotKey } from './API';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
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
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
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