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.
Files changed (81) hide show
  1. package/next.config.mjs +11 -1
  2. package/out/404.html +1 -1
  3. package/out/_next/static/KD7BhDNRF_N5IlJuDq1eR/_buildManifest.js +1 -0
  4. package/out/_next/static/chunks/18539003-36b102fa41de015e.js +22 -0
  5. package/out/_next/static/chunks/{66-d37d30551288858b.js → 210-565d01ee9777d1a1.js} +2 -2
  6. package/out/_next/static/chunks/212-58a99ab312f8a03b.js +1 -0
  7. package/out/_next/static/chunks/448-7a6843206737d199.js +1 -0
  8. package/out/_next/static/chunks/465-695ac5fedef986eb.js +1 -0
  9. package/out/_next/static/chunks/574-dfeb0e6aa3079da1.js +1 -0
  10. package/out/_next/static/chunks/756-98ae0a6e755f46f2.js +10 -0
  11. package/out/_next/static/chunks/816-96fc9a79308019c7.js +1 -0
  12. package/out/_next/static/chunks/pages/_app-6c8c02648847371c.js +536 -0
  13. package/out/_next/static/chunks/pages/changelog-f0cd26a9ae095e9e.js +1 -0
  14. package/out/_next/static/chunks/pages/changes-1a57f90433a0b5e2.js +1 -0
  15. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-74be2c0ac9c854c7.js → [customTypeId]-a6ff1618238b3510.js} +1 -1
  16. package/out/_next/static/chunks/pages/index-a0530bd55c7e1872.js +1 -0
  17. package/out/_next/static/chunks/pages/labs-7b0abeef69494aec.js +1 -0
  18. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-d35c87b9aaec445a.js → [pageTypeId]-c300f963db847451.js} +1 -1
  19. package/out/_next/static/chunks/pages/settings-f82286dde10f624c.js +1 -0
  20. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-453f946e8879c829.js +1 -0
  21. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-b530a5e0ac9d0391.js +1 -0
  22. package/out/_next/static/chunks/pages/slices-7411822d74f1f6c1.js +1 -0
  23. package/out/_next/static/css/ee6cd1a80767d31e.css +1 -0
  24. package/out/changelog.html +1 -1
  25. package/out/changes.html +1 -1
  26. package/out/custom-types/[customTypeId].html +1 -1
  27. package/out/custom-types.html +1 -1
  28. package/out/index.html +1 -1
  29. package/out/labs.html +1 -1
  30. package/out/page-types/[pageTypeId].html +1 -1
  31. package/out/settings.html +1 -1
  32. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  33. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  34. package/out/slices.html +1 -1
  35. package/package.json +9 -9
  36. package/src/hooks/useNestedGroupExperiment.ts +8 -0
  37. package/src/legacy/components/ListItem/index.tsx +1 -1
  38. package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +21 -3
  39. package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +23 -6
  40. package/src/legacy/lib/builders/SliceBuilder/VariationsList/index.tsx +4 -2
  41. package/src/legacy/lib/builders/SliceBuilder/index.tsx +1 -1
  42. package/src/legacy/lib/builders/common/EditModal/index.jsx +1 -1
  43. package/src/legacy/lib/builders/common/Zone/Card/components/Hints/index.tsx +8 -1
  44. package/src/legacy/lib/builders/common/Zone/Card/components/NewField.tsx +1 -1
  45. package/src/legacy/lib/builders/common/Zone/Card/index.jsx +3 -1
  46. package/src/legacy/lib/builders/utils/index.ts +8 -0
  47. package/src/legacy/lib/models/common/Group.ts +51 -28
  48. package/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx +22 -8
  49. package/src/legacy/lib/models/common/widgets/Group/createGroupWidget.ts +83 -0
  50. package/src/legacy/lib/models/common/widgets/Group/index.tsx +72 -0
  51. package/src/legacy/lib/models/common/widgets/NestedGroup/index.tsx +40 -0
  52. package/src/legacy/lib/models/common/widgets/Widget.ts +10 -1
  53. package/src/legacy/lib/models/common/widgets/groupWidgets.ts +7 -0
  54. package/src/legacy/lib/models/common/widgets/index.ts +7 -31
  55. package/src/legacy/lib/models/common/widgets/nonGroupWidgets.ts +33 -0
  56. package/test/lib/builders/buildersUtils.test.ts +1 -1
  57. package/test/lib/models/common/widgets/index.test.ts +1 -1
  58. package/out/_next/static/JGphUg6eFq0-W11Pa7cMU/_buildManifest.js +0 -1
  59. package/out/_next/static/chunks/18539003-eda642ad962ef598.js +0 -22
  60. package/out/_next/static/chunks/212-cbaa35389c0aacf1.js +0 -1
  61. package/out/_next/static/chunks/264-4bb6f3fb14863ef3.js +0 -1
  62. package/out/_next/static/chunks/465-47a6d2a5f66f521e.js +0 -1
  63. package/out/_next/static/chunks/574-6039c48fbc93b4a8.js +0 -1
  64. package/out/_next/static/chunks/756-1e44fe84bedc262b.js +0 -10
  65. package/out/_next/static/chunks/816-68d4db26c0adab2e.js +0 -1
  66. package/out/_next/static/chunks/pages/_app-05ac13d573829b68.js +0 -532
  67. package/out/_next/static/chunks/pages/changelog-d309ea186a0e56bf.js +0 -1
  68. package/out/_next/static/chunks/pages/changes-1bb1a7b784a22151.js +0 -1
  69. package/out/_next/static/chunks/pages/index-785a0ab6e2a4fc27.js +0 -1
  70. package/out/_next/static/chunks/pages/labs-2e4f3a5f68e65b93.js +0 -1
  71. package/out/_next/static/chunks/pages/settings-25eb02893ed871b7.js +0 -1
  72. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-b47a72d5e94bd946.js +0 -1
  73. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-996e20b9b295a912.js +0 -1
  74. package/out/_next/static/chunks/pages/slices-cc44eeccd58d23a9.js +0 -1
  75. package/out/_next/static/css/b3bb731ce567d63f.css +0 -1
  76. package/src/legacy/lib/models/common/widgets/Group/index.ts +0 -44
  77. package/src/legacy/lib/models/common/widgets/ctBuilderArray.ts +0 -20
  78. package/src/legacy/lib/models/common/widgets/groupBuilderArray.ts +0 -18
  79. package/src/legacy/lib/models/common/widgets/sliceBuilderArray.ts +0 -19
  80. package/src/legacy/lib/models/common/widgets/withGroup.ts +0 -2
  81. /package/out/_next/static/{JGphUg6eFq0-W11Pa7cMU → KD7BhDNRF_N5IlJuDq1eR}/_ssgManifest.js +0 -0
@@ -1,33 +1,9 @@
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";
1
+ import { GroupWidget as Group } from "./Group";
2
+ import { NestedGroupWidget as NestedGroup } from "./NestedGroup";
3
+ import { NonGroupWidgets } from "./nonGroupWidgets";
16
4
 
17
- export {
18
- BooleanWidget as Boolean,
19
- ColorWidget as Color,
20
- ContentRelationshipWidget as ContentRelationship,
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 * as Widgets from "@/legacy/lib/models/common/widgets/withGroup";
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 * as Widgets from "@/legacy/lib/models/common/widgets";
10
+ import { NonGroupWidgets as Widgets } from "@/legacy/lib/models/common/widgets/nonGroupWidgets";
11
11
 
12
12
  const widgetEntries = Object.entries(Widgets);
13
13
 
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,d,b,u,f,h,l,k,j,p,g,o,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,j,p,"static/chunks/pages/index-785a0ab6e2a4fc27.js"],"/_error":["static/chunks/pages/_error-6aa4c7b8478d35e3.js"],"/changelog":[s,e,"static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-d309ea186a0e56bf.js"],"/changes":[s,t,"static/chunks/8eec4907-b712959d9f984b68.js",i,"static/chunks/918-09e9e4a012d48a3a.js",c,d,"static/css/6279e95f6aff22d5.css","static/chunks/pages/changes-1bb1a7b784a22151.js"],"/custom-types":[a,j,p,"static/chunks/pages/custom-types-bac97f007a5ca743.js"],"/custom-types/[customTypeId]":[s,b,u,f,h,e,n,i,l,g,c,a,k,o,r,"static/chunks/pages/custom-types/[customTypeId]-74be2c0ac9c854c7.js"],"/labs":["static/chunks/pages/labs-2e4f3a5f68e65b93.js"],"/page-types/[pageTypeId]":[s,b,u,f,h,e,n,i,l,g,c,a,k,o,r,"static/chunks/pages/page-types/[pageTypeId]-d35c87b9aaec445a.js"],"/settings":["static/css/ca32882a5d2d8d88.css","static/chunks/pages/settings-25eb02893ed871b7.js"],"/slices":[s,t,n,c,d,"static/css/f01f60095c76c7fb.css","static/chunks/pages/slices-cc44eeccd58d23a9.js"],"/slices/[lib]/[sliceName]/[variation]":[s,t,b,u,f,h,e,n,i,l,c,k,d,"static/css/8d1871dce67a3b49.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-996e20b9b295a912.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[t,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-eda642ad962ef598.js","static/chunks/756-1e44fe84bedc262b.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-b47a72d5e94bd946.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/settings","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/59b4e022-7a3b5554b806349f.js","static/chunks/816-68d4db26c0adab2e.js","static/chunks/212-cbaa35389c0aacf1.js","static/chunks/183-6ad1d7303abecd2b.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/543-f8766685f7f451e2.js","static/chunks/50-8d014b6d3cc35e30.js","static/chunks/152-c40fcb226b0df27f.js","static/chunks/f36c6662-03bb5e9d9aa0b0aa.js","static/chunks/4c744e84-e3161d754618373f.js","static/chunks/065a3ddb-9a38ca0d60f0bf2f.js","static/chunks/1cc2734a-2c5b6c0367fcde86.js","static/chunks/696-b992b9e1ce75777e.js","static/chunks/574-6039c48fbc93b4a8.js","static/chunks/465-47a6d2a5f66f521e.js","static/css/609c46c5c573c3ed.css","static/chunks/66-d37d30551288858b.js","static/chunks/264-4bb6f3fb14863ef3.js","static/css/d0dd8015d7f5ea89.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();