@elliemae/ds-props-helpers 3.57.0-next.9 → 3.57.0-rc.1

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/globalProps/useGetGlobalAttributes.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n\nexport const useGetGlobalAttributes = <\n Props extends object,\n ElementType extends Element = Element,\n CustomAttributes extends object = object,\n>(\n props: Props,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<ElementType, CustomAttributes> => {\n const componentGlobalAttributes: GlobalAttributesT<ElementType, CustomAttributes> = useMemo(\n () => getGlobalAttributes<Props, ElementType, CustomAttributes>(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwB;AAExB,iCAAoC;AAG7B,MAAM,yBAAyB,CAKpC,OACA,cACqD;AACrD,QAAM,gCAA8E;AAAA,IAClF,UAAM,gDAA0D,OAAO,SAAS;AAAA,IAChF,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
4
+ "sourcesContent": ["import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n/**\n * Extracts global attributes from the props object and if overrides are provided, for functions invoke both the original and the override, for other attributes, the override takes precedence.\n * @param props - The props object from which to extract global attributes.\n * @param overrides - An optional object containing overrides for specific global attributes. NOTE: for functions, both the original and the override will be invoked.\n * @returns An object containing the extracted global attributes, with overrides applied where specified.\n */\nexport const useGetGlobalAttributes = <\n Props extends object,\n ElementType extends Element = Element,\n CustomAttributes extends object = object,\n>(\n props: Props,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<ElementType, CustomAttributes> => {\n const componentGlobalAttributes: GlobalAttributesT<ElementType, CustomAttributes> = useMemo(\n () => getGlobalAttributes<Props, ElementType, CustomAttributes>(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwB;AAExB,iCAAoC;AAQ7B,MAAM,yBAAyB,CAKpC,OACA,cACqD;AACrD,QAAM,gCAA8E;AAAA,IAClF,UAAM,gDAA0D,OAAO,SAAS;AAAA,IAChF,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/globalProps/useGetGlobalAttributes.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n\nexport const useGetGlobalAttributes = <\n Props extends object,\n ElementType extends Element = Element,\n CustomAttributes extends object = object,\n>(\n props: Props,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<ElementType, CustomAttributes> => {\n const componentGlobalAttributes: GlobalAttributesT<ElementType, CustomAttributes> = useMemo(\n () => getGlobalAttributes<Props, ElementType, CustomAttributes>(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe;AAExB,SAAS,2BAA2B;AAG7B,MAAM,yBAAyB,CAKpC,OACA,cACqD;AACrD,QAAM,4BAA8E;AAAA,IAClF,MAAM,oBAA0D,OAAO,SAAS;AAAA,IAChF,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n/**\n * Extracts global attributes from the props object and if overrides are provided, for functions invoke both the original and the override, for other attributes, the override takes precedence.\n * @param props - The props object from which to extract global attributes.\n * @param overrides - An optional object containing overrides for specific global attributes. NOTE: for functions, both the original and the override will be invoked.\n * @returns An object containing the extracted global attributes, with overrides applied where specified.\n */\nexport const useGetGlobalAttributes = <\n Props extends object,\n ElementType extends Element = Element,\n CustomAttributes extends object = object,\n>(\n props: Props,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<ElementType, CustomAttributes> => {\n const componentGlobalAttributes: GlobalAttributesT<ElementType, CustomAttributes> = useMemo(\n () => getGlobalAttributes<Props, ElementType, CustomAttributes>(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe;AAExB,SAAS,2BAA2B;AAQ7B,MAAM,yBAAyB,CAKpC,OACA,cACqD;AACrD,QAAM,4BAA8E;AAAA,IAClF,MAAM,oBAA0D,OAAO,SAAS;AAAA,IAChF,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,9 @@
1
1
  import type { GlobalAttributes } from './constants.js';
2
2
  import type { GlobalAttributesT } from './getGlobalAttributes.js';
3
+ /**
4
+ * Extracts global attributes from the props object and if overrides are provided, for functions invoke both the original and the override, for other attributes, the override takes precedence.
5
+ * @param props - The props object from which to extract global attributes.
6
+ * @param overrides - An optional object containing overrides for specific global attributes. NOTE: for functions, both the original and the override will be invoked.
7
+ * @returns An object containing the extracted global attributes, with overrides applied where specified.
8
+ */
3
9
  export declare const useGetGlobalAttributes: <Props extends object, ElementType extends Element = Element, CustomAttributes extends object = object>(props: Props, overrides?: Partial<GlobalAttributes<CallableFunction>>) => GlobalAttributesT<ElementType, CustomAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-props-helpers",
3
- "version": "3.57.0-next.9",
3
+ "version": "3.57.0-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Props Helpers",
6
6
  "files": [
@@ -32,34 +32,35 @@
32
32
  "reportFile": "tests.xml",
33
33
  "indent": 4
34
34
  },
35
+ "scripts": {
36
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
37
+ "test": "pui-cli test --passWithNoTests --coverage=\"false\"",
38
+ "lint": "node ../../../scripts/lint.mjs --fix",
39
+ "lint:strict": "node ../../../scripts/lint-strict.mjs",
40
+ "dts": "node ../../../scripts/dts.mjs",
41
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
42
+ "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
43
+ },
35
44
  "dependencies": {
36
- "fast-deep-equal": "~3.1.3",
37
- "prop-types": "~15.8.1",
38
- "@elliemae/ds-system": "3.57.0-next.9",
39
- "@elliemae/ds-typescript-helpers": "3.57.0-next.9"
45
+ "@elliemae/ds-system": "3.57.0-rc.1",
46
+ "@elliemae/ds-typescript-helpers": "3.57.0-rc.1",
47
+ "fast-deep-equal": "catalog:",
48
+ "prop-types": "catalog:"
40
49
  },
41
50
  "devDependencies": {
42
- "@elliemae/pui-cli": "9.0.0-next.65",
43
- "jest": "~29.7.0",
44
- "jest-cli": "~29.7.0",
45
- "@elliemae/ds-monorepo-devops": "3.57.0-next.9"
51
+ "@elliemae/ds-monorepo-devops": "3.57.0-rc.1",
52
+ "@elliemae/pui-cli": "catalog:",
53
+ "jest": "catalog:",
54
+ "jest-cli": "catalog:"
46
55
  },
47
56
  "peerDependencies": {
48
- "lodash-es": "^4.17.21",
49
- "react": "^18.3.1",
50
- "react-dom": "^18.3.1"
57
+ "lodash-es": "catalog:",
58
+ "react": "catalog:",
59
+ "react-dom": "catalog:"
51
60
  },
52
61
  "publishConfig": {
53
62
  "access": "public",
54
63
  "typeSafety": true
55
64
  },
56
- "scripts": {
57
- "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
58
- "test": "pui-cli test --passWithNoTests --coverage=\"false\"",
59
- "lint": "node ../../../scripts/lint.mjs --fix",
60
- "lint:strict": "node ../../../scripts/lint-strict.mjs",
61
- "dts": "node ../../../scripts/dts.mjs",
62
- "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
63
- "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
64
- }
65
- }
65
+ "gitHead": "d0d7cac7600d5ba2b1c5c80cba7573e6acc11a96"
66
+ }