@elliemae/ds-decision-graph 3.70.0-next.7 → 3.70.0-next.71
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAAuE;AAEvE,uBAA4B;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { JSON_SCHEMA } from './constants/index.js';\n\nexport declare namespace DSDecisionGraphT {\n export type Directions = 'LR' | 'TD'; // left to right | top down\n export type SemanticMeaning = 'question' | 'conclusion';\n export type NodePath = `${string}${'t' | 'f' | 'o' | 's'}`; // Node ID for a decision node, doubles as the path to the node | T true | F false | O (other) not applicable | S start\n export type ConclusionMarkdown = `${string | NodePath}(${string})`; // Mermaid Markdown for a conclusion node | A node with round edges\n export type QuestionMarkdown = `${string | NodePath}{{${string}}}`; // Mermaid Markdown for a question node | A hexagon node\n export type NodeMarkdown = ConclusionMarkdown | QuestionMarkdown;\n export type TrueLinkMarkdown = `-->|true|`; // Mermaid Markdown for a true path link\n export type FalseLinkMarkdown = `-->|false|`; // Mermaid Markdown for a false path link\n export type NALinkMarkdown = `-->|N/A|`; // Mermaid Markdown for a not applicable path link\n export type LinkMarkdown = TrueLinkMarkdown | FalseLinkMarkdown | NALinkMarkdown | '';\n\n /**\n * Node polymorphism for the \"meaning\" the node has in the decision tree.\n * this influence the node shape in the decision chart.\n */\n // common properties for all nodes\n export interface BaseNode {\n nodeText: string; // Text representing a conclusion or question\n truePath?: DecisionNode; // Decision node for the true path\n falsePath?: DecisionNode; // Decision node for the false path\n notApplicablePath?: DecisionNode; // Decision node for the not applicable path\n repeatedId?: string; // Id of the node if it is repeated in the decision tree and we want to show it only once in the decision chart\n }\n // polymorphism for node with the semantic meaning of \"question\"\n export interface QuestionNode extends BaseNode {\n semanticMeaning: 'question';\n }\n // polymorphism for node with the semantic meaning of \"conclusion\"\n export interface ConclusionNode extends BaseNode {\n semanticMeaning: 'conclusion';\n }\n // polymorphism for all nodes\n export type DecisionNode = QuestionNode | ConclusionNode;\n /**\n * yes, polymorphism in typescript is this verbose and this hard to handle correctly.\n */\n\n export type RootNode = {\n chartTitle: string; // Title of the decision chart\n subtree: DecisionNode; // The root of the decision tree\n };\n\n export interface RequiredProps {\n chartJson: RootNode;\n }\n\n export interface DefaultProps {\n direction: Directions;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends\n Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends\n DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSDecisionGraphT.DefaultProps = {\n direction: 'LR',\n};\n\nexport const DSDecisionGraphPropTypes: DSPropTypesSchema<DSDecisionGraphT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n chartJson: PropTypes.object.description(\n `the json representing the decision chart. must comply with the following json_schema:\\n${JSON.stringify(\n JSON_SCHEMA,\n )}`,\n ).isRequired,\n direction: PropTypes.oneOf(['LR', 'TD'])\n .description('direction of the flowchart, default is LR (left to right)')\n .defaultValue('LR'),\n};\n\nexport const DSDecisionGraphPropTypesSchema =\n DSDecisionGraphPropTypes as unknown as WeakValidationMap<DSDecisionGraphT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAAuE;AAEvE,uBAA4B;AAwErB,MAAM,eAA8C;AAAA,EACzD,WAAW;AACb;AAEO,MAAM,2BAAsE;AAAA,EACjF,GAAG;AAAA,EACH,GAAG;AAAA,EACH,WAAW,kCAAU,OAAO;AAAA,IAC1B;AAAA,EAA0F,KAAK;AAAA,MAC7F;AAAA,IACF,CAAC;AAAA,EACH,EAAE;AAAA,EACF,WAAW,kCAAU,MAAM,CAAC,MAAM,IAAI,CAAC,EACpC,YAAY,2DAA2D,EACvE,aAAa,IAAI;AACtB;AAEO,MAAM,iCACX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AAEvE,SAAS,mBAAmB;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { JSON_SCHEMA } from './constants/index.js';\n\nexport declare namespace DSDecisionGraphT {\n export type Directions = 'LR' | 'TD'; // left to right | top down\n export type SemanticMeaning = 'question' | 'conclusion';\n export type NodePath = `${string}${'t' | 'f' | 'o' | 's'}`; // Node ID for a decision node, doubles as the path to the node | T true | F false | O (other) not applicable | S start\n export type ConclusionMarkdown = `${string | NodePath}(${string})`; // Mermaid Markdown for a conclusion node | A node with round edges\n export type QuestionMarkdown = `${string | NodePath}{{${string}}}`; // Mermaid Markdown for a question node | A hexagon node\n export type NodeMarkdown = ConclusionMarkdown | QuestionMarkdown;\n export type TrueLinkMarkdown = `-->|true|`; // Mermaid Markdown for a true path link\n export type FalseLinkMarkdown = `-->|false|`; // Mermaid Markdown for a false path link\n export type NALinkMarkdown = `-->|N/A|`; // Mermaid Markdown for a not applicable path link\n export type LinkMarkdown = TrueLinkMarkdown | FalseLinkMarkdown | NALinkMarkdown | '';\n\n /**\n * Node polymorphism for the \"meaning\" the node has in the decision tree.\n * this influence the node shape in the decision chart.\n */\n // common properties for all nodes\n export interface BaseNode {\n nodeText: string; // Text representing a conclusion or question\n truePath?: DecisionNode; // Decision node for the true path\n falsePath?: DecisionNode; // Decision node for the false path\n notApplicablePath?: DecisionNode; // Decision node for the not applicable path\n repeatedId?: string; // Id of the node if it is repeated in the decision tree and we want to show it only once in the decision chart\n }\n // polymorphism for node with the semantic meaning of \"question\"\n export interface QuestionNode extends BaseNode {\n semanticMeaning: 'question';\n }\n // polymorphism for node with the semantic meaning of \"conclusion\"\n export interface ConclusionNode extends BaseNode {\n semanticMeaning: 'conclusion';\n }\n // polymorphism for all nodes\n export type DecisionNode = QuestionNode | ConclusionNode;\n /**\n * yes, polymorphism in typescript is this verbose and this hard to handle correctly.\n */\n\n export type RootNode = {\n chartTitle: string; // Title of the decision chart\n subtree: DecisionNode; // The root of the decision tree\n };\n\n export interface RequiredProps {\n chartJson: RootNode;\n }\n\n export interface DefaultProps {\n direction: Directions;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends\n Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends\n DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSDecisionGraphT.DefaultProps = {\n direction: 'LR',\n};\n\nexport const DSDecisionGraphPropTypes: DSPropTypesSchema<DSDecisionGraphT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n chartJson: PropTypes.object.description(\n `the json representing the decision chart. must comply with the following json_schema:\\n${JSON.stringify(\n JSON_SCHEMA,\n )}`,\n ).isRequired,\n direction: PropTypes.oneOf(['LR', 'TD'])\n .description('direction of the flowchart, default is LR (left to right)')\n .defaultValue('LR'),\n};\n\nexport const DSDecisionGraphPropTypesSchema =\n DSDecisionGraphPropTypes as unknown as WeakValidationMap<DSDecisionGraphT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AAEvE,SAAS,mBAAmB;AAwErB,MAAM,eAA8C;AAAA,EACzD,WAAW;AACb;AAEO,MAAM,2BAAsE;AAAA,EACjF,GAAG;AAAA,EACH,GAAG;AAAA,EACH,WAAW,UAAU,OAAO;AAAA,IAC1B;AAAA,EAA0F,KAAK;AAAA,MAC7F;AAAA,IACF,CAAC;AAAA,EACH,EAAE;AAAA,EACF,WAAW,UAAU,MAAM,CAAC,MAAM,IAAI,CAAC,EACpC,YAAY,2DAA2D,EACvE,aAAa,IAAI;AACtB;AAEO,MAAM,iCACX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DSDecisionGraphT } from '../../react-desc-prop-types.js';
|
|
2
3
|
type MermaidProps = {
|
|
3
4
|
chartJson: DSDecisionGraphT.Props['chartJson'];
|
|
4
5
|
uid: string;
|
|
5
6
|
direction: DSDecisionGraphT.Directions;
|
|
6
7
|
};
|
|
7
|
-
export declare const MermaidDecisionChart: (props: MermaidProps) =>
|
|
8
|
+
export declare const MermaidDecisionChart: (props: MermaidProps) => React.JSX.Element;
|
|
8
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-decision-graph",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.71",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Decision Graph",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://
|
|
25
|
+
"url": "https://github.com/intcx/PLATFORM-UI.dimsum.git"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"pnpm": ">=9",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"ajv": "^8.
|
|
40
|
-
"mermaid": "^11.
|
|
39
|
+
"ajv": "^8.18.0",
|
|
40
|
+
"mermaid": "^11.16.1",
|
|
41
41
|
"uid": "^2.0.2",
|
|
42
|
-
"@elliemae/ds-grid": "3.70.0-next.
|
|
43
|
-
"@elliemae/ds-
|
|
44
|
-
"@elliemae/ds-
|
|
42
|
+
"@elliemae/ds-grid": "3.70.0-next.71",
|
|
43
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.71",
|
|
44
|
+
"@elliemae/ds-system": "3.70.0-next.71"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@xstyled/system": "~3.8.1",
|
|
48
48
|
"jest": "^30.0.0",
|
|
49
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-next.
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.71"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"lodash-es": "^4.
|
|
52
|
+
"lodash-es": "^4.18.1",
|
|
53
53
|
"react": "^18.3.1",
|
|
54
54
|
"react-dom": "^18.3.1",
|
|
55
|
-
"styled-components": "~5.3.
|
|
55
|
+
"styled-components": "~5.3.11"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public",
|
|
@@ -67,4 +67,4 @@
|
|
|
67
67
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
68
68
|
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
69
69
|
}
|
|
70
|
-
}
|
|
70
|
+
}
|