@elliemae/ds-utilities 3.1.0-next.2 → 3.1.0-next.5
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/props-helpers/xstyledProps/useGetXstyledProps.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { useMemo } from 'react';\nimport type { SizingProps, SpaceProps, LayoutProps } from '@
|
|
4
|
+
"sourcesContent": ["import { useMemo } from 'react';\nimport type { SizingProps, SpaceProps, LayoutProps } from '@elliemae/ds-system';\nimport { xstyledKeys } from './constants';\n\nexport type XstyledProps = SpaceProps & SizingProps & LayoutProps;\n\ntype PropsWithXstyled<T> = T & XstyledProps;\n\nexport const useGetXstyledProps = <T,>(props: PropsWithXstyled<T>): XstyledProps => {\n const componentXstyledProps = useMemo(() => {\n const xstyledPropsObject: Record<string, unknown> = {};\n Object.entries(props).forEach(([key, value]) => {\n if (key in xstyledKeys) {\n xstyledPropsObject[key] = value;\n }\n });\n return xstyledPropsObject;\n }, [props]);\n\n return componentXstyledProps as XstyledProps;\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwB;AAExB,uBAA4B;AAMrB,MAAM,qBAAqB,CAAK,UAA6C;AAClF,QAAM,wBAAwB,0BAAQ,MAAM;AAC1C,UAAM,qBAA8C,CAAC;AACrD,WAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,WAAW;AAC9C,UAAI,OAAO,8BAAa;AACtB,2BAAmB,OAAO;AAAA,MAC5B;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT,GAAG,CAAC,KAAK,CAAC;AAEV,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/props-helpers/xstyledProps/useGetXstyledProps.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type { SizingProps, SpaceProps, LayoutProps } from '@
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type { SizingProps, SpaceProps, LayoutProps } from '@elliemae/ds-system';\nimport { xstyledKeys } from './constants';\n\nexport type XstyledProps = SpaceProps & SizingProps & LayoutProps;\n\ntype PropsWithXstyled<T> = T & XstyledProps;\n\nexport const useGetXstyledProps = <T,>(props: PropsWithXstyled<T>): XstyledProps => {\n const componentXstyledProps = useMemo(() => {\n const xstyledPropsObject: Record<string, unknown> = {};\n Object.entries(props).forEach(([key, value]) => {\n if (key in xstyledKeys) {\n xstyledPropsObject[key] = value;\n }\n });\n return xstyledPropsObject;\n }, [props]);\n\n return componentXstyledProps as XstyledProps;\n};\n"],
|
|
5
5
|
"mappings": "AAAA;ACAA;AAEA;AAMO,MAAM,qBAAqB,CAAK,UAA6C;AAClF,QAAM,wBAAwB,QAAQ,MAAM;AAC1C,UAAM,qBAA8C,CAAC;AACrD,WAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,WAAW;AAC9C,UAAI,OAAO,aAAa;AACtB,2BAAmB,OAAO;AAAA,MAC5B;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT,GAAG,CAAC,KAAK,CAAC;AAEV,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-utilities",
|
|
3
|
-
"version": "3.1.0-next.
|
|
3
|
+
"version": "3.1.0-next.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Utilities",
|
|
6
6
|
"files": [
|
|
@@ -146,20 +146,16 @@
|
|
|
146
146
|
"reportFile": "tests.xml",
|
|
147
147
|
"indent": 4
|
|
148
148
|
},
|
|
149
|
-
"scripts": {
|
|
150
|
-
"test": "node ../../scripts/testing/test.mjs",
|
|
151
|
-
"lint": "node ../../scripts/lint.mjs",
|
|
152
|
-
"dts": "node ../../scripts/dts.mjs",
|
|
153
|
-
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
154
|
-
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch"
|
|
155
|
-
},
|
|
156
149
|
"publishConfig": {
|
|
157
150
|
"access": "public",
|
|
158
151
|
"typeSafety": true
|
|
159
152
|
},
|
|
160
153
|
"dependencies": {
|
|
161
|
-
"@
|
|
154
|
+
"@elliemae/ds-system": "3.1.0-next.5",
|
|
155
|
+
"@elliemae/pui-theme": "~2.5.0",
|
|
156
|
+
"fast-deep-equal": "~3.1.3",
|
|
162
157
|
"hotkeys-js": "~3.8.7",
|
|
158
|
+
"prop-types": "~15.8.1",
|
|
163
159
|
"raf": "~3.4.1",
|
|
164
160
|
"resize-observer-polyfill": "~1.5.1",
|
|
165
161
|
"uncontrollable": "~6.2.3",
|
|
@@ -167,9 +163,21 @@
|
|
|
167
163
|
"use-measure": "~0.3.0",
|
|
168
164
|
"use-onclickoutside": "~0.3.2"
|
|
169
165
|
},
|
|
166
|
+
"devDependencies": {
|
|
167
|
+
"@testing-library/jest-dom": "~5.16.4",
|
|
168
|
+
"@testing-library/react": "~12.1.2"
|
|
169
|
+
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"lodash": "^4.17.21",
|
|
172
172
|
"react": "~17.0.2",
|
|
173
173
|
"react-dom": "^17.0.2"
|
|
174
|
+
},
|
|
175
|
+
"scripts": {
|
|
176
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
177
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
178
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
179
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
180
|
+
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\"",
|
|
181
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch"
|
|
174
182
|
}
|
|
175
|
-
}
|
|
183
|
+
}
|