crossnotify 0.0.1
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/LICENSE +21 -0
- package/README.md +181 -0
- package/lib/module/Provider.js +27 -0
- package/lib/module/Provider.js.map +1 -0
- package/lib/module/Toast.native.js +323 -0
- package/lib/module/Toast.native.js.map +1 -0
- package/lib/module/Toaster.native.js +130 -0
- package/lib/module/Toaster.native.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/index.web.js +85 -0
- package/lib/module/index.web.js.map +1 -0
- package/lib/module/notify.js +67 -0
- package/lib/module/notify.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/store.js +95 -0
- package/lib/module/store.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/Provider.d.ts +9 -0
- package/lib/typescript/src/Provider.d.ts.map +1 -0
- package/lib/typescript/src/Toast.native.d.ts +15 -0
- package/lib/typescript/src/Toast.native.d.ts.map +1 -0
- package/lib/typescript/src/Toaster.native.d.ts +7 -0
- package/lib/typescript/src/Toaster.native.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/index.web.d.ts +22 -0
- package/lib/typescript/src/index.web.d.ts.map +1 -0
- package/lib/typescript/src/notify.d.ts +13 -0
- package/lib/typescript/src/notify.d.ts.map +1 -0
- package/lib/typescript/src/store.d.ts +29 -0
- package/lib/typescript/src/store.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +47 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +146 -0
package/package.json
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "crossnotify",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "One cross-platform in-app notification API for React Native / Expo apps",
|
|
5
|
+
"main": "./lib/module/index.js",
|
|
6
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
7
|
+
"source": "./src/index.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"crossnotify-source": "./src/index.ts",
|
|
11
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
12
|
+
"default": "./lib/module/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"lib",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"example": "pnpm --filter crossnotify-example",
|
|
23
|
+
"clean": "del-cli lib",
|
|
24
|
+
"prepare": "pnpm build",
|
|
25
|
+
"build": "bob build",
|
|
26
|
+
"typecheck": "tsc",
|
|
27
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
28
|
+
"test": "jest"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"react-native",
|
|
32
|
+
"expo",
|
|
33
|
+
"ios",
|
|
34
|
+
"android",
|
|
35
|
+
"toast",
|
|
36
|
+
"notification"
|
|
37
|
+
],
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/SamDingore/crossnotify.git"
|
|
41
|
+
},
|
|
42
|
+
"author": "Sam Dingore <sameer.dingore@innovativeconfiguration.com> (https://github.com/SamDingore)",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/SamDingore/crossnotify/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/SamDingore/crossnotify#readme",
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"registry": "https://registry.npmjs.org/",
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@eslint/compat": "^2.1.0",
|
|
54
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
55
|
+
"@eslint/js": "^10.0.1",
|
|
56
|
+
"@jest/globals": "^29.7.0",
|
|
57
|
+
"@react-native/babel-preset": "0.85.0",
|
|
58
|
+
"@react-native/eslint-config": "0.85.0",
|
|
59
|
+
"@react-native/jest-preset": "0.85.0",
|
|
60
|
+
"@types/react": "^19.2.0",
|
|
61
|
+
"del-cli": "^7.0.0",
|
|
62
|
+
"eslint": "^9.39.4",
|
|
63
|
+
"eslint-config-prettier": "^10.1.8",
|
|
64
|
+
"eslint-plugin-ft-flow": "^3.0.11",
|
|
65
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
66
|
+
"jest": "^29.7.0",
|
|
67
|
+
"prettier": "^3.8.3",
|
|
68
|
+
"react": "19.2.0",
|
|
69
|
+
"react-native": "0.83.6",
|
|
70
|
+
"react-native-builder-bob": "^0.43.0",
|
|
71
|
+
"typescript": "^6.0.3"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"react": "*",
|
|
75
|
+
"react-native": "*",
|
|
76
|
+
"expo-blur": "*",
|
|
77
|
+
"expo-haptics": "*",
|
|
78
|
+
"expo-symbols": "*",
|
|
79
|
+
"react-native-reanimated": "*",
|
|
80
|
+
"react-native-safe-area-context": "*",
|
|
81
|
+
"sonner": "*"
|
|
82
|
+
},
|
|
83
|
+
"peerDependenciesMeta": {
|
|
84
|
+
"expo-blur": { "optional": true },
|
|
85
|
+
"expo-haptics": { "optional": true },
|
|
86
|
+
"expo-symbols": { "optional": true },
|
|
87
|
+
"react-native-reanimated": { "optional": true },
|
|
88
|
+
"react-native-safe-area-context": { "optional": true },
|
|
89
|
+
"sonner": { "optional": true }
|
|
90
|
+
},
|
|
91
|
+
"workspaces": [
|
|
92
|
+
"example"
|
|
93
|
+
],
|
|
94
|
+
"packageManager": "pnpm@11.0.9",
|
|
95
|
+
"react-native-builder-bob": {
|
|
96
|
+
"source": "src",
|
|
97
|
+
"output": "lib",
|
|
98
|
+
"targets": [
|
|
99
|
+
[
|
|
100
|
+
"module",
|
|
101
|
+
{
|
|
102
|
+
"esm": true
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"typescript",
|
|
107
|
+
{
|
|
108
|
+
"project": "tsconfig.build.json"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"prettier": {
|
|
114
|
+
"quoteProps": "consistent",
|
|
115
|
+
"singleQuote": true,
|
|
116
|
+
"tabWidth": 2,
|
|
117
|
+
"trailingComma": "es5",
|
|
118
|
+
"useTabs": false
|
|
119
|
+
},
|
|
120
|
+
"jest": {
|
|
121
|
+
"preset": "@react-native/jest-preset",
|
|
122
|
+
"testEnvironmentOptions": {
|
|
123
|
+
"customExportConditions": [
|
|
124
|
+
"require",
|
|
125
|
+
"react-native",
|
|
126
|
+
"crossnotify-source"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"modulePathIgnorePatterns": [
|
|
130
|
+
"<rootDir>/example/node_modules",
|
|
131
|
+
"<rootDir>/lib/"
|
|
132
|
+
],
|
|
133
|
+
"transformIgnorePatterns": [
|
|
134
|
+
"node_modules/(?!\\.pnpm|(jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?|@react-navigation)"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"create-react-native-library": {
|
|
138
|
+
"type": "library",
|
|
139
|
+
"languages": "js",
|
|
140
|
+
"tools": [
|
|
141
|
+
"eslint",
|
|
142
|
+
"jest"
|
|
143
|
+
],
|
|
144
|
+
"version": "0.63.0"
|
|
145
|
+
}
|
|
146
|
+
}
|