@gaddario98/react-native-core 1.0.11 → 1.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.
- package/README.md +15 -0
- package/dist/config/index.mjs +27 -17
- package/dist/config/index.mjs.map +1 -1
- package/dist/index.mjs +27 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +27 -19
package/README.md
ADDED
package/dist/config/index.mjs
CHANGED
|
@@ -5,25 +5,35 @@ import { setReactNativeStorage } from '@gaddario98/react-native-state';
|
|
|
5
5
|
import { setReactNativePageConfig } from '@gaddario98/react-native-pages';
|
|
6
6
|
import { setEndpoints } from '@gaddario98/react-queries';
|
|
7
7
|
import { setAppLinks } from '@gaddario98/react-native-utiles';
|
|
8
|
-
import {
|
|
8
|
+
import { setDefaultFormContainer } from '@gaddario98/react-form';
|
|
9
9
|
|
|
10
|
-
const setReactNativeConfig = ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
const setReactNativeConfig = ({
|
|
11
|
+
pages,
|
|
12
|
+
endpoints,
|
|
13
|
+
localization,
|
|
14
|
+
links
|
|
15
|
+
}) => {
|
|
16
|
+
if (localization === null || localization === void 0 ? void 0 : localization.i18nInitializer) {
|
|
17
|
+
setI18nInitializer(localization.i18nInitializer);
|
|
18
|
+
}
|
|
19
|
+
if (localization === null || localization === void 0 ? void 0 : localization.translationAdapter) {
|
|
20
|
+
setTranslationAdapter(localization.translationAdapter);
|
|
21
|
+
}
|
|
22
|
+
if (localization === null || localization === void 0 ? void 0 : localization.localResources) {
|
|
23
|
+
initializeI18n(localization.localResources);
|
|
24
|
+
}
|
|
25
|
+
setReactNativeStorage();
|
|
26
|
+
setReactNativePageConfig(pages);
|
|
27
|
+
setEndpoints(endpoints);
|
|
28
|
+
setAppLinks(links);
|
|
29
|
+
setDefaultFormContainer(({
|
|
30
|
+
children
|
|
31
|
+
}) => {
|
|
32
|
+
return jsx(KeyboardAvoidingView, {
|
|
33
|
+
behavior: Platform.OS === "ios" ? "padding" : undefined,
|
|
34
|
+
children: children
|
|
26
35
|
});
|
|
36
|
+
});
|
|
27
37
|
};
|
|
28
38
|
|
|
29
39
|
export { setReactNativeConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../config/index.tsx"],"sourcesContent":["import { setReactNativeStorage } from \"../state\";\nimport { setEndpoints } from \"../queries\";\nimport { PageConfigProps, setReactNativePageConfig } from \"../pages\";\nimport {\n initializeI18n,\n setI18nInitializer,\n setTranslationAdapter,\n} from \"../localization\";\nimport { AppLinks, setAppLinks } from \"../utiles\";\nimport { KeyboardAvoidingView, Platform } from \"react-native\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../config/index.tsx"],"sourcesContent":["import { setReactNativeStorage } from \"../state\";\nimport { setEndpoints } from \"../queries\";\nimport { PageConfigProps, setReactNativePageConfig } from \"../pages\";\nimport {\n initializeI18n,\n setI18nInitializer,\n setTranslationAdapter,\n} from \"../localization\";\nimport { AppLinks, setAppLinks } from \"../utiles\";\nimport { KeyboardAvoidingView, Platform } from \"react-native\";\nimport { setDefaultFormContainer } from \"../form\";\n\nexport interface SetReactNativeConfigProps {\n pages: Partial<PageConfigProps>;\n endpoints: Record<string, string>;\n links: Partial<AppLinks>;\n localization?: {\n i18nInitializer: Parameters<typeof setI18nInitializer>[0];\n translationAdapter: Parameters<typeof setTranslationAdapter>[0];\n localResources?: Record<string, object>;\n };\n}\n\nexport const setReactNativeConfig = ({\n pages,\n endpoints,\n localization,\n links,\n}: SetReactNativeConfigProps) => {\n if (localization?.i18nInitializer) {\n setI18nInitializer(localization.i18nInitializer);\n }\n if (localization?.translationAdapter) {\n setTranslationAdapter(localization.translationAdapter);\n }\n if (localization?.localResources) {\n initializeI18n(localization.localResources);\n }\n setReactNativeStorage();\n setReactNativePageConfig(pages);\n setEndpoints(endpoints);\n setAppLinks(links);\n setDefaultFormContainer(({ children }) => {\n return (\n <KeyboardAvoidingView\n behavior={Platform.OS === \"ios\" ? \"padding\" : undefined}\n >\n {children}\n </KeyboardAvoidingView>\n );\n });\n};\n"],"names":["setReactNativeConfig","pages","endpoints","localization","links","i18nInitializer","setI18nInitializer","translationAdapter","setTranslationAdapter","localResources","initializeI18n","setReactNativeStorage","setReactNativePageConfig","setEndpoints","setAppLinks","setDefaultFormContainer","children","_jsx","KeyboardAvoidingView","behavior","Platform","OS","undefined"],"mappings":";;;;;;;;;AAuBO,MAAMA,oBAAoB,GAAGA,CAAC;EACnCC,KAAK;EACLC,SAAS;EACTC,YAAY;AACZC,EAAAA;AAAK,CACqB,KAAI;AAC9B,EAAA,IAAID,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEE,eAAe,EAAE;AACjCC,IAAAA,kBAAkB,CAACH,YAAY,CAACE,eAAe,CAAC;AAClD,EAAA;AACA,EAAA,IAAIF,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEI,kBAAkB,EAAE;AACpCC,IAAAA,qBAAqB,CAACL,YAAY,CAACI,kBAAkB,CAAC;AACxD,EAAA;AACA,EAAA,IAAIJ,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEM,cAAc,EAAE;AAChCC,IAAAA,cAAc,CAACP,YAAY,CAACM,cAAc,CAAC;AAC7C,EAAA;AACAE,EAAAA,qBAAqB,EAAE;EACvBC,wBAAwB,CAACX,KAAK,CAAC;EAC/BY,YAAY,CAACX,SAAS,CAAC;EACvBY,WAAW,CAACV,KAAK,CAAC;AAClBW,EAAAA,uBAAuB,CAAC,CAAC;AAAEC,IAAAA;AAAQ,GAAE,KAAI;IACvC,OACEC,IAACC,oBAAoB,EAAA;MACnBC,QAAQ,EAAEC,QAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,SAAS,GAAGC,SAAS;AAAAN,MAAAA,QAAA,EAEtDA;AAAQ,KAAA,CACY;AAE3B,EAAA,CAAC,CAAC;AACJ;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { setEndpoints } from '@gaddario98/react-queries';
|
|
|
10
10
|
export * from '@gaddario98/react-queries';
|
|
11
11
|
import { setAppLinks } from '@gaddario98/react-native-utiles';
|
|
12
12
|
export * from '@gaddario98/react-native-utiles';
|
|
13
|
-
import {
|
|
13
|
+
import { setDefaultFormContainer } from '@gaddario98/react-form';
|
|
14
14
|
export * from '@gaddario98/react-form';
|
|
15
15
|
export * from '@gaddario98/react-auth';
|
|
16
16
|
export * from '@gaddario98/expo';
|
|
@@ -18,23 +18,33 @@ export * from '@gaddario98/react-native-layouts';
|
|
|
18
18
|
export * from '@gaddario98/react-native-providers';
|
|
19
19
|
export * from '@gaddario98/react-native-tabs';
|
|
20
20
|
|
|
21
|
-
const setReactNativeConfig = ({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
const setReactNativeConfig = ({
|
|
22
|
+
pages,
|
|
23
|
+
endpoints,
|
|
24
|
+
localization,
|
|
25
|
+
links
|
|
26
|
+
}) => {
|
|
27
|
+
if (localization === null || localization === void 0 ? void 0 : localization.i18nInitializer) {
|
|
28
|
+
setI18nInitializer(localization.i18nInitializer);
|
|
29
|
+
}
|
|
30
|
+
if (localization === null || localization === void 0 ? void 0 : localization.translationAdapter) {
|
|
31
|
+
setTranslationAdapter(localization.translationAdapter);
|
|
32
|
+
}
|
|
33
|
+
if (localization === null || localization === void 0 ? void 0 : localization.localResources) {
|
|
34
|
+
initializeI18n(localization.localResources);
|
|
35
|
+
}
|
|
36
|
+
setReactNativeStorage();
|
|
37
|
+
setReactNativePageConfig(pages);
|
|
38
|
+
setEndpoints(endpoints);
|
|
39
|
+
setAppLinks(links);
|
|
40
|
+
setDefaultFormContainer(({
|
|
41
|
+
children
|
|
42
|
+
}) => {
|
|
43
|
+
return jsx(KeyboardAvoidingView, {
|
|
44
|
+
behavior: Platform.OS === "ios" ? "padding" : undefined,
|
|
45
|
+
children: children
|
|
37
46
|
});
|
|
47
|
+
});
|
|
38
48
|
};
|
|
39
49
|
|
|
40
50
|
export { setReactNativeConfig };
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../config/index.tsx"],"sourcesContent":["import { setReactNativeStorage } from \"../state\";\nimport { setEndpoints } from \"../queries\";\nimport { PageConfigProps, setReactNativePageConfig } from \"../pages\";\nimport {\n initializeI18n,\n setI18nInitializer,\n setTranslationAdapter,\n} from \"../localization\";\nimport { AppLinks, setAppLinks } from \"../utiles\";\nimport { KeyboardAvoidingView, Platform } from \"react-native\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../config/index.tsx"],"sourcesContent":["import { setReactNativeStorage } from \"../state\";\nimport { setEndpoints } from \"../queries\";\nimport { PageConfigProps, setReactNativePageConfig } from \"../pages\";\nimport {\n initializeI18n,\n setI18nInitializer,\n setTranslationAdapter,\n} from \"../localization\";\nimport { AppLinks, setAppLinks } from \"../utiles\";\nimport { KeyboardAvoidingView, Platform } from \"react-native\";\nimport { setDefaultFormContainer } from \"../form\";\n\nexport interface SetReactNativeConfigProps {\n pages: Partial<PageConfigProps>;\n endpoints: Record<string, string>;\n links: Partial<AppLinks>;\n localization?: {\n i18nInitializer: Parameters<typeof setI18nInitializer>[0];\n translationAdapter: Parameters<typeof setTranslationAdapter>[0];\n localResources?: Record<string, object>;\n };\n}\n\nexport const setReactNativeConfig = ({\n pages,\n endpoints,\n localization,\n links,\n}: SetReactNativeConfigProps) => {\n if (localization?.i18nInitializer) {\n setI18nInitializer(localization.i18nInitializer);\n }\n if (localization?.translationAdapter) {\n setTranslationAdapter(localization.translationAdapter);\n }\n if (localization?.localResources) {\n initializeI18n(localization.localResources);\n }\n setReactNativeStorage();\n setReactNativePageConfig(pages);\n setEndpoints(endpoints);\n setAppLinks(links);\n setDefaultFormContainer(({ children }) => {\n return (\n <KeyboardAvoidingView\n behavior={Platform.OS === \"ios\" ? \"padding\" : undefined}\n >\n {children}\n </KeyboardAvoidingView>\n );\n });\n};\n"],"names":["setReactNativeConfig","pages","endpoints","localization","links","i18nInitializer","setI18nInitializer","translationAdapter","setTranslationAdapter","localResources","initializeI18n","setReactNativeStorage","setReactNativePageConfig","setEndpoints","setAppLinks","setDefaultFormContainer","children","_jsx","KeyboardAvoidingView","behavior","Platform","OS","undefined"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBO,MAAMA,oBAAoB,GAAGA,CAAC;EACnCC,KAAK;EACLC,SAAS;EACTC,YAAY;AACZC,EAAAA;AAAK,CACqB,KAAI;AAC9B,EAAA,IAAID,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEE,eAAe,EAAE;AACjCC,IAAAA,kBAAkB,CAACH,YAAY,CAACE,eAAe,CAAC;AAClD,EAAA;AACA,EAAA,IAAIF,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEI,kBAAkB,EAAE;AACpCC,IAAAA,qBAAqB,CAACL,YAAY,CAACI,kBAAkB,CAAC;AACxD,EAAA;AACA,EAAA,IAAIJ,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEM,cAAc,EAAE;AAChCC,IAAAA,cAAc,CAACP,YAAY,CAACM,cAAc,CAAC;AAC7C,EAAA;AACAE,EAAAA,qBAAqB,EAAE;EACvBC,wBAAwB,CAACX,KAAK,CAAC;EAC/BY,YAAY,CAACX,SAAS,CAAC;EACvBY,WAAW,CAACV,KAAK,CAAC;AAClBW,EAAAA,uBAAuB,CAAC,CAAC;AAAEC,IAAAA;AAAQ,GAAE,KAAI;IACvC,OACEC,IAACC,oBAAoB,EAAA;MACnBC,QAAQ,EAAEC,QAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,SAAS,GAAGC,SAAS;AAAAN,MAAAA,QAAA,EAEtDA;AAAQ,KAAA,CACY;AAE3B,EAAA,CAAC,CAAC;AACJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaddario98/react-native-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,32 +12,40 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rollup -c rollup.config.js && rollup -c rollup.dts.config.js"
|
|
14
14
|
},
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@gaddario98/expo": "*",
|
|
17
|
-
"@gaddario98/react-auth": "*",
|
|
18
|
-
"@gaddario98/react-form": "*",
|
|
19
|
-
"@gaddario98/react-localization": "*",
|
|
20
|
-
"@gaddario98/react-native-layouts": "*",
|
|
21
|
-
"@gaddario98/react-native-pages": "*",
|
|
22
|
-
"@gaddario98/react-native-providers": "*",
|
|
23
|
-
"@gaddario98/react-native-state": "*",
|
|
24
|
-
"@gaddario98/react-native-tabs": "*",
|
|
25
|
-
"@gaddario98/react-native-utiles": "*",
|
|
26
|
-
"@gaddario98/react-queries": "*",
|
|
27
|
-
"@types/react": "*",
|
|
28
|
-
"@types/react-dom": "*",
|
|
29
|
-
"react-native": "*",
|
|
30
|
-
"rollup-plugin-dts": "*"
|
|
31
|
-
},
|
|
32
15
|
"devDependencies": {
|
|
16
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
33
17
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
18
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
34
19
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
35
20
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
21
|
+
"@types/react": "^19.2.0",
|
|
22
|
+
"@types/react-dom": "^19.2.0",
|
|
36
23
|
"@types/rollup-plugin-peer-deps-external": "^2",
|
|
24
|
+
"babel-plugin-react-compiler": "1",
|
|
25
|
+
"react": "^19.2.0",
|
|
26
|
+
"react-dom": "^19.2.0",
|
|
27
|
+
"react-native": "^0.81.0",
|
|
37
28
|
"rollup": "^4.40.0",
|
|
38
29
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
39
30
|
"typescript": "^5.8.3"
|
|
40
31
|
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@gaddario98/expo": "^1.0.14",
|
|
34
|
+
"@gaddario98/react-auth": "^1.0.13",
|
|
35
|
+
"@gaddario98/react-form": "^1.0.17",
|
|
36
|
+
"@gaddario98/react-localization": "^1.0.14",
|
|
37
|
+
"@gaddario98/react-native-layouts": "^1.0.15",
|
|
38
|
+
"@gaddario98/react-native-pages": "^1.0.14",
|
|
39
|
+
"@gaddario98/react-native-providers": "^1.0.13",
|
|
40
|
+
"@gaddario98/react-native-state": "^1.0.12",
|
|
41
|
+
"@gaddario98/react-native-tabs": "^1.0.18",
|
|
42
|
+
"@gaddario98/react-native-utiles": "^1.0.12",
|
|
43
|
+
"@gaddario98/react-queries": "^1.0.18"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=18.0.0 <20.0.0",
|
|
47
|
+
"react-native": "^0.81.0"
|
|
48
|
+
},
|
|
41
49
|
"exports": {
|
|
42
50
|
"./auth": {
|
|
43
51
|
"import": "./dist/auth/index.mjs",
|
|
@@ -94,7 +102,7 @@
|
|
|
94
102
|
},
|
|
95
103
|
"repository": {
|
|
96
104
|
"type": "git",
|
|
97
|
-
"url": "https://github.com/gaddario98/react-native-core"
|
|
105
|
+
"url": "git+https://github.com/gaddario98/react-native-core"
|
|
98
106
|
},
|
|
99
107
|
"keywords": [
|
|
100
108
|
"react-native",
|