@draftbit/core 46.12.7-23b2b2.2 → 46.12.7-b8def9.2

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.
@@ -3,13 +3,11 @@ export function usePrevious(value) {
3
3
  // The ref object is a generic container whose current property is mutable
4
4
  // and can hold any value, similar to an instance property on a class
5
5
  const ref = React.useRef();
6
-
7
6
  // Store current value in ref
8
7
  React.useEffect(() => {
9
8
  ref.current = value;
10
9
  }, [value]);
11
-
12
10
  // Return previous value (happens before update in useEffect above)
13
11
  return ref.current;
14
12
  }
15
- //# sourceMappingURL=hooks.js.map
13
+ //# sourceMappingURL=hooks.js.mapap
@@ -1 +1 @@
1
- {"version":3,"names":["React","usePrevious","value","ref","useRef","useEffect","current"],"sourceRoot":"../../src","sources":["hooks.ts"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAO,SAASC,WAAW,CAACC,KAAU,EAAE;EACtC;EACA;EACA,MAAMC,GAAG,GAAGH,KAAK,CAACI,MAAM,EAAE;;EAE1B;EACAJ,KAAK,CAACK,SAAS,CAAC,MAAM;IACpBF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACrB,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;;EAEX;EACA,OAAOC,GAAG,CAACG,OAAO;AACpB"}
1
+ {"version":3,"names":["React","usePrevious","value","ref","useRef","useEffect","current"],"sourceRoot":"../../src","sources":["hooks.js"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,SAASC,WAAW,CAACC,KAAK,EAAE;EAC/B;EACA;EACA,MAAMC,GAAG,GAAGH,KAAK,CAACI,MAAM,EAAE;EAC1B;EACAJ,KAAK,CAACK,SAAS,CAAC,MAAM;IAClBF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACvB,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EACX;EACA,OAAOC,GAAG,CAACG,OAAO;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.12.7-23b2b2.2+23b2b2d",
3
+ "version": "46.12.7-b8def9.2+b8def97",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.12.7-23b2b2.2+23b2b2d",
44
+ "@draftbit/types": "^46.12.7-b8def9.2+b8def97",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.3",
@@ -94,5 +94,5 @@
94
94
  "node_modules/",
95
95
  "lib/"
96
96
  ],
97
- "gitHead": "23b2b2d034a0b37ce19c9df419d7b763df8fd1da"
97
+ "gitHead": "b8def97e75390de288803b3e32c8bba93b64968d"
98
98
  }