@chem-po/react-native 0.0.12 → 0.0.14

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.
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeNotifier","require","nativeToast","exports","closeMessage","Notifier","hideNotification","showMessage","title","type","duration","message","Component","NotifierComponents","Notification","Alert","componentProps","alertType","showNotification","description"],"sourceRoot":"..\\..\\..\\src","sources":["constants/toast.ts"],"mappings":";;;;;;AACA,IAAAA,oBAAA,GAAAC,OAAA;AAIA;AACO,MAAMC,WAA+B,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAC7CE,YAAY,EAAEA,CAAA,KAAMC,6BAAQ,CAACC,gBAAgB,CAAC,CAAC;EAC/CC,WAAW,EAAEA,CAAC;IAAEC,KAAK;IAAEC,IAAI;IAAEC,QAAQ;IAAEC;EAAQ,CAAC,KAAK;IACnD,MAAMC,SAAS,GAAGH,IAAI,KAAK,MAAM,GAAGI,uCAAkB,CAACC,YAAY,GAAGD,uCAAkB,CAACE,KAAK;IAC9F,MAAMC,cAAc,GAAG;MACrBC,SAAS,EAAER,IAAI,KAAK,OAAO,GAAG,OAAO,GAAG;IAC1C,CAAqD;IACrDJ,6BAAQ,CAACa,gBAAgB,CAAC;MACxBV,KAAK;MACLW,WAAW,EAAER,OAAO;MACpBD,QAAQ;MACRE,SAAS;MACTI;IACF,CAAC,CAAC;IACF,OAAO,MAAM;EACf;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeNotifier","require","nativeToast","exports","closeMessage","Notifier","hideNotification","showMessage","title","type","duration","message","Component","NotifierComponents","Notification","Alert","componentProps","alertType","showNotification","description"],"sourceRoot":"..\\..\\..\\src","sources":["constants/toast.ts"],"mappings":";;;;;;AAEA,IAAAA,oBAAA,GAAAC,OAAA;AAEA;AACO,MAAMC,WAA+B,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAC7CE,YAAY,EAAEA,CAAA,KAAMC,6BAAQ,CAACC,gBAAgB,CAAC,CAAC;EAC/CC,WAAW,EAAEA,CAAC;IAAEC,KAAK;IAAEC,IAAI;IAAEC,QAAQ;IAAEC;EAAQ,CAAC,KAAK;IACnD,MAAMC,SAAS,GAAGH,IAAI,KAAK,MAAM,GAAGI,uCAAkB,CAACC,YAAY,GAAGD,uCAAkB,CAACE,KAAK;IAC9F,MAAMC,cAAc,GAAG;MACrBC,SAAS,EAAER,IAAI,KAAK,OAAO,GAAG,OAAO,GAAG;IAC1C,CAEmD;IACnDJ,6BAAQ,CAACa,gBAAgB,CAAC;MACxBV,KAAK;MACLW,WAAW,EAAER,OAAO;MACpBD,QAAQ;MACRE,SAAS;MACTI;IACF,CAAC,CAAC;IACF,OAAO,MAAM;EACf;AACF,CAAC","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import { Notifier, NotifierComponents } from 'react-native-notifier';
2
+
2
3
  // react-native toast messages
3
4
  export const nativeToast = {
4
5
  closeMessage: () => Notifier.hideNotification(),
@@ -1 +1 @@
1
- {"version":3,"names":["Notifier","NotifierComponents","nativeToast","closeMessage","hideNotification","showMessage","title","type","duration","message","Component","Notification","Alert","componentProps","alertType","showNotification","description"],"sourceRoot":"..\\..\\..\\src","sources":["constants/toast.ts"],"mappings":"AACA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,uBAAuB;AAIpE;AACA,OAAO,MAAMC,WAA+B,GAAG;EAC7CC,YAAY,EAAEA,CAAA,KAAMH,QAAQ,CAACI,gBAAgB,CAAC,CAAC;EAC/CC,WAAW,EAAEA,CAAC;IAAEC,KAAK;IAAEC,IAAI;IAAEC,QAAQ;IAAEC;EAAQ,CAAC,KAAK;IACnD,MAAMC,SAAS,GAAGH,IAAI,KAAK,MAAM,GAAGN,kBAAkB,CAACU,YAAY,GAAGV,kBAAkB,CAACW,KAAK;IAC9F,MAAMC,cAAc,GAAG;MACrBC,SAAS,EAAEP,IAAI,KAAK,OAAO,GAAG,OAAO,GAAG;IAC1C,CAAqD;IACrDP,QAAQ,CAACe,gBAAgB,CAAC;MACxBT,KAAK;MACLU,WAAW,EAAEP,OAAO;MACpBD,QAAQ;MACRE,SAAS;MACTG;IACF,CAAC,CAAC;IACF,OAAO,MAAM;EACf;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Notifier","NotifierComponents","nativeToast","closeMessage","hideNotification","showMessage","title","type","duration","message","Component","Notification","Alert","componentProps","alertType","showNotification","description"],"sourceRoot":"..\\..\\..\\src","sources":["constants/toast.ts"],"mappings":"AAEA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,uBAAuB;;AAEpE;AACA,OAAO,MAAMC,WAA+B,GAAG;EAC7CC,YAAY,EAAEA,CAAA,KAAMH,QAAQ,CAACI,gBAAgB,CAAC,CAAC;EAC/CC,WAAW,EAAEA,CAAC;IAAEC,KAAK;IAAEC,IAAI;IAAEC,QAAQ;IAAEC;EAAQ,CAAC,KAAK;IACnD,MAAMC,SAAS,GAAGH,IAAI,KAAK,MAAM,GAAGN,kBAAkB,CAACU,YAAY,GAAGV,kBAAkB,CAACW,KAAK;IAC9F,MAAMC,cAAc,GAAG;MACrBC,SAAS,EAAEP,IAAI,KAAK,OAAO,GAAG,OAAO,GAAG;IAC1C,CAEmD;IACnDP,QAAQ,CAACe,gBAAgB,CAAC;MACxBT,KAAK;MACLU,WAAW,EAAEP,OAAO;MACpBD,QAAQ;MACRE,SAAS;MACTG;IACF,CAAC,CAAC;IACF,OAAO,MAAM;EACf;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/constants/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAMnD,eAAO,MAAM,WAAW,EAAE,kBAgBzB,CAAA"}
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/constants/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAKnD,eAAO,MAAM,WAAW,EAAE,kBAkBzB,CAAA"}
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@chem-po/react-native",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "types": "lib/typescript/index.d.ts",
6
+ "source": "src/index.ts",
6
7
  "publishConfig": {
7
- "access": "public"
8
+ "access": "public",
9
+ "react-native": "src/index.ts"
8
10
  },
9
11
  "sideEffects": false,
10
12
  "license": "MIT",
@@ -45,8 +47,8 @@
45
47
  "react-native-paper-dates": "^0.22.42",
46
48
  "react-native-svg": "15.11.2",
47
49
  "zustand": "^4.3.3",
48
- "@chem-po/core": "0.0.12",
49
- "@chem-po/react": "0.0.12"
50
+ "@chem-po/core": "0.0.14",
51
+ "@chem-po/react": "0.0.14"
50
52
  },
51
53
  "devDependencies": {
52
54
  "@babel/core": "^7.26.0",
@@ -1,7 +1,6 @@
1
1
  import { ToastProviderProps } from '@chem-po/react'
2
+ import { ComponentProps } from 'react'
2
3
  import { Notifier, NotifierComponents } from 'react-native-notifier'
3
- import { AlertComponentProps } from 'react-native-notifier/lib/typescript/src/components/Alert'
4
- import { NotificationComponentProps } from 'react-native-notifier/lib/typescript/src/components/Notification'
5
4
 
6
5
  // react-native toast messages
7
6
  export const nativeToast: ToastProviderProps = {
@@ -10,7 +9,9 @@ export const nativeToast: ToastProviderProps = {
10
9
  const Component = type === 'info' ? NotifierComponents.Notification : NotifierComponents.Alert
11
10
  const componentProps = {
12
11
  alertType: type === 'error' ? 'error' : 'success',
13
- } as NotificationComponentProps | AlertComponentProps
12
+ } as
13
+ | ComponentProps<typeof NotifierComponents.Notification>
14
+ | ComponentProps<typeof NotifierComponents.Alert>
14
15
  Notifier.showNotification({
15
16
  title,
16
17
  description: message,