@hlw-uni-mp/use 1.0.0 → 1.0.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/dist/index.d.mts CHANGED
@@ -42,6 +42,14 @@ interface HlwMsg {
42
42
  * ```
43
43
  */
44
44
  declare function useMsg(): HlwMsg;
45
+ /**
46
+ * 全局提示单例门面
47
+ */
48
+ declare const hlw: {
49
+ /** 统一提示门面 */
50
+ readonly $msg: HlwMsg;
51
+ };
52
+ type HlwInstance = typeof hlw;
45
53
 
46
54
  /**
47
55
  * 外观模式型
@@ -230,4 +238,4 @@ interface UseRefsReturn<T = unknown> {
230
238
  */
231
239
  declare function useRefs<T = unknown>(): UseRefsReturn<T>;
232
240
 
233
- export { DEFAULT_THEME, type FontFamily, type FontFamilyPreset, type FontSize, type FontSizePreset, type HlwMsg, type InitThemeOptions, type ShareConfig, type ShareHandlers, THEME_COLORS, type ThemeColor, type ThemeMode, type ThemeState, type ToastCallback, type UseRefsReturn, applyTheme, fontFamilyPresets, fontSizePresets, getTheme, initTheme, showShareMenu, useMsg, useRefs, useShare, useTheme, useThemeStore };
241
+ export { DEFAULT_THEME, type FontFamily, type FontFamilyPreset, type FontSize, type FontSizePreset, type HlwInstance, type HlwMsg, type InitThemeOptions, type ShareConfig, type ShareHandlers, THEME_COLORS, type ThemeColor, type ThemeMode, type ThemeState, type ToastCallback, type UseRefsReturn, applyTheme, fontFamilyPresets, fontSizePresets, getTheme, hlw, initTheme, showShareMenu, useMsg, useRefs, useShare, useTheme, useThemeStore };
package/dist/index.d.ts CHANGED
@@ -42,6 +42,14 @@ interface HlwMsg {
42
42
  * ```
43
43
  */
44
44
  declare function useMsg(): HlwMsg;
45
+ /**
46
+ * 全局提示单例门面
47
+ */
48
+ declare const hlw: {
49
+ /** 统一提示门面 */
50
+ readonly $msg: HlwMsg;
51
+ };
52
+ type HlwInstance = typeof hlw;
45
53
 
46
54
  /**
47
55
  * 外观模式型
@@ -230,4 +238,4 @@ interface UseRefsReturn<T = unknown> {
230
238
  */
231
239
  declare function useRefs<T = unknown>(): UseRefsReturn<T>;
232
240
 
233
- export { DEFAULT_THEME, type FontFamily, type FontFamilyPreset, type FontSize, type FontSizePreset, type HlwMsg, type InitThemeOptions, type ShareConfig, type ShareHandlers, THEME_COLORS, type ThemeColor, type ThemeMode, type ThemeState, type ToastCallback, type UseRefsReturn, applyTheme, fontFamilyPresets, fontSizePresets, getTheme, initTheme, showShareMenu, useMsg, useRefs, useShare, useTheme, useThemeStore };
241
+ export { DEFAULT_THEME, type FontFamily, type FontFamilyPreset, type FontSize, type FontSizePreset, type HlwInstance, type HlwMsg, type InitThemeOptions, type ShareConfig, type ShareHandlers, THEME_COLORS, type ThemeColor, type ThemeMode, type ThemeState, type ToastCallback, type UseRefsReturn, applyTheme, fontFamilyPresets, fontSizePresets, getTheme, hlw, initTheme, showShareMenu, useMsg, useRefs, useShare, useTheme, useThemeStore };
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ __export(index_exports, {
26
26
  fontFamilyPresets: () => fontFamilyPresets,
27
27
  fontSizePresets: () => fontSizePresets,
28
28
  getTheme: () => getTheme,
29
+ hlw: () => hlw,
29
30
  initTheme: () => initTheme,
30
31
  showShareMenu: () => showShareMenu,
31
32
  useMsg: () => useMsg,
@@ -132,6 +133,13 @@ function useMsg() {
132
133
  setLoadingBar
133
134
  };
134
135
  }
136
+ var _msg = null;
137
+ var hlw = {
138
+ /** 统一提示门面 */
139
+ get $msg() {
140
+ return _msg ?? (_msg = useMsg());
141
+ }
142
+ };
135
143
 
136
144
  // src/theme/index.ts
137
145
  var import_vue = require("vue");
@@ -341,6 +349,7 @@ function useRefs() {
341
349
  fontFamilyPresets,
342
350
  fontSizePresets,
343
351
  getTheme,
352
+ hlw,
344
353
  initTheme,
345
354
  showShareMenu,
346
355
  useMsg,
package/dist/index.mjs CHANGED
@@ -94,6 +94,13 @@ function useMsg() {
94
94
  setLoadingBar
95
95
  };
96
96
  }
97
+ var _msg = null;
98
+ var hlw = {
99
+ /** 统一提示门面 */
100
+ get $msg() {
101
+ return _msg ?? (_msg = useMsg());
102
+ }
103
+ };
97
104
 
98
105
  // src/theme/index.ts
99
106
  import { computed, toRef } from "vue";
@@ -302,6 +309,7 @@ export {
302
309
  fontFamilyPresets,
303
310
  fontSizePresets,
304
311
  getTheme,
312
+ hlw,
305
313
  initTheme,
306
314
  showShareMenu,
307
315
  useMsg,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hlw-uni-mp/use",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Universal Uni-App Vue 3 stateful composables library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",