@plitzi/plitzi-builder 0.32.25 → 0.33.1

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 (83) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.html +4 -3
  4. package/dist/modules/App/AppContainer/containers/ContainerConnectors.d.ts +2 -0
  5. package/dist/modules/App/AppContainer/containers/ContainerCredentials.d.ts +2 -0
  6. package/dist/modules/App/AppProvider.d.ts +1 -2
  7. package/dist/modules/Builder/components/BuilderElementTools/ElementSettings.d.ts +5 -1
  8. package/dist/modules/Collaboration/CollaborationHelper.d.ts +53 -0
  9. package/dist/modules/Collaboration/components/CollaboratorArea/CollaboratorArea.d.ts +16 -0
  10. package/dist/modules/Collaboration/components/CollaboratorArea/CollaboratorCursor.d.ts +9 -0
  11. package/dist/modules/Collaboration/components/CollaboratorArea/index.d.ts +3 -0
  12. package/dist/modules/Collaboration/components/CollaboratorAvatar/CollaboratorAvatar.d.ts +10 -0
  13. package/dist/modules/Collaboration/components/CollaboratorAvatar/index.d.ts +3 -0
  14. package/dist/modules/Collaboration/hooks/useCollaboratorCursor.d.ts +22 -0
  15. package/dist/modules/Collaboration/hooks/useCollaboratorElements.d.ts +8 -0
  16. package/dist/modules/Collaboration/hooks/useCollaborators.d.ts +17 -0
  17. package/dist/modules/Connectors/Connectors.d.ts +2 -0
  18. package/dist/modules/Connectors/ConnectorsContext.d.ts +13 -0
  19. package/dist/modules/Connectors/ConnectorsContextProvider.d.ts +14 -0
  20. package/dist/modules/Connectors/components/ConnectorAdvancedEditor/ConnectorAdvancedEditor.d.ts +14 -0
  21. package/dist/modules/Connectors/components/ConnectorAdvancedEditor/index.d.ts +2 -0
  22. package/dist/modules/Connectors/components/ConnectorBasicEditor/ConnectorBasicEditor.d.ts +7 -0
  23. package/dist/modules/Connectors/components/ConnectorBasicEditor/index.d.ts +2 -0
  24. package/dist/modules/Connectors/components/ConnectorEndpointEditor/ConnectorEndpointEditor.d.ts +20 -0
  25. package/dist/modules/Connectors/components/ConnectorEndpointEditor/index.d.ts +2 -0
  26. package/dist/modules/Connectors/components/ConnectorEndpointsEditor/ConnectorEndpointsEditor.d.ts +13 -0
  27. package/dist/modules/Connectors/components/ConnectorEndpointsEditor/index.d.ts +2 -0
  28. package/dist/modules/Connectors/components/ConnectorForm/ConnectorForm.d.ts +8 -0
  29. package/dist/modules/Connectors/components/ConnectorForm/index.d.ts +3 -0
  30. package/dist/modules/Connectors/components/ConnectorList/ConnectorList.d.ts +9 -0
  31. package/dist/modules/Connectors/components/ConnectorList/index.d.ts +3 -0
  32. package/dist/modules/Connectors/components/ConnectorSection/ConnectorSection.d.ts +24 -0
  33. package/dist/modules/Connectors/components/ConnectorSection/ConnectorSectionContext.d.ts +8 -0
  34. package/dist/modules/Connectors/components/ConnectorSection/index.d.ts +3 -0
  35. package/dist/modules/Connectors/components/FieldGrid/FieldGrid.d.ts +22 -0
  36. package/dist/modules/Connectors/components/FieldGrid/index.d.ts +2 -0
  37. package/dist/modules/Connectors/components/FieldHelp/FieldHelp.d.ts +11 -0
  38. package/dist/modules/Connectors/components/FieldHelp/index.d.ts +2 -0
  39. package/dist/modules/Connectors/components/TokenInput/TokenInput.d.ts +19 -0
  40. package/dist/modules/Connectors/components/TokenInput/index.d.ts +2 -0
  41. package/dist/modules/Connectors/helpers/manifestDoc.d.ts +41 -0
  42. package/dist/modules/Connectors/helpers/parseManifest.d.ts +17 -0
  43. package/dist/modules/Connectors/helpers/summarizeManifest.d.ts +18 -0
  44. package/dist/modules/Connectors/helpers/updateManifest.d.ts +23 -0
  45. package/dist/modules/Connectors/helpers/validateManifest.d.ts +15 -0
  46. package/dist/modules/Connectors/index.d.ts +4 -0
  47. package/dist/modules/Credentials/Credentials.d.ts +9 -0
  48. package/dist/modules/Credentials/index.d.ts +1 -0
  49. package/dist/modules/Navigation/NavigationProvider.d.ts +6 -0
  50. package/dist/modules/Network/NetworkSubscriptionsContextProvider.d.ts +4 -0
  51. package/dist/modules/Network/contexts/BuilderSubscriptionsContext.d.ts +3 -4
  52. package/dist/modules/Network/hooks/useSubscriptionsManager.d.ts +9 -9
  53. package/dist/modules/Space/Models/SpaceCredentialForm.d.ts +4 -0
  54. package/dist/modules/Space/helpers/buildCredentialData.d.ts +17 -0
  55. package/dist/package.json.d.ts +15 -16
  56. package/dist/plitzi-builder-dev-vendor.js.map +1 -1
  57. package/dist/plitzi-builder-dev-vendor.js.map.gz +0 -0
  58. package/dist/plitzi-builder.css +1 -1
  59. package/dist/plitzi-builder.css.gz +0 -0
  60. package/dist/plitzi-builder.js +2234 -3054
  61. package/dist/plitzi-builder.js.gz +0 -0
  62. package/package.json +27 -28
  63. package/dist/modules/App/AppContainer/containers/ContainerCollections.d.ts +0 -2
  64. package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorArea.d.ts +0 -13
  65. package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorCursor.d.ts +0 -9
  66. package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorHeaderUser.d.ts +0 -9
  67. package/dist/modules/Builder/hooks/useNormalizedCursor.d.ts +0 -25
  68. package/dist/modules/Collection/CollectionContextProvider.d.ts +0 -8
  69. package/dist/modules/Collection/Collections.d.ts +0 -2
  70. package/dist/modules/Collection/Models/CollectionFieldForm.d.ts +0 -41
  71. package/dist/modules/Collection/Models/CollectionForm.d.ts +0 -13
  72. package/dist/modules/Collection/Models/CollectionRecordForm/CollectionRecordForm.d.ts +0 -14
  73. package/dist/modules/Collection/Models/CollectionRecordForm/CollectionRecordFormHelper.d.ts +0 -19
  74. package/dist/modules/Collection/Models/CollectionRecordForm/index.d.ts +0 -3
  75. package/dist/modules/Collection/components/Collection/Collection.d.ts +0 -9
  76. package/dist/modules/Collection/components/Collection/index.d.ts +0 -3
  77. package/dist/modules/Collection/components/CollectionContainer/CollectionContainer.d.ts +0 -10
  78. package/dist/modules/Collection/components/CollectionContainer/CollectionRecord.d.ts +0 -13
  79. package/dist/modules/Collection/components/CollectionContainer/CollectionRecords.d.ts +0 -10
  80. package/dist/modules/Collection/components/CollectionContainer/index.d.ts +0 -3
  81. package/dist/modules/Collection/components/CollectionField.d.ts +0 -11
  82. package/dist/modules/Collection/index.d.ts +0 -1
  83. package/dist/modules/Navigation/NavigationContextProvider.d.ts +0 -7
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/plitzi-builder",
3
- "version": "0.32.25",
3
+ "version": "0.33.1",
4
4
  "homepage": "./",
5
5
  "license": "AGPL-3.0",
6
6
  "files": [
@@ -26,34 +26,33 @@
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.9",
29
+ "@apollo/client": "^4.2.11",
30
30
  "@fortawesome/fontawesome-free": "^7.3.1",
31
- "@plitzi/nexus": "^1.0.0",
32
- "@plitzi/plitzi-sdk": "0.32.25",
33
- "@plitzi/plitzi-ui": "^1.6.18",
34
- "@plitzi/sdk-auth": "0.32.25",
35
- "@plitzi/sdk-collections": "0.32.25",
36
- "@plitzi/sdk-dev-tools": "0.32.25",
37
- "@plitzi/sdk-elements": "0.32.25",
38
- "@plitzi/sdk-event-bridge": "0.32.25",
39
- "@plitzi/sdk-interactions": "0.32.25",
40
- "@plitzi/sdk-navigation": "0.32.25",
41
- "@plitzi/sdk-plugins": "0.32.25",
42
- "@plitzi/sdk-schema": "0.32.25",
43
- "@plitzi/sdk-shared": "0.32.25",
44
- "@plitzi/sdk-style": "0.32.25",
45
- "@plitzi/sdk-variables": "0.32.25",
31
+ "@plitzi/nexus": "^1.1.0",
32
+ "@plitzi/plitzi-sdk": "0.33.1",
33
+ "@plitzi/plitzi-ui": "^1.6.19",
34
+ "@plitzi/sdk-auth": "0.33.1",
35
+ "@plitzi/sdk-dev-tools": "0.33.1",
36
+ "@plitzi/sdk-elements": "0.33.1",
37
+ "@plitzi/sdk-event-bridge": "0.33.1",
38
+ "@plitzi/sdk-interactions": "0.33.1",
39
+ "@plitzi/sdk-navigation": "0.33.1",
40
+ "@plitzi/sdk-plugins": "0.33.1",
41
+ "@plitzi/sdk-schema": "0.33.1",
42
+ "@plitzi/sdk-shared": "0.33.1",
43
+ "@plitzi/sdk-style": "0.33.1",
44
+ "@plitzi/sdk-variables": "0.33.1",
46
45
  "@tanstack/react-virtual": "^3.14.9",
47
- "@xyflow/react": "^12.11.2",
46
+ "@xyflow/react": "^12.11.3",
48
47
  "apollo-upload-client": "^20.0.0",
49
48
  "clsx": "^2.1.1",
50
49
  "graphql": "^17.0.2",
51
- "graphql-ws": "^6.2.0",
52
- "immer": "^11.1.15",
50
+ "graphql-ws": "^6.2.1",
51
+ "immer": "^11.1.16",
53
52
  "jszip": "^3.10.1",
54
- "react-hook-form": "^7.83.0",
53
+ "react-hook-form": "^7.85.0",
55
54
  "react-router-dom": "^7.18.2",
56
- "swr": "^2.4.2",
55
+ "swr": "^2.5.1",
57
56
  "uuid": "^14.0.1",
58
57
  "zod": "^4.4.3"
59
58
  },
@@ -74,11 +73,11 @@
74
73
  "@babel/preset-react": "^8.0.1",
75
74
  "@tailwindcss/postcss": "^4.3.3",
76
75
  "css-loader": "^7.1.4",
77
- "cypress": "15.19.0",
76
+ "cypress": "15.20.1",
78
77
  "eslint": "^9.39.5",
79
78
  "eslint-plugin-import": "^2.32.0",
80
- "flow-bin": "^0.325.0",
81
- "postcss": "^8.5.25",
79
+ "flow-bin": "^0.327.0",
80
+ "postcss": "^8.5.26",
82
81
  "postcss-loader": "^8.2.1",
83
82
  "postcss-scss": "^4.0.9",
84
83
  "prettier": "^3.9.6",
@@ -88,14 +87,14 @@
88
87
  "react-refresh": "^0.18.0",
89
88
  "react-test-renderer": "^19.2.8",
90
89
  "sass": "^1.102.0",
91
- "sass-embedded": "^1.100.0",
90
+ "sass-embedded": "^1.102.0",
92
91
  "sass-loader": "^17.0.0",
93
92
  "stylelint": "^17.14.1",
94
93
  "stylelint-order": "^8.1.1",
95
94
  "stylelint-scss": "^7.2.0",
96
- "terser": "^5.49.0",
95
+ "terser": "^5.50.0",
97
96
  "typescript": "^6.0.3",
98
- "vite": "^8.2.0",
97
+ "vite": "^8.2.1",
99
98
  "vite-plugin-dts": "^5.0.3",
100
99
  "vite-plugin-ejs": "^2.0.0",
101
100
  "vite-plugin-mkcert": "^2.1.0",
@@ -1,2 +0,0 @@
1
- declare const ContainerCollections: () => import("react").JSX.Element;
2
- export default ContainerCollections;
@@ -1,13 +0,0 @@
1
- import { DisplayMode } from '@plitzi/sdk-shared';
2
- import { RefObject } from 'react';
3
- export type BuilderCollaboratorAreaProps = {
4
- baseElementId?: string;
5
- color?: string;
6
- title?: string;
7
- refIframe: RefObject<HTMLIFrameElement | null>;
8
- trackingContainerRef: RefObject<HTMLDivElement | null>;
9
- zoom?: number;
10
- displayMode?: DisplayMode;
11
- };
12
- declare const _default: import('react').MemoExoticComponent<({ baseElementId, color, title, refIframe, trackingContainerRef, zoom, displayMode }: BuilderCollaboratorAreaProps) => import("react").JSX.Element>;
13
- export default _default;
@@ -1,9 +0,0 @@
1
- import { RefObject } from 'react';
2
- export type BuilderCollaboratorCursorProps = {
3
- ref: RefObject<HTMLDivElement | null>;
4
- title?: string;
5
- color?: string;
6
- zoom?: number;
7
- };
8
- declare const BuilderCollaboratorCursor: ({ ref, title, color, zoom }: BuilderCollaboratorCursorProps) => import("react").JSX.Element;
9
- export default BuilderCollaboratorCursor;
@@ -1,9 +0,0 @@
1
- import { RefObject } from 'react';
2
- export type BuilderCollaboratorHeaderUserProps = {
3
- ref?: RefObject<HTMLDivElement | null>;
4
- color?: string;
5
- firstName: string;
6
- surName: string;
7
- };
8
- declare const BuilderCollaboratorHeaderUser: ({ ref, color, firstName, surName }: BuilderCollaboratorHeaderUserProps) => import("react").JSX.Element;
9
- export default BuilderCollaboratorHeaderUser;
@@ -1,25 +0,0 @@
1
- declare const useNormalizedCursor: <T extends HTMLElement | null>(containerRef: React.RefObject<T>, { enabled, onMove }?: {
2
- enabled?: boolean;
3
- onMove?: (pos: {
4
- x: number;
5
- y: number;
6
- }) => void;
7
- }) => {
8
- bind: () => {
9
- onPointerEnter?: undefined;
10
- onPointerLeave?: undefined;
11
- onPointerMove?: undefined;
12
- } | {
13
- onPointerEnter(): void;
14
- onPointerLeave(): void;
15
- onPointerMove(e: React.PointerEvent): void;
16
- };
17
- mapToPixels: (pos: {
18
- x: number;
19
- y: number;
20
- }) => {
21
- x: number;
22
- y: number;
23
- } | null;
24
- };
25
- export default useNormalizedCursor;
@@ -1,8 +0,0 @@
1
- import { Collection } from '@plitzi/sdk-shared';
2
- import { ReactNode } from 'react';
3
- export type CollectionContextProviderProps = {
4
- children: ReactNode;
5
- collections?: Record<string, Collection>;
6
- };
7
- declare const CollectionContextProvider: ({ children, collections: collectionsProp }: CollectionContextProviderProps) => import("react").JSX.Element;
8
- export default CollectionContextProvider;
@@ -1,2 +0,0 @@
1
- declare const Collections: () => import("react").JSX.Element;
2
- export default Collections;
@@ -1,41 +0,0 @@
1
- import { z } from 'zod';
2
- import { CollectionField } from '@plitzi/sdk-shared';
3
- export declare const collectionFieldSchema: z.ZodObject<{
4
- id: z.ZodString;
5
- type: z.ZodEnum<{
6
- number: "number";
7
- link: "link";
8
- text: "text";
9
- color: "color";
10
- email: "email";
11
- date: "date";
12
- file: "file";
13
- image: "image";
14
- option: "option";
15
- switch: "switch";
16
- video: "video";
17
- richText: "richText";
18
- multiImage: "multiImage";
19
- phone: "phone";
20
- }>;
21
- name: z.ZodString;
22
- machineName: z.ZodString;
23
- params: z.ZodObject<{
24
- required: z.ZodBoolean;
25
- primary: z.ZodBoolean;
26
- }, z.core.$strip>;
27
- }, z.core.$strip>;
28
- export type CollectionFieldFormProps = {
29
- isNewField?: boolean;
30
- name?: string;
31
- machineName?: string;
32
- type?: CollectionField['type'];
33
- params?: CollectionField['params'];
34
- onSubmit?: (values: z.infer<typeof collectionFieldSchema>) => void;
35
- onValidate?: (values: z.infer<typeof collectionFieldSchema>) => {
36
- key: 'name' | 'machineName' | 'type' | 'params.required' | 'params.primary';
37
- message: string;
38
- } | null | undefined;
39
- };
40
- declare const CollectionFieldForm: ({ name, type, machineName, params, onSubmit, onValidate }: CollectionFieldFormProps) => import("react").JSX.Element;
41
- export default CollectionFieldForm;
@@ -1,13 +0,0 @@
1
- import { Collection } from '@plitzi/sdk-shared';
2
- export type CollectionFormProps = {
3
- id?: string;
4
- name?: string;
5
- namePlural?: string;
6
- description?: string;
7
- privacy?: Collection['privacy'];
8
- fields?: Collection['fields'];
9
- onCancel?: () => void;
10
- onSubmit?: (values: Omit<Collection, 'records'>) => void;
11
- };
12
- declare const CollectionForm: ({ id, name, description, privacy, namePlural, fields: fieldsProp, onCancel, onSubmit }: CollectionFormProps) => import("react").JSX.Element;
13
- export default CollectionForm;
@@ -1,14 +0,0 @@
1
- import { CollectionField, CollectionRecord } from '@plitzi/sdk-shared';
2
- import { MouseEvent } from 'react';
3
- export type CollectionRecordFormProps = {
4
- id?: string;
5
- fields?: CollectionField[];
6
- previewMode?: boolean;
7
- values?: CollectionRecord['values'];
8
- onClose?: (e?: MouseEvent) => void;
9
- onSubmit?: (e: MouseEvent | undefined, { record }: {
10
- record: Omit<CollectionRecord, 'createdAt' | 'updatedAt'>;
11
- }) => void;
12
- };
13
- declare const CollectionRecordForm: ({ id, fields, previewMode, values, onClose, onSubmit }: CollectionRecordFormProps) => import("react").JSX.Element;
14
- export default CollectionRecordForm;
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { collectionFieldSchema } from '../CollectionFieldForm';
3
- export declare const collectionRecordBaseSchema: z.ZodObject<{
4
- id: z.ZodString;
5
- status: z.ZodEnum<{
6
- draft: "draft";
7
- published: "published";
8
- archived: "archived";
9
- }>;
10
- }, z.core.$strip>;
11
- export declare function makeCollectionRecordSchema(fields?: z.infer<typeof collectionFieldSchema>[]): z.ZodObject<{
12
- id: z.ZodString;
13
- status: z.ZodEnum<{
14
- draft: "draft";
15
- published: "published";
16
- archived: "archived";
17
- }>;
18
- values: z.ZodObject<{}, z.core.$strip>;
19
- }, z.core.$strip>;
@@ -1,3 +0,0 @@
1
- import { default as CollectionRecordForm } from './CollectionRecordForm';
2
- export * from './CollectionRecordForm';
3
- export default CollectionRecordForm;
@@ -1,9 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- export type CollectionProps = {
3
- id: string;
4
- active?: boolean;
5
- namePlural: string;
6
- setCollectionId?: Dispatch<SetStateAction<string>>;
7
- };
8
- declare const Collection: ({ id, active, namePlural, setCollectionId }: CollectionProps) => import("react").JSX.Element;
9
- export default Collection;
@@ -1,3 +0,0 @@
1
- import { default as Collection } from './Collection';
2
- export * from './Collection';
3
- export default Collection;
@@ -1,10 +0,0 @@
1
- import { Collection as TCollection } from '@plitzi/sdk-shared';
2
- export type CollectionProps = {
3
- id: string;
4
- records: TCollection['records'];
5
- fields: TCollection['fields'];
6
- name: TCollection['name'];
7
- onUpdateMode?: (mode: boolean) => void;
8
- };
9
- declare const CollectionContainer: ({ id, records, fields, name, onUpdateMode }: CollectionProps) => import("react").JSX.Element;
10
- export default CollectionContainer;
@@ -1,13 +0,0 @@
1
- import { CollectionField, CollectionRecord as TCollectionRecord } from '@plitzi/sdk-shared';
2
- import { MouseEvent } from 'react';
3
- export type CollectionRecordProps = {
4
- id?: string;
5
- values?: TCollectionRecord['values'];
6
- publishedAt?: number;
7
- status?: TCollectionRecord['status'];
8
- fields?: Record<string, CollectionField>;
9
- onUpdate?: (e: MouseEvent) => void;
10
- onRemove?: (e: MouseEvent) => void;
11
- };
12
- declare const CollectionRecord: ({ id, values, publishedAt, status, fields, onUpdate, onRemove }: CollectionRecordProps) => import("react").JSX.Element;
13
- export default CollectionRecord;
@@ -1,10 +0,0 @@
1
- import { CollectionField, CollectionRecord as TCollectionRecord } from '@plitzi/sdk-shared';
2
- import { MouseEvent } from 'react';
3
- export type CollectionRecordsProps = {
4
- items?: TCollectionRecord[];
5
- fields?: Record<string, CollectionField>;
6
- onUpdate?: (id: string) => (e: MouseEvent) => void;
7
- onRemove?: (id: string) => (e: MouseEvent) => void;
8
- };
9
- declare const CollectionRecords: ({ items, fields, onUpdate, onRemove }: CollectionRecordsProps) => import("react").JSX.Element;
10
- export default CollectionRecords;
@@ -1,3 +0,0 @@
1
- import { default as CollectionContainer } from './CollectionContainer';
2
- export * from './CollectionContainer';
3
- export default CollectionContainer;
@@ -1,11 +0,0 @@
1
- import { fieldTypes } from '@plitzi/sdk-collections/CollectionsHelper';
2
- export type CollectionFieldProps = {
3
- isNewField?: boolean;
4
- name?: string;
5
- machineName?: string;
6
- type?: keyof typeof fieldTypes;
7
- params?: object;
8
- onRemove?: () => void;
9
- };
10
- declare const CollectionField: ({ name, machineName, type, params, onRemove }: CollectionFieldProps) => import("react").JSX.Element;
11
- export default CollectionField;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type NavigationContextProviderProps = {
3
- children?: ReactNode;
4
- previewMode?: boolean;
5
- };
6
- declare const NavigationContextProvider: ({ previewMode, children }: NavigationContextProviderProps) => import("react").JSX.Element | "Not Found" | "Access Denied";
7
- export default NavigationContextProvider;