slice-machine-ui 1.26.1-beta.12 → 1.26.1-beta.14
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/chunks/127-ebfffb85bdb0bf53.js +1 -0
- package/out/_next/static/chunks/453-4e2d00a3515202f4.js +1 -0
- package/out/_next/static/chunks/46-bd45510ac2a839b5.js +10 -0
- package/out/_next/static/chunks/{91-1c3665ce38e58792.js → 91-e96855cdfbfbbade.js} +1 -1
- package/out/_next/static/chunks/96-24fed6adc069e313.js +1 -0
- package/out/_next/static/chunks/pages/{_app-01bcd29a595cec3a.js → _app-451e6ea8230ca7e5.js} +3 -3
- package/out/_next/static/chunks/pages/{changelog-ac1004bdd31d17f8.js → changelog-db23fdc674e68e53.js} +1 -1
- package/out/_next/static/chunks/pages/{changes-5c4bd80747884a8c.js → changes-92929e59b38adef8.js} +1 -1
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-8bcc4d88f470d3f7.js → [customTypeId]-5b08515fec5e6668.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-d6f2feb6720ee64c.js → labs-f9e359543631af2a.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-8461ab4fcfaf0755.js → [pageTypeId]-41fc6d4f726fdfb9.js} +1 -1
- package/out/_next/static/chunks/pages/{settings-7ad1540dc0af794d.js → settings-a61e874536e40574.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a822e349e3e0b18f.js +1 -0
- package/out/_next/static/chunks/pages/{slices-801310de228fd05e.js → slices-98f88ac46b6ad58b.js} +1 -1
- package/out/_next/static/css/{df904982b9637c1a.css → 09a4e5669351d4e2.css} +1 -1
- package/out/_next/static/{svF8JPCb25QlsmymuzIiN → meJPGne56O3xxrr3mYozg}/_buildManifest.js +1 -1
- 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 +6 -6
- package/src/components/Divider/Divider.module.css +23 -0
- package/src/components/Divider/Divider.module.css.d.ts +7 -0
- package/src/components/Divider/Divider.stories.tsx +3 -4
- package/src/components/Divider/Divider.tsx +5 -8
- package/src/domain/__tests__/customType.test.ts +0 -184
- package/src/domain/__tests__/group.test.ts +161 -0
- package/src/domain/customType.ts +0 -191
- package/src/domain/group.ts +89 -0
- package/src/domain/slice.ts +24 -11
- package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +4 -7
- package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +27 -35
- package/src/legacy/lib/builders/common/Zone/Card/index.jsx +3 -0
- package/src/legacy/lib/builders/common/Zone/index.jsx +4 -7
- package/src/legacy/lib/models/common/Slice.ts +17 -3
- package/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx +51 -60
- package/src/legacy/lib/models/common/widgets/groupBuilderArray.ts +18 -0
- package/src/legacy/lib/models/common/widgets/sliceBuilderArray.ts +16 -28
- package/src/legacy/lib/models/common/widgets/withGroup.ts +1 -18
- package/src/utils/getContentTypeForTracking.ts +21 -0
- package/out/_next/static/chunks/207-f71df53ed0b0ac4d.js +0 -1
- package/out/_next/static/chunks/453-1a14e86de385fe7c.js +0 -1
- package/out/_next/static/chunks/46-d22d7a121254e31d.js +0 -8
- package/out/_next/static/chunks/96-33e38032f1e55366.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-217d0b0469d4320e.js +0 -1
- package/src/components/Divider/Divider.css.ts +0 -31
- /package/out/_next/static/{svF8JPCb25QlsmymuzIiN → meJPGne56O3xxrr3mYozg}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,d,n,b,u,
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,d,n,b,f,u,h,l,k,j,p,g,o,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,j,p,"static/chunks/pages/index-16754a04037cf9c1.js"],"/_error":["static/chunks/pages/_error-69b4f498bafdd188.js"],"/changelog":[s,e,"static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-db23fdc674e68e53.js"],"/changes":[s,t,"static/chunks/8eec4907-b712959d9f984b68.js",i,"static/chunks/918-5bb55fb464e34768.js",c,n,"static/css/c36992b18975f9b9.css","static/chunks/pages/changes-92929e59b38adef8.js"],"/custom-types":[a,j,p,"static/chunks/pages/custom-types-75e8eddec659f440.js"],"/custom-types/[customTypeId]":[s,b,f,u,h,e,d,i,l,g,c,a,k,o,r,"static/chunks/pages/custom-types/[customTypeId]-5b08515fec5e6668.js"],"/labs":["static/chunks/pages/labs-f9e359543631af2a.js"],"/page-types/[pageTypeId]":[s,b,f,u,h,e,d,i,l,g,c,a,k,o,r,"static/chunks/pages/page-types/[pageTypeId]-41fc6d4f726fdfb9.js"],"/settings":["static/css/ca32882a5d2d8d88.css","static/chunks/pages/settings-a61e874536e40574.js"],"/slices":[s,t,d,c,n,"static/css/17da9daaa8986410.css","static/chunks/pages/slices-98f88ac46b6ad58b.js"],"/slices/[lib]/[sliceName]/[variation]":[s,t,b,f,u,h,e,d,i,l,c,k,n,"static/css/663a1bac4ce890da.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a822e349e3e0b18f.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[t,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-a5a5d48f20a7b261.js","static/chunks/46-bd45510ac2a839b5.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9941e7eeb9d4d084.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/614-af117b661cd3429a.js","static/chunks/453-4e2d00a3515202f4.js","static/chunks/183-6ad5c4eb28d4b155.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/543-f8766685f7f451e2.js","static/chunks/50-cfc2514205b86001.js","static/chunks/90-2d4bdae13d031364.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/96-24fed6adc069e313.js","static/chunks/91-e96855cdfbfbbade.js","static/css/70e3649c6ba13fdc.css","static/chunks/210-aee6116139329803.js","static/chunks/127-ebfffb85bdb0bf53.js","static/css/6e65ff596e3b465e.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
package/out/changelog.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/183-6ad5c4eb28d4b155.js" defer=""></script><script src="/_next/static/chunks/870-0c7a8a9622de78b7.js" defer=""></script><script src="/_next/static/chunks/pages/changelog-db23fdc674e68e53.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/changes.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/c36992b18975f9b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/c36992b18975f9b9.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/8eec4907-b712959d9f984b68.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/918-5bb55fb464e34768.js" defer=""></script><script src="/_next/static/chunks/614-af117b661cd3429a.js" defer=""></script><script src="/_next/static/chunks/90-2d4bdae13d031364.js" defer=""></script><script src="/_next/static/chunks/pages/changes-92929e59b38adef8.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/6e65ff596e3b465e.css" as="style"/><link rel="stylesheet" href="/_next/static/css/6e65ff596e3b465e.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-6ad5c4eb28d4b155.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b992b9e1ce75777e.js" defer=""></script><script src="/_next/static/chunks/210-aee6116139329803.js" defer=""></script><script src="/_next/static/chunks/614-af117b661cd3429a.js" defer=""></script><script src="/_next/static/chunks/453-4e2d00a3515202f4.js" defer=""></script><script src="/_next/static/chunks/96-24fed6adc069e313.js" defer=""></script><script src="/_next/static/chunks/127-ebfffb85bdb0bf53.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-5b08515fec5e6668.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types/[customTypeId]","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/custom-types.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/70e3649c6ba13fdc.css" as="style"/><link rel="stylesheet" href="/_next/static/css/70e3649c6ba13fdc.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/453-4e2d00a3515202f4.js" defer=""></script><script src="/_next/static/chunks/91-e96855cdfbfbbade.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-75e8eddec659f440.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/70e3649c6ba13fdc.css" as="style"/><link rel="stylesheet" href="/_next/static/css/70e3649c6ba13fdc.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/453-4e2d00a3515202f4.js" defer=""></script><script src="/_next/static/chunks/91-e96855cdfbfbbade.js" defer=""></script><script src="/_next/static/chunks/pages/index-16754a04037cf9c1.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/labs.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/pages/labs-f9e359543631af2a.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/6e65ff596e3b465e.css" as="style"/><link rel="stylesheet" href="/_next/static/css/6e65ff596e3b465e.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-6ad5c4eb28d4b155.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b992b9e1ce75777e.js" defer=""></script><script src="/_next/static/chunks/210-aee6116139329803.js" defer=""></script><script src="/_next/static/chunks/614-af117b661cd3429a.js" defer=""></script><script src="/_next/static/chunks/453-4e2d00a3515202f4.js" defer=""></script><script src="/_next/static/chunks/96-24fed6adc069e313.js" defer=""></script><script src="/_next/static/chunks/127-ebfffb85bdb0bf53.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-41fc6d4f726fdfb9.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/page-types/[pageTypeId]","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/settings.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/ca32882a5d2d8d88.css" as="style"/><link rel="stylesheet" href="/_next/static/css/ca32882a5d2d8d88.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/pages/settings-a61e874536e40574.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/settings","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/72585f70-28b4d7d5384b3703.js" defer=""></script><script src="/_next/static/chunks/18539003-a5a5d48f20a7b261.js" defer=""></script><script src="/_next/static/chunks/46-bd45510ac2a839b5.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D/simulator-9941e7eeb9d4d084.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]/simulator","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/663a1bac4ce890da.css" as="style"/><link rel="stylesheet" href="/_next/static/css/663a1bac4ce890da.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-6ad5c4eb28d4b155.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b992b9e1ce75777e.js" defer=""></script><script src="/_next/static/chunks/614-af117b661cd3429a.js" defer=""></script><script src="/_next/static/chunks/96-24fed6adc069e313.js" defer=""></script><script src="/_next/static/chunks/90-2d4bdae13d031364.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D-a822e349e3e0b18f.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/slices.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/09a4e5669351d4e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/09a4e5669351d4e2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/17da9daaa8986410.css" as="style"/><link rel="stylesheet" href="/_next/static/css/17da9daaa8986410.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-451e6ea8230ca7e5.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/614-af117b661cd3429a.js" defer=""></script><script src="/_next/static/chunks/90-2d4bdae13d031364.js" defer=""></script><script src="/_next/static/chunks/pages/slices-98f88ac46b6ad58b.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_buildManifest.js" defer=""></script><script src="/_next/static/meJPGne56O3xxrr3mYozg/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"meJPGne56O3xxrr3mYozg","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slice-machine-ui",
|
|
3
|
-
"version": "1.26.1-beta.
|
|
3
|
+
"version": "1.26.1-beta.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A visual builder for your Slice Models with all the tools you need to generate data models and mock CMS content locally.",
|
|
6
6
|
"repository": {
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@radix-ui/react-visually-hidden": "1.0.3",
|
|
38
|
-
"@slicemachine/manager": "0.18.4-beta.
|
|
39
|
-
"start-slicemachine": "0.12.19-beta.
|
|
38
|
+
"@slicemachine/manager": "0.18.4-beta.14",
|
|
39
|
+
"start-slicemachine": "0.12.19-beta.14"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
|
43
43
|
"@extractus/oembed-extractor": "3.1.8",
|
|
44
|
-
"@prismicio/client": "7.
|
|
44
|
+
"@prismicio/client": "7.5.0-alpha.0",
|
|
45
45
|
"@prismicio/editor-fields": "0.4.25",
|
|
46
46
|
"@prismicio/editor-support": "0.4.25",
|
|
47
47
|
"@prismicio/editor-ui": "0.4.25",
|
|
48
48
|
"@prismicio/mock": "0.3.3",
|
|
49
|
-
"@prismicio/mocks": "2.
|
|
49
|
+
"@prismicio/mocks": "2.2.0-alpha.0",
|
|
50
50
|
"@prismicio/simulator": "0.1.4",
|
|
51
|
-
"@prismicio/types-internal": "2.
|
|
51
|
+
"@prismicio/types-internal": "2.4.0-alpha.4",
|
|
52
52
|
"@radix-ui/react-hover-card": "1.0.6",
|
|
53
53
|
"@radix-ui/react-tabs": "1.0.4",
|
|
54
54
|
"@reach/menu-button": "0.18.0",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.base {
|
|
2
|
+
width: 100%;
|
|
3
|
+
border-style: none;
|
|
4
|
+
margin: 0px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.variant-dashed {
|
|
8
|
+
composes: base;
|
|
9
|
+
border-color: currentColor;
|
|
10
|
+
border-top-style: dashed;
|
|
11
|
+
border-width: 1px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.variant-edgeFaded {
|
|
15
|
+
composes: base;
|
|
16
|
+
height: 1px;
|
|
17
|
+
background-image: linear-gradient(
|
|
18
|
+
to right,
|
|
19
|
+
color-mix(in srgb, currentColor, transparent 100%),
|
|
20
|
+
currentColor,
|
|
21
|
+
color-mix(in srgb, currentColor, transparent 100%)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { theme } from "@prismicio/editor-ui";
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
3
|
|
|
4
4
|
import { Divider } from "./Divider";
|
|
5
|
-
import { variants } from "./Divider.css";
|
|
6
5
|
|
|
7
6
|
type Story = StoryObj<typeof meta>;
|
|
8
7
|
|
|
@@ -11,11 +10,11 @@ const meta = {
|
|
|
11
10
|
argTypes: {
|
|
12
11
|
variant: {
|
|
13
12
|
control: { type: "select" },
|
|
14
|
-
options:
|
|
13
|
+
options: ["dashed", "edgeFaded"],
|
|
15
14
|
},
|
|
16
15
|
color: {
|
|
17
16
|
control: { type: "select" },
|
|
18
|
-
options: Object.keys(
|
|
17
|
+
options: Object.keys(theme.color),
|
|
19
18
|
},
|
|
20
19
|
},
|
|
21
20
|
} satisfies Meta<typeof Divider>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { theme } from "@prismicio/editor-ui";
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
import type { FC } from "react";
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import styles from "./Divider.module.css";
|
|
6
6
|
|
|
7
7
|
type DividerProps = {
|
|
8
|
-
color?: keyof typeof
|
|
8
|
+
color?: keyof typeof theme.color;
|
|
9
9
|
variant?: "dashed" | "edgeFaded";
|
|
10
10
|
className?: string;
|
|
11
11
|
};
|
|
@@ -15,11 +15,8 @@ export const Divider: FC<DividerProps> = (props) => {
|
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<hr
|
|
18
|
-
className={clsx(
|
|
19
|
-
|
|
20
|
-
sprinkles({ color: colors[color] }),
|
|
21
|
-
className,
|
|
22
|
-
)}
|
|
18
|
+
className={clsx(styles[`variant-${variant}`], className)}
|
|
19
|
+
style={{ color: theme.color[color] }}
|
|
23
20
|
/>
|
|
24
21
|
);
|
|
25
22
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CustomType,
|
|
3
3
|
DynamicSection,
|
|
4
|
-
Group,
|
|
5
4
|
} from "@prismicio/types-internal/lib/customtypes";
|
|
6
5
|
import { describe, expect } from "vitest";
|
|
7
6
|
|
|
@@ -506,153 +505,6 @@ describe("CustomTypeModel test suite", () => {
|
|
|
506
505
|
);
|
|
507
506
|
});
|
|
508
507
|
|
|
509
|
-
it("addGroupField should return the given custom type with the group field added", () => {
|
|
510
|
-
expect(
|
|
511
|
-
CustomTypeModel.addGroupField({
|
|
512
|
-
customType: mockCustomType,
|
|
513
|
-
sectionId: "mainSection",
|
|
514
|
-
groupFieldId: "groupField",
|
|
515
|
-
newFieldId: "newFieldId",
|
|
516
|
-
newField: {
|
|
517
|
-
config: {
|
|
518
|
-
label: "NewField",
|
|
519
|
-
},
|
|
520
|
-
type: "Boolean",
|
|
521
|
-
},
|
|
522
|
-
}),
|
|
523
|
-
).toEqual({
|
|
524
|
-
...mockCustomType,
|
|
525
|
-
json: {
|
|
526
|
-
...mockCustomType.json,
|
|
527
|
-
mainSection: {
|
|
528
|
-
...mainSection,
|
|
529
|
-
groupField: {
|
|
530
|
-
...mainSection.groupField,
|
|
531
|
-
config: {
|
|
532
|
-
...mainSection.groupField.config,
|
|
533
|
-
fields: {
|
|
534
|
-
...(mainSection.groupField as Group).config?.fields,
|
|
535
|
-
newFieldId: {
|
|
536
|
-
config: {
|
|
537
|
-
label: "NewField",
|
|
538
|
-
},
|
|
539
|
-
type: "Boolean",
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
},
|
|
543
|
-
},
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
});
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
it("deleteGroupField should return the given custom type without the group field", () => {
|
|
550
|
-
expect(
|
|
551
|
-
CustomTypeModel.deleteGroupField({
|
|
552
|
-
customType: mockCustomType,
|
|
553
|
-
sectionId: "mainSection",
|
|
554
|
-
groupFieldId: "groupField",
|
|
555
|
-
fieldId: "groupFieldBooleanField",
|
|
556
|
-
}),
|
|
557
|
-
).toEqual({
|
|
558
|
-
...mockCustomType,
|
|
559
|
-
json: {
|
|
560
|
-
...mockCustomType.json,
|
|
561
|
-
mainSection: {
|
|
562
|
-
...mainSection,
|
|
563
|
-
groupField: {
|
|
564
|
-
...mainSection.groupField,
|
|
565
|
-
config: {
|
|
566
|
-
...mainSection.groupField.config,
|
|
567
|
-
fields: {
|
|
568
|
-
groupFieldTextField: (mainSection.groupField as Group).config
|
|
569
|
-
?.fields?.groupFieldTextField,
|
|
570
|
-
},
|
|
571
|
-
},
|
|
572
|
-
},
|
|
573
|
-
},
|
|
574
|
-
},
|
|
575
|
-
});
|
|
576
|
-
});
|
|
577
|
-
|
|
578
|
-
it("updateGroupField should return the given custom type with the group field updated", () => {
|
|
579
|
-
expect(
|
|
580
|
-
CustomTypeModel.updateGroupField({
|
|
581
|
-
customType: mockCustomType,
|
|
582
|
-
sectionId: "mainSection",
|
|
583
|
-
groupFieldId: "groupField",
|
|
584
|
-
previousFieldId: "groupFieldBooleanField",
|
|
585
|
-
newFieldId: "newId",
|
|
586
|
-
newField: {
|
|
587
|
-
config: {
|
|
588
|
-
label: "newLabel",
|
|
589
|
-
},
|
|
590
|
-
type: "Boolean",
|
|
591
|
-
},
|
|
592
|
-
}),
|
|
593
|
-
).toEqual({
|
|
594
|
-
...mockCustomType,
|
|
595
|
-
json: {
|
|
596
|
-
...mockCustomType.json,
|
|
597
|
-
mainSection: {
|
|
598
|
-
...mainSection,
|
|
599
|
-
groupField: {
|
|
600
|
-
...mainSection.groupField,
|
|
601
|
-
config: {
|
|
602
|
-
...mainSection.groupField.config,
|
|
603
|
-
fields: {
|
|
604
|
-
newId: {
|
|
605
|
-
config: {
|
|
606
|
-
label: "newLabel",
|
|
607
|
-
},
|
|
608
|
-
type: "Boolean",
|
|
609
|
-
},
|
|
610
|
-
groupFieldTextField: (mainSection.groupField as Group).config
|
|
611
|
-
?.fields?.groupFieldTextField,
|
|
612
|
-
},
|
|
613
|
-
},
|
|
614
|
-
},
|
|
615
|
-
},
|
|
616
|
-
},
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
|
|
620
|
-
it("reorderGroupField should return the given custom type with the group field reordered", () => {
|
|
621
|
-
expect(
|
|
622
|
-
JSON.stringify(
|
|
623
|
-
CustomTypeModel.reorderGroupField({
|
|
624
|
-
customType: mockCustomType,
|
|
625
|
-
sectionId: "mainSection",
|
|
626
|
-
groupFieldId: "groupField",
|
|
627
|
-
sourceIndex: 0,
|
|
628
|
-
destinationIndex: 1,
|
|
629
|
-
}),
|
|
630
|
-
),
|
|
631
|
-
).toEqual(
|
|
632
|
-
JSON.stringify({
|
|
633
|
-
...mockCustomType,
|
|
634
|
-
json: {
|
|
635
|
-
...mockCustomType.json,
|
|
636
|
-
mainSection: {
|
|
637
|
-
...mainSection,
|
|
638
|
-
groupField: {
|
|
639
|
-
...mainSection.groupField,
|
|
640
|
-
config: {
|
|
641
|
-
...mainSection.groupField.config,
|
|
642
|
-
fields: {
|
|
643
|
-
groupFieldTextField: (mainSection.groupField as Group).config
|
|
644
|
-
?.fields?.groupFieldTextField,
|
|
645
|
-
groupFieldBooleanField: (mainSection.groupField as Group)
|
|
646
|
-
.config?.fields?.groupFieldBooleanField,
|
|
647
|
-
},
|
|
648
|
-
},
|
|
649
|
-
},
|
|
650
|
-
},
|
|
651
|
-
},
|
|
652
|
-
}),
|
|
653
|
-
);
|
|
654
|
-
});
|
|
655
|
-
|
|
656
508
|
it("updateSection should return the given custom type with the section updated", () => {
|
|
657
509
|
expect(
|
|
658
510
|
CustomTypeModel.updateSection({
|
|
@@ -753,42 +605,6 @@ describe("CustomTypeModel test suite", () => {
|
|
|
753
605
|
);
|
|
754
606
|
});
|
|
755
607
|
|
|
756
|
-
it("getGroupField should return the group field matching the key", () => {
|
|
757
|
-
expect(
|
|
758
|
-
CustomTypeModel.getGroupField({
|
|
759
|
-
customType: mockCustomType,
|
|
760
|
-
sectionId: "mainSection",
|
|
761
|
-
groupFieldId: "groupField",
|
|
762
|
-
}),
|
|
763
|
-
).toEqual(mainSection.groupField);
|
|
764
|
-
});
|
|
765
|
-
|
|
766
|
-
it("updateGroupFields should return the updated group fields", () => {
|
|
767
|
-
expect(
|
|
768
|
-
CustomTypeModel.updateGroupFields(mainSection.groupField as Group, {
|
|
769
|
-
groupFieldBooleanField: {
|
|
770
|
-
config: {
|
|
771
|
-
label: "GroupFieldBooleanField",
|
|
772
|
-
},
|
|
773
|
-
type: "Boolean",
|
|
774
|
-
},
|
|
775
|
-
}),
|
|
776
|
-
).toEqual({
|
|
777
|
-
...mainSection.groupField,
|
|
778
|
-
config: {
|
|
779
|
-
...mainSection.groupField.config,
|
|
780
|
-
fields: {
|
|
781
|
-
groupFieldBooleanField: {
|
|
782
|
-
config: {
|
|
783
|
-
label: "GroupFieldBooleanField",
|
|
784
|
-
},
|
|
785
|
-
type: "Boolean",
|
|
786
|
-
},
|
|
787
|
-
},
|
|
788
|
-
},
|
|
789
|
-
});
|
|
790
|
-
});
|
|
791
|
-
|
|
792
608
|
it("should create a custom type with repeatable true", () => {
|
|
793
609
|
expect(
|
|
794
610
|
CustomTypeModel.create({
|