@d-najd/universal-media-tracker-sdk 0.3.9 → 0.3.10

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/index.d.ts CHANGED
@@ -14,17 +14,11 @@ export { default as HandlerTypes } from './types/handler/base/HandlerTypes';
14
14
  export { default as Handler } from './types/handler/base/Handler';
15
15
  export { default as CreateHandler } from './types/handler/base/CreateHandler';
16
16
  export { default as BaseHandler } from './types/handler/base/BaseHandler';
17
- export * from './types/handler/ui/screen/ZustandScreenStore';
17
+ export * from './types/handler/ui/screen/ZustandStoreWrapper';
18
18
  export { default as ScreenHandlerResponse } from './types/handler/ui/screen/ScreenHandlerResponse';
19
19
  export { default as ScreenHandlerArgs } from './types/handler/ui/screen/ScreenHandlerArgs';
20
20
  export { default as CreateScreenHandler } from './types/handler/ui/screen/CreateScreenHandler';
21
21
  export { default as CreateCustomScreenHandler } from './types/handler/ui/screen/CreateCustomScreenHandler';
22
- export { default as PluginSourceHandlerResponse } from './types/handler/plugin/source/PluginSourceHandlerResponse';
23
- export { default as PluginSourceHandlerArgs } from './types/handler/plugin/source/PluginSourceHandlerArgs';
24
- export { default as CreatePluginSourceHandler } from './types/handler/plugin/source/CreatePluginSourceHandler';
25
- export { default as PluginFactoryHandlerResponse } from './types/handler/plugin/factory/PluginFactoryHandlerResponse';
26
- export { default as PluginFactoryHandlerArgs } from './types/handler/plugin/factory/PluginFactoryHandlerArgs';
27
- export { default as CreatePluginFactoryHandler } from './types/handler/plugin/factory/CreatePluginFactoryHandler';
28
22
  export { default as MetaPreview } from './types/handler/media/catalog/MetaPreview';
29
23
  export { default as CreateCatalogHandler } from './types/handler/media/catalog/CreateCatalogHandler';
30
24
  export { default as CatalogHandlerResponse } from './types/handler/media/catalog/CatalogHandlerResponse';
@@ -32,3 +26,9 @@ export { default as CatalogHandlerArgs } from './types/handler/media/catalog/Cat
32
26
  export { default as ResourceBrowseOptionDefaults } from './types/handler/media/browse-option/ResourceBrowseOptionDefaults';
33
27
  export { default as ResourceBrowseOptionArgs } from './types/handler/media/browse-option/ResourceBrowseOptionArgs';
34
28
  export { default as ResourceBrowseOption } from './types/handler/media/browse-option/ResourceBrowseOption';
29
+ export { default as PluginSourceHandlerResponse } from './types/handler/plugin/source/PluginSourceHandlerResponse';
30
+ export { default as PluginSourceHandlerArgs } from './types/handler/plugin/source/PluginSourceHandlerArgs';
31
+ export { default as CreatePluginSourceHandler } from './types/handler/plugin/source/CreatePluginSourceHandler';
32
+ export { default as PluginFactoryHandlerResponse } from './types/handler/plugin/factory/PluginFactoryHandlerResponse';
33
+ export { default as PluginFactoryHandlerArgs } from './types/handler/plugin/factory/PluginFactoryHandlerArgs';
34
+ export { default as CreatePluginFactoryHandler } from './types/handler/plugin/factory/CreatePluginFactoryHandler';
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Auto‑generated barrel file – do not edit manually
2
2
  export { default as Plugin } from './Plugin';
3
- export * from './types/handler/ui/screen/ZustandScreenStore';
3
+ export * from './types/handler/ui/screen/ZustandStoreWrapper';
@@ -1,7 +1,7 @@
1
1
  import CreateCustomScreenHandler from './CreateCustomScreenHandler';
2
- import { ZustandScreenStore } from "./ZustandScreenStore";
2
+ import { ZustandStoreWrapper } from "./ZustandStoreWrapper";
3
3
  /**
4
4
  * Uses zustand, react is also recommended
5
5
  */
6
- type CreateScreenHandler<S = any> = CreateCustomScreenHandler<ZustandScreenStore<S>> & {};
6
+ type CreateScreenHandler<S = any> = CreateCustomScreenHandler<ZustandStoreWrapper<S>> & {};
7
7
  export default CreateScreenHandler;
@@ -1,4 +1,4 @@
1
- type ScreenStore<T> = {
1
+ type StoreWrapper<T> = {
2
2
  getState(): T;
3
3
  setState(state: T): void;
4
4
  };
@@ -0,0 +1,3 @@
1
+ import { StoreApi, UseBoundStore } from "zustand";
2
+ export type ZustandStoreWrapper<S> = UseBoundStore<StoreApi<S>> & StoreWrapper<S>;
3
+ export declare function createZustandStoreWrapper<S>(initial: S): ZustandStoreWrapper<S>;
@@ -1,5 +1,5 @@
1
1
  import { create } from "zustand";
2
- export function createZustandScreenStore(initial) {
2
+ export function createZustandStoreWrapper(initial) {
3
3
  const store = create(() => initial);
4
4
  // Black magic
5
5
  const hook = ((selector) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-najd/universal-media-tracker-sdk",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- import { StoreApi, UseBoundStore } from "zustand";
2
- export type ZustandScreenStore<S> = UseBoundStore<StoreApi<S>> & ScreenStore<S>;
3
- export declare function createZustandScreenStore<S>(initial: S): ZustandScreenStore<S>;