@onereach/ui-components 5.3.0 → 5.3.1-beta.3182.0
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/bundled/v2/components/OrToast/composable/useToast.d.ts +1 -6
- package/dist/bundled/v2/components/OrToast/types.d.ts +4 -0
- package/dist/bundled/v2/components/OrToastV3/composable/useToast.d.ts +5 -10
- package/dist/bundled/v2/components/OrToastV3/types.d.ts +4 -0
- package/dist/bundled/v3/components/OrToast/composable/useToast.d.ts +1 -6
- package/dist/bundled/v3/components/OrToast/types.d.ts +4 -0
- package/dist/bundled/v3/components/OrToastV3/composable/useToast.d.ts +5 -10
- package/dist/bundled/v3/components/OrToastV3/types.d.ts +4 -0
- package/dist/esm/v2/components/or-toast/composable/useToast.d.ts +1 -6
- package/dist/esm/v2/components/or-toast/types.d.ts +4 -0
- package/dist/esm/v2/components/or-toast-v3/composable/useToast.d.ts +5 -10
- package/dist/esm/v2/components/or-toast-v3/types.d.ts +4 -0
- package/dist/esm/v3/components/or-toast/composable/useToast.d.ts +1 -6
- package/dist/esm/v3/components/or-toast/types.d.ts +4 -0
- package/dist/esm/v3/components/or-toast-v3/composable/useToast.d.ts +5 -10
- package/dist/esm/v3/components/or-toast-v3/types.d.ts +4 -0
- package/package.json +3 -4
- package/src/components/or-toast/composable/useToast.ts +1 -5
- package/src/components/or-toast/types.ts +5 -0
- package/src/components/or-toast-v3/composable/useToast.ts +5 -10
- package/src/components/or-toast-v3/types.ts +4 -0
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturns } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
3
|
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
8
4
|
clearAll: () => void;
|
|
@@ -10,4 +6,3 @@ export default function useToast(globalToastProps?: ToastProps): {
|
|
|
10
6
|
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
11
7
|
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturnsV3 } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
|
-
notify: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
3
|
+
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
8
4
|
clearAll: () => void;
|
|
9
|
-
success: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
10
|
-
error: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
11
|
-
loading: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
5
|
+
success: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
6
|
+
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
7
|
+
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturns } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
3
|
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
8
4
|
clearAll: () => void;
|
|
@@ -10,4 +6,3 @@ export default function useToast(globalToastProps?: ToastProps): {
|
|
|
10
6
|
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
11
7
|
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturnsV3 } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
|
-
notify: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
3
|
+
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
8
4
|
clearAll: () => void;
|
|
9
|
-
success: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
10
|
-
error: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
11
|
-
loading: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
5
|
+
success: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
6
|
+
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
7
|
+
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturns } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
3
|
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
8
4
|
clearAll: () => void;
|
|
@@ -10,4 +6,3 @@ export default function useToast(globalToastProps?: ToastProps): {
|
|
|
10
6
|
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
11
7
|
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturnsV3 } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
|
-
notify: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
3
|
+
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
8
4
|
clearAll: () => void;
|
|
9
|
-
success: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
10
|
-
error: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
11
|
-
loading: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
5
|
+
success: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
6
|
+
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
7
|
+
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturns } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
3
|
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
8
4
|
clearAll: () => void;
|
|
@@ -10,4 +6,3 @@ export default function useToast(globalToastProps?: ToastProps): {
|
|
|
10
6
|
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
11
7
|
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturns;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastProps } from '../types';
|
|
2
|
-
interface UseToastNotifyReturns {
|
|
3
|
-
close: () => void;
|
|
4
|
-
update: (data: ToastProps) => void;
|
|
5
|
-
}
|
|
1
|
+
import { ToastBehaviour, ToastProps, UseToastNotifyReturnsV3 } from '../types';
|
|
6
2
|
export default function useToast(globalToastProps?: ToastProps): {
|
|
7
|
-
notify: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
3
|
+
notify: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
8
4
|
clearAll: () => void;
|
|
9
|
-
success: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
10
|
-
error: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
11
|
-
loading: (props: ToastProps, behaviour?: ToastBehaviour) =>
|
|
5
|
+
success: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
6
|
+
error: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
7
|
+
loading: (props: ToastProps, behaviour?: ToastBehaviour) => UseToastNotifyReturnsV3;
|
|
12
8
|
};
|
|
13
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "5.3.0",
|
|
3
|
+
"version": "5.3.1-beta.3182.0",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@codemirror/lang-json": "6.0.1",
|
|
40
40
|
"@codemirror/lang-markdown": "6.1.1",
|
|
41
41
|
"@floating-ui/dom": "0.3.1",
|
|
42
|
-
"@onereach/styles": "^3.1.0",
|
|
42
|
+
"@onereach/styles": "^3.1.1-beta.3182.0",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
45
45
|
"@types/uuid": "8.3.1",
|
|
@@ -156,6 +156,5 @@
|
|
|
156
156
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
157
157
|
},
|
|
158
158
|
"./package.json": "./package.json"
|
|
159
|
-
}
|
|
160
|
-
"gitHead": "7da78a6b42da15543fd27404761ce65ab98cd645"
|
|
159
|
+
}
|
|
161
160
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { ToastBehaviour, ToastConfiguration, ToastProps } from '../types';
|
|
1
|
+
import { ToastBehaviour, ToastConfiguration, ToastProps, UseToastNotifyReturns } from '../types';
|
|
2
2
|
import Timer from '../Timer';
|
|
3
3
|
import useToastEventBus from './useToastEventBus';
|
|
4
4
|
import { ToastType } from '../constants';
|
|
5
5
|
|
|
6
|
-
interface UseToastNotifyReturns {
|
|
7
|
-
close: () => void;
|
|
8
|
-
update: (data: ToastProps) => void;
|
|
9
|
-
}
|
|
10
6
|
export default function useToast(globalToastProps: ToastProps = {}) {
|
|
11
7
|
const { emit } = useToastEventBus();
|
|
12
8
|
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { ToastType } from '../props';
|
|
2
2
|
import Timer from '../Timer';
|
|
3
|
-
import { ToastBehaviour, ToastConfiguration, ToastProps } from '../types';
|
|
3
|
+
import { ToastBehaviour, ToastConfiguration, ToastProps, UseToastNotifyReturnsV3 } from '../types';
|
|
4
4
|
import useToastEventBus from './useToastEventBus';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
interface UseToastNotifyReturns {
|
|
8
|
-
close: () => void;
|
|
9
|
-
update: (data: ToastProps) => void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
7
|
export default function useToast(globalToastProps: ToastProps = {}) {
|
|
13
8
|
const { emit } = useToastEventBus();
|
|
14
9
|
|
|
15
|
-
function notify(props: ToastProps, behaviour: ToastBehaviour = {}):
|
|
10
|
+
function notify(props: ToastProps, behaviour: ToastBehaviour = {}): UseToastNotifyReturnsV3 {
|
|
16
11
|
const { duration = 5000, pauseOnHover = true, onToastClose, onToastClick } = behaviour;
|
|
17
12
|
const propsData = {
|
|
18
13
|
...props,
|
|
@@ -50,14 +45,14 @@ export default function useToast(globalToastProps: ToastProps = {}) {
|
|
|
50
45
|
emit('toastCloseAll');
|
|
51
46
|
}
|
|
52
47
|
|
|
53
|
-
function success(props: ToastProps, behaviour: ToastBehaviour = {}):
|
|
48
|
+
function success(props: ToastProps, behaviour: ToastBehaviour = {}): UseToastNotifyReturnsV3 {
|
|
54
49
|
return notify({
|
|
55
50
|
...props,
|
|
56
51
|
toastType: ToastType.Success,
|
|
57
52
|
}, behaviour);
|
|
58
53
|
}
|
|
59
54
|
|
|
60
|
-
function error(props: ToastProps, behaviour: ToastBehaviour = {}):
|
|
55
|
+
function error(props: ToastProps, behaviour: ToastBehaviour = {}): UseToastNotifyReturnsV3 {
|
|
61
56
|
return notify({
|
|
62
57
|
...props,
|
|
63
58
|
toastType: ToastType.Error,
|
|
@@ -65,7 +60,7 @@ export default function useToast(globalToastProps: ToastProps = {}) {
|
|
|
65
60
|
}
|
|
66
61
|
|
|
67
62
|
|
|
68
|
-
function loading(props: ToastProps, behaviour: ToastBehaviour = {}):
|
|
63
|
+
function loading(props: ToastProps, behaviour: ToastBehaviour = {}): UseToastNotifyReturnsV3 {
|
|
69
64
|
return notify({
|
|
70
65
|
dismissible: false,
|
|
71
66
|
...props,
|