@elliemae/ds-props-helpers 3.55.0-next.20 → 3.55.0-next.22

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.
@@ -32,10 +32,10 @@ __export(useOwnerProps_exports, {
32
32
  });
33
33
  module.exports = __toCommonJS(useOwnerProps_exports);
34
34
  var React = __toESM(require("react"));
35
- var import_react = require("react");
35
+ var import_react = __toESM(require("react"));
36
36
  const useOwnerProps = (props, args) => {
37
- const getOwnerProps = (0, import_react.useCallback)(() => props, [props]);
38
- const getOwnerPropsArguments = (0, import_react.useCallback)(() => args ?? {}, [args]);
39
- return { getOwnerProps, getOwnerPropsArguments };
37
+ const getOwnerProps = import_react.default.useCallback(() => props, [props]);
38
+ const getOwnerPropsArguments = import_react.default.useCallback(() => args ?? {}, [args]);
39
+ return import_react.default.useMemo(() => ({ getOwnerProps, getOwnerPropsArguments }), [getOwnerProps, getOwnerPropsArguments]);
40
40
  };
41
41
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/useOwnerProps/index.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { useCallback } from 'react';\n\nexport const useOwnerProps = <P, A extends object = Record<string, never>>(props: P, args?: A) => {\n const getOwnerProps = useCallback(() => props, [props]);\n const getOwnerPropsArguments = useCallback(() => args ?? {}, [args]);\n return { getOwnerProps, getOwnerPropsArguments };\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAA4B;AAErB,MAAM,gBAAgB,CAA8C,OAAU,SAAa;AAChG,QAAM,oBAAgB,0BAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AACtD,QAAM,6BAAyB,0BAAY,MAAM,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;AACnE,SAAO,EAAE,eAAe,uBAAuB;AACjD;",
6
- "names": []
4
+ "sourcesContent": ["import React from 'react';\n\nexport const useOwnerProps = <P, A extends object = Record<string, never>>(props: P, args?: A) => {\n const getOwnerProps = React.useCallback(() => props, [props]);\n const getOwnerPropsArguments = React.useCallback(() => args ?? {}, [args]);\n return React.useMemo(() => ({ getOwnerProps, getOwnerPropsArguments }), [getOwnerProps, getOwnerPropsArguments]);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAEX,MAAM,gBAAgB,CAA8C,OAAU,SAAa;AAChG,QAAM,gBAAgB,aAAAA,QAAM,YAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AAC5D,QAAM,yBAAyB,aAAAA,QAAM,YAAY,MAAM,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;AACzE,SAAO,aAAAA,QAAM,QAAQ,OAAO,EAAE,eAAe,uBAAuB,IAAI,CAAC,eAAe,sBAAsB,CAAC;AACjH;",
6
+ "names": ["React"]
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
- import { useCallback } from "react";
2
+ import React2 from "react";
3
3
  const useOwnerProps = (props, args) => {
4
- const getOwnerProps = useCallback(() => props, [props]);
5
- const getOwnerPropsArguments = useCallback(() => args ?? {}, [args]);
6
- return { getOwnerProps, getOwnerPropsArguments };
4
+ const getOwnerProps = React2.useCallback(() => props, [props]);
5
+ const getOwnerPropsArguments = React2.useCallback(() => args ?? {}, [args]);
6
+ return React2.useMemo(() => ({ getOwnerProps, getOwnerPropsArguments }), [getOwnerProps, getOwnerPropsArguments]);
7
7
  };
8
8
  export {
9
9
  useOwnerProps
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/useOwnerProps/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useCallback } from 'react';\n\nexport const useOwnerProps = <P, A extends object = Record<string, never>>(props: P, args?: A) => {\n const getOwnerProps = useCallback(() => props, [props]);\n const getOwnerPropsArguments = useCallback(() => args ?? {}, [args]);\n return { getOwnerProps, getOwnerPropsArguments };\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,mBAAmB;AAErB,MAAM,gBAAgB,CAA8C,OAAU,SAAa;AAChG,QAAM,gBAAgB,YAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AACtD,QAAM,yBAAyB,YAAY,MAAM,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;AACnE,SAAO,EAAE,eAAe,uBAAuB;AACjD;",
6
- "names": []
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\n\nexport const useOwnerProps = <P, A extends object = Record<string, never>>(props: P, args?: A) => {\n const getOwnerProps = React.useCallback(() => props, [props]);\n const getOwnerPropsArguments = React.useCallback(() => args ?? {}, [args]);\n return React.useMemo(() => ({ getOwnerProps, getOwnerPropsArguments }), [getOwnerProps, getOwnerPropsArguments]);\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAEX,MAAM,gBAAgB,CAA8C,OAAU,SAAa;AAChG,QAAM,gBAAgBA,OAAM,YAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AAC5D,QAAM,yBAAyBA,OAAM,YAAY,MAAM,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;AACzE,SAAOA,OAAM,QAAQ,OAAO,EAAE,eAAe,uBAAuB,IAAI,CAAC,eAAe,sBAAsB,CAAC;AACjH;",
6
+ "names": ["React"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-props-helpers",
3
- "version": "3.55.0-next.20",
3
+ "version": "3.55.0-next.22",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Props Helpers",
6
6
  "files": [
@@ -35,14 +35,14 @@
35
35
  "dependencies": {
36
36
  "fast-deep-equal": "~3.1.3",
37
37
  "prop-types": "~15.8.1",
38
- "@elliemae/ds-system": "3.55.0-next.20",
39
- "@elliemae/ds-typescript-helpers": "3.55.0-next.20"
38
+ "@elliemae/ds-system": "3.55.0-next.22",
39
+ "@elliemae/ds-typescript-helpers": "3.55.0-next.22"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@elliemae/pui-cli": "9.0.0-next.65",
43
43
  "jest": "~29.7.0",
44
44
  "jest-cli": "~29.7.0",
45
- "@elliemae/ds-monorepo-devops": "3.55.0-next.20"
45
+ "@elliemae/ds-monorepo-devops": "3.55.0-next.22"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "lodash-es": "^4.17.21",