vue-context-storage 0.1.10 → 0.1.11

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
@@ -1,5 +1,5 @@
1
1
  import * as vue0 from "vue";
2
- import { InjectionKey, MaybeRefOrGetter, PropType, UnwrapNestedRefs, WatchHandle } from "vue";
2
+ import { InjectionKey, MaybeRefOrGetter, Plugin, PropType, UnwrapNestedRefs, WatchHandle } from "vue";
3
3
  import { LocationQuery, LocationQueryValue } from "vue-router";
4
4
 
5
5
  //#region src/components/ContextStorageActivator.vue.d.ts
@@ -75,6 +75,9 @@ type __VLS_WithSlots<T, S> = T & {
75
75
  };
76
76
  };
77
77
  //#endregion
78
+ //#region src/plugin.d.ts
79
+ declare const VueContextStoragePlugin: Plugin;
80
+ //#endregion
78
81
  //#region src/symbols.d.ts
79
82
  declare const collection: unique symbol;
80
83
  declare const collectionItem: unique symbol;
@@ -408,4 +411,4 @@ declare const contextStorageQueryHandlerInjectKey: InjectionKey<InstanceType<typ
408
411
  //#region src/constants.d.ts
409
412
  declare const defaultHandlers: ContextStorageHandlerConstructor[];
410
413
  //#endregion
411
- export { _default as ContextStorage, _default$1 as ContextStorageActivator, _default$2 as ContextStorageCollection, type ContextStorageHandler, type ContextStorageHandlerConstructor, _default$3 as ContextStorageProvider, ContextStorageQueryHandler, type IContextStorageQueryHandler, type QueryValue, type RegisterBaseOptions, type SerializeOptions, asArray, asBoolean, asNumber, asNumberArray, asString, collection, collectionItem, contextStorageCollectionInjectKey, contextStorageCollectionItemInjectKey, contextStorageHandlersInjectKey, contextStorageQueryHandler, contextStorageQueryHandlerInjectKey, defaultHandlers, deserializeParams, handlers, serializeParams, transform, useContextStorageQueryHandler };
414
+ export { _default as ContextStorage, _default$1 as ContextStorageActivator, _default$2 as ContextStorageCollection, type ContextStorageHandler, type ContextStorageHandlerConstructor, _default$3 as ContextStorageProvider, ContextStorageQueryHandler, type IContextStorageQueryHandler, type QueryValue, type RegisterBaseOptions, type SerializeOptions, VueContextStoragePlugin, asArray, asBoolean, asNumber, asNumberArray, asString, collection, collectionItem, contextStorageCollectionInjectKey, contextStorageCollectionItemInjectKey, contextStorageHandlersInjectKey, contextStorageQueryHandler, contextStorageQueryHandlerInjectKey, defaultHandlers, deserializeParams, handlers, serializeParams, transform, useContextStorageQueryHandler };
package/dist/index.js CHANGED
@@ -473,6 +473,15 @@ var ContextStorage_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
473
473
  //#region src/components/ContextStorage.vue
474
474
  var ContextStorage_default = ContextStorage_vue_vue_type_script_setup_true_lang_default;
475
475
 
476
+ //#endregion
477
+ //#region src/plugin.ts
478
+ const VueContextStoragePlugin = { install(app) {
479
+ app.component("ContextStorageActivator", ContextStorageActivator_default);
480
+ app.component("ContextStorageCollection", ContextStorageCollection_default);
481
+ app.component("ContextStorageProvider", ContextStorageProvider_default);
482
+ app.component("ContextStorage", ContextStorage_default);
483
+ } };
484
+
476
485
  //#endregion
477
486
  //#region src/handlers/query/transform-helpers.ts
478
487
  function asNumber(value, options) {
@@ -536,4 +545,4 @@ const transform = {
536
545
  };
537
546
 
538
547
  //#endregion
539
- export { ContextStorage_default as ContextStorage, ContextStorageActivator_default as ContextStorageActivator, ContextStorageCollection_default as ContextStorageCollection, ContextStorageProvider_default as ContextStorageProvider, ContextStorageQueryHandler, asArray, asBoolean, asNumber, asNumberArray, asString, collection, collectionItem, contextStorageCollectionInjectKey, contextStorageCollectionItemInjectKey, contextStorageHandlersInjectKey, contextStorageQueryHandler, contextStorageQueryHandlerInjectKey, defaultHandlers, deserializeParams, handlers, serializeParams, transform, useContextStorageQueryHandler };
548
+ export { ContextStorage_default as ContextStorage, ContextStorageActivator_default as ContextStorageActivator, ContextStorageCollection_default as ContextStorageCollection, ContextStorageProvider_default as ContextStorageProvider, ContextStorageQueryHandler, VueContextStoragePlugin, asArray, asBoolean, asNumber, asNumberArray, asString, collection, collectionItem, contextStorageCollectionInjectKey, contextStorageCollectionItemInjectKey, contextStorageHandlersInjectKey, contextStorageQueryHandler, contextStorageQueryHandlerInjectKey, defaultHandlers, deserializeParams, handlers, serializeParams, transform, useContextStorageQueryHandler };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-context-storage",
3
3
  "type": "module",
4
- "version": "0.1.10",
4
+ "version": "0.1.11",
5
5
  "description": "Vue 3 context storage system with URL query synchronization support",
6
6
  "author": "",
7
7
  "license": "MIT",