@deck-shelves/host 1.3.1 → 1.3.2
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/README.md +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
[](https://www.npmjs.com/package/@deck-shelves/host)
|
|
12
12
|
[](https://www.npmjs.com/package/@deck-shelves/host)
|
|
13
13
|
[](https://www.npmjs.com/package/@deck-shelves/host)
|
|
14
|
-
[](src/contract/index.test.ts)
|
|
15
15
|
[](src/contract/index.ts)
|
|
16
16
|
[](https://bundlephobia.com/package/@deck-shelves/host)
|
|
17
17
|
[](LICENSE)
|
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ var HOST_API_VERSION = "1.2.0";
|
|
|
5
5
|
var INJECTED_HOST_GLOBAL = "__SHELVES_HOST__";
|
|
6
6
|
var FORCE_OWNER_GLOBAL = "__SHELVES_FORCE_OWNER__";
|
|
7
7
|
var OWNER_GLOBAL = "__DECK_SHELVES_OWNER__";
|
|
8
|
+
var OWNER_METADATA_GLOBAL = "__DECK_SHELVES_OWNER_META__";
|
|
8
9
|
function ownershipScope() {
|
|
9
10
|
const g = globalThis;
|
|
10
11
|
return g.window ?? g;
|
|
@@ -38,6 +39,7 @@ exports.FORCE_OWNER_GLOBAL = FORCE_OWNER_GLOBAL;
|
|
|
38
39
|
exports.HOST_API_VERSION = HOST_API_VERSION;
|
|
39
40
|
exports.INJECTED_HOST_GLOBAL = INJECTED_HOST_GLOBAL;
|
|
40
41
|
exports.OWNER_GLOBAL = OWNER_GLOBAL;
|
|
42
|
+
exports.OWNER_METADATA_GLOBAL = OWNER_METADATA_GLOBAL;
|
|
41
43
|
exports.getInjectedHost = getInjectedHost;
|
|
42
44
|
exports.isForcedOwner = isForcedOwner;
|
|
43
45
|
exports.readForcedOwner = readForcedOwner;
|
package/dist/index.d.cts
CHANGED
|
@@ -250,6 +250,12 @@ type HostOwnerKind = string;
|
|
|
250
250
|
declare const INJECTED_HOST_GLOBAL: "__SHELVES_HOST__";
|
|
251
251
|
declare const FORCE_OWNER_GLOBAL: "__SHELVES_FORCE_OWNER__";
|
|
252
252
|
declare const OWNER_GLOBAL: "__DECK_SHELVES_OWNER__";
|
|
253
|
+
declare const OWNER_METADATA_GLOBAL: "__DECK_SHELVES_OWNER_META__";
|
|
254
|
+
/** Version identity published by the bundle that currently owns the renderer. */
|
|
255
|
+
interface HostOwnerMetadata {
|
|
256
|
+
host: HostOwnerKind;
|
|
257
|
+
dsVersion: string;
|
|
258
|
+
}
|
|
253
259
|
/** The injected host runtime, or null when no neutral host is present. */
|
|
254
260
|
declare function getInjectedHost(): ShelvesHostGlobal | null;
|
|
255
261
|
/** The forced-owner label a host stamped, or null when none. */
|
|
@@ -313,7 +319,9 @@ declare global {
|
|
|
313
319
|
* settings writes) so there is exactly one injector and one writer.
|
|
314
320
|
*/
|
|
315
321
|
__DECK_SHELVES_OWNER__?: HostOwnerKind;
|
|
322
|
+
/** Version identity of the bundle that currently owns the renderer. */
|
|
323
|
+
__DECK_SHELVES_OWNER_META__?: HostOwnerMetadata;
|
|
316
324
|
}
|
|
317
325
|
}
|
|
318
326
|
|
|
319
|
-
export { type Disposable, FORCE_OWNER_GLOBAL, HOST_API_VERSION, type HostApi, type HostLifecycle, type HostMainMenu, type HostNotifications, type HostOwnerKind, type HostQam, type HostRoutes, type HostRpc, type HostUi, type HostUpdates, INJECTED_HOST_GLOBAL, type MainMenuEntry, OWNER_GLOBAL, type PlatformApi, type PlatformAppMeta, type PlatformCollection, type PlatformTab, type PluginDescriptor, type QamPanel, type ShelfSource, type ShelvesHostGlobal, type ToastOptions, getInjectedHost, isForcedOwner, readForcedOwner, readOwner };
|
|
327
|
+
export { type Disposable, FORCE_OWNER_GLOBAL, HOST_API_VERSION, type HostApi, type HostLifecycle, type HostMainMenu, type HostNotifications, type HostOwnerKind, type HostOwnerMetadata, type HostQam, type HostRoutes, type HostRpc, type HostUi, type HostUpdates, INJECTED_HOST_GLOBAL, type MainMenuEntry, OWNER_GLOBAL, OWNER_METADATA_GLOBAL, type PlatformApi, type PlatformAppMeta, type PlatformCollection, type PlatformTab, type PluginDescriptor, type QamPanel, type ShelfSource, type ShelvesHostGlobal, type ToastOptions, getInjectedHost, isForcedOwner, readForcedOwner, readOwner };
|
package/dist/index.d.ts
CHANGED
|
@@ -250,6 +250,12 @@ type HostOwnerKind = string;
|
|
|
250
250
|
declare const INJECTED_HOST_GLOBAL: "__SHELVES_HOST__";
|
|
251
251
|
declare const FORCE_OWNER_GLOBAL: "__SHELVES_FORCE_OWNER__";
|
|
252
252
|
declare const OWNER_GLOBAL: "__DECK_SHELVES_OWNER__";
|
|
253
|
+
declare const OWNER_METADATA_GLOBAL: "__DECK_SHELVES_OWNER_META__";
|
|
254
|
+
/** Version identity published by the bundle that currently owns the renderer. */
|
|
255
|
+
interface HostOwnerMetadata {
|
|
256
|
+
host: HostOwnerKind;
|
|
257
|
+
dsVersion: string;
|
|
258
|
+
}
|
|
253
259
|
/** The injected host runtime, or null when no neutral host is present. */
|
|
254
260
|
declare function getInjectedHost(): ShelvesHostGlobal | null;
|
|
255
261
|
/** The forced-owner label a host stamped, or null when none. */
|
|
@@ -313,7 +319,9 @@ declare global {
|
|
|
313
319
|
* settings writes) so there is exactly one injector and one writer.
|
|
314
320
|
*/
|
|
315
321
|
__DECK_SHELVES_OWNER__?: HostOwnerKind;
|
|
322
|
+
/** Version identity of the bundle that currently owns the renderer. */
|
|
323
|
+
__DECK_SHELVES_OWNER_META__?: HostOwnerMetadata;
|
|
316
324
|
}
|
|
317
325
|
}
|
|
318
326
|
|
|
319
|
-
export { type Disposable, FORCE_OWNER_GLOBAL, HOST_API_VERSION, type HostApi, type HostLifecycle, type HostMainMenu, type HostNotifications, type HostOwnerKind, type HostQam, type HostRoutes, type HostRpc, type HostUi, type HostUpdates, INJECTED_HOST_GLOBAL, type MainMenuEntry, OWNER_GLOBAL, type PlatformApi, type PlatformAppMeta, type PlatformCollection, type PlatformTab, type PluginDescriptor, type QamPanel, type ShelfSource, type ShelvesHostGlobal, type ToastOptions, getInjectedHost, isForcedOwner, readForcedOwner, readOwner };
|
|
327
|
+
export { type Disposable, FORCE_OWNER_GLOBAL, HOST_API_VERSION, type HostApi, type HostLifecycle, type HostMainMenu, type HostNotifications, type HostOwnerKind, type HostOwnerMetadata, type HostQam, type HostRoutes, type HostRpc, type HostUi, type HostUpdates, INJECTED_HOST_GLOBAL, type MainMenuEntry, OWNER_GLOBAL, OWNER_METADATA_GLOBAL, type PlatformApi, type PlatformAppMeta, type PlatformCollection, type PlatformTab, type PluginDescriptor, type QamPanel, type ShelfSource, type ShelvesHostGlobal, type ToastOptions, getInjectedHost, isForcedOwner, readForcedOwner, readOwner };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ var HOST_API_VERSION = "1.2.0";
|
|
|
3
3
|
var INJECTED_HOST_GLOBAL = "__SHELVES_HOST__";
|
|
4
4
|
var FORCE_OWNER_GLOBAL = "__SHELVES_FORCE_OWNER__";
|
|
5
5
|
var OWNER_GLOBAL = "__DECK_SHELVES_OWNER__";
|
|
6
|
+
var OWNER_METADATA_GLOBAL = "__DECK_SHELVES_OWNER_META__";
|
|
6
7
|
function ownershipScope() {
|
|
7
8
|
const g = globalThis;
|
|
8
9
|
return g.window ?? g;
|
|
@@ -32,4 +33,4 @@ function isForcedOwner() {
|
|
|
32
33
|
return readForcedOwner() != null;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
export { FORCE_OWNER_GLOBAL, HOST_API_VERSION, INJECTED_HOST_GLOBAL, OWNER_GLOBAL, getInjectedHost, isForcedOwner, readForcedOwner, readOwner };
|
|
36
|
+
export { FORCE_OWNER_GLOBAL, HOST_API_VERSION, INJECTED_HOST_GLOBAL, OWNER_GLOBAL, OWNER_METADATA_GLOBAL, getInjectedHost, isForcedOwner, readForcedOwner, readOwner };
|
package/package.json
CHANGED