slice-machine-ui 2.2.2-beta.2 → 2.2.2-beta.3
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/out/404.html +1 -1
- package/out/_next/static/KD7BhDNRF_N5IlJuDq1eR/_buildManifest.js +1 -0
- package/out/_next/static/chunks/18539003-36b102fa41de015e.js +22 -0
- package/out/_next/static/chunks/{66-d37d30551288858b.js → 210-565d01ee9777d1a1.js} +2 -2
- package/out/_next/static/chunks/212-58a99ab312f8a03b.js +1 -0
- package/out/_next/static/chunks/448-7a6843206737d199.js +1 -0
- package/out/_next/static/chunks/465-695ac5fedef986eb.js +1 -0
- package/out/_next/static/chunks/574-dfeb0e6aa3079da1.js +1 -0
- package/out/_next/static/chunks/756-98ae0a6e755f46f2.js +10 -0
- package/out/_next/static/chunks/816-96fc9a79308019c7.js +1 -0
- package/out/_next/static/chunks/pages/_app-6c8c02648847371c.js +536 -0
- package/out/_next/static/chunks/pages/changelog-f0cd26a9ae095e9e.js +1 -0
- package/out/_next/static/chunks/pages/changes-1a57f90433a0b5e2.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-74be2c0ac9c854c7.js → [customTypeId]-a6ff1618238b3510.js} +1 -1
- package/out/_next/static/chunks/pages/index-a0530bd55c7e1872.js +1 -0
- package/out/_next/static/chunks/pages/labs-7b0abeef69494aec.js +1 -0
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-d35c87b9aaec445a.js → [pageTypeId]-c300f963db847451.js} +1 -1
- package/out/_next/static/chunks/pages/settings-f82286dde10f624c.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-453f946e8879c829.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-b530a5e0ac9d0391.js +1 -0
- package/out/_next/static/chunks/pages/slices-7411822d74f1f6c1.js +1 -0
- package/out/_next/static/css/ee6cd1a80767d31e.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +9 -9
- package/src/hooks/useNestedGroupExperiment.ts +8 -0
- package/src/legacy/components/ListItem/index.tsx +1 -1
- package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +21 -3
- package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +23 -6
- package/src/legacy/lib/builders/SliceBuilder/VariationsList/index.tsx +4 -2
- package/src/legacy/lib/builders/SliceBuilder/index.tsx +1 -1
- package/src/legacy/lib/builders/common/EditModal/index.jsx +1 -1
- package/src/legacy/lib/builders/common/Zone/Card/components/Hints/index.tsx +8 -1
- package/src/legacy/lib/builders/common/Zone/Card/components/NewField.tsx +1 -1
- package/src/legacy/lib/builders/common/Zone/Card/index.jsx +3 -1
- package/src/legacy/lib/builders/utils/index.ts +8 -0
- package/src/legacy/lib/models/common/Group.ts +51 -28
- package/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx +22 -8
- package/src/legacy/lib/models/common/widgets/Group/createGroupWidget.ts +83 -0
- package/src/legacy/lib/models/common/widgets/Group/index.tsx +72 -0
- package/src/legacy/lib/models/common/widgets/NestedGroup/index.tsx +40 -0
- package/src/legacy/lib/models/common/widgets/Widget.ts +10 -1
- package/src/legacy/lib/models/common/widgets/groupWidgets.ts +7 -0
- package/src/legacy/lib/models/common/widgets/index.ts +7 -31
- package/src/legacy/lib/models/common/widgets/nonGroupWidgets.ts +33 -0
- package/test/lib/builders/buildersUtils.test.ts +1 -1
- package/test/lib/models/common/widgets/index.test.ts +1 -1
- package/out/_next/static/chunks/18539003-eda642ad962ef598.js +0 -22
- package/out/_next/static/chunks/212-cbaa35389c0aacf1.js +0 -1
- package/out/_next/static/chunks/264-4bb6f3fb14863ef3.js +0 -1
- package/out/_next/static/chunks/465-47a6d2a5f66f521e.js +0 -1
- package/out/_next/static/chunks/574-6039c48fbc93b4a8.js +0 -1
- package/out/_next/static/chunks/756-1e44fe84bedc262b.js +0 -10
- package/out/_next/static/chunks/816-68d4db26c0adab2e.js +0 -1
- package/out/_next/static/chunks/pages/_app-3e52a3eb73a7f2f4.js +0 -532
- package/out/_next/static/chunks/pages/changelog-d309ea186a0e56bf.js +0 -1
- package/out/_next/static/chunks/pages/changes-1bb1a7b784a22151.js +0 -1
- package/out/_next/static/chunks/pages/index-785a0ab6e2a4fc27.js +0 -1
- package/out/_next/static/chunks/pages/labs-2e4f3a5f68e65b93.js +0 -1
- package/out/_next/static/chunks/pages/settings-25eb02893ed871b7.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-b47a72d5e94bd946.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-996e20b9b295a912.js +0 -1
- package/out/_next/static/chunks/pages/slices-cc44eeccd58d23a9.js +0 -1
- package/out/_next/static/css/b3bb731ce567d63f.css +0 -1
- package/out/_next/static/g-Hz0XSEEv-vTN-aGjZpR/_buildManifest.js +0 -1
- package/src/legacy/lib/models/common/widgets/Group/index.ts +0 -44
- package/src/legacy/lib/models/common/widgets/ctBuilderArray.ts +0 -20
- package/src/legacy/lib/models/common/widgets/groupBuilderArray.ts +0 -18
- package/src/legacy/lib/models/common/widgets/sliceBuilderArray.ts +0 -19
- package/src/legacy/lib/models/common/widgets/withGroup.ts +0 -2
- /package/out/_next/static/{g-Hz0XSEEv-vTN-aGjZpR → KD7BhDNRF_N5IlJuDq1eR}/_ssgManifest.js +0 -0
|
@@ -1,33 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DateWidget } from "./Date";
|
|
5
|
-
import { EmbedWidget } from "./Embed";
|
|
6
|
-
import { GeoPointWidget } from "./GeoPoint";
|
|
7
|
-
import { ImageWidget } from "./Image";
|
|
8
|
-
import { LinkWidget } from "./Link";
|
|
9
|
-
import { LinkToMediaWidget } from "./LinkToMedia";
|
|
10
|
-
import { NumberWidget } from "./Number";
|
|
11
|
-
import { SelectWidget } from "./Select";
|
|
12
|
-
import { StructuredTextWidget } from "./StructuredText";
|
|
13
|
-
import { TextWidget } from "./Text";
|
|
14
|
-
import { TimestampWidget } from "./Timestamp";
|
|
15
|
-
import { UIDWidget } from "./UID";
|
|
1
|
+
import { GroupWidget as Group } from "./Group";
|
|
2
|
+
import { NestedGroupWidget as NestedGroup } from "./NestedGroup";
|
|
3
|
+
import { NonGroupWidgets } from "./nonGroupWidgets";
|
|
16
4
|
|
|
17
|
-
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
DateWidget as Date,
|
|
22
|
-
EmbedWidget as Embed,
|
|
23
|
-
GeoPointWidget as GeoPoint,
|
|
24
|
-
ImageWidget as Image,
|
|
25
|
-
LinkWidget as Link,
|
|
26
|
-
LinkToMediaWidget as LinkToMedia,
|
|
27
|
-
NumberWidget as Number,
|
|
28
|
-
SelectWidget as Select,
|
|
29
|
-
StructuredTextWidget as StructuredText,
|
|
30
|
-
TextWidget as Text,
|
|
31
|
-
TimestampWidget as Timestamp,
|
|
32
|
-
UIDWidget as UID,
|
|
5
|
+
export const Widgets = {
|
|
6
|
+
Group,
|
|
7
|
+
NestedGroup,
|
|
8
|
+
...NonGroupWidgets,
|
|
33
9
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BooleanWidget } from "./Boolean";
|
|
2
|
+
import { ColorWidget } from "./Color";
|
|
3
|
+
import { ContentRelationshipWidget } from "./ContentRelationship";
|
|
4
|
+
import { DateWidget } from "./Date";
|
|
5
|
+
import { EmbedWidget } from "./Embed";
|
|
6
|
+
import { GeoPointWidget } from "./GeoPoint";
|
|
7
|
+
import { ImageWidget } from "./Image";
|
|
8
|
+
import { LinkWidget } from "./Link";
|
|
9
|
+
import { LinkToMediaWidget } from "./LinkToMedia";
|
|
10
|
+
import { NumberWidget } from "./Number";
|
|
11
|
+
import { SelectWidget } from "./Select";
|
|
12
|
+
import { StructuredTextWidget } from "./StructuredText";
|
|
13
|
+
import { TextWidget } from "./Text";
|
|
14
|
+
import { TimestampWidget } from "./Timestamp";
|
|
15
|
+
import { UIDWidget } from "./UID";
|
|
16
|
+
|
|
17
|
+
export const NonGroupWidgets = {
|
|
18
|
+
Boolean: BooleanWidget,
|
|
19
|
+
Color: ColorWidget,
|
|
20
|
+
ContentRelationship: ContentRelationshipWidget,
|
|
21
|
+
Date: DateWidget,
|
|
22
|
+
Embed: EmbedWidget,
|
|
23
|
+
GeoPoint: GeoPointWidget,
|
|
24
|
+
Image: ImageWidget,
|
|
25
|
+
Link: LinkWidget,
|
|
26
|
+
LinkToMedia: LinkToMediaWidget,
|
|
27
|
+
Number: NumberWidget,
|
|
28
|
+
Select: SelectWidget,
|
|
29
|
+
StructuredText: StructuredTextWidget,
|
|
30
|
+
Text: TextWidget,
|
|
31
|
+
Timestamp: TimestampWidget,
|
|
32
|
+
UID: UIDWidget,
|
|
33
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "vitest";
|
|
2
2
|
|
|
3
3
|
import { findWidgetByConfigOrType } from "@/legacy/lib/builders/utils";
|
|
4
|
-
import
|
|
4
|
+
import { Widgets } from "@/legacy/lib/models/common/widgets";
|
|
5
5
|
|
|
6
6
|
const dumbConfig = {
|
|
7
7
|
label: "",
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
CustomTypes,
|
|
8
8
|
CustomTypeSM,
|
|
9
9
|
} from "@/legacy/lib/models/common/CustomType";
|
|
10
|
-
import
|
|
10
|
+
import { NonGroupWidgets as Widgets } from "@/legacy/lib/models/common/widgets/nonGroupWidgets";
|
|
11
11
|
|
|
12
12
|
const widgetEntries = Object.entries(Widgets);
|
|
13
13
|
|