@grupalia/rn-ui-kit 0.130.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.
- package/lib/commonjs/components/ClabeConfirmationModal.js +3 -2
- package/lib/commonjs/components/ClabeConfirmationModal.js.map +1 -1
- package/lib/commonjs/utils/downloadFileToLocalStorage.js +12 -16
- package/lib/commonjs/utils/downloadFileToLocalStorage.js.map +1 -1
- package/lib/commonjs/utils/fileDirectoryUtils.js +9 -12
- package/lib/commonjs/utils/fileDirectoryUtils.js.map +1 -1
- package/lib/commonjs/utils/openFileInSystemViewer.js +5 -3
- package/lib/commonjs/utils/openFileInSystemViewer.js.map +1 -1
- package/lib/module/components/ClabeConfirmationModal.js +3 -2
- package/lib/module/components/ClabeConfirmationModal.js.map +1 -1
- package/lib/module/utils/downloadFileToLocalStorage.js +12 -15
- package/lib/module/utils/downloadFileToLocalStorage.js.map +1 -1
- package/lib/module/utils/fileDirectoryUtils.js +9 -10
- package/lib/module/utils/fileDirectoryUtils.js.map +1 -1
- package/lib/module/utils/openFileInSystemViewer.js +5 -3
- package/lib/module/utils/openFileInSystemViewer.js.map +1 -1
- package/lib/typescript/commonjs/components/ClabeConfirmationModal.d.ts +2 -1
- package/lib/typescript/commonjs/components/ClabeConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/hoc-components.d.ts +2 -2
- package/lib/typescript/commonjs/utils/downloadFileToLocalStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/fileDirectoryUtils.d.ts +1 -1
- package/lib/typescript/commonjs/utils/fileDirectoryUtils.d.ts.map +1 -1
- package/lib/typescript/module/components/ClabeConfirmationModal.d.ts +2 -1
- package/lib/typescript/module/components/ClabeConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/module/hoc-components.d.ts +2 -2
- package/lib/typescript/module/utils/downloadFileToLocalStorage.d.ts.map +1 -1
- package/lib/typescript/module/utils/fileDirectoryUtils.d.ts +1 -1
- package/lib/typescript/module/utils/fileDirectoryUtils.d.ts.map +1 -1
- package/package.json +20 -19
|
@@ -20,7 +20,8 @@ function ClabeConfirmationModal({
|
|
|
20
20
|
visible,
|
|
21
21
|
onCancel,
|
|
22
22
|
onConfirm,
|
|
23
|
-
isConfirmPending
|
|
23
|
+
isConfirmPending,
|
|
24
|
+
alertMessage
|
|
24
25
|
}) {
|
|
25
26
|
const bank = clabe.length >= 3 ? (0, _utils.getBankFromCode)(clabe.slice(0, 3)) : null;
|
|
26
27
|
const isAboveXs = (0, _hooks.useIsAboveBreakpoint)('xs');
|
|
@@ -38,7 +39,7 @@ function ClabeConfirmationModal({
|
|
|
38
39
|
description: "Recuerda verificar d\xEDgito por d\xEDgito que la CLABE ingresada sea tuya."
|
|
39
40
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseAlert.default, {
|
|
40
41
|
type: "alert",
|
|
41
|
-
message:
|
|
42
|
+
message: alertMessage,
|
|
42
43
|
description: "Por favor, verifica que tu CLABE sea correcta antes de continuar"
|
|
43
44
|
})]
|
|
44
45
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clsx","_interopRequireDefault","require","_BaseAlert","_BaseConfirmationModal","_BaseIconCard","_BaseText","_hocComponents","_hooks","_utils","_line","_jsxRuntime","e","__esModule","default","ClabeConfirmationModal","clabe","visible","onCancel","onConfirm","isConfirmPending","bank","length","getBankFromCode","slice","isAboveXs","useIsAboveBreakpoint","jsx","title","body","jsxs","View","className","children","clsx","icon","Bank","shortName","description","type","message","confirmText","cancelText","loading","countdownSecs"],"sourceRoot":"../../../src","sources":["components/ClabeConfirmationModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,sBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AAA+C,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;
|
|
1
|
+
{"version":3,"names":["_clsx","_interopRequireDefault","require","_BaseAlert","_BaseConfirmationModal","_BaseIconCard","_BaseText","_hocComponents","_hooks","_utils","_line","_jsxRuntime","e","__esModule","default","ClabeConfirmationModal","clabe","visible","onCancel","onConfirm","isConfirmPending","alertMessage","bank","length","getBankFromCode","slice","isAboveXs","useIsAboveBreakpoint","jsx","title","body","jsxs","View","className","children","clsx","icon","Bank","shortName","description","type","message","confirmText","cancelText","loading","countdownSecs"],"sourceRoot":"../../../src","sources":["components/ClabeConfirmationModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,sBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AAA+C,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWhC,SAASG,sBAAsBA,CAAC;EAC7CC,KAAK;EAAEC,OAAO;EAAEC,QAAQ;EAAEC,SAAS;EAAEC,gBAAgB;EAAEC;AACjC,CAAC,EAAE;EACzB,MAAMC,IAAI,GAAGN,KAAK,CAACO,MAAM,IAAI,CAAC,GAAG,IAAAC,sBAAe,EAACR,KAAK,CAACS,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI;EAC1E,MAAMC,SAAS,GAAG,IAAAC,2BAAoB,EAAC,IAAI,CAAC;EAE5C,oBACE,IAAAhB,WAAA,CAAAiB,GAAA,EAACxB,sBAAA,CAAAU,OAAqB;IACpBG,OAAO,EAAEA,OAAQ;IACjBY,KAAK,EAAC,2CAAqC;IAC3CC,IAAI,eACF,IAAAnB,WAAA,CAAAoB,IAAA,EAACxB,cAAA,CAAAyB,IAAI;MAACC,SAAS,EAAC,wCAAwC;MAAAC,QAAA,gBACtD,IAAAvB,WAAA,CAAAiB,GAAA,EAACtB,SAAA,CAAAQ,OAAQ;QAACmB,SAAS,EAAE,IAAAE,aAAI,EACvB,oBAAoB,EACpBT,SAAS,GAAG,SAAS,GAAG,WAC1B,CAAE;QAAAQ,QAAA,EAEClB;MAAK,CACE,CAAC,eACX,IAAAL,WAAA,CAAAiB,GAAA,EAACvB,aAAA,CAAAS,OAAY;QACXsB,IAAI,EAAEC,UAAK;QACXR,KAAK,EAAE,SAASP,IAAI,EAAEgB,SAAS,EAAG;QAClCC,WAAW,EAAC;MAAuE,CACpF,CAAC,eACF,IAAA5B,WAAA,CAAAiB,GAAA,EAACzB,UAAA,CAAAW,OAAS;QACR0B,IAAI,EAAC,OAAO;QACZC,OAAO,EAAEpB,YAAa;QACtBkB,WAAW,EAAC;MAAkE,CAC/E,CAAC;IAAA,CACE,CACN;IACFpB,SAAS,EAAEA,CAAA,KAAM;MACfA,SAAS,CAAC,CAAC;IACb,CAAE;IACFD,QAAQ,EAAEA,QAAS;IACnBwB,WAAW,EAAC,iBAAiB;IAC7BC,UAAU,EAAC,kBAAkB;IAC7BC,OAAO,EAAExB,gBAAiB;IAC1ByB,aAAa,EAAE;EAAE,CAClB,CAAC;AAEN","ignoreList":[]}
|
|
@@ -4,29 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.downloadFileToLocalStorage = downloadFileToLocalStorage;
|
|
7
|
-
var
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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":["
|
|
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":["
|
|
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
|
|
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
|
|
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',
|
|
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":["
|
|
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,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAG,CAAA,OAAAK,CAAA,IAAAD,CAAA,GAAAS,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAG,CAAA,OAAAK,CAAA,CAAAI,GAAA,IAAAJ,CAAA,CAAAK,GAAA,IAAAN,CAAA,CAAAE,CAAA,EAAAN,CAAA,EAAAK,CAAA,IAAAC,CAAA,CAAAN,CAAA,IAAAH,CAAA,CAAAG,CAAA,WAAAM,CAAA,KAAAT,CAAA,EAAAG,CAAA;AAEpD,MAAMgB,8BAA8B,GAAG,CAAC;AAEjC,eAAeC,sBAAsBA,CAACC,QAAgB,EAAEC,QAAgB,GAAG,iBAAiB,EAAE;EACnG,IAAI;IACF,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;MAC7B,MAAM;QAAEC;MAAW,CAAC,GAAG,IAAIC,oBAAI,CAACL,QAAQ,CAAC;MACzC,MAAM3B,cAAc,CAACiC,kBAAkB,CAAC,4BAA4B,EAAE;QACpEC,IAAI,EAAEH,UAAU;QAChBI,KAAK,EAAEV,8BAA8B;QACrCW,IAAI,EAAER;MACR,CAAC,CAAC;IACJ,CAAC,MAAM;MACL,IAAAS,gCAAe,EAACV,QAAQ,EAAE,MAAM;QAC9BW,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,8BAA8B,CAAC;MACtD,CAAC,CAAC;IACJ;EACF,CAAC,CAAC,OAAOC,KAAK,EAAE;IACd,IAAAC,YAAG,EAAC,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":[]}
|
|
@@ -15,7 +15,8 @@ export default function ClabeConfirmationModal({
|
|
|
15
15
|
visible,
|
|
16
16
|
onCancel,
|
|
17
17
|
onConfirm,
|
|
18
|
-
isConfirmPending
|
|
18
|
+
isConfirmPending,
|
|
19
|
+
alertMessage
|
|
19
20
|
}) {
|
|
20
21
|
const bank = clabe.length >= 3 ? getBankFromCode(clabe.slice(0, 3)) : null;
|
|
21
22
|
const isAboveXs = useIsAboveBreakpoint('xs');
|
|
@@ -33,7 +34,7 @@ export default function ClabeConfirmationModal({
|
|
|
33
34
|
description: "Recuerda verificar d\xEDgito por d\xEDgito que la CLABE ingresada sea tuya."
|
|
34
35
|
}), /*#__PURE__*/_jsx(BaseAlert, {
|
|
35
36
|
type: "alert",
|
|
36
|
-
message:
|
|
37
|
+
message: alertMessage,
|
|
37
38
|
description: "Por favor, verifica que tu CLABE sea correcta antes de continuar"
|
|
38
39
|
})]
|
|
39
40
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clsx","BaseAlert","BaseConfirmationModal","BaseIconCard","BaseText","View","useIsAboveBreakpoint","getBankFromCode","Bank","jsx","_jsx","jsxs","_jsxs","ClabeConfirmationModal","clabe","visible","onCancel","onConfirm","isConfirmPending","bank","length","slice","isAboveXs","title","body","className","children","icon","shortName","description","type","message","confirmText","cancelText","loading","countdownSecs"],"sourceRoot":"../../../src","sources":["components/ClabeConfirmationModal.tsx"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,MAAM;AAEvB,OAAOC,SAAS,MAAM,gBAAa;AACnC,OAAOC,qBAAqB,MAAM,4BAAyB;AAC3D,OAAOC,YAAY,MAAM,mBAAgB;AACzC,OAAOC,QAAQ,MAAM,eAAY;AACjC,SAASC,IAAI,QAAQ,sBAAmB;AACxC,SAASC,oBAAoB,QAAQ,mBAAU;AAC/C,SAASC,eAAe,QAAQ,mBAAU;AAC1C,SAASC,IAAI,QAAQ,kCAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["clsx","BaseAlert","BaseConfirmationModal","BaseIconCard","BaseText","View","useIsAboveBreakpoint","getBankFromCode","Bank","jsx","_jsx","jsxs","_jsxs","ClabeConfirmationModal","clabe","visible","onCancel","onConfirm","isConfirmPending","alertMessage","bank","length","slice","isAboveXs","title","body","className","children","icon","shortName","description","type","message","confirmText","cancelText","loading","countdownSecs"],"sourceRoot":"../../../src","sources":["components/ClabeConfirmationModal.tsx"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,MAAM;AAEvB,OAAOC,SAAS,MAAM,gBAAa;AACnC,OAAOC,qBAAqB,MAAM,4BAAyB;AAC3D,OAAOC,YAAY,MAAM,mBAAgB;AACzC,OAAOC,QAAQ,MAAM,eAAY;AACjC,SAASC,IAAI,QAAQ,sBAAmB;AACxC,SAASC,oBAAoB,QAAQ,mBAAU;AAC/C,SAASC,eAAe,QAAQ,mBAAU;AAC1C,SAASC,IAAI,QAAQ,kCAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAW/C,eAAe,SAASC,sBAAsBA,CAAC;EAC7CC,KAAK;EAAEC,OAAO;EAAEC,QAAQ;EAAEC,SAAS;EAAEC,gBAAgB;EAAEC;AACjC,CAAC,EAAE;EACzB,MAAMC,IAAI,GAAGN,KAAK,CAACO,MAAM,IAAI,CAAC,GAAGd,eAAe,CAACO,KAAK,CAACQ,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI;EAC1E,MAAMC,SAAS,GAAGjB,oBAAoB,CAAC,IAAI,CAAC;EAE5C,oBACEI,IAAA,CAACR,qBAAqB;IACpBa,OAAO,EAAEA,OAAQ;IACjBS,KAAK,EAAC,2CAAqC;IAC3CC,IAAI,eACFb,KAAA,CAACP,IAAI;MAACqB,SAAS,EAAC,wCAAwC;MAAAC,QAAA,gBACtDjB,IAAA,CAACN,QAAQ;QAACsB,SAAS,EAAE1B,IAAI,CACvB,oBAAoB,EACpBuB,SAAS,GAAG,SAAS,GAAG,WAC1B,CAAE;QAAAI,QAAA,EAECb;MAAK,CACE,CAAC,eACXJ,IAAA,CAACP,YAAY;QACXyB,IAAI,EAAEpB,IAAK;QACXgB,KAAK,EAAE,SAASJ,IAAI,EAAES,SAAS,EAAG;QAClCC,WAAW,EAAC;MAAuE,CACpF,CAAC,eACFpB,IAAA,CAACT,SAAS;QACR8B,IAAI,EAAC,OAAO;QACZC,OAAO,EAAEb,YAAa;QACtBW,WAAW,EAAC;MAAkE,CAC/E,CAAC;IAAA,CACE,CACN;IACFb,SAAS,EAAEA,CAAA,KAAM;MACfA,SAAS,CAAC,CAAC;IACb,CAAE;IACFD,QAAQ,EAAEA,QAAS;IACnBiB,WAAW,EAAC,iBAAiB;IAC7BC,UAAU,EAAC,kBAAkB;IAC7BC,OAAO,EAAEjB,gBAAiB;IAC1BkB,aAAa,EAAE;EAAE,CAClB,CAAC;AAEN","ignoreList":[]}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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":["
|
|
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
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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":["
|
|
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
|
|
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
|
|
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',
|
|
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":["
|
|
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":[]}
|
|
@@ -5,7 +5,8 @@ interface ConfirmationModalProps {
|
|
|
5
5
|
onCancel: () => void;
|
|
6
6
|
onConfirm: () => void;
|
|
7
7
|
isConfirmPending: boolean;
|
|
8
|
+
alertMessage: string;
|
|
8
9
|
}
|
|
9
|
-
export default function ClabeConfirmationModal({ clabe, visible, onCancel, onConfirm, isConfirmPending, }: ConfirmationModalProps): import("react").JSX.Element;
|
|
10
|
+
export default function ClabeConfirmationModal({ clabe, visible, onCancel, onConfirm, isConfirmPending, alertMessage, }: ConfirmationModalProps): import("react").JSX.Element;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=ClabeConfirmationModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClabeConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ClabeConfirmationModal.tsx"],"names":[],"mappings":";AAWA,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ClabeConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ClabeConfirmationModal.tsx"],"names":[],"mappings":";AAWA,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,GACpE,EAAE,sBAAsB,+BAuCxB"}
|
|
@@ -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
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileDirectoryUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/fileDirectoryUtils.ts"],"names":[],"mappings":"AAEA,
|
|
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"}
|
|
@@ -5,7 +5,8 @@ interface ConfirmationModalProps {
|
|
|
5
5
|
onCancel: () => void;
|
|
6
6
|
onConfirm: () => void;
|
|
7
7
|
isConfirmPending: boolean;
|
|
8
|
+
alertMessage: string;
|
|
8
9
|
}
|
|
9
|
-
export default function ClabeConfirmationModal({ clabe, visible, onCancel, onConfirm, isConfirmPending, }: ConfirmationModalProps): import("react").JSX.Element;
|
|
10
|
+
export default function ClabeConfirmationModal({ clabe, visible, onCancel, onConfirm, isConfirmPending, alertMessage, }: ConfirmationModalProps): import("react").JSX.Element;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=ClabeConfirmationModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClabeConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ClabeConfirmationModal.tsx"],"names":[],"mappings":";AAWA,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ClabeConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ClabeConfirmationModal.tsx"],"names":[],"mappings":";AAWA,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,GACpE,EAAE,sBAAsB,+BAuCxB"}
|
|
@@ -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
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileDirectoryUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/fileDirectoryUtils.ts"],"names":[],"mappings":"AAEA,
|
|
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.
|
|
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": "^
|
|
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": "
|
|
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": "^
|
|
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": "~
|
|
40
|
-
"expo-contacts": "~
|
|
41
|
-
"expo-file-system": "~
|
|
42
|
-
"expo-intent-launcher": "~
|
|
43
|
-
"expo-linear-gradient": "~
|
|
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.
|
|
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": "~
|
|
97
|
-
"expo-contacts": "~
|
|
98
|
-
"expo-file-system": "
|
|
99
|
-
"expo-intent-launcher": "~
|
|
100
|
-
"expo-linear-gradient": "~
|
|
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",
|