@elliemae/ds-dataviz 3.37.1 → 3.38.0-rc.0
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.
- package/dist/cjs/typescript-testing/{typescript-toast-valid.js → typescript-data-viz-valid.js} +1 -1
- package/dist/cjs/typescript-testing/{typescript-toast-valid.js.map → typescript-data-viz-valid.js.map} +1 -1
- package/dist/esm/typescript-testing/{typescript-toast-valid.js → typescript-data-viz-valid.js} +1 -1
- package/dist/esm/typescript-testing/{typescript-toast-valid.js.map → typescript-data-viz-valid.js.map} +1 -1
- package/package.json +6 -6
- /package/dist/types/typescript-testing/{typescript-toast-valid.d.ts → typescript-data-viz-valid.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-data-viz-valid.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { Chart } from '../index.js';\nimport type { DSChartT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChartT.Props;\ntype ComponentPropsDefaultProps = DSChartT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChartT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChartT.RequiredProps;\n\nconst closeButtonRef = createRef<HTMLButtonElement>();\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n xAxis: {\n label: 'x-axis',\n type: 'linear',\n },\n yAxis: {\n label: 'y-axis',\n type: 'linear',\n },\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <Chart {...testExplicitDefinition} />\n <Chart {...testInferedTypeCompatibility} />\n <Chart {...testDefinitionAsConst} />\n {/* works with inline values */}\n <Chart\n series={[\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ]}\n xAxis={{\n label: 'x-axis',\n type: 'linear',\n }}\n yAxis={{\n label: 'y-axis',\n type: 'linear',\n }}\n />\n </>\n);\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;AC8ErB;AA7EF,mBAA0B;AAC1B,eAAsB;AAStB,MAAM,qBAAiB,wBAA6B;AAEpD,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD;AAAA,EACrD,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,E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|
"names": []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-data-viz-valid.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { Chart } from '../index.js';\nimport type { DSChartT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChartT.Props;\ntype ComponentPropsDefaultProps = DSChartT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChartT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChartT.RequiredProps;\n\nconst closeButtonRef = createRef<HTMLButtonElement>();\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n xAxis: {\n label: 'x-axis',\n type: 'linear',\n },\n yAxis: {\n label: 'y-axis',\n type: 'linear',\n },\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <Chart {...testExplicitDefinition} />\n <Chart {...testInferedTypeCompatibility} />\n <Chart {...testDefinitionAsConst} />\n {/* works with inline values */}\n <Chart\n series={[\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ]}\n xAxis={{\n label: 'x-axis',\n type: 'linear',\n }}\n yAxis={{\n label: 'y-axis',\n type: 'linear',\n }}\n />\n </>\n);\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;AC8ErB,mBAEE,KAFF;AA7EF,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AAStB,MAAM,iBAAiB,UAA6B;AAEpD,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD;AAAA,EACrD,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF;AAIA,MAAM,sBAA2D;AAAA,EAC/D,QAAQ;AAAA,IACN;AAAA,MACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,MACpB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,QAAQ;AAAA,IACN;AAAA,MACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,MACpB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAGA,MAAM,yBAA+C;AAAA,EACnD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,+BAA+B;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,SAAO,GAAG,wBAAwB;AAAA,EACnC,oBAAC,SAAO,GAAG,8BAA8B;AAAA,EACzC,oBAAC,SAAO,GAAG,uBAAuB;AAAA,EAElC;AAAA,IAAC;AAAA;AAAA,MACC,QAAQ;AAAA,QACN;AAAA,UACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,UACpB,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QACR;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA;AAAA,EACF;AAAA,GACF;",
|
|
6
6
|
"names": []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-dataviz",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.38.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - DataViz",
|
|
6
6
|
"files": [
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"d3-time": "~3.1.0",
|
|
43
43
|
"resize-observer-polyfill": "~1.5.1",
|
|
44
44
|
"uid": "~2.0.2",
|
|
45
|
-
"@elliemae/ds-grid": "3.
|
|
46
|
-
"@elliemae/ds-
|
|
47
|
-
"@elliemae/ds-props-helpers": "3.
|
|
48
|
-
"@elliemae/ds-
|
|
45
|
+
"@elliemae/ds-grid": "3.38.0-rc.0",
|
|
46
|
+
"@elliemae/ds-system": "3.38.0-rc.0",
|
|
47
|
+
"@elliemae/ds-props-helpers": "3.38.0-rc.0",
|
|
48
|
+
"@elliemae/ds-popperjs": "3.38.0-rc.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@elliemae/pui-cli": "9.0.0-next.50",
|
|
52
52
|
"@elliemae/pui-theme": "~2.9.3",
|
|
53
53
|
"@types/d3": "~7.4.0",
|
|
54
54
|
"styled-components": "~5.3.9",
|
|
55
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
55
|
+
"@elliemae/ds-monorepo-devops": "3.38.0-rc.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@elliemae/pui-theme": "~2.9.3",
|
|
File without changes
|