@plitzi/plitzi-builder 0.32.4 → 0.32.6

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 (50) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/index.html +2 -4
  3. package/dist/modules/AI/components/ChatMessage/ChatMessage.d.ts +2 -2
  4. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/AIBrandPreview.d.ts +1 -1
  5. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandHero/BrandHero.d.ts +1 -1
  6. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandTypography/BrandTypography.d.ts +1 -1
  7. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandVoice/BrandVoice.d.ts +1 -1
  8. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/AIColorPalettePreview.d.ts +1 -1
  9. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/components/ColorPaletteRow/ColorPaletteRow.d.ts +1 -1
  10. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/helpers.d.ts +1 -1
  11. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/AIStyleGuidePreview.d.ts +1 -1
  12. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/components/ColorScaleRow/ColorScaleRow.d.ts +1 -1
  13. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/helpers.d.ts +1 -1
  14. package/dist/modules/AI/components/ChatMessage/components/AIWireframePreview/AIWireframePreview.d.ts +1 -1
  15. package/dist/modules/AI/components/ChatMessage/components/AssistantMessage/AssistantMessage.d.ts +2 -2
  16. package/dist/modules/AI/components/ChatMessage/helpers/extractToolVisual.d.ts +1 -5
  17. package/dist/modules/AI/components/ChatMessage/helpers/groupStepsIntoItems.d.ts +29 -0
  18. package/dist/modules/AI/components/ChatMessage/helpers/toolVisualTypes.d.ts +103 -0
  19. package/dist/modules/AI/components/ToolVisualRenderer/ToolVisualRenderer.d.ts +2 -2
  20. package/dist/modules/App/models/PageForm.d.ts +3 -1
  21. package/dist/modules/Builder/components/BuilderElementTools/ElementDefinitionSettings.d.ts +4 -1
  22. package/dist/modules/Builder/components/BuilderOverlay/OverlayButtonContainer.d.ts +2 -2
  23. package/dist/modules/Builder/components/BuilderOverlay/OverlaySpacing.d.ts +2 -2
  24. package/dist/modules/DataSource/BindingSelected.d.ts +2 -3
  25. package/dist/modules/DataSource/helpers/getBindingWarnings.d.ts +17 -0
  26. package/dist/modules/DataSource/helpers/getBindingWarnings.test.d.ts +1 -0
  27. package/dist/modules/DataSource/helpers/transformerString.d.ts +2 -5
  28. package/dist/modules/DataSource/models/BindingForm/BindingForm.d.ts +4 -7
  29. package/dist/modules/Interactions/Interactions.d.ts +2 -2
  30. package/dist/modules/Interactions/components/Workflow/WorkflowHeader.d.ts +7 -1
  31. package/dist/modules/Interactions/components/Workflow/helpers/nodeWarnings.d.ts +24 -0
  32. package/dist/modules/Interactions/components/Workflow/helpers/nodeWarnings.test.d.ts +1 -0
  33. package/dist/modules/Segments/SegmentsReducer.d.ts +9 -0
  34. package/dist/package.json.d.ts +29 -30
  35. package/dist/plitzi-builder-dev-vendor.js +6 -6
  36. package/dist/plitzi-builder-dev-vendor.js.gz +0 -0
  37. package/dist/plitzi-builder-dev-vendor.js.map +1 -1
  38. package/dist/plitzi-builder-dev-vendor.js.map.gz +0 -0
  39. package/dist/plitzi-builder-vendor.js +1 -1
  40. package/dist/plitzi-builder-vendor.js.gz +0 -0
  41. package/dist/plitzi-builder.css +2 -2
  42. package/dist/plitzi-builder.css.gz +0 -0
  43. package/dist/plitzi-builder.js +1395 -1236
  44. package/dist/plitzi-builder.js.gz +0 -0
  45. package/package.json +43 -44
  46. package/dist/modules/AI/components/ChatMessage/helpers/getBrandResult.d.ts +0 -37
  47. package/dist/modules/AI/components/ChatMessage/helpers/getColorPaletteResult.d.ts +0 -14
  48. package/dist/modules/AI/components/ChatMessage/helpers/getStagePreviewResult.d.ts +0 -11
  49. package/dist/modules/AI/components/ChatMessage/helpers/getStyleGuideResult.d.ts +0 -45
  50. package/dist/modules/AI/components/ChatMessage/helpers/getWireframeResult.d.ts +0 -12
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/plitzi-builder",
3
- "version": "0.32.4",
3
+ "version": "0.32.6",
4
4
  "homepage": "./",
5
5
  "license": "AGPL-3.0",
6
6
  "files": [
@@ -26,35 +26,34 @@
26
26
  "./plitzi-builder-dev-vendor.js.map": "./dist/plitzi-builder-dev-vendor.js.map"
27
27
  },
28
28
  "dependencies": {
29
- "@apollo/client": "^4.2.3",
30
- "@fortawesome/fontawesome-free": "^7.2.0",
31
- "@plitzi/nexus": "0.32.4",
32
- "@plitzi/plitzi-sdk": "0.32.4",
33
- "@plitzi/plitzi-ui": "^1.6.13",
34
- "@plitzi/sdk-auth": "0.32.4",
35
- "@plitzi/sdk-collections": "0.32.4",
36
- "@plitzi/sdk-dev-tools": "0.32.4",
37
- "@plitzi/sdk-elements": "0.32.4",
38
- "@plitzi/sdk-event-bridge": "0.32.4",
39
- "@plitzi/sdk-interactions": "0.32.4",
40
- "@plitzi/sdk-navigation": "0.32.4",
41
- "@plitzi/sdk-plugins": "0.32.4",
42
- "@plitzi/sdk-schema": "0.32.4",
43
- "@plitzi/sdk-shared": "0.32.4",
44
- "@plitzi/sdk-style": "0.32.4",
45
- "@plitzi/sdk-variables": "0.32.4",
46
- "@tanstack/react-virtual": "^3.14.3",
47
- "@xyflow/react": "^12.11.0",
29
+ "@apollo/client": "^4.2.7",
30
+ "@fortawesome/fontawesome-free": "^7.3.1",
31
+ "@plitzi/nexus": "0.32.6",
32
+ "@plitzi/plitzi-sdk": "0.32.6",
33
+ "@plitzi/plitzi-ui": "^1.6.17",
34
+ "@plitzi/sdk-auth": "0.32.6",
35
+ "@plitzi/sdk-collections": "0.32.6",
36
+ "@plitzi/sdk-dev-tools": "0.32.6",
37
+ "@plitzi/sdk-elements": "0.32.6",
38
+ "@plitzi/sdk-event-bridge": "0.32.6",
39
+ "@plitzi/sdk-interactions": "0.32.6",
40
+ "@plitzi/sdk-navigation": "0.32.6",
41
+ "@plitzi/sdk-plugins": "0.32.6",
42
+ "@plitzi/sdk-schema": "0.32.6",
43
+ "@plitzi/sdk-shared": "0.32.6",
44
+ "@plitzi/sdk-style": "0.32.6",
45
+ "@plitzi/sdk-variables": "0.32.6",
46
+ "@tanstack/react-virtual": "^3.14.8",
47
+ "@xyflow/react": "^12.11.2",
48
48
  "apollo-upload-client": "^19.0.0",
49
49
  "clsx": "^2.1.1",
50
- "graphql": "^17.0.1",
51
- "graphql-ws": "^6.0.8",
52
- "immer": "^11.1.8",
50
+ "graphql": "^17.0.2",
51
+ "graphql-ws": "^6.1.1",
52
+ "immer": "^11.1.15",
53
53
  "jszip": "^3.10.1",
54
- "react-hook-form": "^7.80.0",
55
- "react-router-dom": "^7.18.0",
56
- "swr": "^2.4.1",
57
- "twig": "^3.0.0",
54
+ "react-hook-form": "^7.82.0",
55
+ "react-router-dom": "^7.18.1",
56
+ "swr": "^2.4.2",
58
57
  "uuid": "^14.0.1",
59
58
  "zod": "^4.4.3"
60
59
  },
@@ -66,42 +65,42 @@
66
65
  "@babel/compat-data": "^8.0.0",
67
66
  "@babel/core": "^8.0.1",
68
67
  "@babel/helper-builder-react-jsx-experimental": "^7.12.11",
69
- "@babel/helper-validator-identifier": "^8.0.2",
68
+ "@babel/helper-validator-identifier": "^8.0.4",
70
69
  "@babel/plugin-proposal-class-properties": "^7.18.6",
71
70
  "@babel/plugin-transform-private-methods": "^8.0.1",
72
71
  "@babel/plugin-transform-runtime": "^8.0.1",
73
72
  "@babel/polyfill": "^7.12.1",
74
73
  "@babel/preset-env": "^8.0.2",
75
74
  "@babel/preset-react": "^8.0.1",
76
- "@tailwindcss/postcss": "^4.3.1",
75
+ "@tailwindcss/postcss": "^4.3.3",
77
76
  "css-loader": "^7.1.4",
78
- "cypress": "15.17.0",
79
- "eslint": "^9.39.4",
77
+ "cypress": "15.19.0",
78
+ "eslint": "^9.39.5",
80
79
  "eslint-plugin-import": "^2.32.0",
81
- "flow-bin": "^0.320.0",
82
- "postcss": "^8.5.15",
80
+ "flow-bin": "^0.323.0",
81
+ "postcss": "^8.5.22",
83
82
  "postcss-loader": "^8.2.1",
84
83
  "postcss-scss": "^4.0.9",
85
- "prettier": "^3.8.4",
84
+ "prettier": "^3.9.6",
86
85
  "prop-types": "^15.8.1",
87
- "react": "^19.2.7",
88
- "react-dom": "^19.2.7",
86
+ "react": "^19.2.8",
87
+ "react-dom": "^19.2.8",
89
88
  "react-refresh": "^0.18.0",
90
- "react-test-renderer": "^19.2.7",
91
- "sass": "^1.101.0",
89
+ "react-test-renderer": "^19.2.8",
90
+ "sass": "^1.101.6",
92
91
  "sass-embedded": "^1.100.0",
93
92
  "sass-loader": "^17.0.0",
94
- "stylelint": "^17.13.0",
93
+ "stylelint": "^17.14.1",
95
94
  "stylelint-order": "^8.1.1",
96
95
  "stylelint-scss": "^7.2.0",
97
- "terser": "^5.48.0",
96
+ "terser": "^5.49.0",
98
97
  "typescript": "^6.0.3",
99
- "vite": "^8.0.16",
100
- "vite-plugin-dts": "^5.0.2",
101
- "vite-plugin-ejs": "^1.7.0",
98
+ "vite": "^8.1.5",
99
+ "vite-plugin-dts": "^5.0.3",
100
+ "vite-plugin-ejs": "^2.0.0",
102
101
  "vite-plugin-mkcert": "^2.1.0",
103
102
  "vite-plugin-react": "^4.0.1",
104
- "vitest": "^4.1.9"
103
+ "vitest": "^4.1.10"
105
104
  },
106
105
  "scripts": {
107
106
  "start": "vite dev --mode development",
@@ -1,37 +0,0 @@
1
- import { AiMessage } from '../../../types';
2
- export type BrandTypeface = {
3
- family: string;
4
- weight?: string;
5
- tracking?: string;
6
- };
7
- export type BrandData = {
8
- name: string;
9
- tagline?: string;
10
- personality: string[];
11
- colors: {
12
- primary: string;
13
- secondary?: string;
14
- accent?: string;
15
- background?: string;
16
- surface?: string;
17
- text?: string;
18
- };
19
- colorsDark?: {
20
- primary?: string;
21
- secondary?: string;
22
- accent?: string;
23
- background?: string;
24
- surface?: string;
25
- text?: string;
26
- };
27
- typography?: {
28
- heading: BrandTypeface;
29
- body: BrandTypeface;
30
- };
31
- voice?: {
32
- tone: string;
33
- keywords?: string[];
34
- };
35
- };
36
- declare const getBrandResult: (tools?: AiMessage["tools"]) => BrandData | undefined;
37
- export default getBrandResult;
@@ -1,14 +0,0 @@
1
- import { AiMessage } from '../../../types';
2
- export type ColorItem = {
3
- name: string;
4
- hex: string;
5
- darkHex?: string;
6
- role?: string;
7
- };
8
- export type ColorPaletteData = {
9
- name: string;
10
- description?: string;
11
- colors: ColorItem[];
12
- };
13
- declare const getColorPaletteResult: (tools?: AiMessage["tools"]) => ColorPaletteData | undefined;
14
- export default getColorPaletteResult;
@@ -1,11 +0,0 @@
1
- import { Schema, Style } from '@plitzi/sdk-shared';
2
- import { AiMessage } from '../../../types';
3
- export type PreviewData = {
4
- baseElementId: string;
5
- schema?: Pick<Schema, 'flat'>;
6
- style?: Pick<Style, 'platform' | 'cache'>;
7
- elements?: Array<Record<string, unknown>>;
8
- html?: string;
9
- };
10
- declare const getStagePreviewResult: (tools?: AiMessage["tools"]) => PreviewData | undefined;
11
- export default getStagePreviewResult;
@@ -1,45 +0,0 @@
1
- import { AiMessage } from '../../../types';
2
- export type NamedToken = {
3
- name: string;
4
- value: string;
5
- };
6
- export type ColorScale = Record<string, string>;
7
- export type StyleGuideData = {
8
- name: string;
9
- description?: string;
10
- colors: {
11
- primary: ColorScale;
12
- secondary?: ColorScale;
13
- accent?: ColorScale;
14
- neutral?: ColorScale;
15
- semantic?: {
16
- success?: string;
17
- warning?: string;
18
- error?: string;
19
- info?: string;
20
- };
21
- };
22
- colorsDark?: {
23
- primary?: ColorScale;
24
- secondary?: ColorScale;
25
- accent?: ColorScale;
26
- neutral?: ColorScale;
27
- };
28
- typography?: {
29
- fontFamily: {
30
- heading: string;
31
- body: string;
32
- };
33
- scale?: Array<{
34
- name: string;
35
- size: string;
36
- lineHeight: string;
37
- weight?: string;
38
- }>;
39
- };
40
- spacing?: NamedToken[];
41
- borderRadius?: NamedToken[];
42
- shadows?: NamedToken[];
43
- };
44
- declare const getStyleGuideResult: (tools?: AiMessage["tools"]) => StyleGuideData | undefined;
45
- export default getStyleGuideResult;
@@ -1,12 +0,0 @@
1
- import { Schema, Style } from '@plitzi/sdk-shared';
2
- import { AiMessage } from '../../../types';
3
- export type WireframeData = {
4
- baseElementId: string;
5
- name: string;
6
- description?: string;
7
- schema?: Pick<Schema, 'flat'>;
8
- style?: Pick<Style, 'platform' | 'cache'>;
9
- html?: string;
10
- };
11
- declare const getWireframeResult: (tools?: AiMessage["tools"]) => WireframeData | undefined;
12
- export default getWireframeResult;