pixel-react 1.15.82 → 1.15.84
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/README.md +75 -75
- package/lib/ComponentProps/TreeNodeProps.d.ts +1 -0
- package/lib/components/AttachmentButton/AttachmentButton.js +2 -1
- package/lib/components/AttachmentButton/AttachmentButton.js.map +1 -1
- package/lib/components/AttachmentButton/types.d.ts +1 -0
- package/lib/components/Charts/BarChart/BarChart.js +8 -8
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +6 -6
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js +4 -4
- package/lib/components/Charts/PieChart/PieChart.js +5 -5
- package/lib/components/Comments/Comments.js +14 -14
- package/lib/components/Comments/childComment/ChildComment.js +14 -14
- package/lib/components/EditTextField/EditTextField.js +2 -2
- package/lib/components/FileDropzone/FileDropzone.js +2 -10
- package/lib/components/FileDropzone/FileDropzone.js.map +1 -1
- package/lib/components/LabelEditTextField/LabelEditTextField.js +4 -4
- package/lib/components/MachineInputField/MachineInputField.js +1 -0
- package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
- package/lib/components/Select/Select.js +1 -1
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +6 -2
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/types.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +5 -5
- package/lib/components/Table/Table.js +2 -2
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Types.d.ts +8 -0
- package/lib/components/Table/components/SortableRow.d.ts +1 -1
- package/lib/components/Table/components/SortableRow.js +4 -2
- package/lib/components/Table/components/SortableRow.js.map +1 -1
- package/lib/components/Table/components/VirtualizedRows.d.ts +1 -1
- package/lib/components/Table/components/VirtualizedRows.js +2 -2
- package/lib/components/Table/components/VirtualizedRows.js.map +1 -1
- package/lib/hooks/useFileDropzone.js +94 -8
- package/lib/hooks/useFileDropzone.js.map +1 -1
- package/lib/index.d.ts +9 -2
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.d.ts +1 -1
- package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.js +98 -87
- package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.js.map +1 -1
- package/package.json +106 -106
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeNodeProps as TreeNode } from '../../ComponentProps/TreeNodeProps';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const handleTreeNodeSelect: (treeData: TreeNode[], targetKey: string | undefined, rootNode: TreeNode | null, isInputChecked: boolean) => {
|
|
3
3
|
data: TreeNode[];
|
|
4
4
|
rootNode?: TreeNode | null;
|
|
5
5
|
};
|
|
@@ -1,99 +1,110 @@
|
|
|
1
1
|
import { checkEmpty } from '../checkEmpty/checkEmpty';
|
|
2
|
-
export const
|
|
3
|
-
if (!
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
export const handleTreeNodeSelect = (treeData, targetKey, rootNode, isInputChecked) => {
|
|
3
|
+
if (!targetKey)
|
|
4
|
+
return { data: treeData, rootNode };
|
|
5
|
+
const SCRIPT_TYPES = new Set(['Script', 'Pre', 'Post']);
|
|
6
|
+
const newStatus = isInputChecked ? 'completely' : 'none';
|
|
7
|
+
const nodeMap = new Map();
|
|
8
|
+
const parentMap = new Map();
|
|
9
|
+
const childrenMap = new Map();
|
|
10
|
+
const expandedModules = new Set();
|
|
11
|
+
// Helper to safely get key
|
|
12
|
+
const getKey = (node) => String(node.key);
|
|
13
|
+
const allNodes = rootNode ? [rootNode, ...treeData] : [...treeData];
|
|
14
|
+
for (const node of allNodes) {
|
|
15
|
+
const key = getKey(node);
|
|
16
|
+
nodeMap.set(key, { ...node });
|
|
17
|
+
// Handle Search Key Parsing ONCE
|
|
18
|
+
if (!checkEmpty(node) && node.searchKey) {
|
|
19
|
+
const parts = node.searchKey.split('/').filter(Boolean);
|
|
20
|
+
// Populate Expanded Modules
|
|
21
|
+
if (SCRIPT_TYPES.has(node?.entityType ?? '')) {
|
|
22
|
+
for (const part of parts)
|
|
23
|
+
expandedModules.add(part);
|
|
20
24
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const totalChildren = (node.resourceCount ?? 0) + (node.subContainerCount ?? 0) + (node.conditionCount ?? 0);
|
|
30
|
-
if (totalChildren === 0) {
|
|
31
|
-
// Leaf node: use its own selected status
|
|
32
|
-
return node.selectedStatus ?? 'none';
|
|
33
|
-
}
|
|
34
|
-
const children = childMap.get(nodeKey) || [];
|
|
35
|
-
let completelySelectedCount = 0;
|
|
36
|
-
let hasPartialSelection = false;
|
|
37
|
-
for (const child of children) {
|
|
38
|
-
if (child.selectedStatus === 'completely') {
|
|
39
|
-
completelySelectedCount++;
|
|
25
|
+
// Build Hierarchy
|
|
26
|
+
if (parts.length > 1) {
|
|
27
|
+
const parentKey = parts[parts.length - 2] ?? '';
|
|
28
|
+
parentMap.set(key, parentKey);
|
|
29
|
+
if (!childrenMap.has(parentKey)) {
|
|
30
|
+
childrenMap.set(parentKey, []);
|
|
31
|
+
}
|
|
32
|
+
childrenMap.get(parentKey)?.push(key);
|
|
40
33
|
}
|
|
41
|
-
else if (child.selectedStatus === 'partially') {
|
|
42
|
-
hasPartialSelection = true;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (completelySelectedCount === totalChildren) {
|
|
46
|
-
return 'completely';
|
|
47
|
-
}
|
|
48
|
-
else if (hasPartialSelection || completelySelectedCount > 0) {
|
|
49
|
-
return 'partially';
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return 'none';
|
|
53
34
|
}
|
|
54
35
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
const updateQueue = [String(targetKey)];
|
|
37
|
+
while (updateQueue.length > 0) {
|
|
38
|
+
const currKey = updateQueue.pop();
|
|
39
|
+
const node = nodeMap.get(currKey);
|
|
40
|
+
if (node) {
|
|
41
|
+
node.selectedStatus = newStatus;
|
|
42
|
+
// Add children to queue
|
|
43
|
+
const children = childrenMap.get(currKey);
|
|
44
|
+
if (children) {
|
|
45
|
+
for (const childKey of children) {
|
|
46
|
+
updateQueue.push(childKey);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
59
49
|
}
|
|
60
|
-
visited.add(nodeKey);
|
|
61
|
-
const children = childMap.get(nodeKey) || [];
|
|
62
|
-
children.forEach((child) => {
|
|
63
|
-
child.selectedStatus = status;
|
|
64
|
-
updateChildren(child.key, status);
|
|
65
|
-
});
|
|
66
|
-
visited.delete(nodeKey); // Clean up after recursion
|
|
67
50
|
}
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
|
|
51
|
+
// We iterate updated nodes. If 'completely' selected, we contribute score to ancestors.
|
|
52
|
+
const selectionScore = new Map();
|
|
53
|
+
for (const node of nodeMap.values()) {
|
|
54
|
+
if (node.selectedStatus === 'completely') {
|
|
55
|
+
const key = getKey(node);
|
|
56
|
+
// Determine Weight
|
|
57
|
+
const beTotal = (node.totalResourceCount ?? 0) + (node.totalConditionCount ?? 0);
|
|
58
|
+
const isScript = SCRIPT_TYPES.has(node.entityType);
|
|
59
|
+
let weight = 0;
|
|
60
|
+
if (isScript || beTotal === 0) {
|
|
61
|
+
weight = 1;
|
|
62
|
+
}
|
|
63
|
+
else if (!expandedModules.has(key)) {
|
|
64
|
+
weight = beTotal;
|
|
65
|
+
}
|
|
66
|
+
if (weight > 0) {
|
|
67
|
+
let currParent = parentMap.get(key);
|
|
68
|
+
while (currParent) {
|
|
69
|
+
if (currParent === key)
|
|
70
|
+
break;
|
|
71
|
+
const currentScore = selectionScore.get(currParent) || 0;
|
|
72
|
+
selectionScore.set(currParent, currentScore + weight);
|
|
73
|
+
currParent = parentMap.get(currParent);
|
|
74
|
+
}
|
|
80
75
|
}
|
|
81
76
|
}
|
|
82
|
-
visited.delete(nodeKey); // Clean up after recursion
|
|
83
|
-
}
|
|
84
|
-
// Main logic: update the target node and propagate changes
|
|
85
|
-
const targetNode = nodesMap.get(key);
|
|
86
|
-
if (targetNode) {
|
|
87
|
-
targetNode.selectedStatus = isChecked ? 'completely' : 'none';
|
|
88
|
-
updateChildren(key, targetNode.selectedStatus);
|
|
89
|
-
updateParents(key);
|
|
90
77
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
78
|
+
const finalizeNode = (key) => {
|
|
79
|
+
const node = nodeMap.get(key);
|
|
80
|
+
if (!node)
|
|
81
|
+
return null;
|
|
82
|
+
const isTarget = key === String(targetKey);
|
|
83
|
+
const targetNode = nodeMap.get(String(targetKey));
|
|
84
|
+
const isParentOfTarget = targetNode?.searchKey?.startsWith(node.searchKey + '/');
|
|
85
|
+
// Original exclusion logic
|
|
86
|
+
const isRoot = rootNode && String(rootNode.key) === key;
|
|
87
|
+
if (!isTarget &&
|
|
88
|
+
!isRoot &&
|
|
89
|
+
!isParentOfTarget &&
|
|
90
|
+
!SCRIPT_TYPES.has(node.entityType)) {
|
|
91
|
+
return node;
|
|
92
|
+
}
|
|
93
|
+
if (SCRIPT_TYPES.has(node.entityType) || isTarget) {
|
|
94
|
+
return node;
|
|
95
|
+
}
|
|
96
|
+
const capacity = (node.totalResourceCount ?? 0) + (node.totalConditionCount ?? 0) || 1;
|
|
97
|
+
const currentScore = selectionScore.get(key) || 0;
|
|
98
|
+
let status = 'none';
|
|
99
|
+
if (currentScore >= capacity && currentScore > 0)
|
|
100
|
+
status = 'completely';
|
|
101
|
+
else if (currentScore > 0)
|
|
102
|
+
status = 'partially';
|
|
103
|
+
return { ...node, selectedStatus: status };
|
|
104
|
+
};
|
|
105
|
+
return {
|
|
106
|
+
data: treeData.map((node) => finalizeNode(getKey(node))),
|
|
107
|
+
rootNode: rootNode ? finalizeNode(getKey(rootNode)) : null,
|
|
108
|
+
};
|
|
98
109
|
};
|
|
99
110
|
//# sourceMappingURL=handleTreeNodeSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleTreeNodeSelect.js","sourceRoot":"","sources":["../../../src/utils/handleTreeNodeSelect/handleTreeNodeSelect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"handleTreeNodeSelect.js","sourceRoot":"","sources":["../../../src/utils/handleTreeNodeSelect/handleTreeNodeSelect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,QAAoB,EACpB,SAA6B,EAC7B,QAAyB,EACzB,cAAuB,EAC2B,EAAE;IACpD,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAEpD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;IAE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
|
|
4
|
-
"version": "1.15.
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"module": "lib/index.js",
|
|
7
|
-
"types": "lib/index.d.ts",
|
|
8
|
-
"sideEffects": [
|
|
9
|
-
"lib/styles.css"
|
|
10
|
-
],
|
|
11
|
-
"author": {
|
|
12
|
-
"name": "Padmakant Baloji"
|
|
13
|
-
},
|
|
14
|
-
"license": "MIT",
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
17
|
-
"@babel/core": "^7.0.0",
|
|
18
|
-
"@babel/preset-react": "^7.26.3",
|
|
19
|
-
"@chromatic-com/storybook": "^3.2.2",
|
|
20
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
21
|
-
"@rollup/plugin-commonjs": "^28.0.2",
|
|
22
|
-
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
23
|
-
"@rollup/plugin-typescript": "^12.1.2",
|
|
24
|
-
"@rollup/plugin-url": "^8.0.2",
|
|
25
|
-
"@storybook/addon-docs": "^8.4.5",
|
|
26
|
-
"@storybook/addon-essentials": "^8.4.5",
|
|
27
|
-
"@storybook/addon-interactions": "^8.4.5",
|
|
28
|
-
"@storybook/addon-links": "^8.4.5",
|
|
29
|
-
"@storybook/addon-onboarding": "^8.4.5",
|
|
30
|
-
"@storybook/blocks": "^8.4.5",
|
|
31
|
-
"@storybook/react": "^8.4.5",
|
|
32
|
-
"@storybook/react-vite": "^8.4.5",
|
|
33
|
-
"@storybook/test": "^8.4.5",
|
|
34
|
-
"@types/js-beautify": "^1.14.3",
|
|
35
|
-
"@types/node-forge": "^1.3.14",
|
|
36
|
-
"@types/react": "^18.3.12",
|
|
37
|
-
"@types/react-dom": "^18.3.1",
|
|
38
|
-
"@types/react-google-recaptcha": "^2.1.9",
|
|
39
|
-
"@types/draft-js": "^0.11.19",
|
|
40
|
-
"chromatic": "^11.16.5",
|
|
41
|
-
"cross-env": "^7.0.3",
|
|
42
|
-
"react": ">=18.2.0 <19.0.0",
|
|
43
|
-
"react-dom": ">=18.2.0 <19.0.0",
|
|
44
|
-
"rimraf": "^6.0.1",
|
|
45
|
-
"rollup": "^4.24.4",
|
|
46
|
-
"rollup-plugin-dts": "^6.1.0",
|
|
47
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
48
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
49
|
-
"rollup-plugin-visualizer": "^5.14.0",
|
|
50
|
-
"sass": "^1.80.6",
|
|
51
|
-
"storybook": "^8.4.5",
|
|
52
|
-
"storybook-addon-theme-provider": "^0.2.6",
|
|
53
|
-
"typescript": "^5.7.2",
|
|
54
|
-
"vite": "^5.4.10"
|
|
55
|
-
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"react": "^18.2.0",
|
|
58
|
-
"react-dom": "^18.2.0"
|
|
59
|
-
},
|
|
60
|
-
"scripts": {
|
|
61
|
-
"storybook": "storybook dev -p 6006",
|
|
62
|
-
"build-storybook": "storybook build",
|
|
63
|
-
"build": "rimraf lib && tsc -b && cross-env NODE_ENV=production rollup -c",
|
|
64
|
-
"analyze": "tsc -b && cross-env ANALYZE=true rollup -c",
|
|
65
|
-
"sync": "git pull origin main && tsc -b && rollup -c",
|
|
66
|
-
"chromatic": "chromatic --exit-zero-on-changes",
|
|
67
|
-
"clean": "rimraf lib node_modules pnpm-lock.yaml package-lock.json yarn.lock"
|
|
68
|
-
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"@babel/plugin-transform-react-jsx": "^7.24.7",
|
|
71
|
-
"@dnd-kit/core": "^6.1.0",
|
|
72
|
-
"@dnd-kit/modifiers": "^9.0.0",
|
|
73
|
-
"@dnd-kit/sortable": "^8.0.0",
|
|
74
|
-
"@dnd-kit/utilities": "^3.2.2",
|
|
75
|
-
"@vitejs/plugin-react": "^4.3.0",
|
|
76
|
-
"classnames": "^2.5.1",
|
|
77
|
-
"date-fns": "^3.6.0",
|
|
78
|
-
"date-fns-tz": "^3.2.0",
|
|
79
|
-
"draft-js": "^0.11.7",
|
|
80
|
-
"jsencrypt": "^3.3.2",
|
|
81
|
-
"node-forge": "^1.3.1",
|
|
82
|
-
"react-archer": "^4.4.0",
|
|
83
|
-
"react-day-picker": "^9.2.1",
|
|
84
|
-
"react-google-recaptcha": "^3.1.0",
|
|
85
|
-
"react-hook-form": "7.64.0",
|
|
86
|
-
"@types/react-window": "^1.8.8",
|
|
87
|
-
"react-window": "^1.8.10",
|
|
88
|
-
"scss": "^0.2.4",
|
|
89
|
-
"use-context-selector": "^2.0.0",
|
|
90
|
-
"vite-plugin-svgr": "^4.3.0",
|
|
91
|
-
"janus-gateway": "^1.3.1",
|
|
92
|
-
"webrtc-adapter": "^9.0.1",
|
|
93
|
-
"react-virtuoso": "^4.13.0",
|
|
94
|
-
"react-draft-wysiwyg": "^1.15.0",
|
|
95
|
-
"@types/react-draft-wysiwyg": "^1.13.8",
|
|
96
|
-
"@monaco-editor/react": "^4.6.0",
|
|
97
|
-
"js-beautify": "^1.15.1",
|
|
98
|
-
"react-phone-input-2": "^2.15.1",
|
|
99
|
-
"react-phone-number-input": "^3.4.12"
|
|
100
|
-
},
|
|
101
|
-
"files": [
|
|
102
|
-
"lib",
|
|
103
|
-
"README.md",
|
|
104
|
-
"LICENSE"
|
|
105
|
-
]
|
|
106
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "pixel-react",
|
|
3
|
+
"description": "Great for pixel-perfect, design-focused components in React",
|
|
4
|
+
"version": "1.15.84",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"lib/styles.css"
|
|
10
|
+
],
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Padmakant Baloji"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
17
|
+
"@babel/core": "^7.0.0",
|
|
18
|
+
"@babel/preset-react": "^7.26.3",
|
|
19
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
20
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
21
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
22
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
23
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
24
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
25
|
+
"@storybook/addon-docs": "^8.4.5",
|
|
26
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
27
|
+
"@storybook/addon-interactions": "^8.4.5",
|
|
28
|
+
"@storybook/addon-links": "^8.4.5",
|
|
29
|
+
"@storybook/addon-onboarding": "^8.4.5",
|
|
30
|
+
"@storybook/blocks": "^8.4.5",
|
|
31
|
+
"@storybook/react": "^8.4.5",
|
|
32
|
+
"@storybook/react-vite": "^8.4.5",
|
|
33
|
+
"@storybook/test": "^8.4.5",
|
|
34
|
+
"@types/js-beautify": "^1.14.3",
|
|
35
|
+
"@types/node-forge": "^1.3.14",
|
|
36
|
+
"@types/react": "^18.3.12",
|
|
37
|
+
"@types/react-dom": "^18.3.1",
|
|
38
|
+
"@types/react-google-recaptcha": "^2.1.9",
|
|
39
|
+
"@types/draft-js": "^0.11.19",
|
|
40
|
+
"chromatic": "^11.16.5",
|
|
41
|
+
"cross-env": "^7.0.3",
|
|
42
|
+
"react": ">=18.2.0 <19.0.0",
|
|
43
|
+
"react-dom": ">=18.2.0 <19.0.0",
|
|
44
|
+
"rimraf": "^6.0.1",
|
|
45
|
+
"rollup": "^4.24.4",
|
|
46
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
47
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
48
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
49
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
50
|
+
"sass": "^1.80.6",
|
|
51
|
+
"storybook": "^8.4.5",
|
|
52
|
+
"storybook-addon-theme-provider": "^0.2.6",
|
|
53
|
+
"typescript": "^5.7.2",
|
|
54
|
+
"vite": "^5.4.10"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"react": "^18.2.0",
|
|
58
|
+
"react-dom": "^18.2.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"storybook": "storybook dev -p 6006",
|
|
62
|
+
"build-storybook": "storybook build",
|
|
63
|
+
"build": "rimraf lib && tsc -b && cross-env NODE_ENV=production rollup -c",
|
|
64
|
+
"analyze": "tsc -b && cross-env ANALYZE=true rollup -c",
|
|
65
|
+
"sync": "git pull origin main && tsc -b && rollup -c",
|
|
66
|
+
"chromatic": "chromatic --exit-zero-on-changes",
|
|
67
|
+
"clean": "rimraf lib node_modules pnpm-lock.yaml package-lock.json yarn.lock"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@babel/plugin-transform-react-jsx": "^7.24.7",
|
|
71
|
+
"@dnd-kit/core": "^6.1.0",
|
|
72
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
73
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
74
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
75
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
76
|
+
"classnames": "^2.5.1",
|
|
77
|
+
"date-fns": "^3.6.0",
|
|
78
|
+
"date-fns-tz": "^3.2.0",
|
|
79
|
+
"draft-js": "^0.11.7",
|
|
80
|
+
"jsencrypt": "^3.3.2",
|
|
81
|
+
"node-forge": "^1.3.1",
|
|
82
|
+
"react-archer": "^4.4.0",
|
|
83
|
+
"react-day-picker": "^9.2.1",
|
|
84
|
+
"react-google-recaptcha": "^3.1.0",
|
|
85
|
+
"react-hook-form": "7.64.0",
|
|
86
|
+
"@types/react-window": "^1.8.8",
|
|
87
|
+
"react-window": "^1.8.10",
|
|
88
|
+
"scss": "^0.2.4",
|
|
89
|
+
"use-context-selector": "^2.0.0",
|
|
90
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
91
|
+
"janus-gateway": "^1.3.1",
|
|
92
|
+
"webrtc-adapter": "^9.0.1",
|
|
93
|
+
"react-virtuoso": "^4.13.0",
|
|
94
|
+
"react-draft-wysiwyg": "^1.15.0",
|
|
95
|
+
"@types/react-draft-wysiwyg": "^1.13.8",
|
|
96
|
+
"@monaco-editor/react": "^4.6.0",
|
|
97
|
+
"js-beautify": "^1.15.1",
|
|
98
|
+
"react-phone-input-2": "^2.15.1",
|
|
99
|
+
"react-phone-number-input": "^3.4.12"
|
|
100
|
+
},
|
|
101
|
+
"files": [
|
|
102
|
+
"lib",
|
|
103
|
+
"README.md",
|
|
104
|
+
"LICENSE"
|
|
105
|
+
]
|
|
106
|
+
}
|