slice-machine-ui 2.2.2-beta.1 → 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/next.config.mjs +11 -1
- 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/JGphUg6eFq0-W11Pa7cMU/_buildManifest.js +0 -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-05ac13d573829b68.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/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/{JGphUg6eFq0-W11Pa7cMU → KD7BhDNRF_N5IlJuDq1eR}/_ssgManifest.js +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { MdPlaylistAdd } from "react-icons/md";
|
|
2
|
-
import * as yup from "yup";
|
|
3
|
-
|
|
4
|
-
import { GroupSM } from "@/legacy/lib/models/common/Group";
|
|
5
|
-
|
|
6
|
-
import { Widget } from "../Widget";
|
|
7
|
-
import Form, { FormFields } from "./Form";
|
|
8
|
-
import CustomListItem from "./ListItem";
|
|
9
|
-
|
|
10
|
-
const Meta = {
|
|
11
|
-
icon: MdPlaylistAdd,
|
|
12
|
-
title: "Group",
|
|
13
|
-
description: "A repeatable set of fields",
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const schema = yup.object().shape({
|
|
17
|
-
type: yup
|
|
18
|
-
.string()
|
|
19
|
-
.matches(/^Group$/, { excludeEmptyString: true })
|
|
20
|
-
.required(),
|
|
21
|
-
config: yup.object().shape({
|
|
22
|
-
fields: yup.array(),
|
|
23
|
-
label: yup.string(),
|
|
24
|
-
placeholder: yup.string(),
|
|
25
|
-
repeat: yup.boolean().optional(),
|
|
26
|
-
}),
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
export const GroupWidget: Widget<GroupSM, typeof schema> = {
|
|
30
|
-
Meta,
|
|
31
|
-
Form,
|
|
32
|
-
FormFields,
|
|
33
|
-
schema,
|
|
34
|
-
create: (label: string) => ({
|
|
35
|
-
type: "Group",
|
|
36
|
-
config: {
|
|
37
|
-
label,
|
|
38
|
-
repeat: true,
|
|
39
|
-
fields: [],
|
|
40
|
-
},
|
|
41
|
-
}),
|
|
42
|
-
CustomListItem,
|
|
43
|
-
TYPE_NAME: "Group",
|
|
44
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as Widgets from "./withGroup";
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
Widgets.UID,
|
|
5
|
-
Widgets.Group,
|
|
6
|
-
Widgets.StructuredText,
|
|
7
|
-
Widgets.Image,
|
|
8
|
-
Widgets.Link,
|
|
9
|
-
Widgets.LinkToMedia,
|
|
10
|
-
Widgets.ContentRelationship,
|
|
11
|
-
Widgets.Select,
|
|
12
|
-
Widgets.Boolean,
|
|
13
|
-
Widgets.Date,
|
|
14
|
-
Widgets.Timestamp,
|
|
15
|
-
Widgets.Embed,
|
|
16
|
-
Widgets.Number,
|
|
17
|
-
Widgets.GeoPoint,
|
|
18
|
-
Widgets.Color,
|
|
19
|
-
Widgets.Text,
|
|
20
|
-
];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as Widgets from ".";
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
Widgets.StructuredText,
|
|
5
|
-
Widgets.Image,
|
|
6
|
-
Widgets.Link,
|
|
7
|
-
Widgets.LinkToMedia,
|
|
8
|
-
Widgets.ContentRelationship,
|
|
9
|
-
Widgets.Select,
|
|
10
|
-
Widgets.Boolean,
|
|
11
|
-
Widgets.Date,
|
|
12
|
-
Widgets.Timestamp,
|
|
13
|
-
Widgets.Embed,
|
|
14
|
-
Widgets.Number,
|
|
15
|
-
Widgets.GeoPoint,
|
|
16
|
-
Widgets.Color,
|
|
17
|
-
Widgets.Text,
|
|
18
|
-
];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as Widgets from "./withGroup";
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
Widgets.Group,
|
|
5
|
-
Widgets.StructuredText,
|
|
6
|
-
Widgets.Image,
|
|
7
|
-
Widgets.Link,
|
|
8
|
-
Widgets.LinkToMedia,
|
|
9
|
-
Widgets.ContentRelationship,
|
|
10
|
-
Widgets.Select,
|
|
11
|
-
Widgets.Boolean,
|
|
12
|
-
Widgets.Date,
|
|
13
|
-
Widgets.Timestamp,
|
|
14
|
-
Widgets.Embed,
|
|
15
|
-
Widgets.Number,
|
|
16
|
-
Widgets.GeoPoint,
|
|
17
|
-
Widgets.Color,
|
|
18
|
-
Widgets.Text,
|
|
19
|
-
];
|
|
File without changes
|