@gaddario98/react-native-core 1.0.14 → 1.0.16

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.
Files changed (42) hide show
  1. package/dist/auth/index.js +1 -0
  2. package/dist/auth/index.js.map +1 -0
  3. package/dist/auth/index.mjs +1 -2
  4. package/dist/config/index.js +26 -0
  5. package/dist/config/index.js.map +1 -0
  6. package/dist/config/index.mjs +8 -22
  7. package/dist/config/index.mjs.map +1 -1
  8. package/dist/expo/index.js +1 -0
  9. package/dist/expo/index.js.map +1 -0
  10. package/dist/expo/index.mjs +1 -2
  11. package/dist/form/index.js +1 -0
  12. package/dist/form/index.js.map +1 -0
  13. package/dist/form/index.mjs +1 -2
  14. package/dist/index.js +26 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/index.mjs +8 -33
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/layouts/index.js +1 -0
  19. package/dist/layouts/index.js.map +1 -0
  20. package/dist/layouts/index.mjs +1 -2
  21. package/dist/localization/index.js +1 -0
  22. package/dist/localization/index.js.map +1 -0
  23. package/dist/localization/index.mjs +1 -2
  24. package/dist/pages/index.js +1 -0
  25. package/dist/pages/index.js.map +1 -0
  26. package/dist/pages/index.mjs +1 -2
  27. package/dist/providers/index.js +1 -0
  28. package/dist/providers/index.js.map +1 -0
  29. package/dist/providers/index.mjs +1 -2
  30. package/dist/queries/index.js +1 -0
  31. package/dist/queries/index.js.map +1 -0
  32. package/dist/queries/index.mjs +1 -2
  33. package/dist/state/index.js +1 -0
  34. package/dist/state/index.js.map +1 -0
  35. package/dist/state/index.mjs +1 -2
  36. package/dist/tabs/index.js +1 -0
  37. package/dist/tabs/index.js.map +1 -0
  38. package/dist/tabs/index.mjs +1 -2
  39. package/dist/utiles/index.js +1 -0
  40. package/dist/utiles/index.js.map +1 -0
  41. package/dist/utiles/index.mjs +1 -2
  42. package/package.json +59 -31
@@ -0,0 +1 @@
1
+ 'use strict';var reactAuth=require('@gaddario98/react-auth');Object.keys(reactAuth).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactAuth[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-auth';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-auth';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1,26 @@
1
+ 'use strict';var jsxRuntime=require('react/jsx-runtime'),reactNativeState=require('@gaddario98/react-native-state'),reactQueries=require('@gaddario98/react-queries'),reactNativePages=require('@gaddario98/react-native-pages'),reactLocalization=require('@gaddario98/react-localization'),reactNativeUtiles=require('@gaddario98/react-native-utiles'),reactNative=require('react-native'),reactForm=require('@gaddario98/react-form');var setReactNativeConfig = function setReactNativeConfig(_ref) {
2
+ var pages = _ref.pages,
3
+ endpoints = _ref.endpoints,
4
+ localization = _ref.localization,
5
+ links = _ref.links;
6
+ if (localization === null || localization === void 0 ? void 0 : localization.i18nInitializer) {
7
+ reactLocalization.setI18nInitializer(localization.i18nInitializer);
8
+ }
9
+ if (localization === null || localization === void 0 ? void 0 : localization.translationAdapter) {
10
+ reactLocalization.setTranslationAdapter(localization.translationAdapter);
11
+ }
12
+ if (localization === null || localization === void 0 ? void 0 : localization.localResources) {
13
+ reactLocalization.initializeI18n(localization.localResources);
14
+ }
15
+ reactNativeState.setReactNativeStorage();
16
+ reactNativePages.setReactNativePageConfig(pages);
17
+ reactQueries.setEndpoints(endpoints);
18
+ reactNativeUtiles.setAppLinks(links);
19
+ reactForm.setDefaultFormContainer(function (_ref2) {
20
+ var children = _ref2.children;
21
+ return jsxRuntime.jsx(reactNative.KeyboardAvoidingView, {
22
+ behavior: reactNative.Platform.OS === "ios" ? "padding" : undefined,
23
+ children: children
24
+ });
25
+ });
26
+ };exports.setReactNativeConfig=setReactNativeConfig;//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","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","_ref","pages","endpoints","localization","links","i18nInitializer","setI18nInitializer","translationAdapter","setTranslationAdapter","localResources","initializeI18n","setReactNativeStorage","setReactNativePageConfig","setEndpoints","setAppLinks","setDefaultFormContainer","_ref2","children","_jsx","KeyboardAvoidingView","behavior","Platform","OS","undefined"],"mappings":"8aAuBaA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAKD;AAAA,EAAA,IAJ9BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,KAAK,GAAAJ,IAAA,CAALI,KAAK;AAEL,EAAA,IAAID,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEE,eAAe,EAAE;AACjCC,IAAAA,oCAAkB,CAACH,YAAY,CAACE,eAAe,CAAC;AAClD,EAAA;AACA,EAAA,IAAIF,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEI,kBAAkB,EAAE;AACpCC,IAAAA,uCAAqB,CAACL,YAAY,CAACI,kBAAkB,CAAC;AACxD,EAAA;AACA,EAAA,IAAIJ,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEM,cAAc,EAAE;AAChCC,IAAAA,gCAAc,CAACP,YAAY,CAACM,cAAc,CAAC;AAC7C,EAAA;AACAE,EAAAA,sCAAqB,EAAE;EACvBC,yCAAwB,CAACX,KAAK,CAAC;EAC/BY,yBAAY,CAACX,SAAS,CAAC;EACvBY,6BAAW,CAACV,KAAK,CAAC;EAClBW,iCAAuB,CAAC,UAAAC,KAAA,EAAiB;AAAA,IAAA,IAAdC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IACjC,OACEC,eAACC,gCAAoB,EAAA;MACnBC,QAAQ,EAAEC,oBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,SAAS,GAAGC,SAAS;AAAAN,MAAAA,QAAA,EAEtDA;AAAQ,KAAA,CACY;AAE3B,EAAA,CAAC,CAAC;AACJ"}
@@ -1,18 +1,8 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { KeyboardAvoidingView, Platform } from 'react-native';
3
- import { setI18nInitializer, setTranslationAdapter, initializeI18n } from '@gaddario98/react-localization';
4
- import { setReactNativeStorage } from '@gaddario98/react-native-state';
5
- import { setReactNativePageConfig } from '@gaddario98/react-native-pages';
6
- import { setEndpoints } from '@gaddario98/react-queries';
7
- import { setAppLinks } from '@gaddario98/react-native-utiles';
8
- import { setDefaultFormContainer } from '@gaddario98/react-form';
9
-
10
- const setReactNativeConfig = ({
11
- pages,
12
- endpoints,
13
- localization,
14
- links
15
- }) => {
1
+ import {jsx}from'react/jsx-runtime';import {setReactNativeStorage}from'@gaddario98/react-native-state';import {setEndpoints}from'@gaddario98/react-queries';import {setReactNativePageConfig}from'@gaddario98/react-native-pages';import {setI18nInitializer,setTranslationAdapter,initializeI18n}from'@gaddario98/react-localization';import {setAppLinks}from'@gaddario98/react-native-utiles';import {KeyboardAvoidingView,Platform}from'react-native';import {setDefaultFormContainer}from'@gaddario98/react-form';var setReactNativeConfig = function setReactNativeConfig(_ref) {
2
+ var pages = _ref.pages,
3
+ endpoints = _ref.endpoints,
4
+ localization = _ref.localization,
5
+ links = _ref.links;
16
6
  if (localization === null || localization === void 0 ? void 0 : localization.i18nInitializer) {
17
7
  setI18nInitializer(localization.i18nInitializer);
18
8
  }
@@ -26,15 +16,11 @@ const setReactNativeConfig = ({
26
16
  setReactNativePageConfig(pages);
27
17
  setEndpoints(endpoints);
28
18
  setAppLinks(links);
29
- setDefaultFormContainer(({
30
- children
31
- }) => {
19
+ setDefaultFormContainer(function (_ref2) {
20
+ var children = _ref2.children;
32
21
  return jsx(KeyboardAvoidingView, {
33
22
  behavior: Platform.OS === "ios" ? "padding" : undefined,
34
23
  children: children
35
24
  });
36
25
  });
37
- };
38
-
39
- export { setReactNativeConfig };
40
- //# sourceMappingURL=index.mjs.map
26
+ };export{setReactNativeConfig};//# sourceMappingURL=index.mjs.map
@@ -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 { 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;;;;"}
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","_ref","pages","endpoints","localization","links","i18nInitializer","setI18nInitializer","translationAdapter","setTranslationAdapter","localResources","initializeI18n","setReactNativeStorage","setReactNativePageConfig","setEndpoints","setAppLinks","setDefaultFormContainer","_ref2","children","_jsx","KeyboardAvoidingView","behavior","Platform","OS","undefined"],"mappings":"2fAuBaA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAKD;AAAA,EAAA,IAJ9BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,KAAK,GAAAJ,IAAA,CAALI,KAAK;AAEL,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;EAClBW,uBAAuB,CAAC,UAAAC,KAAA,EAAiB;AAAA,IAAA,IAAdC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IACjC,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"}
@@ -0,0 +1 @@
1
+ 'use strict';var expo=require('@gaddario98/expo');Object.keys(expo).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return expo[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/expo';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/expo';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactForm=require('@gaddario98/react-form');Object.keys(reactForm).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactForm[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-form';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-form';//# sourceMappingURL=index.mjs.map
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
1
+ 'use strict';var reactAuth=require('@gaddario98/react-auth'),jsxRuntime=require('react/jsx-runtime'),reactNativeState=require('@gaddario98/react-native-state'),reactQueries=require('@gaddario98/react-queries'),reactNativePages=require('@gaddario98/react-native-pages'),reactLocalization=require('@gaddario98/react-localization'),reactNativeUtiles=require('@gaddario98/react-native-utiles'),reactNative=require('react-native'),reactForm=require('@gaddario98/react-form'),expo=require('@gaddario98/expo'),reactNativeLayouts=require('@gaddario98/react-native-layouts'),reactNativeProviders=require('@gaddario98/react-native-providers'),reactNativeTabs=require('@gaddario98/react-native-tabs');var setReactNativeConfig = function setReactNativeConfig(_ref) {
2
+ var pages = _ref.pages,
3
+ endpoints = _ref.endpoints,
4
+ localization = _ref.localization,
5
+ links = _ref.links;
6
+ if (localization === null || localization === void 0 ? void 0 : localization.i18nInitializer) {
7
+ reactLocalization.setI18nInitializer(localization.i18nInitializer);
8
+ }
9
+ if (localization === null || localization === void 0 ? void 0 : localization.translationAdapter) {
10
+ reactLocalization.setTranslationAdapter(localization.translationAdapter);
11
+ }
12
+ if (localization === null || localization === void 0 ? void 0 : localization.localResources) {
13
+ reactLocalization.initializeI18n(localization.localResources);
14
+ }
15
+ reactNativeState.setReactNativeStorage();
16
+ reactNativePages.setReactNativePageConfig(pages);
17
+ reactQueries.setEndpoints(endpoints);
18
+ reactNativeUtiles.setAppLinks(links);
19
+ reactForm.setDefaultFormContainer(function (_ref2) {
20
+ var children = _ref2.children;
21
+ return jsxRuntime.jsx(reactNative.KeyboardAvoidingView, {
22
+ behavior: reactNative.Platform.OS === "ios" ? "padding" : undefined,
23
+ children: children
24
+ });
25
+ });
26
+ };exports.setReactNativeConfig=setReactNativeConfig;Object.keys(reactAuth).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactAuth[k]}})});Object.keys(reactNativeState).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeState[k]}})});Object.keys(reactQueries).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactQueries[k]}})});Object.keys(reactNativePages).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativePages[k]}})});Object.keys(reactLocalization).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactLocalization[k]}})});Object.keys(reactNativeUtiles).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeUtiles[k]}})});Object.keys(reactForm).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactForm[k]}})});Object.keys(expo).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return expo[k]}})});Object.keys(reactNativeLayouts).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeLayouts[k]}})});Object.keys(reactNativeProviders).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeProviders[k]}})});Object.keys(reactNativeTabs).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeTabs[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","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","_ref","pages","endpoints","localization","links","i18nInitializer","setI18nInitializer","translationAdapter","setTranslationAdapter","localResources","initializeI18n","setReactNativeStorage","setReactNativePageConfig","setEndpoints","setAppLinks","setDefaultFormContainer","_ref2","children","_jsx","KeyboardAvoidingView","behavior","Platform","OS","undefined"],"mappings":"srBAuBaA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAKD;AAAA,EAAA,IAJ9BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,KAAK,GAAAJ,IAAA,CAALI,KAAK;AAEL,EAAA,IAAID,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEE,eAAe,EAAE;AACjCC,IAAAA,oCAAkB,CAACH,YAAY,CAACE,eAAe,CAAC;AAClD,EAAA;AACA,EAAA,IAAIF,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEI,kBAAkB,EAAE;AACpCC,IAAAA,uCAAqB,CAACL,YAAY,CAACI,kBAAkB,CAAC;AACxD,EAAA;AACA,EAAA,IAAIJ,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CAAEM,cAAc,EAAE;AAChCC,IAAAA,gCAAc,CAACP,YAAY,CAACM,cAAc,CAAC;AAC7C,EAAA;AACAE,EAAAA,sCAAqB,EAAE;EACvBC,yCAAwB,CAACX,KAAK,CAAC;EAC/BY,yBAAY,CAACX,SAAS,CAAC;EACvBY,6BAAW,CAACV,KAAK,CAAC;EAClBW,iCAAuB,CAAC,UAAAC,KAAA,EAAiB;AAAA,IAAA,IAAdC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IACjC,OACEC,eAACC,gCAAoB,EAAA;MACnBC,QAAQ,EAAEC,oBAAQ,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
@@ -1,29 +1,8 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { KeyboardAvoidingView, Platform } from 'react-native';
3
- import { setI18nInitializer, setTranslationAdapter, initializeI18n } from '@gaddario98/react-localization';
4
- export * from '@gaddario98/react-localization';
5
- import { setReactNativeStorage } from '@gaddario98/react-native-state';
6
- export * from '@gaddario98/react-native-state';
7
- import { setReactNativePageConfig } from '@gaddario98/react-native-pages';
8
- export * from '@gaddario98/react-native-pages';
9
- import { setEndpoints } from '@gaddario98/react-queries';
10
- export * from '@gaddario98/react-queries';
11
- import { setAppLinks } from '@gaddario98/react-native-utiles';
12
- export * from '@gaddario98/react-native-utiles';
13
- import { setDefaultFormContainer } from '@gaddario98/react-form';
14
- export * from '@gaddario98/react-form';
15
- export * from '@gaddario98/react-auth';
16
- export * from '@gaddario98/expo';
17
- export * from '@gaddario98/react-native-layouts';
18
- export * from '@gaddario98/react-native-providers';
19
- export * from '@gaddario98/react-native-tabs';
20
-
21
- const setReactNativeConfig = ({
22
- pages,
23
- endpoints,
24
- localization,
25
- links
26
- }) => {
1
+ export*from'@gaddario98/react-auth';import {jsx}from'react/jsx-runtime';import {setReactNativeStorage}from'@gaddario98/react-native-state';export*from'@gaddario98/react-native-state';import {setEndpoints}from'@gaddario98/react-queries';export*from'@gaddario98/react-queries';import {setReactNativePageConfig}from'@gaddario98/react-native-pages';export*from'@gaddario98/react-native-pages';import {setI18nInitializer,setTranslationAdapter,initializeI18n}from'@gaddario98/react-localization';export*from'@gaddario98/react-localization';import {setAppLinks}from'@gaddario98/react-native-utiles';export*from'@gaddario98/react-native-utiles';import {KeyboardAvoidingView,Platform}from'react-native';import {setDefaultFormContainer}from'@gaddario98/react-form';export*from'@gaddario98/react-form';export*from'@gaddario98/expo';export*from'@gaddario98/react-native-layouts';export*from'@gaddario98/react-native-providers';export*from'@gaddario98/react-native-tabs';var setReactNativeConfig = function setReactNativeConfig(_ref) {
2
+ var pages = _ref.pages,
3
+ endpoints = _ref.endpoints,
4
+ localization = _ref.localization,
5
+ links = _ref.links;
27
6
  if (localization === null || localization === void 0 ? void 0 : localization.i18nInitializer) {
28
7
  setI18nInitializer(localization.i18nInitializer);
29
8
  }
@@ -37,15 +16,11 @@ const setReactNativeConfig = ({
37
16
  setReactNativePageConfig(pages);
38
17
  setEndpoints(endpoints);
39
18
  setAppLinks(links);
40
- setDefaultFormContainer(({
41
- children
42
- }) => {
19
+ setDefaultFormContainer(function (_ref2) {
20
+ var children = _ref2.children;
43
21
  return jsx(KeyboardAvoidingView, {
44
22
  behavior: Platform.OS === "ios" ? "padding" : undefined,
45
23
  children: children
46
24
  });
47
25
  });
48
- };
49
-
50
- export { setReactNativeConfig };
51
- //# sourceMappingURL=index.mjs.map
26
+ };export{setReactNativeConfig};//# sourceMappingURL=index.mjs.map
@@ -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 { 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;;;;"}
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","_ref","pages","endpoints","localization","links","i18nInitializer","setI18nInitializer","translationAdapter","setTranslationAdapter","localResources","initializeI18n","setReactNativeStorage","setReactNativePageConfig","setEndpoints","setAppLinks","setDefaultFormContainer","_ref2","children","_jsx","KeyboardAvoidingView","behavior","Platform","OS","undefined"],"mappings":"k8BAuBaA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAKD;AAAA,EAAA,IAJ9BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,KAAK,GAAAJ,IAAA,CAALI,KAAK;AAEL,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;EAClBW,uBAAuB,CAAC,UAAAC,KAAA,EAAiB;AAAA,IAAA,IAAdC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IACjC,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"}
@@ -0,0 +1 @@
1
+ 'use strict';var reactNativeLayouts=require('@gaddario98/react-native-layouts');Object.keys(reactNativeLayouts).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeLayouts[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-native-layouts';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-native-layouts';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactLocalization=require('@gaddario98/react-localization');Object.keys(reactLocalization).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactLocalization[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-localization';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-localization';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactNativePages=require('@gaddario98/react-native-pages');Object.keys(reactNativePages).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativePages[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-native-pages';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-native-pages';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactNativeProviders=require('@gaddario98/react-native-providers');Object.keys(reactNativeProviders).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeProviders[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-native-providers';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-native-providers';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactQueries=require('@gaddario98/react-queries');Object.keys(reactQueries).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactQueries[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-queries';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-queries';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactNativeState=require('@gaddario98/react-native-state');Object.keys(reactNativeState).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeState[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-native-state';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-native-state';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactNativeTabs=require('@gaddario98/react-native-tabs');Object.keys(reactNativeTabs).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeTabs[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-native-tabs';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-native-tabs';//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ 'use strict';var reactNativeUtiles=require('@gaddario98/react-native-utiles');Object.keys(reactNativeUtiles).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeUtiles[k]}})});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- export * from '@gaddario98/react-native-utiles';
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from'@gaddario98/react-native-utiles';//# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "name": "@gaddario98/react-native-core",
3
- "version": "1.0.14",
4
- "main": "dist/index.mjs",
3
+ "version": "1.0.16",
4
+ "type": "module",
5
+ "main": "dist/index.js",
5
6
  "module": "dist/index.mjs",
6
7
  "types": "dist/index.d.ts",
7
- "type": "module",
8
+ "react-native": "dist/index.js",
8
9
  "license": "MIT",
9
10
  "files": [
10
11
  "dist"
11
12
  ],
12
13
  "scripts": {
13
- "build": "rollup -c rollup.config.js && rollup -c rollup.dts.config.js"
14
+ "build": "rollup -c rollup.config.js && rollup -c rollup.dts.config.js",
15
+ "prepublishOnly": "yarn build"
14
16
  },
15
17
  "devDependencies": {
16
18
  "@rollup/plugin-babel": "^6.0.4",
@@ -30,74 +32,100 @@
30
32
  "typescript": "^5.8.3"
31
33
  },
32
34
  "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"
35
+ "@gaddario98/expo": "^1.0.15",
36
+ "@gaddario98/react-auth": "^1.0.14",
37
+ "@gaddario98/react-form": "^1.0.18",
38
+ "@gaddario98/react-localization": "^1.0.15",
39
+ "@gaddario98/react-native-layouts": "^1.0.16",
40
+ "@gaddario98/react-native-pages": "^1.0.15",
41
+ "@gaddario98/react-native-providers": "^1.0.14",
42
+ "@gaddario98/react-native-state": "^1.0.13",
43
+ "@gaddario98/react-native-tabs": "^1.0.19",
44
+ "@gaddario98/react-native-utiles": "^1.0.13",
45
+ "@gaddario98/react-queries": "^1.0.19"
44
46
  },
45
47
  "peerDependencies": {
46
48
  "react": ">=18.0.0 <20.0.0",
47
49
  "react-native": "^0.81.0"
48
50
  },
49
51
  "exports": {
52
+ ".": {
53
+ "types": "./dist/index.d.ts",
54
+ "import": "./dist/index.mjs",
55
+ "require": "./dist/index.js",
56
+ "default": "./dist/index.js"
57
+ },
50
58
  "./auth": {
59
+ "types": "./dist/auth/index.d.ts",
51
60
  "import": "./dist/auth/index.mjs",
52
- "types": "./dist/auth/index.d.ts"
61
+ "require": "./dist/auth/index.js",
62
+ "default": "./dist/auth/index.js"
53
63
  },
54
64
  "./config": {
65
+ "types": "./dist/config/index.d.ts",
55
66
  "import": "./dist/config/index.mjs",
56
- "types": "./dist/config/index.d.ts"
67
+ "require": "./dist/config/index.js",
68
+ "default": "./dist/config/index.js"
57
69
  },
58
70
  "./expo": {
71
+ "types": "./dist/expo/index.d.ts",
59
72
  "import": "./dist/expo/index.mjs",
60
- "types": "./dist/expo/index.d.ts"
73
+ "require": "./dist/expo/index.js",
74
+ "default": "./dist/expo/index.js"
61
75
  },
62
76
  "./form": {
77
+ "types": "./dist/form/index.d.ts",
63
78
  "import": "./dist/form/index.mjs",
64
- "types": "./dist/form/index.d.ts"
79
+ "require": "./dist/form/index.js",
80
+ "default": "./dist/form/index.js"
65
81
  },
66
82
  "./layouts": {
83
+ "types": "./dist/layouts/index.d.ts",
67
84
  "import": "./dist/layouts/index.mjs",
68
- "types": "./dist/layouts/index.d.ts"
85
+ "require": "./dist/layouts/index.js",
86
+ "default": "./dist/layouts/index.js"
69
87
  },
70
88
  "./localization": {
89
+ "types": "./dist/localization/index.d.ts",
71
90
  "import": "./dist/localization/index.mjs",
72
- "types": "./dist/localization/index.d.ts"
91
+ "require": "./dist/localization/index.js",
92
+ "default": "./dist/localization/index.js"
73
93
  },
74
94
  "./pages": {
95
+ "types": "./dist/pages/index.d.ts",
75
96
  "import": "./dist/pages/index.mjs",
76
- "types": "./dist/pages/index.d.ts"
97
+ "require": "./dist/pages/index.js",
98
+ "default": "./dist/pages/index.js"
77
99
  },
78
100
  "./providers": {
101
+ "types": "./dist/providers/index.d.ts",
79
102
  "import": "./dist/providers/index.mjs",
80
- "types": "./dist/providers/index.d.ts"
103
+ "require": "./dist/providers/index.js",
104
+ "default": "./dist/providers/index.js"
81
105
  },
82
106
  "./queries": {
107
+ "types": "./dist/queries/index.d.ts",
83
108
  "import": "./dist/queries/index.mjs",
84
- "types": "./dist/queries/index.d.ts"
109
+ "require": "./dist/queries/index.js",
110
+ "default": "./dist/queries/index.js"
85
111
  },
86
112
  "./state": {
113
+ "types": "./dist/state/index.d.ts",
87
114
  "import": "./dist/state/index.mjs",
88
- "types": "./dist/state/index.d.ts"
115
+ "require": "./dist/state/index.js",
116
+ "default": "./dist/state/index.js"
89
117
  },
90
118
  "./tabs": {
119
+ "types": "./dist/tabs/index.d.ts",
91
120
  "import": "./dist/tabs/index.mjs",
92
- "types": "./dist/tabs/index.d.ts"
121
+ "require": "./dist/tabs/index.js",
122
+ "default": "./dist/tabs/index.js"
93
123
  },
94
124
  "./utiles": {
125
+ "types": "./dist/utiles/index.d.ts",
95
126
  "import": "./dist/utiles/index.mjs",
96
- "types": "./dist/utiles/index.d.ts"
97
- },
98
- ".": {
99
- "import": "./dist/index.mjs",
100
- "types": "./dist/index.d.ts"
127
+ "require": "./dist/utiles/index.js",
128
+ "default": "./dist/utiles/index.js"
101
129
  }
102
130
  },
103
131
  "repository": {