@evoke-platform/ui-components 1.13.0-dev.7 → 1.14.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.
Files changed (65) hide show
  1. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +4 -4
  2. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +72 -145
  3. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.test.js +67 -189
  4. package/dist/published/components/custom/CriteriaBuilder/PropertyTree.d.ts +6 -6
  5. package/dist/published/components/custom/CriteriaBuilder/PropertyTree.js +25 -12
  6. package/dist/published/components/custom/CriteriaBuilder/PropertyTreeItem.d.ts +5 -4
  7. package/dist/published/components/custom/CriteriaBuilder/PropertyTreeItem.js +22 -34
  8. package/dist/published/components/custom/CriteriaBuilder/types.d.ts +11 -2
  9. package/dist/published/components/custom/CriteriaBuilder/utils.d.ts +34 -6
  10. package/dist/published/components/custom/CriteriaBuilder/utils.js +89 -18
  11. package/dist/published/components/custom/Form/FormComponents/DocumentComponent/Document.js +1 -1
  12. package/dist/published/components/custom/Form/FormComponents/DocumentComponent/DocumentList.js +3 -6
  13. package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableField.js +1 -1
  14. package/dist/published/components/custom/Form/utils.d.ts +0 -1
  15. package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.js +1 -2
  16. package/dist/published/components/custom/FormV2/FormRenderer.d.ts +2 -2
  17. package/dist/published/components/custom/FormV2/FormRenderer.js +29 -26
  18. package/dist/published/components/custom/FormV2/FormRendererContainer.d.ts +3 -1
  19. package/dist/published/components/custom/FormV2/FormRendererContainer.js +88 -95
  20. package/dist/published/components/custom/FormV2/components/Body.js +1 -1
  21. package/dist/published/components/custom/FormV2/components/Footer.js +1 -1
  22. package/dist/published/components/custom/FormV2/components/FormContext.d.ts +0 -1
  23. package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/ActionDialog.d.ts +0 -1
  24. package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/DropdownRepeatableField.js +143 -86
  25. package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/DropdownRepeatableFieldInput.d.ts +2 -0
  26. package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/DropdownRepeatableFieldInput.js +4 -1
  27. package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/RepeatableField.js +186 -106
  28. package/dist/published/components/custom/FormV2/components/FormFieldTypes/Criteria.js +49 -36
  29. package/dist/published/components/custom/FormV2/components/FormFieldTypes/DocumentFiles/Document.d.ts +2 -3
  30. package/dist/published/components/custom/FormV2/components/FormFieldTypes/DocumentFiles/Document.js +32 -51
  31. package/dist/published/components/custom/FormV2/components/FormFieldTypes/DocumentFiles/DocumentList.d.ts +3 -4
  32. package/dist/published/components/custom/FormV2/components/FormFieldTypes/DocumentFiles/DocumentList.js +38 -40
  33. package/dist/published/components/custom/FormV2/components/FormFieldTypes/UserProperty.js +21 -17
  34. package/dist/published/components/custom/FormV2/components/FormFieldTypes/relatedObjectFiles/InstanceLookup.js +1 -1
  35. package/dist/published/components/custom/FormV2/components/FormFieldTypes/relatedObjectFiles/ObjectPropertyInput.js +169 -95
  36. package/dist/published/components/custom/FormV2/components/FormFieldTypes/relatedObjectFiles/RelatedObjectInstance.d.ts +2 -0
  37. package/dist/published/components/custom/FormV2/components/FormFieldTypes/relatedObjectFiles/RelatedObjectInstance.js +6 -12
  38. package/dist/published/components/custom/FormV2/components/FormSections.js +0 -1
  39. package/dist/published/components/custom/FormV2/components/Header.d.ts +1 -0
  40. package/dist/published/components/custom/FormV2/components/Header.js +19 -8
  41. package/dist/published/components/custom/FormV2/components/HtmlView.d.ts +9 -0
  42. package/dist/published/components/custom/FormV2/components/HtmlView.js +46 -0
  43. package/dist/published/components/custom/FormV2/components/RecursiveEntryRenderer.d.ts +1 -2
  44. package/dist/published/components/custom/FormV2/components/RecursiveEntryRenderer.js +20 -46
  45. package/dist/published/components/custom/FormV2/components/types.d.ts +1 -6
  46. package/dist/published/components/custom/FormV2/components/utils.d.ts +11 -11
  47. package/dist/published/components/custom/FormV2/components/utils.js +104 -181
  48. package/dist/published/components/custom/FormV2/tests/FormRenderer.test.js +17 -50
  49. package/dist/published/components/custom/FormV2/tests/FormRendererContainer.test.js +131 -40
  50. package/dist/published/components/custom/HistoryLog/HistoryData.js +1 -2
  51. package/dist/published/components/custom/HistoryLog/index.js +1 -2
  52. package/dist/published/components/custom/ViewDetailsV2/InstanceEntryRenderer.d.ts +1 -2
  53. package/dist/published/components/custom/ViewDetailsV2/InstanceEntryRenderer.js +22 -61
  54. package/dist/published/components/custom/ViewDetailsV2/ViewDetailsV2Container.d.ts +3 -0
  55. package/dist/published/components/custom/ViewDetailsV2/ViewDetailsV2Container.js +5 -8
  56. package/dist/published/stories/Backdrop.stories.d.ts +2 -2
  57. package/dist/published/stories/CriteriaBuilder.stories.js +22 -70
  58. package/dist/published/stories/FormLabel.stories.d.ts +2 -2
  59. package/dist/published/stories/FormRenderer.stories.d.ts +3 -3
  60. package/dist/published/stories/FormRendererContainer.stories.d.ts +15 -5
  61. package/dist/published/stories/ViewDetailsV2Container.stories.d.ts +9 -0
  62. package/dist/published/theme/hooks.d.ts +1 -2
  63. package/package.json +11 -17
  64. package/dist/published/components/custom/FormV2/components/ConditionalQueryClientProvider.d.ts +0 -5
  65. package/dist/published/components/custom/FormV2/components/ConditionalQueryClientProvider.js +0 -21
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../components/custom/FormV2/components/types").BaseProps & {
3
+ title?: {
4
+ hidden?: boolean | undefined;
5
+ } | undefined;
3
6
  panelLayoutId?: string | undefined;
4
7
  instanceId?: string | undefined;
5
8
  objectId: string;
@@ -9,6 +12,9 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
9
12
  }>;
10
13
  export default _default;
11
14
  export declare const ViewDetails: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../components/custom/FormV2/components/types").BaseProps & {
15
+ title?: {
16
+ hidden?: boolean | undefined;
17
+ } | undefined;
12
18
  panelLayoutId?: string | undefined;
13
19
  instanceId?: string | undefined;
14
20
  objectId: string;
@@ -17,6 +23,9 @@ export declare const ViewDetails: import("@storybook/types").AnnotatedStoryFn<im
17
23
  renderBody?: ((props: import("../components/custom").BodyProps) => React.ReactNode) | undefined;
18
24
  }>;
19
25
  export declare const ViewWithSections: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../components/custom/FormV2/components/types").BaseProps & {
26
+ title?: {
27
+ hidden?: boolean | undefined;
28
+ } | undefined;
20
29
  panelLayoutId?: string | undefined;
21
30
  instanceId?: string | undefined;
22
31
  objectId: string;
@@ -155,8 +155,7 @@ export declare function useFormContext(): {
155
155
  associatedObject?: {
156
156
  instanceId: string;
157
157
  propertyId: string; /** Extra large screens (1536px and up) */
158
- objectId?: string | undefined;
159
- } | undefined;
158
+ } | undefined; /** Extra large screens (1536px and up) */
160
159
  form?: import("@evoke-platform/context").EvokeForm | undefined;
161
160
  width: number;
162
161
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.13.0-dev.7",
3
+ "version": "1.14.0",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",
@@ -18,7 +18,7 @@
18
18
  "./icons": "./dist/published/icons/index.js"
19
19
  },
20
20
  "scripts": {
21
- "test": "vitest",
21
+ "test": "vitest run",
22
22
  "test:ui": "vitest --ui",
23
23
  "test:preview": "vitest-preview",
24
24
  "coverage": "vitest run --coverage",
@@ -35,8 +35,7 @@
35
35
  "prettier:fix": "npm run prettier:cli -- --write",
36
36
  "eslint": "eslint src",
37
37
  "eslint:fix": "npm run eslint -- --fix",
38
- "release": "commit-and-tag-version --releaseCommitMessageFormat \"chore(release): {{currentTag}} [skip ci]\"",
39
- "prepare": "husky install",
38
+ "release": "commit-and-tag-version --tag-prefix \"ui-components-v\" --release-as minor --releaseCommitMessageFormat \"chore(release): {{currentTag}} [skip ci]\"",
40
39
  "yalc:publish": "npm run build && yalc push --replace --sig"
41
40
  },
42
41
  "author": "",
@@ -44,17 +43,14 @@
44
43
  "devDependencies": {
45
44
  "@babel/core": "^7.18.2",
46
45
  "@babel/preset-env": "^7.18.6",
47
- "@commitlint/cli": "^17.8.1",
48
- "@commitlint/config-conventional": "^17.8.1",
49
46
  "@storybook/addon-actions": "^7.6.20",
50
47
  "@storybook/addon-essentials": "^7.6.20",
51
48
  "@storybook/addon-interactions": "^7.6.20",
52
49
  "@storybook/addon-links": "^7.6.20",
53
50
  "@storybook/react": "^7.6.20",
54
51
  "@storybook/react-webpack5": "^7.6.20",
55
- "@storybook/testing-library": "^0.0.11",
56
52
  "@testing-library/jest-dom": "^6.9.1",
57
- "@testing-library/react": "^16.3.0",
53
+ "@testing-library/react": "^16.3.1",
58
54
  "@testing-library/user-event": "^14.6.1",
59
55
  "@types/flat": "^5.0.5",
60
56
  "@types/jest": "^28.1.4",
@@ -68,8 +64,8 @@
68
64
  "@typescript-eslint/eslint-plugin": "^5.52.0",
69
65
  "@typescript-eslint/parser": "^5.35.1",
70
66
  "@typescript-eslint/typescript-estree": "^5.35.1",
71
- "@vitest/coverage-v8": "^3.2.4",
72
- "@vitest/ui": "^3.2.4",
67
+ "@vitest/coverage-v8": "^4.0.17",
68
+ "@vitest/ui": "^4.0.17",
73
69
  "babel-jest": "^28.1.2",
74
70
  "babel-loader": "^8.2.5",
75
71
  "copyfiles": "^2.4.1",
@@ -79,24 +75,21 @@
79
75
  "eslint-plugin-no-inline-styles": "^1.0.5",
80
76
  "eslint-plugin-prettier": "^5.1.2",
81
77
  "eslint-plugin-testing-library": "^6.2.0",
82
- "husky": "^8.0.3",
83
78
  "is-ci": "^3.0.1",
84
79
  "lint-staged": "^16.2.1",
85
80
  "msw": "^2.10.4",
86
81
  "msw-storybook-addon": "^2.0.5",
87
82
  "prettier": "^3.0.0",
88
- "react": "^18.1.0",
89
- "react-dom": "^18.1.0",
90
83
  "rimraf": "^3.0.2",
91
84
  "storybook": "^7.6.20",
92
85
  "typescript": "^4.7.3",
93
- "vitest": "^3.2.4",
86
+ "vitest": "^4.0.17",
94
87
  "vitest-preview": "^0.0.3",
95
88
  "webpack": "^5.74.0",
96
89
  "yalc": "^1.0.0-pre.53"
97
90
  },
98
91
  "peerDependencies": {
99
- "@evoke-platform/context": "1.8.0-dev.4",
92
+ "@evoke-platform/context": "^1.7.0",
100
93
  "react": "^18.1.0",
101
94
  "react-dom": "^18.1.0"
102
95
  },
@@ -118,7 +111,6 @@
118
111
  "@mui/x-tree-view": "^7.29.1",
119
112
  "@react-querybuilder/dnd": "^5.4.1",
120
113
  "@react-querybuilder/material": "^6.5.0",
121
- "@tanstack/react-query": "^5.90.12",
122
114
  "clean-deep": "^3.4.0",
123
115
  "commit-and-tag-version": "^12.4.1",
124
116
  "devexpress-richedit": "^23.1.5",
@@ -136,8 +128,10 @@
136
128
  "no-eval-handlebars": "^1.0.2",
137
129
  "pluralize": "^8.0.0",
138
130
  "pretty-bytes": "^6.1.1",
131
+ "quill": "^2.0.3",
132
+ "quill-table-up": "^3.2.2",
139
133
  "react-dropzone": "^14.2.2",
140
- "react-hook-form": "^7.63.0",
134
+ "react-hook-form": "7.43.0",
141
135
  "react-input-mask": "^2.0.4",
142
136
  "react-number-format": "^4.9.3",
143
137
  "react-querybuilder": "^6.0.2",
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- declare function ConditionalQueryClientProvider({ children }: {
3
- children: React.ReactNode;
4
- }): React.JSX.Element;
5
- export default ConditionalQueryClientProvider;
@@ -1,21 +0,0 @@
1
- import { QueryCache, QueryClient, QueryClientContext, QueryClientProvider } from '@tanstack/react-query';
2
- import React, { useContext, useState } from 'react';
3
- // If FormRenderer is rendered outside a QueryClientProvider (e.g. standalone usage),
4
- // we create a local QueryClient so React Query hooks still work.
5
- // If a provider already exists, we reuse it to avoid fragmenting the cache.
6
- function ConditionalQueryClientProvider({ children }) {
7
- const existingQueryClient = useContext(QueryClientContext);
8
- const [localQueryClient] = useState(() => new QueryClient({
9
- queryCache: new QueryCache({
10
- onError: (error, query) => {
11
- const message = query.meta?.errorMessage ?? 'Something went wrong:';
12
- console.error(message, error);
13
- },
14
- }),
15
- }));
16
- if (existingQueryClient) {
17
- return React.createElement(React.Fragment, null, children);
18
- }
19
- return React.createElement(QueryClientProvider, { client: localQueryClient }, children);
20
- }
21
- export default ConditionalQueryClientProvider;