repluggable-core 0.0.0-pr271.403
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 +2 -0
- package/dist/es/index.d.ts.map +1 -0
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +1 -0
- 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 +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +31 -0
- package/src/API.ts +31 -0
- package/src/index.ts +4 -0
- package/tsconfig.json +4 -0
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":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAQ,EACJ,UAAU,EACV,OAAO,EACV,MAAM,OAAO,CAAA"}
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAQ,EACJ,UAAU,EACV,OAAO,EACV,MAAM,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "repluggable-core",
|
|
3
|
+
"version": "0.0.0-pr271.403",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Allows composition of a React-with-Redux application entirely from a list of pluggable packages",
|
|
6
|
+
"main": "dist/src/index.js",
|
|
7
|
+
"module": "dist/es/index.js",
|
|
8
|
+
"unpkg": true,
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Wix.com",
|
|
11
|
+
"email": "responsive-feds@wix.com"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "rm -rf dist && yarn build-cjs && yarn build-es",
|
|
15
|
+
"build-cjs": "tsc --outDir dist/src --module commonjs",
|
|
16
|
+
"build-es": "tsc --outDir dist/es --module esNext",
|
|
17
|
+
"test": ":"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^5.4.2"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/wix/repluggable"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"registry": "https://registry.npmjs.org/",
|
|
28
|
+
"versionBumpStrategy": "patch"
|
|
29
|
+
},
|
|
30
|
+
"stableVersion": "1.302.62"
|
|
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
ADDED
package/tsconfig.json
ADDED