@lapp-studio/react-toast-engine 0.0.2 → 0.0.3

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/core.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { a as ToastsStoreSettings, c as ToastAction, i as ToastsStore, l as ToastActions, n as ToastsPoolRendererProps, o as NewToast, r as ToastsProviderProps, s as Toast, t as ToastsComponentsByInfoType, u as ToastInfoType } from "./toasts-renderer-DsSfXdUq.cjs";
1
+ import { a as ToastsStore, c as NewToast, d as ToastActions, f as ToastInfoType, i as ToastsRendererContextProps, l as Toast, n as ToastsPoolRendererProps, o as ToastsStoreSettings, r as ToastsProviderProps, s as ToastComponentProps, t as ToastsComponentsByInfoType, u as ToastAction } from "./toasts-renderer-CoN_jkgy.cjs";
2
2
  import * as zustand from "zustand";
3
- import { ElementType } from "react";
4
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import { ElementType } from "react";
5
5
 
6
6
  //#region src/core/createToastsClient.d.ts
7
7
  type Parameters = {
@@ -34,5 +34,5 @@ declare const createToastsClient: ({
34
34
  };
35
35
  };
36
36
  //#endregion
37
- export { NewToast, Toast, ToastAction, ToastActions, ToastInfoType, ToastsStore, ToastsStoreSettings, createToastsClient };
37
+ export { NewToast, Toast, ToastAction, ToastActions, ToastComponentProps, ToastInfoType, ToastsComponentsByInfoType, ToastsPoolRendererProps, ToastsProviderProps, ToastsRendererContextProps, ToastsStore, ToastsStoreSettings, createToastsClient };
38
38
  //# sourceMappingURL=core.d.cts.map
package/dist/core.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ToastsStoreSettings, c as ToastAction, i as ToastsStore, l as ToastActions, n as ToastsPoolRendererProps, o as NewToast, r as ToastsProviderProps, s as Toast, t as ToastsComponentsByInfoType, u as ToastInfoType } from "./toasts-renderer-vMIJr1FV.js";
1
+ import { a as ToastsStore, c as NewToast, d as ToastActions, f as ToastInfoType, i as ToastsRendererContextProps, l as Toast, n as ToastsPoolRendererProps, o as ToastsStoreSettings, r as ToastsProviderProps, s as ToastComponentProps, t as ToastsComponentsByInfoType, u as ToastAction } from "./toasts-renderer-Ad20ipzA.js";
2
2
  import { ElementType } from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import * as zustand from "zustand";
@@ -34,5 +34,5 @@ declare const createToastsClient: ({
34
34
  };
35
35
  };
36
36
  //#endregion
37
- export { NewToast, Toast, ToastAction, ToastActions, ToastInfoType, ToastsStore, ToastsStoreSettings, createToastsClient };
37
+ export { NewToast, Toast, ToastAction, ToastActions, ToastComponentProps, ToastInfoType, ToastsComponentsByInfoType, ToastsPoolRendererProps, ToastsProviderProps, ToastsRendererContextProps, ToastsStore, ToastsStoreSettings, createToastsClient };
38
38
  //# sourceMappingURL=core.d.ts.map
package/dist/native.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as ToastsPoolRendererProps } from "./toasts-renderer-DsSfXdUq.cjs";
1
+ import { n as ToastsPoolRendererProps } from "./toasts-renderer-CoN_jkgy.cjs";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/native/pool-renderer.d.ts
package/dist/native.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as ToastsPoolRendererProps } from "./toasts-renderer-vMIJr1FV.js";
1
+ import { n as ToastsPoolRendererProps } from "./toasts-renderer-Ad20ipzA.js";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/native/pool-renderer.d.ts
@@ -1,4 +1,5 @@
1
1
  import { ElementType } from "react";
2
+ import { StoreApi, UseBoundStore } from "zustand";
2
3
 
3
4
  //#region src/core/types/toast.d.ts
4
5
  declare enum ToastInfoType {
@@ -42,6 +43,11 @@ type ToastsStoreSettings = {
42
43
  //#endregion
43
44
  //#region src/core/types/toasts-renderer.d.ts
44
45
  type ToastsComponentsByInfoType = Record<ToastInfoType, ElementType<ToastComponentProps>>;
46
+ type ToastsRendererContextProps = {
47
+ children: React.ReactNode;
48
+ components: ToastsComponentsByInfoType;
49
+ store: UseBoundStore<StoreApi<ToastsStore>>;
50
+ };
45
51
  type ToastsPoolRendererProps = {
46
52
  children: React.ReactNode;
47
53
  };
@@ -49,5 +55,5 @@ type ToastsProviderProps = {
49
55
  children: React.ReactNode;
50
56
  };
51
57
  //#endregion
52
- export { ToastsStoreSettings as a, ToastAction as c, ToastsStore as i, ToastActions as l, ToastsPoolRendererProps as n, NewToast as o, ToastsProviderProps as r, Toast as s, ToastsComponentsByInfoType as t, ToastInfoType as u };
53
- //# sourceMappingURL=toasts-renderer-DsSfXdUq.d.cts.map
58
+ export { ToastsStore as a, NewToast as c, ToastActions as d, ToastInfoType as f, ToastsRendererContextProps as i, Toast as l, ToastsPoolRendererProps as n, ToastsStoreSettings as o, ToastsProviderProps as r, ToastComponentProps as s, ToastsComponentsByInfoType as t, ToastAction as u };
59
+ //# sourceMappingURL=toasts-renderer-Ad20ipzA.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toasts-renderer-DsSfXdUq.d.cts","names":[],"sources":["../src/core/types/toast.ts","../src/core/types/toast-component.ts","../src/core/types/toasts-store.ts","../src/core/types/toasts-renderer.ts"],"mappings":";;;aAAY,aAAA;EACV,IAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,KAAA;EACV,EAAA;EACA,KAAA;EACA,WAAA;EACA,YAAA;EACA,QAAA,KAAa,aAAA;AAAA;AAAA,KAGH,QAAA,GAAW,IAAA,CAAK,KAAA;AAAA,KAEhB,WAAA,IAAe,KAAA,EAAO,KAAA;AAAA,KAEtB,YAAA;EACV,SAAA,GAAY,WAAA;EACZ,OAAA,GAAU,WAAA;AAAA;;;KClBA,mBAAA;EACV,KAAA,EAAO,KAAA;EACP,OAAA,EAAS,YAAA;AAAA;;;KCFC,WAAA;EACV,IAAA,EAAM,KAAA;EACN,SAAA;EAEA,KAAA,GAAQ,KAAA,EAAO,QAAA;EACf,MAAA,GAAS,KAAA,EAAO,KAAA;EAChB,GAAA;EAEA,WAAA,GAAc,UAAA;EACd,cAAA,GAAiB,UAAA;AAAA;AAAA,KAGP,mBAAA;EACV,SAAA;AAAA;;;KCRU,0BAAA,GAA6B,MAAA,CACvC,aAAA,EACA,WAAA,CAAY,mBAAA;AAAA,KASF,uBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,KAGN,mBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA"}
1
+ {"version":3,"file":"toasts-renderer-Ad20ipzA.d.ts","names":[],"sources":["../src/core/types/toast.ts","../src/core/types/toast-component.ts","../src/core/types/toasts-store.ts","../src/core/types/toasts-renderer.ts"],"mappings":";;;;aAAY,aAAA;EACV,IAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,KAAA;EACV,EAAA;EACA,KAAA;EACA,WAAA;EACA,YAAA;EACA,QAAA,KAAa,aAAA;AAAA;AAAA,KAGH,QAAA,GAAW,IAAA,CAAK,KAAA;AAAA,KAEhB,WAAA,IAAe,KAAA,EAAO,KAAA;AAAA,KAEtB,YAAA;EACV,SAAA,GAAY,WAAA;EACZ,OAAA,GAAU,WAAA;AAAA;;;KClBA,mBAAA;EACV,KAAA,EAAO,KAAA;EACP,OAAA,EAAS,YAAA;AAAA;;;KCFC,WAAA;EACV,IAAA,EAAM,KAAA;EACN,SAAA;EAEA,KAAA,GAAQ,KAAA,EAAO,QAAA;EACf,MAAA,GAAS,KAAA,EAAO,KAAA;EAChB,GAAA;EAEA,WAAA,GAAc,UAAA;EACd,cAAA,GAAiB,UAAA;AAAA;AAAA,KAGP,mBAAA;EACV,SAAA;AAAA;;;KCRU,0BAAA,GAA6B,MAAA,CACvC,aAAA,EACA,WAAA,CAAY,mBAAA;AAAA,KAGF,0BAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,UAAA,EAAY,0BAAA;EACZ,KAAA,EAAO,aAAA,CAAc,QAAA,CAAS,WAAA;AAAA;AAAA,KAGpB,uBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,KAGN,mBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA"}
@@ -1,4 +1,6 @@
1
+ import { StoreApi, UseBoundStore } from "zustand";
1
2
  import { ElementType } from "react";
3
+
2
4
  //#region src/core/types/toast.d.ts
3
5
  declare enum ToastInfoType {
4
6
  info = "info",
@@ -41,6 +43,11 @@ type ToastsStoreSettings = {
41
43
  //#endregion
42
44
  //#region src/core/types/toasts-renderer.d.ts
43
45
  type ToastsComponentsByInfoType = Record<ToastInfoType, ElementType<ToastComponentProps>>;
46
+ type ToastsRendererContextProps = {
47
+ children: React.ReactNode;
48
+ components: ToastsComponentsByInfoType;
49
+ store: UseBoundStore<StoreApi<ToastsStore>>;
50
+ };
44
51
  type ToastsPoolRendererProps = {
45
52
  children: React.ReactNode;
46
53
  };
@@ -48,5 +55,5 @@ type ToastsProviderProps = {
48
55
  children: React.ReactNode;
49
56
  };
50
57
  //#endregion
51
- export { ToastsStoreSettings as a, ToastAction as c, ToastsStore as i, ToastActions as l, ToastsPoolRendererProps as n, NewToast as o, ToastsProviderProps as r, Toast as s, ToastsComponentsByInfoType as t, ToastInfoType as u };
52
- //# sourceMappingURL=toasts-renderer-vMIJr1FV.d.ts.map
58
+ export { ToastsStore as a, NewToast as c, ToastActions as d, ToastInfoType as f, ToastsRendererContextProps as i, Toast as l, ToastsPoolRendererProps as n, ToastsStoreSettings as o, ToastsProviderProps as r, ToastComponentProps as s, ToastsComponentsByInfoType as t, ToastAction as u };
59
+ //# sourceMappingURL=toasts-renderer-CoN_jkgy.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toasts-renderer-CoN_jkgy.d.cts","names":[],"sources":["../src/core/types/toast.ts","../src/core/types/toast-component.ts","../src/core/types/toasts-store.ts","../src/core/types/toasts-renderer.ts"],"mappings":";;;;aAAY,aAAA;EACV,IAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,KAAA;EACV,EAAA;EACA,KAAA;EACA,WAAA;EACA,YAAA;EACA,QAAA,KAAa,aAAA;AAAA;AAAA,KAGH,QAAA,GAAW,IAAA,CAAK,KAAA;AAAA,KAEhB,WAAA,IAAe,KAAA,EAAO,KAAA;AAAA,KAEtB,YAAA;EACV,SAAA,GAAY,WAAA;EACZ,OAAA,GAAU,WAAA;AAAA;;;KClBA,mBAAA;EACV,KAAA,EAAO,KAAA;EACP,OAAA,EAAS,YAAA;AAAA;;;KCFC,WAAA;EACV,IAAA,EAAM,KAAA;EACN,SAAA;EAEA,KAAA,GAAQ,KAAA,EAAO,QAAA;EACf,MAAA,GAAS,KAAA,EAAO,KAAA;EAChB,GAAA;EAEA,WAAA,GAAc,UAAA;EACd,cAAA,GAAiB,UAAA;AAAA;AAAA,KAGP,mBAAA;EACV,SAAA;AAAA;;;KCRU,0BAAA,GAA6B,MAAA,CACvC,aAAA,EACA,WAAA,CAAY,mBAAA;AAAA,KAGF,0BAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,UAAA,EAAY,0BAAA;EACZ,KAAA,EAAO,aAAA,CAAc,QAAA,CAAS,WAAA;AAAA;AAAA,KAGpB,uBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,KAGN,mBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapp-studio/react-toast-engine",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/core.js",
@@ -58,5 +58,19 @@
58
58
  "maintainers": [
59
59
  "giovanninp"
60
60
  ],
61
+ "keywords": [
62
+ "react",
63
+ "react-native",
64
+ "toast",
65
+ "notification",
66
+ "snackbar",
67
+ "alert",
68
+ "headless",
69
+ "zustand",
70
+ "reanimated",
71
+ "gesture-handler",
72
+ "ui",
73
+ "hybrid"
74
+ ],
61
75
  "license": "MIT"
62
76
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"toasts-renderer-vMIJr1FV.d.ts","names":[],"sources":["../src/core/types/toast.ts","../src/core/types/toast-component.ts","../src/core/types/toasts-store.ts","../src/core/types/toasts-renderer.ts"],"mappings":";;aAAY,aAAA;EACV,IAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,KAAA;EACV,EAAA;EACA,KAAA;EACA,WAAA;EACA,YAAA;EACA,QAAA,KAAa,aAAA;AAAA;AAAA,KAGH,QAAA,GAAW,IAAA,CAAK,KAAA;AAAA,KAEhB,WAAA,IAAe,KAAA,EAAO,KAAA;AAAA,KAEtB,YAAA;EACV,SAAA,GAAY,WAAA;EACZ,OAAA,GAAU,WAAA;AAAA;;;KClBA,mBAAA;EACV,KAAA,EAAO,KAAA;EACP,OAAA,EAAS,YAAA;AAAA;;;KCFC,WAAA;EACV,IAAA,EAAM,KAAA;EACN,SAAA;EAEA,KAAA,GAAQ,KAAA,EAAO,QAAA;EACf,MAAA,GAAS,KAAA,EAAO,KAAA;EAChB,GAAA;EAEA,WAAA,GAAc,UAAA;EACd,cAAA,GAAiB,UAAA;AAAA;AAAA,KAGP,mBAAA;EACV,SAAA;AAAA;;;KCRU,0BAAA,GAA6B,MAAA,CACvC,aAAA,EACA,WAAA,CAAY,mBAAA;AAAA,KASF,uBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,KAGN,mBAAA;EACV,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA"}