@chem-po/react-native 0.0.12 → 0.0.13
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":";;;;;;
|
|
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 +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":"
|
|
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;
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chem-po/react-native",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "lib/
|
|
3
|
+
"version": "0.0.13",
|
|
4
|
+
"main": "lib/module/index.js",
|
|
5
5
|
"types": "lib/typescript/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"react-native-paper-dates": "^0.22.42",
|
|
46
46
|
"react-native-svg": "15.11.2",
|
|
47
47
|
"zustand": "^4.3.3",
|
|
48
|
-
"@chem-po/core": "0.0.
|
|
49
|
-
"@chem-po/react": "0.0.
|
|
48
|
+
"@chem-po/core": "0.0.13",
|
|
49
|
+
"@chem-po/react": "0.0.13"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@babel/core": "^7.26.0",
|
|
@@ -81,8 +81,18 @@
|
|
|
81
81
|
"source": "src",
|
|
82
82
|
"output": "lib",
|
|
83
83
|
"targets": [
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
[
|
|
85
|
+
"commonjs",
|
|
86
|
+
{
|
|
87
|
+
"esm": true
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
"module",
|
|
92
|
+
{
|
|
93
|
+
"esm": true
|
|
94
|
+
}
|
|
95
|
+
],
|
|
86
96
|
[
|
|
87
97
|
"typescript",
|
|
88
98
|
{
|
|
@@ -101,5 +111,17 @@
|
|
|
101
111
|
"watch": "bob build --watch",
|
|
102
112
|
"clean": "rm -rf lib"
|
|
103
113
|
},
|
|
104
|
-
"
|
|
114
|
+
"exports": {
|
|
115
|
+
"import": {
|
|
116
|
+
"types": "./lib/typescript/module/index.d.ts",
|
|
117
|
+
"default": "./lib/module/index.js",
|
|
118
|
+
"source": "./src/index.ts"
|
|
119
|
+
},
|
|
120
|
+
"require": {
|
|
121
|
+
"types": "./lib/typescript/commonjs/index.d.ts",
|
|
122
|
+
"default": "./lib/commonjs/index.js",
|
|
123
|
+
"source": "./src/index.ts"
|
|
124
|
+
},
|
|
125
|
+
"./package.json": "./package.json"
|
|
126
|
+
}
|
|
105
127
|
}
|
package/src/constants/toast.ts
CHANGED
|
@@ -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
|
|
12
|
+
} as
|
|
13
|
+
| ComponentProps<typeof NotifierComponents.Notification>
|
|
14
|
+
| ComponentProps<typeof NotifierComponents.Alert>
|
|
14
15
|
Notifier.showNotification({
|
|
15
16
|
title,
|
|
16
17
|
description: message,
|