@azzapp/react-native-snapshot-view 0.1.3 → 0.1.4

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 (30) hide show
  1. package/lib/commonjs/SnapshotRenderer.js +3 -3
  2. package/lib/commonjs/SnapshotRenderer.js.map +1 -1
  3. package/lib/commonjs/index.js +1 -1
  4. package/lib/module/SnapshotRenderer.js +2 -2
  5. package/lib/module/SnapshotRenderer.js.map +1 -1
  6. package/lib/module/index.js +1 -1
  7. package/lib/module/index.js.map +1 -1
  8. package/lib/typescript/src/NativeRNSnapshotView.d.ts.map +1 -0
  9. package/lib/typescript/src/RNSnapshotRendererNativeComponent.d.ts.map +1 -0
  10. package/lib/typescript/src/SnapshotRenderer.d.ts.map +1 -0
  11. package/lib/typescript/src/index.d.ts.map +1 -0
  12. package/package.json +8 -31
  13. package/lib/typescript/commonjs/src/NativeRNSnapshotView.d.ts.map +0 -1
  14. package/lib/typescript/commonjs/src/RNSnapshotRendererNativeComponent.d.ts.map +0 -1
  15. package/lib/typescript/commonjs/src/SnapshotRenderer.d.ts.map +0 -1
  16. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  17. package/lib/typescript/module/src/NativeRNSnapshotView.d.ts +0 -8
  18. package/lib/typescript/module/src/NativeRNSnapshotView.d.ts.map +0 -1
  19. package/lib/typescript/module/src/RNSnapshotRendererNativeComponent.d.ts +0 -7
  20. package/lib/typescript/module/src/RNSnapshotRendererNativeComponent.d.ts.map +0 -1
  21. package/lib/typescript/module/src/SnapshotRenderer.d.ts +0 -27
  22. package/lib/typescript/module/src/SnapshotRenderer.d.ts.map +0 -1
  23. package/lib/typescript/module/src/index.d.ts +0 -16
  24. package/lib/typescript/module/src/index.d.ts.map +0 -1
  25. /package/lib/{typescript/commonjs → commonjs}/package.json +0 -0
  26. /package/lib/{typescript/module → module}/package.json +0 -0
  27. /package/lib/typescript/{commonjs/src → src}/NativeRNSnapshotView.d.ts +0 -0
  28. /package/lib/typescript/{commonjs/src → src}/RNSnapshotRendererNativeComponent.d.ts +0 -0
  29. /package/lib/typescript/{commonjs/src → src}/SnapshotRenderer.d.ts +0 -0
  30. /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = require("react");
8
- var _RNSnapshotRendererNativeComponent = _interopRequireDefault(require("./RNSnapshotRendererNativeComponent.js"));
9
- var _index = require("./index.js");
8
+ var _RNSnapshotRendererNativeComponent = _interopRequireDefault(require("./RNSnapshotRendererNativeComponent"));
9
+ var _ = require(".");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  /**
@@ -23,7 +23,7 @@ const SnapshotRenderer = ({
23
23
  }, [autoReleaseSnapshot]);
24
24
  (0, _react.useEffect)(() => () => {
25
25
  if (autoReleaseSnapshotRef.current && snapshotID) {
26
- (0, _index.releaseSnapshot)(snapshotID).catch(() => {});
26
+ (0, _.releaseSnapshot)(snapshotID).catch(() => {});
27
27
  }
28
28
  }, [snapshotID]);
29
29
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RNSnapshotRendererNativeComponent.default, {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_RNSnapshotRendererNativeComponent","_interopRequireDefault","_index","_jsxRuntime","e","__esModule","default","SnapshotRenderer","snapshotID","autoReleaseSnapshot","props","forwardedRef","autoReleaseSnapshotRef","useRef","useEffect","current","releaseSnapshot","catch","jsx","ref","_default","exports","forwardRef"],"sourceRoot":"../../src","sources":["SnapshotRenderer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,kCAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAoC,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAepC;AACA;AACA;AACA,MAAMG,gBAAgB,GAAGA,CACvB;EAAEC,UAAU;EAAEC,mBAAmB,GAAG,IAAI;EAAE,GAAGC;AAA6B,CAAC,EAC3EC,YAAgC,KAC7B;EACH,MAAMC,sBAAsB,GAAG,IAAAC,aAAM,EAACJ,mBAAmB,CAAC;EAC1D,IAAAK,gBAAS,EAAC,MAAM;IACdF,sBAAsB,CAACG,OAAO,GAAGN,mBAAmB;EACtD,CAAC,EAAE,CAACA,mBAAmB,CAAC,CAAC;EAEzB,IAAAK,gBAAS,EACP,MAAM,MAAM;IACV,IAAIF,sBAAsB,CAACG,OAAO,IAAIP,UAAU,EAAE;MAChD,IAAAQ,sBAAe,EAACR,UAAU,CAAC,CAACS,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C;EACF,CAAC,EACD,CAACT,UAAU,CACb,CAAC;EACD,oBACE,IAAAL,WAAA,CAAAe,GAAA,EAAClB,kCAAA,CAAAM,OAAkB;IAACa,GAAG,EAAER,YAAa;IAACH,UAAU,EAAEA,UAAW;IAAA,GAAKE;EAAK,CAAG,CAAC;AAEhF,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAf,OAAA,gBAEa,IAAAgB,iBAAU,EAACf,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_RNSnapshotRendererNativeComponent","_interopRequireDefault","_","_jsxRuntime","e","__esModule","default","SnapshotRenderer","snapshotID","autoReleaseSnapshot","props","forwardedRef","autoReleaseSnapshotRef","useRef","useEffect","current","releaseSnapshot","catch","jsx","ref","_default","exports","forwardRef"],"sourceRoot":"../../src","sources":["SnapshotRenderer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,kCAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAH,OAAA;AAAoC,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAepC;AACA;AACA;AACA,MAAMG,gBAAgB,GAAGA,CACvB;EAAEC,UAAU;EAAEC,mBAAmB,GAAG,IAAI;EAAE,GAAGC;AAA6B,CAAC,EAC3EC,YAAgC,KAC7B;EACH,MAAMC,sBAAsB,GAAG,IAAAC,aAAM,EAACJ,mBAAmB,CAAC;EAC1D,IAAAK,gBAAS,EAAC,MAAM;IACdF,sBAAsB,CAACG,OAAO,GAAGN,mBAAmB;EACtD,CAAC,EAAE,CAACA,mBAAmB,CAAC,CAAC;EAEzB,IAAAK,gBAAS,EACP,MAAM,MAAM;IACV,IAAIF,sBAAsB,CAACG,OAAO,IAAIP,UAAU,EAAE;MAChD,IAAAQ,iBAAe,EAACR,UAAU,CAAC,CAACS,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C;EACF,CAAC,EACD,CAACT,UAAU,CACb,CAAC;EACD,oBACE,IAAAL,WAAA,CAAAe,GAAA,EAAClB,kCAAA,CAAAM,OAAkB;IAACa,GAAG,EAAER,YAAa;IAACH,UAAU,EAAEA,UAAW;IAAA,GAAKE;EAAK,CAAG,CAAC;AAEhF,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAf,OAAA,gBAEa,IAAAgB,iBAAU,EAACf,gBAAgB,CAAC","ignoreList":[]}
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "SnapshotRenderer", {
12
12
  exports.captureSnapshot = captureSnapshot;
13
13
  exports.releaseSnapshot = releaseSnapshot;
14
14
  var _reactNative = require("react-native");
15
- var _SnapshotRenderer = _interopRequireDefault(require("./SnapshotRenderer.js"));
15
+ var _SnapshotRenderer = _interopRequireDefault(require("./SnapshotRenderer"));
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
17
  const LINKING_ERROR = `The package '@azzapp/react-native-snapshot-view' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
18
18
  ios: "- You have run 'pod install'\n",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import { forwardRef, useEffect, useRef } from 'react';
4
- import RNSnapshotRenderer from "./RNSnapshotRendererNativeComponent.js";
5
- import { releaseSnapshot } from "./index.js";
4
+ import RNSnapshotRenderer from './RNSnapshotRendererNativeComponent';
5
+ import { releaseSnapshot } from '.';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  /**
8
8
  * A view that renders a snapshot of a view.
@@ -1 +1 @@
1
- {"version":3,"names":["forwardRef","useEffect","useRef","RNSnapshotRenderer","releaseSnapshot","jsx","_jsx","SnapshotRenderer","snapshotID","autoReleaseSnapshot","props","forwardedRef","autoReleaseSnapshotRef","current","catch","ref"],"sourceRoot":"../../src","sources":["SnapshotRenderer.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAA2B,OAAO;AAExE,OAAOC,kBAAkB,MAAM,wCAAqC;AACpE,SAASC,eAAe,QAAQ,YAAG;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAepC;AACA;AACA;AACA,MAAMC,gBAAgB,GAAGA,CACvB;EAAEC,UAAU;EAAEC,mBAAmB,GAAG,IAAI;EAAE,GAAGC;AAA6B,CAAC,EAC3EC,YAAgC,KAC7B;EACH,MAAMC,sBAAsB,GAAGV,MAAM,CAACO,mBAAmB,CAAC;EAC1DR,SAAS,CAAC,MAAM;IACdW,sBAAsB,CAACC,OAAO,GAAGJ,mBAAmB;EACtD,CAAC,EAAE,CAACA,mBAAmB,CAAC,CAAC;EAEzBR,SAAS,CACP,MAAM,MAAM;IACV,IAAIW,sBAAsB,CAACC,OAAO,IAAIL,UAAU,EAAE;MAChDJ,eAAe,CAACI,UAAU,CAAC,CAACM,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C;EACF,CAAC,EACD,CAACN,UAAU,CACb,CAAC;EACD,oBACEF,IAAA,CAACH,kBAAkB;IAACY,GAAG,EAAEJ,YAAa;IAACH,UAAU,EAAEA,UAAW;IAAA,GAAKE;EAAK,CAAG,CAAC;AAEhF,CAAC;AAED,4BAAeV,UAAU,CAACO,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["forwardRef","useEffect","useRef","RNSnapshotRenderer","releaseSnapshot","jsx","_jsx","SnapshotRenderer","snapshotID","autoReleaseSnapshot","props","forwardedRef","autoReleaseSnapshotRef","current","catch","ref"],"sourceRoot":"../../src","sources":["SnapshotRenderer.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAA2B,OAAO;AAExE,OAAOC,kBAAkB,MAAM,qCAAqC;AACpE,SAASC,eAAe,QAAQ,GAAG;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAepC;AACA;AACA;AACA,MAAMC,gBAAgB,GAAGA,CACvB;EAAEC,UAAU;EAAEC,mBAAmB,GAAG,IAAI;EAAE,GAAGC;AAA6B,CAAC,EAC3EC,YAAgC,KAC7B;EACH,MAAMC,sBAAsB,GAAGV,MAAM,CAACO,mBAAmB,CAAC;EAC1DR,SAAS,CAAC,MAAM;IACdW,sBAAsB,CAACC,OAAO,GAAGJ,mBAAmB;EACtD,CAAC,EAAE,CAACA,mBAAmB,CAAC,CAAC;EAEzBR,SAAS,CACP,MAAM,MAAM;IACV,IAAIW,sBAAsB,CAACC,OAAO,IAAIL,UAAU,EAAE;MAChDJ,eAAe,CAACI,UAAU,CAAC,CAACM,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C;EACF,CAAC,EACD,CAACN,UAAU,CACb,CAAC;EACD,oBACEF,IAAA,CAACH,kBAAkB;IAACY,GAAG,EAAEJ,YAAa;IAACH,UAAU,EAAEA,UAAW;IAAA,GAAKE;EAAK,CAAG,CAAC;AAEhF,CAAC;AAED,4BAAeV,UAAU,CAACO,gBAAgB,CAAC","ignoreList":[]}
@@ -38,5 +38,5 @@ export function captureSnapshot(componentOrHandle) {
38
38
  export function releaseSnapshot(snapshotID) {
39
39
  return RNSnapshotView.releaseSnapshot(snapshotID);
40
40
  }
41
- export { default as SnapshotRenderer } from "./SnapshotRenderer.js";
41
+ export { default as SnapshotRenderer } from './SnapshotRenderer';
42
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["findNodeHandle","NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","RNSnapshotViewModule","require","RNSnapshotView","Proxy","get","Error","captureSnapshot","componentOrHandle","handle","Promise","reject","releaseSnapshot","snapshotID","SnapshotRenderer"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,cAAc,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtE,MAAMC,aAAa,GACjB,6FAA6F,GAC7FD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,oBAAoB,GAAGH,oBAAoB,GAC7CI,OAAO,CAAC,wBAAwB,CAAC,CAACL,OAAO,GACzCL,aAAa,CAACW,cAAc;AAEhC,MAAMA,cAAc,GAAGF,oBAAoB,GACvCA,oBAAoB,GACpB,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACZ,aAAa,CAAC;EAChC;AACF,CACF,CAAC;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASa,eAAeA,CAC7BC,iBAI6B,EACZ;EACjB,MAAMC,MAAM,GAAGlB,cAAc,CAACiB,iBAAiB,CAAC;EAChD,IAAIC,MAAM,IAAI,IAAI,EAAE;IAClB,OAAOC,OAAO,CAACC,MAAM,CAAC,IAAIL,KAAK,CAAC,qBAAqB,CAAC,CAAC;EACzD;EACA,OAAOH,cAAc,CAACI,eAAe,CAACE,MAAM,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,eAAeA,CAACC,UAAkB,EAAiB;EACjE,OAAOV,cAAc,CAACS,eAAe,CAACC,UAAU,CAAC;AACnD;AAEA,SAAShB,OAAO,IAAIiB,gBAAgB,QAAQ,uBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["findNodeHandle","NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","RNSnapshotViewModule","require","RNSnapshotView","Proxy","get","Error","captureSnapshot","componentOrHandle","handle","Promise","reject","releaseSnapshot","snapshotID","SnapshotRenderer"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,cAAc,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtE,MAAMC,aAAa,GACjB,6FAA6F,GAC7FD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,oBAAoB,GAAGH,oBAAoB,GAC7CI,OAAO,CAAC,wBAAwB,CAAC,CAACL,OAAO,GACzCL,aAAa,CAACW,cAAc;AAEhC,MAAMA,cAAc,GAAGF,oBAAoB,GACvCA,oBAAoB,GACpB,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACZ,aAAa,CAAC;EAChC;AACF,CACF,CAAC;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASa,eAAeA,CAC7BC,iBAI6B,EACZ;EACjB,MAAMC,MAAM,GAAGlB,cAAc,CAACiB,iBAAiB,CAAC;EAChD,IAAIC,MAAM,IAAI,IAAI,EAAE;IAClB,OAAOC,OAAO,CAACC,MAAM,CAAC,IAAIL,KAAK,CAAC,qBAAqB,CAAC,CAAC;EACzD;EACA,OAAOH,cAAc,CAACI,eAAe,CAACE,MAAM,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,eAAeA,CAACC,UAAkB,EAAiB;EACjE,OAAOV,cAAc,CAACS,eAAe,CAACC,UAAU,CAAC;AACnD;AAEA,SAAShB,OAAO,IAAIiB,gBAAgB,QAAQ,oBAAoB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRNSnapshotView.d.ts","sourceRoot":"","sources":["../../../src/NativeRNSnapshotView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;;AAED,wBAAwE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNSnapshotRendererNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/RNSnapshotRendererNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;;AAED,wBAAyE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SnapshotRenderer.d.ts","sourceRoot":"","sources":["../../../src/SnapshotRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAChE;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;;IAVA;;;OAGG;gBACS,MAAM,GAAG,IAAI;IACzB;;;OAGG;0BACmB,OAAO;;AA4B/B,wBAA4C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,iBAAiB,EACb,IAAI,GACJ,MAAM,GACN,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,23 +1,12 @@
1
1
  {
2
2
  "name": "@azzapp/react-native-snapshot-view",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Snapshot view for react-native",
5
- "source": "./src/index.tsx",
5
+ "main": "lib/commonjs/index",
6
+ "module": "lib/module/index",
7
+ "types": "lib/typescript/src/index.d.ts",
6
8
  "react-native": "src/index",
7
- "main": "./lib/commonjs/index.js",
8
- "module": "./lib/module/index.js",
9
- "exports": {
10
- ".": {
11
- "import": {
12
- "types": "./lib/typescript/module/src/index.d.ts",
13
- "default": "./lib/module/index.js"
14
- },
15
- "require": {
16
- "types": "./lib/typescript/commonjs/src/index.d.ts",
17
- "default": "./lib/commonjs/index.js"
18
- }
19
- }
20
- },
9
+ "source": "src/index",
21
10
  "files": [
22
11
  "src",
23
12
  "lib",
@@ -161,24 +150,12 @@
161
150
  "source": "src",
162
151
  "output": "lib",
163
152
  "targets": [
164
- "codegen",
165
- [
166
- "commonjs",
167
- {
168
- "esm": true
169
- }
170
- ],
171
- [
172
- "module",
173
- {
174
- "esm": true
175
- }
176
- ],
153
+ "commonjs",
154
+ "module",
177
155
  [
178
156
  "typescript",
179
157
  {
180
- "project": "tsconfig.build.json",
181
- "esm": true
158
+ "project": "tsconfig.build.json"
182
159
  }
183
160
  ]
184
161
  ]
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeRNSnapshotView.d.ts","sourceRoot":"","sources":["../../../../src/NativeRNSnapshotView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;;AAED,wBAAwE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNSnapshotRendererNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNSnapshotRendererNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;;AAED,wBAAyE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnapshotRenderer.d.ts","sourceRoot":"","sources":["../../../../src/SnapshotRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAChE;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;;IAVA;;;OAGG;gBACS,MAAM,GAAG,IAAI;IACzB;;;OAGG;0BACmB,OAAO;;AA4B/B,wBAA4C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,iBAAiB,EACb,IAAI,GACJ,MAAM,GACN,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { TurboModule } from 'react-native';
2
- export interface Spec extends TurboModule {
3
- captureSnapshot(target: number): Promise<string>;
4
- releaseSnapshot(a: string): Promise<void>;
5
- }
6
- declare const _default: Spec;
7
- export default _default;
8
- //# sourceMappingURL=NativeRNSnapshotView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeRNSnapshotView.d.ts","sourceRoot":"","sources":["../../../../src/NativeRNSnapshotView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;;AAED,wBAAwE"}
@@ -1,7 +0,0 @@
1
- import type { ViewProps } from 'react-native';
2
- interface NativeProps extends ViewProps {
3
- snapshotID?: string | null;
4
- }
5
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
6
- export default _default;
7
- //# sourceMappingURL=RNSnapshotRendererNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNSnapshotRendererNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNSnapshotRendererNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;;AAED,wBAAyE"}
@@ -1,27 +0,0 @@
1
- import type { View, ViewProps } from 'react-native';
2
- export type SnapshotRendererProps = Omit<ViewProps, 'children'> & {
3
- /**
4
- * The ID of the snapshot to render.
5
- * This ID is returned by the `captureSnapshot` function.
6
- */
7
- snapshotID: string | null;
8
- /**
9
- * Whether to automatically release the snapshot when no longer displayed.
10
- * @default true
11
- */
12
- autoReleaseSnapshot?: boolean;
13
- };
14
- declare const _default: import("react").ForwardRefExoticComponent<Omit<ViewProps, "children"> & {
15
- /**
16
- * The ID of the snapshot to render.
17
- * This ID is returned by the `captureSnapshot` function.
18
- */
19
- snapshotID: string | null;
20
- /**
21
- * Whether to automatically release the snapshot when no longer displayed.
22
- * @default true
23
- */
24
- autoReleaseSnapshot?: boolean;
25
- } & import("react").RefAttributes<View>>;
26
- export default _default;
27
- //# sourceMappingURL=SnapshotRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnapshotRenderer.d.ts","sourceRoot":"","sources":["../../../../src/SnapshotRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAChE;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;;IAVA;;;OAGG;gBACS,MAAM,GAAG,IAAI;IACzB;;;OAGG;0BACmB,OAAO;;AA4B/B,wBAA4C"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Captures a snapshot of a view. The snapshot can be rendered using the `SnapshotRenderer` component.
3
- *
4
- * @param componentOrHandle The view to capture. Can be a view ref or a native component handle.
5
- * @returns A promise that resolves to the ID of the snapshot. The snapshot should be released when no longer needed.
6
- */
7
- export declare function captureSnapshot(componentOrHandle: null | number | React.Component<any, any> | React.ComponentClass<any>): Promise<string>;
8
- /**
9
- * Releases a snapshot.
10
- *
11
- * @param snapshotID The ID of the snapshot to release.
12
- * @returns A promise that resolves when the snapshot is released.
13
- */
14
- export declare function releaseSnapshot(snapshotID: string): Promise<void>;
15
- export { default as SnapshotRenderer } from './SnapshotRenderer';
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,iBAAiB,EACb,IAAI,GACJ,MAAM,GACN,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
File without changes
File without changes