@grupalia/rn-ui-kit 0.131.0 → 1.0.0

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.
@@ -4,29 +4,25 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.downloadFileToLocalStorage = downloadFileToLocalStorage;
7
- var FileSystem = _interopRequireWildcard(require("expo-file-system"));
7
+ var _expoFileSystem = require("expo-file-system");
8
8
  var _reactNative = require("react-native");
9
9
  var _log = _interopRequireDefault(require("./log"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
11
  async function downloadFileToLocalStorage(url, fileName) {
12
+ let file = null;
13
13
  try {
14
- const downloadDir = `${FileSystem.documentDirectory}`;
15
- const localUri = `${downloadDir}${fileName}`;
16
- const fileInfo = await FileSystem.getInfoAsync(localUri);
17
- if (fileInfo.exists) {
18
- (0, _log.default)('File already exists:', localUri);
19
- return localUri;
14
+ file = new _expoFileSystem.File(_expoFileSystem.Paths.document, fileName);
15
+ if (file.exists) {
16
+ (0, _log.default)('File already exists:', file.uri);
17
+ return file.uri;
20
18
  }
21
- const downloadResult = await FileSystem.downloadAsync(url, localUri);
22
- if (downloadResult.status === 200) {
23
- (0, _log.default)('[file download]', `File downloaded successfully on ${_reactNative.Platform.OS}`);
24
- return downloadResult.uri;
25
- }
26
- (0, _log.default)('[file download]', `Failed to download file on ${_reactNative.Platform.OS}:`, downloadResult);
27
- return null;
19
+ const downloaded = await _expoFileSystem.File.downloadFileAsync(url, file);
20
+ (0, _log.default)('[file download]', `File downloaded successfully on ${_reactNative.Platform.OS}`);
21
+ return downloaded.uri;
28
22
  } catch (error) {
29
- (0, _log.default)('[file download]', 'Error downloading file:', JSON.stringify(error));
23
+ // android streams straight to the destination, so a failed download can leave a partial file
24
+ if (file?.exists) file.delete();
25
+ (0, _log.default)('[file download]', 'Error downloading file:', error instanceof Error ? error.message : String(error));
30
26
  return null;
31
27
  }
32
28
  }
@@ -1 +1 @@
1
- {"version":3,"names":["FileSystem","_interopRequireWildcard","require","_reactNative","_log","_interopRequireDefault","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","downloadFileToLocalStorage","url","fileName","downloadDir","documentDirectory","localUri","fileInfo","getInfoAsync","exists","log","downloadResult","downloadAsync","status","Platform","OS","uri","error","JSON","stringify"],"sourceRoot":"../../../src","sources":["utils/downloadFileToLocalStorage.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAwB,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAK,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CA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E,CAAC;MACxE,OAAOJ,cAAc,CAACK,GAAG;IAC3B;IAEA,IAAAN,YAAG,EAAC,iBAAiB,EAAE,8BAA8BI,qBAAQ,CAACC,EAAE,GAAG,EAAEJ,cAAc,CAAC;IACpF,OAAO,IAAI;EACb,CAAC,CAAC,OAAOM,KAAK,EAAE;IACd,IAAAP,YAAG,EAAC,iBAAiB,EAAE,yBAAyB,EAAEQ,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,CAAC;IACxE,OAAO,IAAI;EACb;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_expoFileSystem","require","_reactNative","_log","_interopRequireDefault","e","__esModule","default","downloadFileToLocalStorage","url","fileName","file","File","Paths","document","exists","log","uri","downloaded","downloadFileAsync","Platform","OS","error","delete","Error","message","String"],"sourceRoot":"../../../src","sources":["utils/downloadFileToLocalStorage.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAwB,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEjB,eAAeG,0BAA0BA,CAC9CC,GAAW,EACXC,QAAgB,EACQ;EACxB,IAAIC,IAAiB,GAAG,IAAI;EAE5B,IAAI;IACFA,IAAI,GAAG,IAAIC,oBAAI,CAACC,qBAAK,CAACC,QAAQ,EAAEJ,QAAQ,CAAC;IAEzC,IAAIC,IAAI,CAACI,MAAM,EAAE;MACf,IAAAC,YAAG,EAAC,sBAAsB,EAAEL,IAAI,CAACM,GAAG,CAAC;MACrC,OAAON,IAAI,CAACM,GAAG;IACjB;IAEA,MAAMC,UAAU,GAAG,MAAMN,oBAAI,CAACO,iBAAiB,CAACV,GAAG,EAAEE,IAAI,CAAC;IAC1D,IAAAK,YAAG,EAAC,iBAAiB,EAAE,mCAAmCI,qBAAQ,CAACC,EAAE,EAAE,CAAC;IAExE,OAAOH,UAAU,CAACD,GAAG;EACvB,CAAC,CAAC,OAAOK,KAAK,EAAE;IACd;IACA,IAAIX,IAAI,EAAEI,MAAM,EAAEJ,IAAI,CAACY,MAAM,CAAC,CAAC;IAC/B,IAAAP,YAAG,EAAC,iBAAiB,EAAE,yBAAyB,EAAEM,KAAK,YAAYE,KAAK,GAAGF,KAAK,CAACG,OAAO,GAAGC,MAAM,CAACJ,KAAK,CAAC,CAAC;IACzG,OAAO,IAAI;EACb;AACF","ignoreList":[]}
@@ -3,17 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ensureDirExists = void 0;
7
- var FileSystem = _interopRequireWildcard(require("expo-file-system"));
8
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
9
- const ensureDirExists = async dirPath => {
10
- const dirInfo = await FileSystem.getInfoAsync(dirPath);
11
- if (!dirInfo.exists) {
12
- await FileSystem.makeDirectoryAsync(dirPath, {
13
- intermediates: true
14
- });
15
- }
16
- return dirPath;
17
- };
18
6
  exports.ensureDirExists = ensureDirExists;
7
+ var _expoFileSystem = require("expo-file-system");
8
+ async function ensureDirExists(dirPath) {
9
+ const dir = new _expoFileSystem.Directory(dirPath);
10
+ dir.create({
11
+ intermediates: true,
12
+ idempotent: true
13
+ });
14
+ return dir.uri;
15
+ }
19
16
  //# sourceMappingURL=fileDirectoryUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FileSystem","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ensureDirExists","dirPath","dirInfo","getInfoAsync","exists","makeDirectoryAsync","intermediates","exports"],"sourceRoot":"../../../src","sources":["utils/fileDirectoryUtils.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+C,SAAAD,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAE/C,MAAMkB,eAAe,GAAG,MAAOC,OAAe,IAAK;EACjD,MAAMC,OAAO,GAAG,MAAMxB,UAAU,CAACyB,YAAY,CAACF,OAAO,CAAC;EACtD,IAAI,CAACC,OAAO,CAACE,MAAM,EAAE;IACnB,MAAM1B,UAAU,CAAC2B,kBAAkB,CAACJ,OAAO,EAAE;MAAEK,aAAa,EAAE;IAAK,CAAC,CAAC;EACvE;EAEA,OAAOL,OAAO;AAChB,CAAC;AAACM,OAAA,CAAAP,eAAA,GAAAA,eAAA","ignoreList":[]}
1
+ {"version":3,"names":["_expoFileSystem","require","ensureDirExists","dirPath","dir","Directory","create","intermediates","idempotent","uri"],"sourceRoot":"../../../src","sources":["utils/fileDirectoryUtils.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAEA,eAAeC,eAAeA,CAACC,OAAe,EAAE;EAC9C,MAAMC,GAAG,GAAG,IAAIC,yBAAS,CAACF,OAAO,CAAC;EAClCC,GAAG,CAACE,MAAM,CAAC;IAAEC,aAAa,EAAE,IAAI;IAAEC,UAAU,EAAE;EAAK,CAAC,CAAC;EAErD,OAAOJ,GAAG,CAACK,GAAG;AAChB","ignoreList":[]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.openFileInSystemViewer = openFileInSystemViewer;
7
- var FileSystem = _interopRequireWildcard(require("expo-file-system"));
7
+ var _expoFileSystem = require("expo-file-system");
8
8
  var IntentLauncher = _interopRequireWildcard(require("expo-intent-launcher"));
9
9
  var _reactNative = require("react-native");
10
10
  var _log = _interopRequireDefault(require("./log"));
@@ -15,7 +15,9 @@ const FLAG_GRANT_READ_URI_PERMISSION = 1;
15
15
  async function openFileInSystemViewer(localUri, mimeType = 'application/pdf') {
16
16
  try {
17
17
  if (_reactNative.Platform.OS === 'android') {
18
- const contentUri = await FileSystem.getContentUriAsync(localUri);
18
+ const {
19
+ contentUri
20
+ } = new _expoFileSystem.File(localUri);
19
21
  await IntentLauncher.startActivityAsync('android.intent.action.VIEW', {
20
22
  data: contentUri,
21
23
  flags: FLAG_GRANT_READ_URI_PERMISSION,
@@ -27,7 +29,7 @@ async function openFileInSystemViewer(localUri, mimeType = 'application/pdf') {
27
29
  });
28
30
  }
29
31
  } catch (error) {
30
- (0, _log.default)('[file viewer]', 'error opening file with system viewer', JSON.stringify(error));
32
+ (0, _log.default)('[file viewer]', 'error opening file with system viewer', error instanceof Error ? error.message : String(error));
31
33
  _reactNative.Alert.alert('Error', 'No se pudo abrir el archivo');
32
34
  }
33
35
  }
@@ -1 +1 @@
1
- {"version":3,"names":["FileSystem","_interopRequireWildcard","require","IntentLauncher","_reactNative","_log","_interopRequireDefault","_openExternalURL","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FLAG_GRANT_READ_URI_PERMISSION","openFileInSystemViewer","localUri","mimeType","Platform","OS","contentUri","getContentUriAsync","startActivityAsync","data","flags","type","openExternalURL","Alert","alert","error","log","JSON","stringify"],"sourceRoot":"../../../src","sources":["utils/openFileInSystemViewer.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,IAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAAoD,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAO,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAA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C,KAAK,CAAC,OAAO,EAAE,8BAA8B,CAAC;MACtD,CAAC,CAAC;IACJ;EACF,CAAC,CAAC,OAAOC,KAAK,EAAE;IACd,IAAAC,YAAG,EAAC,eAAe,EAAE,uCAAuC,EAAEC,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,CAAC;IACpFF,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,6BAA6B,CAAC;EACrD;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_expoFileSystem","require","IntentLauncher","_interopRequireWildcard","_reactNative","_log","_interopRequireDefault","_openExternalURL","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FLAG_GRANT_READ_URI_PERMISSION","openFileInSystemViewer","localUri","mimeType","Platform","OS","contentUri","File","startActivityAsync","data","flags","type","openExternalURL","Alert","alert","error","log","Error","message","String"],"sourceRoot":"../../../src","sources":["utils/openFileInSystemViewer.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,IAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAAoD,SAAAK,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAK,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,C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AC,eAAe,EAAE,uCAAuC,EAAED,KAAK,YAAYE,KAAK,GAAGF,KAAK,CAACG,OAAO,GAAGC,MAAM,CAACJ,KAAK,CAAC,CAAC;IACrHF,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,6BAA6B,CAAC;EACrD;AACF","ignoreList":[]}
@@ -1,26 +1,23 @@
1
1
  "use strict";
2
2
 
3
- import * as FileSystem from 'expo-file-system';
3
+ import { File, Paths } from 'expo-file-system';
4
4
  import { Platform } from 'react-native';
5
5
  import log from "./log.js";
6
6
  export async function downloadFileToLocalStorage(url, fileName) {
7
+ let file = null;
7
8
  try {
8
- const downloadDir = `${FileSystem.documentDirectory}`;
9
- const localUri = `${downloadDir}${fileName}`;
10
- const fileInfo = await FileSystem.getInfoAsync(localUri);
11
- if (fileInfo.exists) {
12
- log('File already exists:', localUri);
13
- return localUri;
9
+ file = new File(Paths.document, fileName);
10
+ if (file.exists) {
11
+ log('File already exists:', file.uri);
12
+ return file.uri;
14
13
  }
15
- const downloadResult = await FileSystem.downloadAsync(url, localUri);
16
- if (downloadResult.status === 200) {
17
- log('[file download]', `File downloaded successfully on ${Platform.OS}`);
18
- return downloadResult.uri;
19
- }
20
- log('[file download]', `Failed to download file on ${Platform.OS}:`, downloadResult);
21
- return null;
14
+ const downloaded = await File.downloadFileAsync(url, file);
15
+ log('[file download]', `File downloaded successfully on ${Platform.OS}`);
16
+ return downloaded.uri;
22
17
  } catch (error) {
23
- log('[file download]', 'Error downloading file:', JSON.stringify(error));
18
+ // android streams straight to the destination, so a failed download can leave a partial file
19
+ if (file?.exists) file.delete();
20
+ log('[file download]', 'Error downloading file:', error instanceof Error ? error.message : String(error));
24
21
  return null;
25
22
  }
26
23
  }
@@ -1 +1 @@
1
- {"version":3,"names":["FileSystem","Platform","log","downloadFileToLocalStorage","url","fileName","downloadDir","documentDirectory","localUri","fileInfo","getInfoAsync","exists","downloadResult","downloadAsync","status","OS","uri","error","JSON","stringify"],"sourceRoot":"../../../src","sources":["utils/downloadFileToLocalStorage.ts"],"mappings":";;AAAA,OAAO,KAAKA,UAAU,MAAM,kBAAkB;AAC9C,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAOC,GAAG,MAAM,UAAO;AAEvB,OAAO,eAAeC,0BAA0BA,CAC9CC,GAAW,EACXC,QAAgB,EACQ;EACxB,IAAI;IACF,MAAMC,WAAW,GAAG,GAAGN,UAAU,CAACO,iBAAiB,EAAE;IACrD,MAAMC,QAAQ,GAAG,GAAGF,WAAW,GAAGD,QAAQ,EAAE;IAE5C,MAAMI,QAAQ,GAAG,MAAMT,UAAU,CAACU,YAAY,CAACF,QAAQ,CAAC;IACxD,IAAIC,QAAQ,CAACE,MAAM,EAAE;MACnBT,GAAG,CAAC,sBAAsB,EAAEM,QAAQ,CAAC;MACrC,OAAOA,QAAQ;IACjB;IAEA,MAAMI,cAAc,GAAG,MAAMZ,UAAU,CAACa,aAAa,CAACT,GAAG,EAAEI,QAAQ,CAAC;IAEpE,IAAII,cAAc,CAACE,MAAM,KAAK,GAAG,EAAE;MACjCZ,GAAG,CAAC,iBAAiB,EAAE,mCAAmCD,QAAQ,CAACc,EAAE,EAAE,CAAC;MACxE,OAAOH,cAAc,CAACI,GAAG;IAC3B;IAEAd,GAAG,CAAC,iBAAiB,EAAE,8BAA8BD,QAAQ,CAACc,EAAE,GAAG,EAAEH,cAAc,CAAC;IACpF,OAAO,IAAI;EACb,CAAC,CAAC,OAAOK,KAAK,EAAE;IACdf,GAAG,CAAC,iBAAiB,EAAE,yBAAyB,EAAEgB,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,CAAC;IACxE,OAAO,IAAI;EACb;AACF","ignoreList":[]}
1
+ {"version":3,"names":["File","Paths","Platform","log","downloadFileToLocalStorage","url","fileName","file","document","exists","uri","downloaded","downloadFileAsync","OS","error","delete","Error","message","String"],"sourceRoot":"../../../src","sources":["utils/downloadFileToLocalStorage.ts"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AAC9C,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAOC,GAAG,MAAM,UAAO;AAEvB,OAAO,eAAeC,0BAA0BA,CAC9CC,GAAW,EACXC,QAAgB,EACQ;EACxB,IAAIC,IAAiB,GAAG,IAAI;EAE5B,IAAI;IACFA,IAAI,GAAG,IAAIP,IAAI,CAACC,KAAK,CAACO,QAAQ,EAAEF,QAAQ,CAAC;IAEzC,IAAIC,IAAI,CAACE,MAAM,EAAE;MACfN,GAAG,CAAC,sBAAsB,EAAEI,IAAI,CAACG,GAAG,CAAC;MACrC,OAAOH,IAAI,CAACG,GAAG;IACjB;IAEA,MAAMC,UAAU,GAAG,MAAMX,IAAI,CAACY,iBAAiB,CAACP,GAAG,EAAEE,IAAI,CAAC;IAC1DJ,GAAG,CAAC,iBAAiB,EAAE,mCAAmCD,QAAQ,CAACW,EAAE,EAAE,CAAC;IAExE,OAAOF,UAAU,CAACD,GAAG;EACvB,CAAC,CAAC,OAAOI,KAAK,EAAE;IACd;IACA,IAAIP,IAAI,EAAEE,MAAM,EAAEF,IAAI,CAACQ,MAAM,CAAC,CAAC;IAC/BZ,GAAG,CAAC,iBAAiB,EAAE,yBAAyB,EAAEW,KAAK,YAAYE,KAAK,GAAGF,KAAK,CAACG,OAAO,GAAGC,MAAM,CAACJ,KAAK,CAAC,CAAC;IACzG,OAAO,IAAI;EACb;AACF","ignoreList":[]}
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
 
3
- import * as FileSystem from 'expo-file-system';
4
- const ensureDirExists = async dirPath => {
5
- const dirInfo = await FileSystem.getInfoAsync(dirPath);
6
- if (!dirInfo.exists) {
7
- await FileSystem.makeDirectoryAsync(dirPath, {
8
- intermediates: true
9
- });
10
- }
11
- return dirPath;
12
- };
3
+ import { Directory } from 'expo-file-system';
4
+ async function ensureDirExists(dirPath) {
5
+ const dir = new Directory(dirPath);
6
+ dir.create({
7
+ intermediates: true,
8
+ idempotent: true
9
+ });
10
+ return dir.uri;
11
+ }
13
12
  export { ensureDirExists };
14
13
  //# sourceMappingURL=fileDirectoryUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FileSystem","ensureDirExists","dirPath","dirInfo","getInfoAsync","exists","makeDirectoryAsync","intermediates"],"sourceRoot":"../../../src","sources":["utils/fileDirectoryUtils.ts"],"mappings":";;AAAA,OAAO,KAAKA,UAAU,MAAM,kBAAkB;AAE9C,MAAMC,eAAe,GAAG,MAAOC,OAAe,IAAK;EACjD,MAAMC,OAAO,GAAG,MAAMH,UAAU,CAACI,YAAY,CAACF,OAAO,CAAC;EACtD,IAAI,CAACC,OAAO,CAACE,MAAM,EAAE;IACnB,MAAML,UAAU,CAACM,kBAAkB,CAACJ,OAAO,EAAE;MAAEK,aAAa,EAAE;IAAK,CAAC,CAAC;EACvE;EAEA,OAAOL,OAAO;AAChB,CAAC;AAED,SAASD,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["Directory","ensureDirExists","dirPath","dir","create","intermediates","idempotent","uri"],"sourceRoot":"../../../src","sources":["utils/fileDirectoryUtils.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,kBAAkB;AAE5C,eAAeC,eAAeA,CAACC,OAAe,EAAE;EAC9C,MAAMC,GAAG,GAAG,IAAIH,SAAS,CAACE,OAAO,CAAC;EAClCC,GAAG,CAACC,MAAM,CAAC;IAAEC,aAAa,EAAE,IAAI;IAAEC,UAAU,EAAE;EAAK,CAAC,CAAC;EAErD,OAAOH,GAAG,CAACI,GAAG;AAChB;AAEA,SAASN,eAAe","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import * as FileSystem from 'expo-file-system';
3
+ import { File } from 'expo-file-system';
4
4
  import * as IntentLauncher from 'expo-intent-launcher';
5
5
  import { Alert, Platform } from 'react-native';
6
6
  import log from "./log.js";
@@ -9,7 +9,9 @@ const FLAG_GRANT_READ_URI_PERMISSION = 1;
9
9
  export async function openFileInSystemViewer(localUri, mimeType = 'application/pdf') {
10
10
  try {
11
11
  if (Platform.OS === 'android') {
12
- const contentUri = await FileSystem.getContentUriAsync(localUri);
12
+ const {
13
+ contentUri
14
+ } = new File(localUri);
13
15
  await IntentLauncher.startActivityAsync('android.intent.action.VIEW', {
14
16
  data: contentUri,
15
17
  flags: FLAG_GRANT_READ_URI_PERMISSION,
@@ -21,7 +23,7 @@ export async function openFileInSystemViewer(localUri, mimeType = 'application/p
21
23
  });
22
24
  }
23
25
  } catch (error) {
24
- log('[file viewer]', 'error opening file with system viewer', JSON.stringify(error));
26
+ log('[file viewer]', 'error opening file with system viewer', error instanceof Error ? error.message : String(error));
25
27
  Alert.alert('Error', 'No se pudo abrir el archivo');
26
28
  }
27
29
  }
@@ -1 +1 @@
1
- {"version":3,"names":["FileSystem","IntentLauncher","Alert","Platform","log","openExternalURL","FLAG_GRANT_READ_URI_PERMISSION","openFileInSystemViewer","localUri","mimeType","OS","contentUri","getContentUriAsync","startActivityAsync","data","flags","type","alert","error","JSON","stringify"],"sourceRoot":"../../../src","sources":["utils/openFileInSystemViewer.ts"],"mappings":";;AAAA,OAAO,KAAKA,UAAU,MAAM,kBAAkB;AAC9C,OAAO,KAAKC,cAAc,MAAM,sBAAsB;AACtD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;AAE9C,OAAOC,GAAG,MAAM,UAAO;AACvB,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,MAAMC,8BAA8B,GAAG,CAAC;AAExC,OAAO,eAAeC,sBAAsBA,CAACC,QAAgB,EAAEC,QAAgB,GAAG,iBAAiB,EAAE;EACnG,IAAI;IACF,IAAIN,QAAQ,CAACO,EAAE,KAAK,SAAS,EAAE;MAC7B,MAAMC,UAAU,GAAG,MAAMX,UAAU,CAACY,kBAAkB,CAACJ,QAAQ,CAAC;MAChE,MAAMP,cAAc,CAACY,kBAAkB,CAAC,4BAA4B,EAAE;QACpEC,IAAI,EAAEH,UAAU;QAChBI,KAAK,EAAET,8BAA8B;QACrCU,IAAI,EAAEP;MACR,CAAC,CAAC;IACJ,CAAC,MAAM;MACLJ,eAAe,CAACG,QAAQ,EAAE,MAAM;QAC9BN,KAAK,CAACe,KAAK,CAAC,OAAO,EAAE,8BAA8B,CAAC;MACtD,CAAC,CAAC;IACJ;EACF,CAAC,CAAC,OAAOC,KAAK,EAAE;IACdd,GAAG,CAAC,eAAe,EAAE,uCAAuC,EAAEe,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,CAAC;IACpFhB,KAAK,CAACe,KAAK,CAAC,OAAO,EAAE,6BAA6B,CAAC;EACrD;AACF","ignoreList":[]}
1
+ {"version":3,"names":["File","IntentLauncher","Alert","Platform","log","openExternalURL","FLAG_GRANT_READ_URI_PERMISSION","openFileInSystemViewer","localUri","mimeType","OS","contentUri","startActivityAsync","data","flags","type","alert","error","Error","message","String"],"sourceRoot":"../../../src","sources":["utils/openFileInSystemViewer.ts"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,kBAAkB;AACvC,OAAO,KAAKC,cAAc,MAAM,sBAAsB;AACtD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;AAE9C,OAAOC,GAAG,MAAM,UAAO;AACvB,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,MAAMC,8BAA8B,GAAG,CAAC;AAExC,OAAO,eAAeC,sBAAsBA,CAACC,QAAgB,EAAEC,QAAgB,GAAG,iBAAiB,EAAE;EACnG,IAAI;IACF,IAAIN,QAAQ,CAACO,EAAE,KAAK,SAAS,EAAE;MAC7B,MAAM;QAAEC;MAAW,CAAC,GAAG,IAAIX,IAAI,CAACQ,QAAQ,CAAC;MACzC,MAAMP,cAAc,CAACW,kBAAkB,CAAC,4BAA4B,EAAE;QACpEC,IAAI,EAAEF,UAAU;QAChBG,KAAK,EAAER,8BAA8B;QACrCS,IAAI,EAAEN;MACR,CAAC,CAAC;IACJ,CAAC,MAAM;MACLJ,eAAe,CAACG,QAAQ,EAAE,MAAM;QAC9BN,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,8BAA8B,CAAC;MACtD,CAAC,CAAC;IACJ;EACF,CAAC,CAAC,OAAOC,KAAK,EAAE;IACdb,GAAG,CAAC,eAAe,EAAE,uCAAuC,EAAEa,KAAK,YAAYC,KAAK,GAAGD,KAAK,CAACE,OAAO,GAAGC,MAAM,CAACH,KAAK,CAAC,CAAC;IACrHf,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,6BAA6B,CAAC;EACrD;AACF","ignoreList":[]}
@@ -161,8 +161,8 @@ export declare const VirtualizedList: import("react").ForwardRefExoticComponent<
161
161
  baseTw?: string | undefined;
162
162
  } & import("react").RefAttributes<unknown>>;
163
163
  export declare const LinearGradient: import("react").ForwardRefExoticComponent<import("react-native").ViewProps & {
164
- colors: readonly string[];
165
- locations?: readonly number[] | null | undefined;
164
+ colors: readonly [import("react-native").ColorValue, import("react-native").ColorValue, ...import("react-native").ColorValue[]];
165
+ locations?: readonly [number, number, ...number[]] | null | undefined;
166
166
  start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
167
167
  end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
168
168
  dither?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"downloadFileToLocalStorage.d.ts","sourceRoot":"","sources":["../../../../src/utils/downloadFileToLocalStorage.ts"],"names":[],"mappings":"AAKA,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAwBxB"}
1
+ {"version":3,"file":"downloadFileToLocalStorage.d.ts","sourceRoot":"","sources":["../../../../src/utils/downloadFileToLocalStorage.ts"],"names":[],"mappings":"AAKA,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqBxB"}
@@ -1,3 +1,3 @@
1
- declare const ensureDirExists: (dirPath: string) => Promise<string>;
1
+ declare function ensureDirExists(dirPath: string): Promise<string>;
2
2
  export { ensureDirExists };
3
3
  //# sourceMappingURL=fileDirectoryUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fileDirectoryUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/fileDirectoryUtils.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,YAAmB,MAAM,oBAO7C,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"fileDirectoryUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/fileDirectoryUtils.ts"],"names":[],"mappings":"AAEA,iBAAe,eAAe,CAAC,OAAO,EAAE,MAAM,mBAK7C;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -161,8 +161,8 @@ export declare const VirtualizedList: import("react").ForwardRefExoticComponent<
161
161
  baseTw?: string | undefined;
162
162
  } & import("react").RefAttributes<unknown>>;
163
163
  export declare const LinearGradient: import("react").ForwardRefExoticComponent<import("react-native").ViewProps & {
164
- colors: readonly string[];
165
- locations?: readonly number[] | null | undefined;
164
+ colors: readonly [import("react-native").ColorValue, import("react-native").ColorValue, ...import("react-native").ColorValue[]];
165
+ locations?: readonly [number, number, ...number[]] | null | undefined;
166
166
  start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
167
167
  end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
168
168
  dither?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"downloadFileToLocalStorage.d.ts","sourceRoot":"","sources":["../../../../src/utils/downloadFileToLocalStorage.ts"],"names":[],"mappings":"AAKA,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAwBxB"}
1
+ {"version":3,"file":"downloadFileToLocalStorage.d.ts","sourceRoot":"","sources":["../../../../src/utils/downloadFileToLocalStorage.ts"],"names":[],"mappings":"AAKA,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqBxB"}
@@ -1,3 +1,3 @@
1
- declare const ensureDirExists: (dirPath: string) => Promise<string>;
1
+ declare function ensureDirExists(dirPath: string): Promise<string>;
2
2
  export { ensureDirExists };
3
3
  //# sourceMappingURL=fileDirectoryUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fileDirectoryUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/fileDirectoryUtils.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,YAAmB,MAAM,oBAO7C,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"fileDirectoryUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/fileDirectoryUtils.ts"],"names":[],"mappings":"AAEA,iBAAe,eAAe,CAAC,OAAO,EAAE,MAAM,mBAK7C;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grupalia/rn-ui-kit",
3
- "version": "0.131.0",
3
+ "version": "1.0.0",
4
4
  "description": "Grupalia React Native UI Kit",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/module/index.d.ts",
@@ -18,49 +18,50 @@
18
18
  "test:run": "vitest run",
19
19
  "prepare": "bob build",
20
20
  "publish-local": "npx yalc publish --push",
21
+ "bump-major-version": "npm version major --message 'chore(release): bump version'",
21
22
  "bump-minor-version": "npm version minor --message 'chore(release): bump version'",
22
23
  "bump-patch-version": "npm version patch --message 'chore(release): bump version'"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "@date-fns/tz": "^1.3.1",
26
27
  "@gorhom/bottom-sheet": "^5",
27
- "@notifee/react-native": "^7.8.2",
28
- "@react-native-async-storage/async-storage": "2.1.2",
28
+ "@notifee/react-native": "^9.0.0",
29
+ "@react-native-async-storage/async-storage": "^2.1.2",
29
30
  "@react-native-community/geolocation": "^3.4.0",
30
- "@react-native-community/hooks": "~3.0.0",
31
- "@react-native-community/netinfo": "11.4.1",
31
+ "@react-native-community/hooks": "^100.0.0",
32
+ "@react-native-community/netinfo": "^11.4.1",
32
33
  "@react-native-firebase/messaging": "~22",
33
34
  "@react-navigation/native": "^6.1.18",
34
- "@sentry/react-native": "^6.9.1",
35
+ "@sentry/react-native": "^7.0.0",
35
36
  "@tanstack/react-query": "^5.101.4",
36
37
  "axios": "*",
37
38
  "clsx": "^2.1.1",
38
39
  "date-fns": "^4.1.0",
39
- "expo-constants": "~17.1.7",
40
- "expo-contacts": "~14.2.5",
41
- "expo-file-system": "~18.1.11",
42
- "expo-intent-launcher": "~12.1.5",
43
- "expo-linear-gradient": "~14.1.5",
40
+ "expo-constants": "~18.0.0",
41
+ "expo-contacts": "~15.0.0",
42
+ "expo-file-system": "~19.0.19",
43
+ "expo-intent-launcher": "~13.0.0",
44
+ "expo-linear-gradient": "~15.0.0",
44
45
  "formik": "^2",
45
46
  "nativewind": "^2.0.11",
46
47
  "react": "*",
47
48
  "react-hot-toast": "^2.6.0",
48
49
  "react-native": "*",
49
50
  "react-native-device-info": "^14.0.0",
50
- "react-native-gesture-handler": "~2.24.0",
51
+ "react-native-gesture-handler": "~2.28.0",
51
52
  "react-native-heroicons": "^4.0.0",
52
53
  "react-native-image-modal": "^3.0.13",
53
54
  "react-native-image-picker": "~8.2.0",
54
55
  "react-native-keyboard-controller": "*",
55
56
  "react-native-pdf-renderer": "~2.3.0",
56
57
  "react-native-render-html": "~6.3.4",
57
- "react-native-safe-area-context": "5.4.0",
58
+ "react-native-safe-area-context": "^5.4.0",
58
59
  "react-native-svg": "*",
59
60
  "react-native-vision-camera": "^4.6.3",
60
61
  "react-native-webview": "^13.12.5",
61
62
  "react-use-wizard": "^2.3.0",
62
63
  "tailwind-merge": "^2.5.0",
63
- "tailwindcss": "3.3.2",
64
+ "tailwindcss": "~3.3.2",
64
65
  "yup": "^1.7.1"
65
66
  },
66
67
  "devDependencies": {
@@ -93,11 +94,11 @@
93
94
  "eslint-plugin-react": "^7.34.1",
94
95
  "eslint-plugin-react-hooks": "^4.6.2",
95
96
  "eslint-plugin-tailwindcss": "^3.17.4",
96
- "expo-constants": "~16.0.1",
97
- "expo-contacts": "~14.2.5",
98
- "expo-file-system": "17",
99
- "expo-intent-launcher": "~12.1.5",
100
- "expo-linear-gradient": "~13.0.2",
97
+ "expo-constants": "~18.0.14",
98
+ "expo-contacts": "~15.0.11",
99
+ "expo-file-system": "~19.0.19",
100
+ "expo-intent-launcher": "~13.0.8",
101
+ "expo-linear-gradient": "~15.0.8",
101
102
  "formik": "^2",
102
103
  "jsdom": "^26.1.0",
103
104
  "nativewind": "^2.0.11",