@cntrl-site/components 1.0.12-alpha.10 → 1.0.12-alpha.11

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 GX Platform
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 GX Platform
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # Control Components
2
-
1
+ # Control Components
2
+
3
3
  This is custom components for control editor and public websites.
@@ -4,10 +4,11 @@ type FormProps = {
4
4
  settings: FormSettings;
5
5
  content?: unknown;
6
6
  isEditor?: boolean;
7
+ isEditMode?: boolean;
7
8
  activeEvent: string | undefined;
8
9
  onUpdateSettings?: (settings: FormSettings) => void;
9
10
  } & CommonComponentProps;
10
- export declare function Form({ settings, isEditor, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Form({ settings, isEditor, isEditMode, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
11
12
  export type FormFieldType = 'text' | 'textarea' | 'phone' | 'email';
12
13
  export type FormFieldItem = {
13
14
  name: string;
@@ -701,23 +701,11 @@ export declare const FormComponent: {
701
701
  } | {
702
702
  type: "group";
703
703
  title: string;
704
- items: ({
704
+ items: {
705
705
  type: "row";
706
706
  title: string;
707
- items: {
708
- type: "group";
709
- title: string;
710
- items: string[];
711
- }[];
712
- } | {
713
- type: "group";
714
- title: string;
715
- items: {
716
- type: "row";
717
- title: string;
718
- items: string[];
719
- }[];
720
- })[];
707
+ items: string[];
708
+ }[];
721
709
  })[];
722
710
  } | {
723
711
  id: string;
@@ -133,6 +133,7 @@ type ListProps = {
133
133
  isEditor?: boolean;
134
134
  isPreviewMode?: boolean;
135
135
  isEditMode?: boolean;
136
+ isEditMode?: boolean;
136
137
  activeEvent: string | undefined;
137
138
  onUpdateSettings?: (settings: ListSettings) => void;
138
139
  } & CommonComponentProps;