@slicemachine/adapter-nuxt 0.3.39-beta.25 → 0.3.39-beta.27
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/dist/AlternateGrid/javascript.vue +2 -2
- package/dist/AlternateGrid/typescript.vue +2 -2
- package/dist/CustomerLogos/javascript.vue +8 -5
- package/dist/CustomerLogos/typescript.vue +8 -5
- package/dist/sliceTemplates/AlternateGrid/index.cjs +190 -170
- package/dist/sliceTemplates/AlternateGrid/index.cjs.map +1 -1
- package/dist/sliceTemplates/AlternateGrid/index.js +190 -170
- package/dist/sliceTemplates/AlternateGrid/index.js.map +1 -1
- package/dist/sliceTemplates/CallToAction/index.cjs +1 -6
- package/dist/sliceTemplates/CallToAction/index.cjs.map +1 -1
- package/dist/sliceTemplates/CallToAction/index.js +1 -6
- package/dist/sliceTemplates/CallToAction/index.js.map +1 -1
- package/dist/sliceTemplates/CustomerLogos/index.cjs +230 -220
- package/dist/sliceTemplates/CustomerLogos/index.cjs.map +1 -1
- package/dist/sliceTemplates/CustomerLogos/index.js +230 -220
- package/dist/sliceTemplates/CustomerLogos/index.js.map +1 -1
- package/dist/sliceTemplates/Hero/index.cjs +1 -6
- package/dist/sliceTemplates/Hero/index.cjs.map +1 -1
- package/dist/sliceTemplates/Hero/index.js +1 -6
- package/dist/sliceTemplates/Hero/index.js.map +1 -1
- package/package.json +2 -2
- package/src/sliceTemplates/AlternateGrid/index.ts +187 -165
- package/src/sliceTemplates/CallToAction/index.ts +1 -6
- package/src/sliceTemplates/CustomerLogos/index.ts +229 -219
- package/src/sliceTemplates/Hero/index.ts +1 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/sliceTemplates/Hero/index.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\nimport { SharedSliceContent } from \"@prismicio/types-internal/lib/content\";\n\nexport const screenshotPaths = {\n\tdefault: \"Hero/screenshot-default.png\",\n\timageRight: \"Hero/screenshot-imageRight.png\",\n};\n\nexport const mocks: SharedSliceContent[] = [\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"default\",\n\t\tprimary: {\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading2\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Build a website that keeps getting better\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\teyebrowHeadline: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Hero\",\n\t\t\t},\n\t\t\tdescription: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\timage: {\n\t\t\t\turl: \"https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"h5yMpgOI5nI\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 3710,\n\t\t\t\t\theight: 3710,\n\t\t\t\t},\n\t\t\t\twidth: 3710,\n\t\t\t\theight: 3710,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Image Content\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\tcallToActionLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Call to Action\",\n\t\t\t},\n\t\t\tcallToActionLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://prismic.io\",\n\t\t\t\t\ttarget: \"\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\titems: [],\n\t},\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"imageRight\",\n\t\tprimary: {\n\t\t\teyebrowHeadline: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Image Right\",\n\t\t\t},\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading1\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Build a website\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tdescription: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases, including Image Right slice variations!\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"\\nBy the way: this RichText field supports multi-paragraph!\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\timage: {\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"euqiHwS38Rw\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 2500,\n\t\t\t\t\theight: 2500,\n\t\t\t\t},\n\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\twidth: 2500,\n\t\t\t\theight: 2500,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Image Content\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\tcallToActionLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Call to Action\",\n\t\t\t},\n\t\t\tcallToActionLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://prismic.io\",\n\t\t\t\t\ttarget: \"\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\titems: [\n\t\t\t{\n\t\t\t\t__TYPE__: \"GroupItemContent\",\n\t\t\t\tvalue: [],\n\t\t\t},\n\t\t],\n\t},\n];\n\nexport const model: SharedSlice = {\n\tid: \"hero\",\n\ttype: \"SharedSlice\",\n\tname: \"Hero\",\n\tdescription: \"Hero\",\n\tvariations: [\n\t\t{\n\t\t\tid: \"default\",\n\t\t\tname: \"Default\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\teyebrowHeadline: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"eyebrowHeadline\",\n\t\t\t\t\t\tplaceholder: \"Eyebrow\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"heading1,heading2,heading3,heading4,heading5,heading6,strong,em\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdescription: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"description\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tmulti:\n\t\t\t\t\t\t\t\"paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"image\",\n\t\t\t\t\t\tconstraint: {},\n\t\t\t\t\t\tthumbnails: [],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLabel\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLink\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t\t{\n\t\t\tid: \"imageRight\",\n\t\t\tname: \"Image Right\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\teyebrowHeadline: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"eyebrowHeadline\",\n\t\t\t\t\t\tplaceholder: \"Eyebrow\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"heading1,heading2,heading3,heading4,heading5,heading6,strong,em\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdescription: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"description\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tmulti:\n\t\t\t\t\t\t\t\"paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"image\",\n\t\t\t\t\t\tconstraint: {},\n\t\t\t\t\t\tthumbnails: [],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLabel\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLink\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t],\n};\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB;AAAA,EAC9B,SAAS;AAAA,EACT,YAAY;;AAGN,MAAM,QAA8B;AAAA,EAC1C;AAAA,IACC,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,MACR,OAAO;AAAA,QACN,UAAU;AAAA,QACV,OAAO;AAAA,UACN;AAAA,YACC,MAAM;AAAA,YACN,SAAS;AAAA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,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,YACb,kBAAkB;AAAA,YAClB,QACC;AAAA,UACD;AAAA,QACD;AAAA,QACD,aAAa;AAAA,UACZ,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,YACb,kBAAkB;AAAA,YAClB,OACC;AAAA,UACD;AAAA,QACD;AAAA,QACD,OAAO;AAAA,UACN,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,YAAY,CAAE;AAAA,YACd,YAAY,CAAE;AAAA,UACd;AAAA,QACD;AAAA,QACD,mBAAmB;AAAA,UAClB,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,UACb;AAAA,QACD;AAAA,QACD,kBAAkB;AAAA,UACjB,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,YACb,QAAQ;AAAA,UACR;AAAA,QACD;AAAA,MACD;AAAA,MACD,OAAO,CAAE;AAAA,IACT;AAAA,EACD;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/sliceTemplates/Hero/index.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\nimport { SharedSliceContent } from \"@prismicio/types-internal/lib/content\";\n\nexport const screenshotPaths = {\n\tdefault: \"Hero/screenshot-default.png\",\n\timageRight: \"Hero/screenshot-imageRight.png\",\n};\n\nexport const mocks: SharedSliceContent[] = [\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"default\",\n\t\tprimary: {\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading2\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Build a website that keeps getting better\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\teyebrowHeadline: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Hero\",\n\t\t\t},\n\t\t\tdescription: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\timage: {\n\t\t\t\turl: \"https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"h5yMpgOI5nI\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 3710,\n\t\t\t\t\theight: 3710,\n\t\t\t\t},\n\t\t\t\twidth: 3710,\n\t\t\t\theight: 3710,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Image Content\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\tcallToActionLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Call to Action\",\n\t\t\t},\n\t\t\tcallToActionLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://prismic.io\",\n\t\t\t\t\ttarget: \"\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\titems: [],\n\t},\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"imageRight\",\n\t\tprimary: {\n\t\t\teyebrowHeadline: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Image Right\",\n\t\t\t},\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading1\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Build a website\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tdescription: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases, including Image Right slice variations!\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"\\nBy the way: this RichText field supports multi-paragraph!\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\timage: {\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"euqiHwS38Rw\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 2500,\n\t\t\t\t\theight: 2500,\n\t\t\t\t},\n\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\twidth: 2500,\n\t\t\t\theight: 2500,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Image Content\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\tcallToActionLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Call to Action\",\n\t\t\t},\n\t\t\tcallToActionLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://prismic.io\",\n\t\t\t\t\ttarget: \"\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\titems: [],\n\t},\n];\n\nexport const model: SharedSlice = {\n\tid: \"hero\",\n\ttype: \"SharedSlice\",\n\tname: \"Hero\",\n\tdescription: \"Hero\",\n\tvariations: [\n\t\t{\n\t\t\tid: \"default\",\n\t\t\tname: \"Default\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\teyebrowHeadline: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"eyebrowHeadline\",\n\t\t\t\t\t\tplaceholder: \"Eyebrow\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"heading1,heading2,heading3,heading4,heading5,heading6,strong,em\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdescription: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"description\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tmulti:\n\t\t\t\t\t\t\t\"paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"image\",\n\t\t\t\t\t\tconstraint: {},\n\t\t\t\t\t\tthumbnails: [],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLabel\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLink\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t\t{\n\t\t\tid: \"imageRight\",\n\t\t\tname: \"Image Right\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\teyebrowHeadline: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"eyebrowHeadline\",\n\t\t\t\t\t\tplaceholder: \"Eyebrow\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"heading1,heading2,heading3,heading4,heading5,heading6,strong,em\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdescription: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"description\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tmulti:\n\t\t\t\t\t\t\t\"paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"image\",\n\t\t\t\t\t\tconstraint: {},\n\t\t\t\t\t\tthumbnails: [],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLabel\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcallToActionLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"callToActionLink\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t],\n};\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB;AAAA,EAC9B,SAAS;AAAA,EACT,YAAY;;AAGN,MAAM,QAA8B;AAAA,EAC1C;AAAA,IACC,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,MACR,OAAO;AAAA,QACN,UAAU;AAAA,QACV,OAAO;AAAA,UACN;AAAA,YACC,MAAM;AAAA,YACN,SAAS;AAAA,cACR,MAAM;AAAA,cACN,OAAO,CAAE;AAAA,YACT;AAAA,YACD,WAAW;AAAA,UACX;AAAA,QACD;AAAA,MACD;AAAA,MACD,iBAAiB;AAAA,QAChB,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OAAO;AAAA,MACP;AAAA,MACD,aAAa;AAAA,QACZ,UAAU;AAAA,QACV,OAAO;AAAA,UACN;AAAA,YACC,MAAM;AAAA,YACN,SAAS;AAAA,cACR,MAAM;AAAA,cACN,OAAO,CAAE;AAAA,YACT;AAAA,YACD,WAAW;AAAA,UACX;AAAA,QACD;AAAA,MACD;AAAA,MACD,OAAO;AAAA,QACN,KAAK;AAAA,QACL,QAAQ;AAAA,UACP,IAAI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kB;AAAA,UACjB,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,YACb,QAAQ;AAAA,UACR;AAAA,QACD;AAAA,MACD;AAAA,MACD,OAAO,CAAE;AAAA,IACT;AAAA,EACD;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slicemachine/adapter-nuxt",
|
|
3
|
-
"version": "0.3.39-beta.
|
|
3
|
+
"version": "0.3.39-beta.27",
|
|
4
4
|
"description": "Slice Machine adapter for Nuxt 3.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@prismicio/simulator": "^0.1.4",
|
|
63
63
|
"@prismicio/types-internal": "^2.4.0-alpha.7",
|
|
64
|
-
"@slicemachine/plugin-kit": "0.4.39-beta.
|
|
64
|
+
"@slicemachine/plugin-kit": "0.4.39-beta.27",
|
|
65
65
|
"common-tags": "^1.8.2",
|
|
66
66
|
"fp-ts": "^2.13.1",
|
|
67
67
|
"io-ts": "^2.2.20",
|
|
@@ -71,120 +71,124 @@ export const mocks: SharedSliceContent[] = [
|
|
|
71
71
|
__TYPE__: "ImageContent",
|
|
72
72
|
thumbnails: {},
|
|
73
73
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{
|
|
77
|
-
__TYPE__: "GroupItemContent",
|
|
74
|
+
items: {
|
|
75
|
+
__TYPE__: "GroupContentType",
|
|
78
76
|
value: [
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
{
|
|
78
|
+
__TYPE__: "GroupItemContent",
|
|
79
|
+
value: [
|
|
80
|
+
[
|
|
81
|
+
"title",
|
|
84
82
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
__TYPE__: "StructuredTextContent",
|
|
84
|
+
value: [
|
|
85
|
+
{
|
|
86
|
+
type: "heading3",
|
|
87
|
+
content: {
|
|
88
|
+
text: "Integrate with the SliceZone",
|
|
89
|
+
spans: [],
|
|
90
|
+
},
|
|
91
|
+
direction: "ltr",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
91
94
|
},
|
|
92
95
|
],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
[
|
|
96
|
-
"description",
|
|
97
|
-
{
|
|
98
|
-
__TYPE__: "StructuredTextContent",
|
|
99
|
-
value: [
|
|
96
|
+
[
|
|
97
|
+
"description",
|
|
100
98
|
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
__TYPE__: "StructuredTextContent",
|
|
100
|
+
value: [
|
|
101
|
+
{
|
|
102
|
+
type: "paragraph",
|
|
103
|
+
content: {
|
|
104
|
+
text: "This component has been matched by the SliceZone. Its model has been fetched from SliceMachine next-adapter!",
|
|
105
|
+
spans: [],
|
|
106
|
+
},
|
|
107
|
+
direction: "ltr",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
107
110
|
},
|
|
108
111
|
],
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
[
|
|
117
|
-
"title",
|
|
118
|
-
{
|
|
119
|
-
__TYPE__: "StructuredTextContent",
|
|
120
|
-
value: [
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
__TYPE__: "GroupItemContent",
|
|
116
|
+
value: [
|
|
117
|
+
[
|
|
118
|
+
"title",
|
|
121
119
|
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
__TYPE__: "StructuredTextContent",
|
|
121
|
+
value: [
|
|
122
|
+
{
|
|
123
|
+
type: "heading3",
|
|
124
|
+
content: {
|
|
125
|
+
text: "Create your own",
|
|
126
|
+
spans: [],
|
|
127
|
+
},
|
|
128
|
+
direction: "ltr",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
128
131
|
},
|
|
129
132
|
],
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
[
|
|
133
|
-
"description",
|
|
134
|
-
{
|
|
135
|
-
__TYPE__: "StructuredTextContent",
|
|
136
|
-
value: [
|
|
133
|
+
[
|
|
134
|
+
"description",
|
|
137
135
|
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
__TYPE__: "StructuredTextContent",
|
|
137
|
+
value: [
|
|
138
|
+
{
|
|
139
|
+
type: "paragraph",
|
|
140
|
+
content: {
|
|
141
|
+
text: "Feel free to use this component fully, or use it as an example! We're adding templates as often as we can.",
|
|
142
|
+
spans: [],
|
|
143
|
+
},
|
|
144
|
+
direction: "ltr",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
144
147
|
},
|
|
145
148
|
],
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
[
|
|
154
|
-
"title",
|
|
155
|
-
{
|
|
156
|
-
__TYPE__: "StructuredTextContent",
|
|
157
|
-
value: [
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
__TYPE__: "GroupItemContent",
|
|
153
|
+
value: [
|
|
154
|
+
[
|
|
155
|
+
"title",
|
|
158
156
|
{
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
157
|
+
__TYPE__: "StructuredTextContent",
|
|
158
|
+
value: [
|
|
159
|
+
{
|
|
160
|
+
type: "heading3",
|
|
161
|
+
content: {
|
|
162
|
+
text: "Add a variation",
|
|
163
|
+
spans: [],
|
|
164
|
+
},
|
|
165
|
+
direction: "ltr",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
165
168
|
},
|
|
166
169
|
],
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
[
|
|
170
|
-
"description",
|
|
171
|
-
{
|
|
172
|
-
__TYPE__: "StructuredTextContent",
|
|
173
|
-
value: [
|
|
170
|
+
[
|
|
171
|
+
"description",
|
|
174
172
|
{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
173
|
+
__TYPE__: "StructuredTextContent",
|
|
174
|
+
value: [
|
|
175
|
+
{
|
|
176
|
+
type: "paragraph",
|
|
177
|
+
content: {
|
|
178
|
+
text: 'This slice comes with a "Image Right" variation, which means editors can switch text/image direction!',
|
|
179
|
+
spans: [],
|
|
180
|
+
},
|
|
181
|
+
direction: "ltr",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
181
184
|
},
|
|
182
185
|
],
|
|
183
|
-
|
|
184
|
-
|
|
186
|
+
],
|
|
187
|
+
},
|
|
185
188
|
],
|
|
186
189
|
},
|
|
187
|
-
|
|
190
|
+
},
|
|
191
|
+
items: [],
|
|
188
192
|
},
|
|
189
193
|
{
|
|
190
194
|
__TYPE__: "SharedSliceContent",
|
|
@@ -250,52 +254,56 @@ export const mocks: SharedSliceContent[] = [
|
|
|
250
254
|
__TYPE__: "ImageContent",
|
|
251
255
|
thumbnails: {},
|
|
252
256
|
},
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
{
|
|
256
|
-
__TYPE__: "GroupItemContent",
|
|
257
|
+
items: {
|
|
258
|
+
__TYPE__: "GroupContentType",
|
|
257
259
|
value: [
|
|
258
|
-
|
|
259
|
-
"
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
{
|
|
261
|
+
__TYPE__: "GroupItemContent",
|
|
262
|
+
value: [
|
|
263
|
+
[
|
|
264
|
+
"title",
|
|
263
265
|
{
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
{
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
266
|
+
__TYPE__: "StructuredTextContent",
|
|
267
|
+
value: [
|
|
268
|
+
{
|
|
269
|
+
type: "heading3",
|
|
270
|
+
content: {
|
|
271
|
+
text: "Create a unique, high-performing site",
|
|
272
|
+
spans: [
|
|
273
|
+
{
|
|
274
|
+
type: "strong",
|
|
275
|
+
start: 9,
|
|
276
|
+
end: 15,
|
|
277
|
+
},
|
|
278
|
+
],
|
|
272
279
|
},
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
280
|
+
direction: "ltr",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
276
283
|
},
|
|
277
284
|
],
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
[
|
|
281
|
-
"description",
|
|
282
|
-
{
|
|
283
|
-
__TYPE__: "StructuredTextContent",
|
|
284
|
-
value: [
|
|
285
|
+
[
|
|
286
|
+
"description",
|
|
285
287
|
{
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
__TYPE__: "StructuredTextContent",
|
|
289
|
+
value: [
|
|
290
|
+
{
|
|
291
|
+
type: "paragraph",
|
|
292
|
+
content: {
|
|
293
|
+
text: "Prismic is the headless website builder designed to help developers and marketers create unique, high-performing websites that are easy to edit.",
|
|
294
|
+
spans: [],
|
|
295
|
+
},
|
|
296
|
+
direction: "ltr",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
292
299
|
},
|
|
293
300
|
],
|
|
294
|
-
|
|
295
|
-
|
|
301
|
+
],
|
|
302
|
+
},
|
|
296
303
|
],
|
|
297
304
|
},
|
|
298
|
-
|
|
305
|
+
},
|
|
306
|
+
items: [],
|
|
299
307
|
},
|
|
300
308
|
];
|
|
301
309
|
|
|
@@ -348,25 +356,32 @@ export const model: SharedSlice = {
|
|
|
348
356
|
thumbnails: [],
|
|
349
357
|
},
|
|
350
358
|
},
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
title: {
|
|
354
|
-
type: "StructuredText",
|
|
355
|
-
config: {
|
|
356
|
-
label: "title",
|
|
357
|
-
placeholder: "",
|
|
358
|
-
allowTargetBlank: true,
|
|
359
|
-
single: "heading2,heading3,heading4,heading5,heading6,strong,em",
|
|
360
|
-
},
|
|
361
|
-
},
|
|
362
|
-
description: {
|
|
363
|
-
type: "StructuredText",
|
|
359
|
+
items: {
|
|
360
|
+
type: "Group",
|
|
364
361
|
config: {
|
|
365
|
-
label: "
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
362
|
+
label: "items",
|
|
363
|
+
fields: {
|
|
364
|
+
title: {
|
|
365
|
+
type: "StructuredText",
|
|
366
|
+
config: {
|
|
367
|
+
label: "title",
|
|
368
|
+
placeholder: "",
|
|
369
|
+
allowTargetBlank: true,
|
|
370
|
+
single:
|
|
371
|
+
"heading2,heading3,heading4,heading5,heading6,strong,em",
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
description: {
|
|
375
|
+
type: "StructuredText",
|
|
376
|
+
config: {
|
|
377
|
+
label: "description",
|
|
378
|
+
placeholder: "",
|
|
379
|
+
allowTargetBlank: true,
|
|
380
|
+
multi:
|
|
381
|
+
"paragraph,preformatted,hyperlink,strong,em,list-item,o-list-item,rtl",
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
},
|
|
370
385
|
},
|
|
371
386
|
},
|
|
372
387
|
},
|
|
@@ -414,25 +429,32 @@ export const model: SharedSlice = {
|
|
|
414
429
|
thumbnails: [],
|
|
415
430
|
},
|
|
416
431
|
},
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
title: {
|
|
420
|
-
type: "StructuredText",
|
|
421
|
-
config: {
|
|
422
|
-
label: "title",
|
|
423
|
-
placeholder: "",
|
|
424
|
-
allowTargetBlank: true,
|
|
425
|
-
single: "heading2,heading3,heading4,heading5,heading6,strong,em",
|
|
426
|
-
},
|
|
427
|
-
},
|
|
428
|
-
description: {
|
|
429
|
-
type: "StructuredText",
|
|
432
|
+
items: {
|
|
433
|
+
type: "Group",
|
|
430
434
|
config: {
|
|
431
|
-
label: "
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
435
|
+
label: "items",
|
|
436
|
+
fields: {
|
|
437
|
+
title: {
|
|
438
|
+
type: "StructuredText",
|
|
439
|
+
config: {
|
|
440
|
+
label: "title",
|
|
441
|
+
placeholder: "",
|
|
442
|
+
allowTargetBlank: true,
|
|
443
|
+
single:
|
|
444
|
+
"heading2,heading3,heading4,heading5,heading6,strong,em",
|
|
445
|
+
},
|
|
446
|
+
},
|
|
447
|
+
description: {
|
|
448
|
+
type: "StructuredText",
|
|
449
|
+
config: {
|
|
450
|
+
label: "description",
|
|
451
|
+
placeholder: "",
|
|
452
|
+
allowTargetBlank: true,
|
|
453
|
+
multi:
|
|
454
|
+
"paragraph,preformatted,hyperlink,strong,em,list-item,o-list-item,rtl",
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
},
|
|
436
458
|
},
|
|
437
459
|
},
|
|
438
460
|
},
|