@hlw-uni-mp/use 1.0.5 → 1.1.1

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.mts CHANGED
@@ -62,6 +62,13 @@ declare const hlw: {
62
62
  };
63
63
  type HlwInstance = typeof hlw;
64
64
 
65
+ declare module "pinia" {
66
+ interface DefineStoreOptionsBase<S, Store> {
67
+ /** 本地持久化配置 */
68
+ unistorage?: boolean | object;
69
+ }
70
+ }
71
+
65
72
  /**
66
73
  * 外观模式型
67
74
  */
package/dist/index.d.ts CHANGED
@@ -62,6 +62,13 @@ declare const hlw: {
62
62
  };
63
63
  type HlwInstance = typeof hlw;
64
64
 
65
+ declare module "pinia" {
66
+ interface DefineStoreOptionsBase<S, Store> {
67
+ /** 本地持久化配置 */
68
+ unistorage?: boolean | object;
69
+ }
70
+ }
71
+
65
72
  /**
66
73
  * 外观模式型
67
74
  */
package/dist/index.js CHANGED
@@ -145,8 +145,12 @@ var hlw = {
145
145
  var import_vue = require("vue");
146
146
 
147
147
  // src/theme/store.ts
148
+ var import_pinia2 = require("pinia");
149
+
150
+ // src/theme/types.d.ts
148
151
  var import_pinia = require("pinia");
149
- var import_pinia_plugin_storage = require("@hlw-uni-mp/pinia-plugin-storage");
152
+
153
+ // src/theme/store.ts
150
154
  var fontSizePresets = [
151
155
  {
152
156
  id: "small",
@@ -191,7 +195,7 @@ var fontFamilyPresets = [
191
195
  class: "font-family-kaiti"
192
196
  }
193
197
  ];
194
- var useThemeStore = (0, import_pinia.defineStore)("theme", {
198
+ var useThemeStore = (0, import_pinia2.defineStore)("theme", {
195
199
  state: () => ({
196
200
  mode: "light",
197
201
  color: "#08c060",
package/dist/index.mjs CHANGED
@@ -107,7 +107,11 @@ import { computed, toRef } from "vue";
107
107
 
108
108
  // src/theme/store.ts
109
109
  import { defineStore } from "pinia";
110
- import "@hlw-uni-mp/pinia-plugin-storage";
110
+
111
+ // src/theme/types.d.ts
112
+ import "pinia";
113
+
114
+ // src/theme/store.ts
111
115
  var fontSizePresets = [
112
116
  {
113
117
  id: "small",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hlw-uni-mp/use",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "description": "Universal Uni-App Vue 3 stateful composables library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -32,9 +32,6 @@
32
32
  "optional": true
33
33
  }
34
34
  },
35
- "dependencies": {
36
- "@hlw-uni-mp/pinia-plugin-storage": "^1.0.1"
37
- },
38
35
  "devDependencies": {
39
36
  "@dcloudio/types": "^3.4.30",
40
37
  "@dcloudio/uni-app": "3.0.0-5000720260410001",