toastory 0.1.1 → 0.1.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.
Files changed (114) hide show
  1. package/dist/angular.cjs +2 -2
  2. package/dist/angular.cjs.map +1 -1
  3. package/dist/angular.d.cts +3 -3
  4. package/dist/angular.d.ts +3 -3
  5. package/dist/angular.js +2 -2
  6. package/dist/angular.js.map +1 -1
  7. package/dist/core.cjs +1 -1
  8. package/dist/core.cjs.map +1 -1
  9. package/dist/core.d.cts +6 -6
  10. package/dist/core.d.ts +6 -6
  11. package/dist/core.js +1 -1
  12. package/dist/core.js.map +1 -1
  13. package/dist/{dialog-B08CfkHj.d.ts → dialog-Buemfm7I.d.ts} +1 -1
  14. package/dist/{dialog-DWyGuoVI.d.cts → dialog-fziFV6J0.d.cts} +1 -1
  15. package/dist/index.cjs +3 -3
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +4 -4
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +3 -3
  20. package/dist/index.js.map +1 -1
  21. package/dist/native.cjs +1 -1
  22. package/dist/native.cjs.map +1 -1
  23. package/dist/native.js +1 -1
  24. package/dist/native.js.map +1 -1
  25. package/dist/react.cjs +2 -2
  26. package/dist/react.cjs.map +1 -1
  27. package/dist/react.d.cts +7 -6
  28. package/dist/react.d.ts +7 -6
  29. package/dist/react.js +2 -2
  30. package/dist/react.js.map +1 -1
  31. package/dist/svelte.cjs +2 -2
  32. package/dist/svelte.cjs.map +1 -1
  33. package/dist/svelte.d.cts +2 -2
  34. package/dist/svelte.d.ts +2 -2
  35. package/dist/svelte.js +2 -2
  36. package/dist/svelte.js.map +1 -1
  37. package/dist/themes/_base.css +1 -1
  38. package/dist/themes/_base.dialog.css +1 -1
  39. package/dist/themes/_base.toast.css +1 -1
  40. package/dist/themes/all.css +1 -0
  41. package/dist/themes/aurora.css +1 -1
  42. package/dist/themes/aurora.dialog.css +1 -1
  43. package/dist/themes/aurora.toast.css +1 -1
  44. package/dist/themes/basic.css +1 -1
  45. package/dist/themes/basic.dialog.css +1 -1
  46. package/dist/themes/basic.toast.css +1 -1
  47. package/dist/themes/brutal.css +1 -1
  48. package/dist/themes/brutal.dialog.css +1 -1
  49. package/dist/themes/brutal.toast.css +1 -1
  50. package/dist/themes/classic-bar.css +1 -1
  51. package/dist/themes/classic-bar.dialog.css +1 -1
  52. package/dist/themes/classic-bar.toast.css +1 -1
  53. package/dist/themes/classic-stack.css +1 -1
  54. package/dist/themes/classic-stack.dialog.css +1 -1
  55. package/dist/themes/classic-stack.toast.css +1 -1
  56. package/dist/themes/dialogs.css +1 -1
  57. package/dist/themes/dialogs.dialog.css +1 -1
  58. package/dist/themes/dialogs.toast.css +1 -1
  59. package/dist/themes/essentials.css +1 -1
  60. package/dist/themes/essentials.dialog.css +1 -1
  61. package/dist/themes/essentials.toast.css +1 -1
  62. package/dist/themes/flat.css +1 -1
  63. package/dist/themes/flat.dialog.css +1 -1
  64. package/dist/themes/flat.toast.css +1 -1
  65. package/dist/themes/gradient-strip.css +1 -1
  66. package/dist/themes/gradient-strip.dialog.css +1 -1
  67. package/dist/themes/gradient-strip.toast.css +1 -1
  68. package/dist/themes/gradient.css +1 -1
  69. package/dist/themes/gradient.dialog.css +1 -1
  70. package/dist/themes/gradient.toast.css +1 -1
  71. package/dist/themes/ios-glass.css +1 -1
  72. package/dist/themes/ios-glass.dialog.css +1 -1
  73. package/dist/themes/ios-glass.toast.css +1 -1
  74. package/dist/themes/liquid-glass.css +1 -1
  75. package/dist/themes/liquid-glass.dialog.css +1 -1
  76. package/dist/themes/liquid-glass.toast.css +1 -1
  77. package/dist/themes/material.css +1 -1
  78. package/dist/themes/material.dialog.css +1 -1
  79. package/dist/themes/material.toast.css +1 -1
  80. package/dist/themes/minimal.css +1 -1
  81. package/dist/themes/minimal.dialog.css +1 -1
  82. package/dist/themes/minimal.toast.css +1 -1
  83. package/dist/themes/neon.css +1 -1
  84. package/dist/themes/neon.dialog.css +1 -1
  85. package/dist/themes/neon.toast.css +1 -1
  86. package/dist/themes/outline.css +1 -1
  87. package/dist/themes/outline.dialog.css +1 -1
  88. package/dist/themes/outline.toast.css +1 -1
  89. package/dist/themes/pastel.css +1 -1
  90. package/dist/themes/pastel.dialog.css +1 -1
  91. package/dist/themes/pastel.toast.css +1 -1
  92. package/dist/themes/pill.css +1 -1
  93. package/dist/themes/pill.dialog.css +1 -1
  94. package/dist/themes/pill.toast.css +1 -1
  95. package/dist/themes/ripple.css +1 -1
  96. package/dist/themes/ripple.dialog.css +1 -1
  97. package/dist/themes/ripple.toast.css +1 -1
  98. package/dist/themes/showcase.css +1 -1
  99. package/dist/themes/showcase.dialog.css +1 -1
  100. package/dist/themes/showcase.toast.css +1 -1
  101. package/dist/themes/sweet.css +1 -1
  102. package/dist/themes/sweet.dialog.css +1 -1
  103. package/dist/themes/sweet.toast.css +1 -1
  104. package/dist/{toast-api-C3NL4zla.d.cts → toast-api-D6WYDtUy.d.cts} +5 -3
  105. package/dist/{toast-api-C3NL4zla.d.ts → toast-api-D6WYDtUy.d.ts} +5 -3
  106. package/dist/{ui-BRRU9D4b.d.ts → ui-Cs1AjRNH.d.ts} +2 -2
  107. package/dist/{ui-30FIsmS5.d.cts → ui-D5FwMD8Y.d.cts} +2 -2
  108. package/dist/vue.cjs +2 -2
  109. package/dist/vue.cjs.map +1 -1
  110. package/dist/vue.d.cts +40 -39
  111. package/dist/vue.d.ts +40 -39
  112. package/dist/vue.js +2 -2
  113. package/dist/vue.js.map +1 -1
  114. package/package.json +1 -1
package/dist/vue.d.cts CHANGED
@@ -1,22 +1,23 @@
1
- import { GlazeConfig, ColorMode, ToastPosition, Direction, ToastApi, ToastRecord } from './core.cjs';
1
+ import { ak as ToastoryConfig, G as GlazeConfig } from './toast-api-D6WYDtUy.cjs';
2
+ import { ColorMode, ToastPosition, Direction, ToastApi, ToastRecord } from './core.cjs';
2
3
  import * as vue from 'vue';
3
4
  import { PropType, App, shallowRef } from 'vue';
4
- import { u as ui } from './ui-30FIsmS5.cjs';
5
- export { U as Ui, t as toast } from './ui-30FIsmS5.cjs';
6
- import './dialog-DWyGuoVI.cjs';
5
+ import { u as ui } from './ui-D5FwMD8Y.cjs';
6
+ export { U as Ui, t as toast } from './ui-D5FwMD8Y.cjs';
7
+ import './dialog-fziFV6J0.cjs';
7
8
 
8
9
  /** Vue component that manages the toastory Toaster lifecycle. */
9
- declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
10
+ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
10
11
  theme: {
11
12
  type: StringConstructor;
12
13
  default: undefined;
13
14
  };
14
15
  mode: {
15
- type: PropType<GlazeConfig["mode"]>;
16
+ type: PropType<ToastoryConfig["mode"]>;
16
17
  default: undefined;
17
18
  };
18
19
  position: {
19
- type: PropType<GlazeConfig["position"]>;
20
+ type: PropType<ToastoryConfig["position"]>;
20
21
  default: undefined;
21
22
  };
22
23
  duration: {
@@ -36,7 +37,7 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
36
37
  default: undefined;
37
38
  };
38
39
  dir: {
39
- type: PropType<GlazeConfig["dir"]>;
40
+ type: PropType<ToastoryConfig["dir"]>;
40
41
  default: undefined;
41
42
  };
42
43
  hotkey: {
@@ -61,11 +62,11 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
61
62
  default: undefined;
62
63
  };
63
64
  mode: {
64
- type: PropType<GlazeConfig["mode"]>;
65
+ type: PropType<ToastoryConfig["mode"]>;
65
66
  default: undefined;
66
67
  };
67
68
  position: {
68
- type: PropType<GlazeConfig["position"]>;
69
+ type: PropType<ToastoryConfig["position"]>;
69
70
  default: undefined;
70
71
  };
71
72
  duration: {
@@ -85,7 +86,7 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
85
86
  default: undefined;
86
87
  };
87
88
  dir: {
88
- type: PropType<GlazeConfig["dir"]>;
89
+ type: PropType<ToastoryConfig["dir"]>;
89
90
  default: undefined;
90
91
  };
91
92
  hotkey: {
@@ -118,37 +119,17 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
118
119
  closeButton: boolean;
119
120
  shadow: boolean;
120
121
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
121
- /** Composable returning toast actions and reactive active toasts array. */
122
- declare function useToast(): {
123
- toast: ToastApi;
124
- toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
125
- };
126
- /** Composable returning complete ui feedback toolkit and state. */
127
- declare function useToastory(): {
128
- ui: typeof ui;
129
- toast: ToastApi;
130
- toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
131
- config: Readonly<ReturnType<typeof shallowRef<Readonly<GlazeConfig>>>>;
132
- };
133
- declare const useGlazekit: typeof useToastory;
134
- /** Vue plugin installing toastory and registering Toaster globally. */
135
- declare const toastoryPlugin: {
136
- install(app: App, options?: Partial<GlazeConfig>): void;
137
- };
138
- declare const glazekitPlugin: {
139
- install(app: App, options?: Partial<GlazeConfig>): void;
140
- };
141
- declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
122
+ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
142
123
  theme: {
143
124
  type: StringConstructor;
144
125
  default: undefined;
145
126
  };
146
127
  mode: {
147
- type: PropType<GlazeConfig["mode"]>;
128
+ type: PropType<ToastoryConfig["mode"]>;
148
129
  default: undefined;
149
130
  };
150
131
  position: {
151
- type: PropType<GlazeConfig["position"]>;
132
+ type: PropType<ToastoryConfig["position"]>;
152
133
  default: undefined;
153
134
  };
154
135
  duration: {
@@ -168,7 +149,7 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
168
149
  default: undefined;
169
150
  };
170
151
  dir: {
171
- type: PropType<GlazeConfig["dir"]>;
152
+ type: PropType<ToastoryConfig["dir"]>;
172
153
  default: undefined;
173
154
  };
174
155
  hotkey: {
@@ -193,11 +174,11 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
193
174
  default: undefined;
194
175
  };
195
176
  mode: {
196
- type: PropType<GlazeConfig["mode"]>;
177
+ type: PropType<ToastoryConfig["mode"]>;
197
178
  default: undefined;
198
179
  };
199
180
  position: {
200
- type: PropType<GlazeConfig["position"]>;
181
+ type: PropType<ToastoryConfig["position"]>;
201
182
  default: undefined;
202
183
  };
203
184
  duration: {
@@ -217,7 +198,7 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
217
198
  default: undefined;
218
199
  };
219
200
  dir: {
220
- type: PropType<GlazeConfig["dir"]>;
201
+ type: PropType<ToastoryConfig["dir"]>;
221
202
  default: undefined;
222
203
  };
223
204
  hotkey: {
@@ -250,5 +231,25 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
250
231
  closeButton: boolean;
251
232
  shadow: boolean;
252
233
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
234
+ /** Composable returning toast actions and reactive active toasts array. */
235
+ declare function useToast(): {
236
+ toast: ToastApi;
237
+ toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
238
+ };
239
+ /** Composable returning complete ui feedback toolkit and state. */
240
+ declare function useToastory(): {
241
+ ui: typeof ui;
242
+ toast: ToastApi;
243
+ toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
244
+ config: Readonly<ReturnType<typeof shallowRef<Readonly<GlazeConfig>>>>;
245
+ };
246
+ declare const useGlazekit: typeof useToastory;
247
+ /** Vue plugin installing toastory and registering Toaster globally. */
248
+ declare const toastoryPlugin: {
249
+ install(app: App, options?: Partial<GlazeConfig>): void;
250
+ };
251
+ declare const glazekitPlugin: {
252
+ install(app: App, options?: Partial<GlazeConfig>): void;
253
+ };
253
254
 
254
- export { GlazeToaster, ToastoryToaster, glazekitPlugin, toastoryPlugin, ui, useGlazekit, useToast, useToastory };
255
+ export { GlazeConfig, GlazeToaster, ToastoryConfig, ToastoryToaster, glazekitPlugin, toastoryPlugin, ui, useGlazekit, useToast, useToastory };
package/dist/vue.d.ts CHANGED
@@ -1,22 +1,23 @@
1
- import { GlazeConfig, ColorMode, ToastPosition, Direction, ToastApi, ToastRecord } from './core.js';
1
+ import { ak as ToastoryConfig, G as GlazeConfig } from './toast-api-D6WYDtUy.js';
2
+ import { ColorMode, ToastPosition, Direction, ToastApi, ToastRecord } from './core.js';
2
3
  import * as vue from 'vue';
3
4
  import { PropType, App, shallowRef } from 'vue';
4
- import { u as ui } from './ui-BRRU9D4b.js';
5
- export { U as Ui, t as toast } from './ui-BRRU9D4b.js';
6
- import './dialog-B08CfkHj.js';
5
+ import { u as ui } from './ui-Cs1AjRNH.js';
6
+ export { U as Ui, t as toast } from './ui-Cs1AjRNH.js';
7
+ import './dialog-Buemfm7I.js';
7
8
 
8
9
  /** Vue component that manages the toastory Toaster lifecycle. */
9
- declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
10
+ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
10
11
  theme: {
11
12
  type: StringConstructor;
12
13
  default: undefined;
13
14
  };
14
15
  mode: {
15
- type: PropType<GlazeConfig["mode"]>;
16
+ type: PropType<ToastoryConfig["mode"]>;
16
17
  default: undefined;
17
18
  };
18
19
  position: {
19
- type: PropType<GlazeConfig["position"]>;
20
+ type: PropType<ToastoryConfig["position"]>;
20
21
  default: undefined;
21
22
  };
22
23
  duration: {
@@ -36,7 +37,7 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
36
37
  default: undefined;
37
38
  };
38
39
  dir: {
39
- type: PropType<GlazeConfig["dir"]>;
40
+ type: PropType<ToastoryConfig["dir"]>;
40
41
  default: undefined;
41
42
  };
42
43
  hotkey: {
@@ -61,11 +62,11 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
61
62
  default: undefined;
62
63
  };
63
64
  mode: {
64
- type: PropType<GlazeConfig["mode"]>;
65
+ type: PropType<ToastoryConfig["mode"]>;
65
66
  default: undefined;
66
67
  };
67
68
  position: {
68
- type: PropType<GlazeConfig["position"]>;
69
+ type: PropType<ToastoryConfig["position"]>;
69
70
  default: undefined;
70
71
  };
71
72
  duration: {
@@ -85,7 +86,7 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
85
86
  default: undefined;
86
87
  };
87
88
  dir: {
88
- type: PropType<GlazeConfig["dir"]>;
89
+ type: PropType<ToastoryConfig["dir"]>;
89
90
  default: undefined;
90
91
  };
91
92
  hotkey: {
@@ -118,37 +119,17 @@ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
118
119
  closeButton: boolean;
119
120
  shadow: boolean;
120
121
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
121
- /** Composable returning toast actions and reactive active toasts array. */
122
- declare function useToast(): {
123
- toast: ToastApi;
124
- toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
125
- };
126
- /** Composable returning complete ui feedback toolkit and state. */
127
- declare function useToastory(): {
128
- ui: typeof ui;
129
- toast: ToastApi;
130
- toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
131
- config: Readonly<ReturnType<typeof shallowRef<Readonly<GlazeConfig>>>>;
132
- };
133
- declare const useGlazekit: typeof useToastory;
134
- /** Vue plugin installing toastory and registering Toaster globally. */
135
- declare const toastoryPlugin: {
136
- install(app: App, options?: Partial<GlazeConfig>): void;
137
- };
138
- declare const glazekitPlugin: {
139
- install(app: App, options?: Partial<GlazeConfig>): void;
140
- };
141
- declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
122
+ declare const GlazeToaster: vue.DefineComponent<vue.ExtractPropTypes<{
142
123
  theme: {
143
124
  type: StringConstructor;
144
125
  default: undefined;
145
126
  };
146
127
  mode: {
147
- type: PropType<GlazeConfig["mode"]>;
128
+ type: PropType<ToastoryConfig["mode"]>;
148
129
  default: undefined;
149
130
  };
150
131
  position: {
151
- type: PropType<GlazeConfig["position"]>;
132
+ type: PropType<ToastoryConfig["position"]>;
152
133
  default: undefined;
153
134
  };
154
135
  duration: {
@@ -168,7 +149,7 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
168
149
  default: undefined;
169
150
  };
170
151
  dir: {
171
- type: PropType<GlazeConfig["dir"]>;
152
+ type: PropType<ToastoryConfig["dir"]>;
172
153
  default: undefined;
173
154
  };
174
155
  hotkey: {
@@ -193,11 +174,11 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
193
174
  default: undefined;
194
175
  };
195
176
  mode: {
196
- type: PropType<GlazeConfig["mode"]>;
177
+ type: PropType<ToastoryConfig["mode"]>;
197
178
  default: undefined;
198
179
  };
199
180
  position: {
200
- type: PropType<GlazeConfig["position"]>;
181
+ type: PropType<ToastoryConfig["position"]>;
201
182
  default: undefined;
202
183
  };
203
184
  duration: {
@@ -217,7 +198,7 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
217
198
  default: undefined;
218
199
  };
219
200
  dir: {
220
- type: PropType<GlazeConfig["dir"]>;
201
+ type: PropType<ToastoryConfig["dir"]>;
221
202
  default: undefined;
222
203
  };
223
204
  hotkey: {
@@ -250,5 +231,25 @@ declare const ToastoryToaster: vue.DefineComponent<vue.ExtractPropTypes<{
250
231
  closeButton: boolean;
251
232
  shadow: boolean;
252
233
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
234
+ /** Composable returning toast actions and reactive active toasts array. */
235
+ declare function useToast(): {
236
+ toast: ToastApi;
237
+ toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
238
+ };
239
+ /** Composable returning complete ui feedback toolkit and state. */
240
+ declare function useToastory(): {
241
+ ui: typeof ui;
242
+ toast: ToastApi;
243
+ toasts: Readonly<ReturnType<typeof shallowRef<readonly ToastRecord[]>>>;
244
+ config: Readonly<ReturnType<typeof shallowRef<Readonly<GlazeConfig>>>>;
245
+ };
246
+ declare const useGlazekit: typeof useToastory;
247
+ /** Vue plugin installing toastory and registering Toaster globally. */
248
+ declare const toastoryPlugin: {
249
+ install(app: App, options?: Partial<GlazeConfig>): void;
250
+ };
251
+ declare const glazekitPlugin: {
252
+ install(app: App, options?: Partial<GlazeConfig>): void;
253
+ };
253
254
 
254
- export { GlazeToaster, ToastoryToaster, glazekitPlugin, toastoryPlugin, ui, useGlazekit, useToast, useToastory };
255
+ export { GlazeConfig, GlazeToaster, ToastoryConfig, ToastoryToaster, glazekitPlugin, toastoryPlugin, ui, useGlazekit, useToast, useToastory };