@gravity-ui/page-constructor 8.18.0 → 8.20.0
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/build/cjs/blocks/Banner/schema.d.ts +3 -0
- package/build/cjs/blocks/CardLayout/schema.d.ts +529 -195
- package/build/cjs/blocks/CardLayout/schema.js +12 -13
- package/build/cjs/blocks/CardLayout/schema.js.map +1 -1
- package/build/cjs/blocks/Companies/schema.d.ts +88 -3
- package/build/cjs/blocks/Companies/schema.js +5 -20
- package/build/cjs/blocks/Companies/schema.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/schema.d.ts +258 -194
- package/build/cjs/blocks/ContentLayout/schema.js +1 -1
- package/build/cjs/blocks/ContentLayout/schema.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +311 -39
- package/build/cjs/blocks/ExtendedFeatures/schema.js +18 -19
- package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/cjs/blocks/Footer/schema.d.ts +3 -6
- package/build/cjs/blocks/Form/schema.d.ts +197 -15
- package/build/cjs/blocks/Form/schema.js +15 -3
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +461 -206
- package/build/cjs/blocks/Header/schema.js +18 -2
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +150 -71
- package/build/cjs/blocks/Hero/schema.d.ts +19 -437
- package/build/cjs/blocks/Hero/schema.js +12 -3
- package/build/cjs/blocks/Hero/schema.js.map +1 -1
- package/build/cjs/blocks/Icons/Icons.js.map +1 -1
- package/build/cjs/blocks/Icons/schema.js +1 -1
- package/build/cjs/blocks/Icons/schema.js.map +1 -1
- package/build/cjs/blocks/Info/schema.d.ts +49 -1
- package/build/cjs/blocks/Info/schema.js +2 -2
- package/build/cjs/blocks/Info/schema.js.map +1 -1
- package/build/cjs/blocks/Map/schema.d.ts +7 -2
- package/build/cjs/blocks/Map/schema.js +1 -1
- package/build/cjs/blocks/Map/schema.js.map +1 -1
- package/build/cjs/blocks/Media/schema.d.ts +20 -9
- package/build/cjs/blocks/Media/schema.js +15 -2
- package/build/cjs/blocks/Media/schema.js.map +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
- package/build/cjs/blocks/Table/schema.d.ts +1 -0
- package/build/cjs/blocks/Table/schema.js +1 -0
- package/build/cjs/blocks/Table/schema.js.map +1 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +7 -6
- package/build/cjs/blocks/Tabs/schema.js +1 -1
- package/build/cjs/blocks/Tabs/schema.js.map +1 -1
- package/build/cjs/components/Author/schema.d.ts +1 -2
- package/build/cjs/components/Image/schema.d.ts +33 -8
- package/build/cjs/components/Image/schema.js +22 -22
- package/build/cjs/components/Image/schema.js.map +1 -1
- package/build/cjs/components/index.d.ts +1 -0
- package/build/cjs/components/index.js +3 -1
- package/build/cjs/components/index.js.map +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +1 -1
- package/build/cjs/models/constructor-items/common.js.map +1 -1
- package/build/cjs/navigation/schema.d.ts +1 -2
- package/build/cjs/navigation/schema.js +1 -0
- package/build/cjs/navigation/schema.js.map +1 -1
- package/build/cjs/schema/constants.d.ts +940 -29
- package/build/cjs/schema/constants.js +36 -40
- package/build/cjs/schema/constants.js.map +1 -1
- package/build/cjs/schema/validators/common.d.ts +11 -8
- package/build/cjs/schema/validators/common.js +10 -6
- package/build/cjs/schema/validators/common.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +82 -2
- package/build/cjs/sub-blocks/BasicCard/schema.js +15 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Content/schema.d.ts +2 -5
- package/build/cjs/sub-blocks/Content/schema.js +1 -8
- package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +33 -17
- package/build/cjs/sub-blocks/ImageCard/schema.js +8 -1
- package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1023 -312
- package/build/cjs/sub-blocks/LayoutItem/schema.js +40 -9
- package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +2 -4
- package/build/cjs/sub-blocks/PriceCard/schema.d.ts +5 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Quote/schema.d.ts +164 -6
- package/build/cjs/sub-blocks/Quote/schema.js +2 -0
- package/build/cjs/sub-blocks/Quote/schema.js.map +1 -1
- package/build/docs/blocks/Hero.md +15 -15
- package/build/docs/blocks/Icons.md +2 -2
- package/build/docs/blocks/Media.md +1 -1
- package/build/esm/blocks/Banner/schema.d.ts +3 -0
- package/build/esm/blocks/CardLayout/schema.d.ts +529 -195
- package/build/esm/blocks/CardLayout/schema.js +14 -15
- package/build/esm/blocks/CardLayout/schema.js.map +1 -1
- package/build/esm/blocks/Companies/schema.d.ts +88 -3
- package/build/esm/blocks/Companies/schema.js +5 -21
- package/build/esm/blocks/Companies/schema.js.map +1 -1
- package/build/esm/blocks/ContentLayout/schema.d.ts +258 -194
- package/build/esm/blocks/ContentLayout/schema.js +2 -2
- package/build/esm/blocks/ContentLayout/schema.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +311 -39
- package/build/esm/blocks/ExtendedFeatures/schema.js +17 -18
- package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/esm/blocks/Footer/schema.d.ts +3 -6
- package/build/esm/blocks/Form/schema.d.ts +197 -15
- package/build/esm/blocks/Form/schema.js +17 -5
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +446 -191
- package/build/esm/blocks/Header/schema.js +19 -3
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/schema.d.ts +150 -71
- package/build/esm/blocks/Hero/schema.d.ts +19 -437
- package/build/esm/blocks/Hero/schema.js +12 -3
- package/build/esm/blocks/Hero/schema.js.map +1 -1
- package/build/esm/blocks/Icons/Icons.js.map +1 -1
- package/build/esm/blocks/Icons/schema.js +1 -1
- package/build/esm/blocks/Icons/schema.js.map +1 -1
- package/build/esm/blocks/Info/schema.d.ts +49 -1
- package/build/esm/blocks/Info/schema.js +3 -3
- package/build/esm/blocks/Info/schema.js.map +1 -1
- package/build/esm/blocks/Map/schema.d.ts +7 -2
- package/build/esm/blocks/Map/schema.js +1 -1
- package/build/esm/blocks/Map/schema.js.map +1 -1
- package/build/esm/blocks/Media/schema.d.ts +20 -9
- package/build/esm/blocks/Media/schema.js +16 -3
- package/build/esm/blocks/Media/schema.js.map +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
- package/build/esm/blocks/Table/schema.d.ts +1 -0
- package/build/esm/blocks/Table/schema.js +1 -0
- package/build/esm/blocks/Table/schema.js.map +1 -1
- package/build/esm/blocks/Tabs/schema.d.ts +7 -6
- package/build/esm/blocks/Tabs/schema.js +2 -2
- package/build/esm/blocks/Tabs/schema.js.map +1 -1
- package/build/esm/components/Author/schema.d.ts +1 -2
- package/build/esm/components/Image/schema.d.ts +33 -8
- package/build/esm/components/Image/schema.js +22 -22
- package/build/esm/components/Image/schema.js.map +1 -1
- package/build/esm/components/index.d.ts +1 -0
- package/build/esm/components/index.js +1 -0
- package/build/esm/components/index.js.map +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +6 -5
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/models/constructor-items/common.d.ts +1 -1
- package/build/esm/models/constructor-items/common.js.map +1 -1
- package/build/esm/navigation/schema.d.ts +1 -2
- package/build/esm/navigation/schema.js +2 -1
- package/build/esm/navigation/schema.js.map +1 -1
- package/build/esm/schema/constants.d.ts +940 -29
- package/build/esm/schema/constants.js +37 -41
- package/build/esm/schema/constants.js.map +1 -1
- package/build/esm/schema/validators/common.d.ts +11 -8
- package/build/esm/schema/validators/common.js +8 -4
- package/build/esm/schema/validators/common.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +82 -2
- package/build/esm/sub-blocks/BasicCard/schema.js +16 -2
- package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/Content/schema.d.ts +2 -5
- package/build/esm/sub-blocks/Content/schema.js +1 -8
- package/build/esm/sub-blocks/Content/schema.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +33 -17
- package/build/esm/sub-blocks/ImageCard/schema.js +9 -2
- package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1023 -312
- package/build/esm/sub-blocks/LayoutItem/schema.js +37 -6
- package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +2 -4
- package/build/esm/sub-blocks/PriceCard/schema.d.ts +5 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.js +2 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/esm/sub-blocks/Quote/schema.d.ts +164 -6
- package/build/esm/sub-blocks/Quote/schema.js +3 -1
- package/build/esm/sub-blocks/Quote/schema.js.map +1 -1
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +6 -5
- package/server/models/constructor-items/common.d.ts +1 -1
- package/widget/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icons.js","sourceRoot":"../../../../src","sources":["blocks/Icons/Icons.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,0DAA8C;AAC9C,4EAA8D;AAC9D,wDAA6C;AAC7C,gDAAyC;AAEzC,gDAAgE;AAIhE,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,cAAc,GAAG,CAAC,IAAsD,EAAE,EAAE,CAAC,CAC/E,wBAAC,KAAK,CAAC,QAAQ,eACX,uBAAC,kBAAK,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,EAC/C,8BAAG,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAAG,IAAI,CAAC,IAAI,GAAK,IAC3B,CACpB,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,IAAI,GAAG,GAAG,EAAE,QAAQ,GAAG,EAAC,GAAG,EAAE,EAAE,EAAC,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC7F,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,iCAAe,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,IAAA,oBAAY,GAAE,CAAC;IACvC,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAEzB,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAC7B,CAAC,EAAC,eAAe,EAAE,GAAG,EAAsB,EAAE,EAAE;QAC5C,eAAe,CAAC,eAAe,EAAE,EAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"Icons.js","sourceRoot":"../../../../src","sources":["blocks/Icons/Icons.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,0DAA8C;AAC9C,4EAA8D;AAC9D,wDAA6C;AAC7C,gDAAyC;AAEzC,gDAAgE;AAIhE,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,cAAc,GAAG,CAAC,IAAsD,EAAE,EAAE,CAAC,CAC/E,wBAAC,KAAK,CAAC,QAAQ,eACX,uBAAC,kBAAK,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,EAC/C,8BAAG,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAAG,IAAI,CAAC,IAAI,GAAK,IAC3B,CACpB,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,IAAI,GAAG,GAAG,EAAE,QAAQ,GAAG,EAAC,GAAG,EAAE,EAAE,EAAC,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC7F,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,iCAAe,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,IAAA,oBAAY,GAAE,CAAC;IACvC,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAEzB,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAC7B,CAAC,EAAC,eAAe,EAAE,GAAG,EAAsB,EAAE,EAAE;QAC5C,eAAe,CAAC,eAAe,EAAE,EAAC,GAAG,EAA2B,CAAC,CAAC;IACtE,CAAC,EACD,CAAC,eAAe,CAAC,CACpB,CAAC;IAEF,OAAO,CACH,iCAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,aACpB,CAAC,KAAK,IAAI,WAAW,CAAC,IAAI,CACvB,uBAAC,kBAAK,IACF,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,QAAQ,GACpB,CACL,EACA,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBAChB,MAAM,SAAS,GAAG,IAAA,sBAAc,EAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBAClD,MAAM,WAAW,GAAG,cAAc,CAAC,EAAC,GAAG,IAAI,EAAE,GAAG,EAAE,SAAS,EAAC,CAAC,CAAC;gBAC9D,MAAM,EAAC,GAAG,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC;gBACzB,OAAO,GAAG,CAAC,CAAC,CAAC,CACT,8BACI,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAEpB,IAAI,EAAE,GAAG,gBACG,IAAI,EAChB,KAAK,EAAE,IAAI,KACP,IAAA,oBAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAE3B,WAAW,IAPP,GAAG,CAQR,CACP,CAAC,CAAC,CAAC,CACA,gCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACpB,WAAW,IADgB,IAAI,CAE9B,CACT,CAAC;YACN,CAAC,CAAC,IACA,CACT,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,KAAK,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Image, Title} from '../../components';\nimport {LocationContext} from '../../context/locationContext';\nimport {useTheme} from '../../context/theme';\nimport {useAnalytics} from '../../hooks';\nimport {IconsBlockItemProps, IconsBlockProps} from '../../models';\nimport {block, getLinkProps, getThemedValue} from '../../utils';\n\nimport './Icons.scss';\n\nconst b = block('icons-block');\n\nconst getItemContent = (item: IconsBlockProps['items'][number] & {src: string}) => (\n <React.Fragment>\n <Image className={b('image')} src={item.src} />\n <p className={b('text')}>{item.text}</p>\n </React.Fragment>\n);\n\nconst Icons = ({title, description, size = 's', colSizes = {all: 12}, items}: IconsBlockProps) => {\n const {hostname} = React.useContext(LocationContext);\n const handleAnalytics = useAnalytics();\n const theme = useTheme();\n\n const onClick = React.useCallback(\n ({analyticsEvents, url}: IconsBlockItemProps) => {\n handleAnalytics(analyticsEvents, {url} as Record<string, string>);\n },\n [handleAnalytics],\n );\n\n return (\n <div className={b({size})}>\n {(title || description) && (\n <Title\n className={b('header')}\n title={title}\n subtitle={description}\n colSizes={colSizes}\n />\n )}\n {items.map((item) => {\n const themedSrc = getThemedValue(item.src, theme);\n const itemContent = getItemContent({...item, src: themedSrc});\n const {url, text} = item;\n return url ? (\n <a\n className={b('item')}\n key={url}\n href={url}\n aria-label={text}\n title={text}\n {...getLinkProps(url, hostname)}\n onClick={() => onClick(item)}\n >\n {itemContent}\n </a>\n ) : (\n <div className={b('item')} key={text}>\n {itemContent}\n </div>\n );\n })}\n </div>\n );\n};\n\nexport default Icons;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Icons/schema.ts"],"names":[],"mappings":";;;AAAA,8DAIwC;AACxC,4DAAmE;AAEtD,QAAA,UAAU,GAAG;IACtB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE;QACR,GAAG,uBAAc;QACjB,GAAG,wBAAe;QAClB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;YACrB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,6BAAoB;QAC9B,KAAK,EAAE;YACH,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Icons/schema.ts"],"names":[],"mappings":";;;AAAA,8DAIwC;AACxC,4DAAmE;AAEtD,QAAA,UAAU,GAAG;IACtB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE;QACR,GAAG,uBAAc;QACjB,GAAG,wBAAe;QAClB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;YACrB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,6BAAoB;QAC9B,KAAK,EAAE;YACH,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,KAAK,CAAC;gBACjB,UAAU,EAAE;oBACR,GAAG,EAAE;wBACD,IAAI,EAAE,QAAQ;qBACjB;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,MAAM;qBACtB;oBACD,GAAG,EAAE;wBACD,IAAI,EAAE,QAAQ;qBACjB;iBACJ;gBACD,eAAe,EAAE;oBACb,KAAK,EAAE;wBACH;4BACI,GAAG,4BAAoB;4BACvB,UAAU,EAAE,QAAQ;yBACvB;wBACD;4BACI,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,4BAAoB;4BAC3B,UAAU,EAAE,MAAM;yBACrB;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AAEW,QAAA,UAAU,GAAG;IACtB,aAAa,EAAE,kBAAU;CAC5B,CAAC","sourcesContent":["import {\n AnimatableProps,\n BlockBaseProps,\n containerSizesObject,\n} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\n\nexport const IconsProps = {\n additionalProperties: false,\n required: ['size', 'items'],\n properties: {\n ...BlockBaseProps,\n ...AnimatableProps,\n title: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: ['s', 'm', 'l'],\n default: 's',\n },\n colSizes: containerSizesObject,\n items: {\n type: 'array',\n items: {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n url: {\n type: 'string',\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n src: {\n type: 'string',\n },\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n },\n },\n};\n\nexport const IconsBlock = {\n 'icons-block': IconsProps,\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const InfoBlock: {
|
|
2
2
|
'info-block': {
|
|
3
3
|
additionalProperties: boolean;
|
|
4
|
-
required:
|
|
4
|
+
required: never[];
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
7
|
type: string;
|
|
@@ -388,6 +388,54 @@ export declare const InfoBlock: {
|
|
|
388
388
|
};
|
|
389
389
|
}>;
|
|
390
390
|
};
|
|
391
|
+
anchor: {
|
|
392
|
+
type: string;
|
|
393
|
+
additionalProperties: boolean;
|
|
394
|
+
required: string[];
|
|
395
|
+
properties: {
|
|
396
|
+
text: {
|
|
397
|
+
type: string;
|
|
398
|
+
contentType: string;
|
|
399
|
+
};
|
|
400
|
+
url: {
|
|
401
|
+
type: string;
|
|
402
|
+
};
|
|
403
|
+
urlTitle: {
|
|
404
|
+
type: string;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
visible: {
|
|
409
|
+
oneOf: ({
|
|
410
|
+
type: string;
|
|
411
|
+
enum: string[];
|
|
412
|
+
additionalProperties?: undefined;
|
|
413
|
+
properties?: undefined;
|
|
414
|
+
} | {
|
|
415
|
+
type: string;
|
|
416
|
+
additionalProperties: boolean;
|
|
417
|
+
properties: {};
|
|
418
|
+
enum?: undefined;
|
|
419
|
+
})[];
|
|
420
|
+
};
|
|
421
|
+
resetPaddings: {
|
|
422
|
+
type: string;
|
|
423
|
+
};
|
|
424
|
+
context: {
|
|
425
|
+
type: string;
|
|
426
|
+
};
|
|
427
|
+
indent: {
|
|
428
|
+
type: string;
|
|
429
|
+
additionalProperties: boolean;
|
|
430
|
+
properties: {
|
|
431
|
+
top: {
|
|
432
|
+
enum: string[];
|
|
433
|
+
};
|
|
434
|
+
bottom: {
|
|
435
|
+
enum: string[];
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
391
439
|
type: {};
|
|
392
440
|
when: {
|
|
393
441
|
type: string;
|
|
@@ -13,9 +13,9 @@ const ContentProps = {
|
|
|
13
13
|
exports.InfoBlock = {
|
|
14
14
|
'info-block': {
|
|
15
15
|
additionalProperties: false,
|
|
16
|
-
required: [
|
|
16
|
+
required: [],
|
|
17
17
|
properties: {
|
|
18
|
-
...common_1.
|
|
18
|
+
...common_1.BlockBaseProps,
|
|
19
19
|
title: {
|
|
20
20
|
type: 'string',
|
|
21
21
|
contentType: 'text',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Info/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,8DAMwC;AACxC,4DAA4D;AAC5D,+DAA4D;AAE5D,MAAM,YAAY,GAAG;IACjB,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;CAC/D,CAAC;AAEW,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Info/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,8DAMwC;AACxC,4DAA4D;AAC5D,+DAA4D;AAE5D,MAAM,YAAY,GAAG;IACjB,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;CAC/D,CAAC;AAEW,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,eAAe,EAAE,IAAA,kBAAS,EAAC;gBACvB,IAAI,EAAE,QAAQ;aACjB,CAAC;YACF,aAAa,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,OAAO,EAAE,IAAA,qBAAa,EAAC,oBAAW,CAAC;YACnC,KAAK,EAAE,mBAAU;YACjB,KAAK,EAAE,IAAA,qBAAa,EAAC,kBAAS,CAAC;YAC/B,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE,YAAY;SAC7B;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {\n BlockBaseProps,\n ButtonBlock,\n LinkProps,\n ThemeProps,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nconst ContentProps = {\n additionalProperties: false,\n properties: omit(ContentBase, ['size', 'colSizes', 'theme']),\n};\n\nexport const InfoBlock = {\n 'info-block': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BlockBaseProps,\n title: {\n type: 'string',\n contentType: 'text',\n },\n backgroundColor: withTheme({\n type: 'string',\n }),\n sectionsTitle: {\n type: 'string',\n contentType: 'text',\n },\n buttons: filteredArray(ButtonBlock),\n theme: ThemeProps,\n links: filteredArray(LinkProps),\n leftContent: ContentProps,\n rightContent: ContentProps,\n },\n },\n};\n"]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const Map: {
|
|
2
2
|
type: string;
|
|
3
3
|
additionalProperties: boolean;
|
|
4
|
-
|
|
4
|
+
anyOf: {
|
|
5
|
+
required: string[];
|
|
6
|
+
}[];
|
|
5
7
|
properties: {
|
|
6
8
|
zoom: {
|
|
7
9
|
type: string;
|
|
@@ -104,7 +106,9 @@ export declare const MapBlock: {
|
|
|
104
106
|
map: {
|
|
105
107
|
type: string;
|
|
106
108
|
additionalProperties: boolean;
|
|
107
|
-
|
|
109
|
+
anyOf: {
|
|
110
|
+
required: string[];
|
|
111
|
+
}[];
|
|
108
112
|
properties: {
|
|
109
113
|
zoom: {
|
|
110
114
|
type: string;
|
|
@@ -367,6 +371,7 @@ export declare const MapBlock: {
|
|
|
367
371
|
theme: {
|
|
368
372
|
enum: string[];
|
|
369
373
|
};
|
|
374
|
+
required: string[];
|
|
370
375
|
};
|
|
371
376
|
};
|
|
372
377
|
then: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Map/schema.ts"],"names":[],"mappings":";;;AAAA,8DAAwD;AACxD,+CAAoD;AAEvC,QAAA,GAAG,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Map/schema.ts"],"names":[],"mappings":";;;AAAA,8DAAwD;AACxD,+CAAoD;AAEvC,QAAA,GAAG,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,KAAK,EAAE,CAAC,EAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAC,EAAE,EAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAC,CAAC;IACzD,UAAU,EAAE,iBAAQ;CACvB,CAAC;AAEW,QAAA,QAAQ,GAAG;IACpB,WAAW,EAAE;QACT,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QAC1B,UAAU,EAAE;YACR,GAAG,4BAAmB;YACtB,GAAG,EAAE,WAAG;SACX;KACJ;CACJ,CAAC","sourcesContent":["import {MapProps} from '../../schema/validators/common';\nimport {MediaBlockBaseProps} from '../Media/schema';\n\nexport const Map = {\n type: 'object',\n additionalProperties: false,\n anyOf: [{required: ['markers']}, {required: ['address']}],\n properties: MapProps,\n};\n\nexport const MapBlock = {\n 'map-block': {\n additionalProperties: false,\n required: ['title', 'map'],\n properties: {\n ...MediaBlockBaseProps,\n map: Map,\n },\n },\n};\n"]}
|
|
@@ -17,9 +17,9 @@ export declare const Media: {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
} | {
|
|
20
|
+
optionName: string;
|
|
20
21
|
type: string;
|
|
21
22
|
pattern: string;
|
|
22
|
-
optionName: string;
|
|
23
23
|
items?: undefined;
|
|
24
24
|
} | {
|
|
25
25
|
type: string;
|
|
@@ -32,7 +32,6 @@ export declare const Media: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
optionName: string;
|
|
35
|
-
pattern?: undefined;
|
|
36
35
|
})[];
|
|
37
36
|
type?: undefined;
|
|
38
37
|
items?: undefined;
|
|
@@ -47,9 +46,9 @@ export declare const Media: {
|
|
|
47
46
|
};
|
|
48
47
|
};
|
|
49
48
|
} | {
|
|
49
|
+
optionName: string;
|
|
50
50
|
type: string;
|
|
51
51
|
pattern: string;
|
|
52
|
-
optionName: string;
|
|
53
52
|
items?: undefined;
|
|
54
53
|
} | {
|
|
55
54
|
type: string;
|
|
@@ -62,7 +61,6 @@ export declare const Media: {
|
|
|
62
61
|
};
|
|
63
62
|
};
|
|
64
63
|
optionName: string;
|
|
65
|
-
pattern?: undefined;
|
|
66
64
|
})[];
|
|
67
65
|
};
|
|
68
66
|
optionName: string;
|
|
@@ -483,6 +481,7 @@ export declare const MediaBlockBaseProps: {
|
|
|
483
481
|
theme: {
|
|
484
482
|
enum: string[];
|
|
485
483
|
};
|
|
484
|
+
required: string[];
|
|
486
485
|
};
|
|
487
486
|
};
|
|
488
487
|
then: {
|
|
@@ -715,7 +714,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
715
714
|
export declare const MediaBlock: {
|
|
716
715
|
'media-block': {
|
|
717
716
|
additionalProperties: boolean;
|
|
718
|
-
required: string[];
|
|
719
717
|
properties: {
|
|
720
718
|
media: {
|
|
721
719
|
oneOf: (({
|
|
@@ -737,9 +735,9 @@ export declare const MediaBlock: {
|
|
|
737
735
|
};
|
|
738
736
|
};
|
|
739
737
|
} | {
|
|
738
|
+
optionName: string;
|
|
740
739
|
type: string;
|
|
741
740
|
pattern: string;
|
|
742
|
-
optionName: string;
|
|
743
741
|
items?: undefined;
|
|
744
742
|
} | {
|
|
745
743
|
type: string;
|
|
@@ -752,7 +750,6 @@ export declare const MediaBlock: {
|
|
|
752
750
|
};
|
|
753
751
|
};
|
|
754
752
|
optionName: string;
|
|
755
|
-
pattern?: undefined;
|
|
756
753
|
})[];
|
|
757
754
|
type?: undefined;
|
|
758
755
|
items?: undefined;
|
|
@@ -767,9 +764,9 @@ export declare const MediaBlock: {
|
|
|
767
764
|
};
|
|
768
765
|
};
|
|
769
766
|
} | {
|
|
767
|
+
optionName: string;
|
|
770
768
|
type: string;
|
|
771
769
|
pattern: string;
|
|
772
|
-
optionName: string;
|
|
773
770
|
items?: undefined;
|
|
774
771
|
} | {
|
|
775
772
|
type: string;
|
|
@@ -782,7 +779,6 @@ export declare const MediaBlock: {
|
|
|
782
779
|
};
|
|
783
780
|
};
|
|
784
781
|
optionName: string;
|
|
785
|
-
pattern?: undefined;
|
|
786
782
|
})[];
|
|
787
783
|
};
|
|
788
784
|
optionName: string;
|
|
@@ -1211,6 +1207,7 @@ export declare const MediaBlock: {
|
|
|
1211
1207
|
theme: {
|
|
1212
1208
|
enum: string[];
|
|
1213
1209
|
};
|
|
1210
|
+
required: string[];
|
|
1214
1211
|
};
|
|
1215
1212
|
};
|
|
1216
1213
|
then: {
|
|
@@ -1440,5 +1437,19 @@ export declare const MediaBlock: {
|
|
|
1440
1437
|
type: string;
|
|
1441
1438
|
};
|
|
1442
1439
|
};
|
|
1440
|
+
if: {
|
|
1441
|
+
properties: {
|
|
1442
|
+
mediaOnly: {
|
|
1443
|
+
const: boolean;
|
|
1444
|
+
};
|
|
1445
|
+
};
|
|
1446
|
+
required: string[];
|
|
1447
|
+
};
|
|
1448
|
+
then: {
|
|
1449
|
+
required: string[];
|
|
1450
|
+
};
|
|
1451
|
+
else: {
|
|
1452
|
+
required: string[];
|
|
1453
|
+
};
|
|
1443
1454
|
};
|
|
1444
1455
|
};
|
|
@@ -44,17 +44,30 @@ exports.MediaBlockBaseProps = {
|
|
|
44
44
|
mediaOnlyColSizes: common_1.containerSizesObject,
|
|
45
45
|
border: {
|
|
46
46
|
type: 'string',
|
|
47
|
-
enum:
|
|
47
|
+
enum: common_1.mediaBorders,
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
exports.MediaBlock = {
|
|
51
51
|
'media-block': {
|
|
52
52
|
additionalProperties: false,
|
|
53
|
-
required: ['title', 'media'],
|
|
54
53
|
properties: {
|
|
55
54
|
...exports.MediaBlockBaseProps,
|
|
56
55
|
media: (0, common_1.withTheme)(exports.Media),
|
|
57
56
|
},
|
|
57
|
+
if: {
|
|
58
|
+
properties: {
|
|
59
|
+
mediaOnly: {
|
|
60
|
+
const: true,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
required: ['mediaOnly'],
|
|
64
|
+
},
|
|
65
|
+
then: {
|
|
66
|
+
required: ['media'],
|
|
67
|
+
},
|
|
68
|
+
else: {
|
|
69
|
+
required: ['title', 'media'],
|
|
70
|
+
},
|
|
58
71
|
},
|
|
59
72
|
};
|
|
60
73
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Media/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Media/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,8DASwC;AACxC,+DAA4D;AAE/C,QAAA,KAAK,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,mBAAU;CACzB,CAAC;AAEF,MAAM,sBAAsB,GAAG,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEvD,QAAA,mBAAmB,GAAG;IAC/B,GAAG,uBAAc;IACjB,GAAG,wBAAe;IAClB,GAAG,sBAAsB;IACzB,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK;KACrB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,uBAAc;KACvB;IACD,eAAe,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,uBAAc;KACvB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,SAAS;KAClB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,SAAS;KAClB;IACD;;OAEG;IACH,aAAa,EAAE;QACX,IAAI,EAAE,SAAS;KAClB;IACD,MAAM,EAAE,oBAAW;IACnB,iBAAiB,EAAE,6BAAoB;IACvC,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,qBAAY;KACrB;CACJ,CAAC;AAEW,QAAA,UAAU,GAAG;IACtB,aAAa,EAAE;QACX,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,2BAAmB;YACtB,KAAK,EAAE,IAAA,kBAAS,EAAC,aAAK,CAAC;SAC1B;QACD,EAAE,EAAE;YACA,UAAU,EAAE;gBACR,SAAS,EAAE;oBACP,KAAK,EAAE,IAAI;iBACd;aACJ;YACD,QAAQ,EAAE,CAAC,WAAW,CAAC;SAC1B;QACD,IAAI,EAAE;YACF,QAAQ,EAAE,CAAC,OAAO,CAAC;SACtB;QACD,IAAI,EAAE;YACF,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;SAC/B;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {\n AnimatableProps,\n BlockBaseProps,\n ButtonBlock,\n MediaProps,\n containerSizesObject,\n mediaBorders,\n mediaDirection,\n withTheme,\n} from '../../schema/validators/common';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nexport const Media = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: MediaProps,\n};\n\nconst MediaBlockContentProps = omit(ContentBase, ['text', 'theme']);\n\nexport const MediaBlockBaseProps = {\n ...BlockBaseProps,\n ...AnimatableProps,\n ...MediaBlockContentProps,\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n direction: {\n type: 'string',\n enum: mediaDirection,\n },\n mobileDirection: {\n type: 'string',\n enum: mediaDirection,\n },\n largeMedia: {\n type: 'boolean',\n },\n mediaOnly: {\n type: 'boolean',\n },\n /**\n * @deprecated use border='none' or border='line' instead\n */\n disableShadow: {\n type: 'boolean',\n },\n button: ButtonBlock,\n mediaOnlyColSizes: containerSizesObject,\n border: {\n type: 'string',\n enum: mediaBorders,\n },\n};\n\nexport const MediaBlock = {\n 'media-block': {\n additionalProperties: false,\n properties: {\n ...MediaBlockBaseProps,\n media: withTheme(Media),\n },\n if: {\n properties: {\n mediaOnly: {\n const: true,\n },\n },\n required: ['mediaOnly'],\n },\n then: {\n required: ['media'],\n },\n else: {\n required: ['title', 'media'],\n },\n },\n};\n"]}
|
|
@@ -33,9 +33,9 @@ export declare const PromoFeaturesItem: {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
} | {
|
|
36
|
+
optionName: string;
|
|
36
37
|
type: string;
|
|
37
38
|
pattern: string;
|
|
38
|
-
optionName: string;
|
|
39
39
|
items?: undefined;
|
|
40
40
|
} | {
|
|
41
41
|
type: string;
|
|
@@ -48,7 +48,6 @@ export declare const PromoFeaturesItem: {
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
optionName: string;
|
|
51
|
-
pattern?: undefined;
|
|
52
51
|
})[];
|
|
53
52
|
type?: undefined;
|
|
54
53
|
items?: undefined;
|
|
@@ -63,9 +62,9 @@ export declare const PromoFeaturesItem: {
|
|
|
63
62
|
};
|
|
64
63
|
};
|
|
65
64
|
} | {
|
|
65
|
+
optionName: string;
|
|
66
66
|
type: string;
|
|
67
67
|
pattern: string;
|
|
68
|
-
optionName: string;
|
|
69
68
|
items?: undefined;
|
|
70
69
|
} | {
|
|
71
70
|
type: string;
|
|
@@ -78,7 +77,6 @@ export declare const PromoFeaturesItem: {
|
|
|
78
77
|
};
|
|
79
78
|
};
|
|
80
79
|
optionName: string;
|
|
81
|
-
pattern?: undefined;
|
|
82
80
|
})[];
|
|
83
81
|
};
|
|
84
82
|
optionName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Table/schema.ts"],"names":[],"mappings":";;;AAAA,8DAAuF;AAE1E,QAAA,UAAU,GAAG;IACtB,aAAa,EAAE;QACX,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC5B,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,KAAK,EAAE;gBACH,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,UAAU,EAAE;oBACR,GAAG,kBAAS;oBACZ,OAAO,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACH,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE;gCACH,KAAK,EAAE;oCACH;wCACI,IAAI,EAAE,QAAQ;wCACd,WAAW,EAAE,MAAM;wCACnB,UAAU,EAAE,MAAM;qCACrB;oCACD;wCACI,IAAI,EAAE,QAAQ;wCACd,WAAW,EAAE,MAAM;wCACnB,UAAU,EAAE,QAAQ;qCACvB;iCACJ;6BACJ;yBACJ;qBACJ;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,KAAK;yBACrB;qBACJ;oBACD,UAAU,EAAE;wBACR,IAAI,EAAE,SAAS;qBAClB;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,qBAAY;qBACtB;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;qBACzB;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACjB;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {BaseProps, BlockBaseProps, JustifyProps} from '../../schema/validators/common';\n\nexport const TableBlock = {\n 'table-block': {\n additionalProperties: false,\n required: ['title', 'table'],\n properties: {\n ...BlockBaseProps,\n title: {\n type: 'string',\n contentType: 'text',\n },\n table: {\n additionalProperties: false,\n required: ['content'],\n properties: {\n ...BaseProps,\n content: {\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n {\n type: 'string',\n contentType: 'text',\n optionName: 'text',\n },\n {\n type: 'number',\n contentType: 'text',\n optionName: 'number',\n },\n ],\n },\n },\n },\n legend: {\n type: 'array',\n items: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n hideLegend: {\n type: 'boolean',\n },\n justify: {\n type: 'array',\n items: JustifyProps,\n },\n marker: {\n type: 'string',\n enum: ['disk', 'tick'],\n },\n caption: {\n type: 'string',\n },\n },\n },\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Table/schema.ts"],"names":[],"mappings":";;;AAAA,8DAAuF;AAE1E,QAAA,UAAU,GAAG;IACtB,aAAa,EAAE;QACX,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC5B,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,UAAU,EAAE;oBACR,GAAG,kBAAS;oBACZ,OAAO,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACH,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE;gCACH,KAAK,EAAE;oCACH;wCACI,IAAI,EAAE,QAAQ;wCACd,WAAW,EAAE,MAAM;wCACnB,UAAU,EAAE,MAAM;qCACrB;oCACD;wCACI,IAAI,EAAE,QAAQ;wCACd,WAAW,EAAE,MAAM;wCACnB,UAAU,EAAE,QAAQ;qCACvB;iCACJ;6BACJ;yBACJ;qBACJ;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,KAAK;yBACrB;qBACJ;oBACD,UAAU,EAAE;wBACR,IAAI,EAAE,SAAS;qBAClB;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,qBAAY;qBACtB;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;qBACzB;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACjB;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {BaseProps, BlockBaseProps, JustifyProps} from '../../schema/validators/common';\n\nexport const TableBlock = {\n 'table-block': {\n additionalProperties: false,\n required: ['title', 'table'],\n properties: {\n ...BlockBaseProps,\n title: {\n type: 'string',\n contentType: 'text',\n },\n table: {\n type: 'object',\n additionalProperties: false,\n required: ['content'],\n properties: {\n ...BaseProps,\n content: {\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n {\n type: 'string',\n contentType: 'text',\n optionName: 'text',\n },\n {\n type: 'number',\n contentType: 'text',\n optionName: 'number',\n },\n ],\n },\n },\n },\n legend: {\n type: 'array',\n items: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n hideLegend: {\n type: 'boolean',\n },\n justify: {\n type: 'array',\n items: JustifyProps,\n },\n marker: {\n type: 'string',\n enum: ['disk', 'tick'],\n },\n caption: {\n type: 'string',\n },\n },\n },\n },\n },\n};\n"]}
|
|
@@ -28,9 +28,9 @@ export declare const tabsItem: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
} | {
|
|
31
|
+
optionName: string;
|
|
31
32
|
type: string;
|
|
32
33
|
pattern: string;
|
|
33
|
-
optionName: string;
|
|
34
34
|
items?: undefined;
|
|
35
35
|
} | {
|
|
36
36
|
type: string;
|
|
@@ -43,7 +43,6 @@ export declare const tabsItem: {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
optionName: string;
|
|
46
|
-
pattern?: undefined;
|
|
47
46
|
})[];
|
|
48
47
|
type?: undefined;
|
|
49
48
|
items?: undefined;
|
|
@@ -58,9 +57,9 @@ export declare const tabsItem: {
|
|
|
58
57
|
};
|
|
59
58
|
};
|
|
60
59
|
} | {
|
|
60
|
+
optionName: string;
|
|
61
61
|
type: string;
|
|
62
62
|
pattern: string;
|
|
63
|
-
optionName: string;
|
|
64
63
|
items?: undefined;
|
|
65
64
|
} | {
|
|
66
65
|
type: string;
|
|
@@ -73,7 +72,6 @@ export declare const tabsItem: {
|
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
74
|
optionName: string;
|
|
76
|
-
pattern?: undefined;
|
|
77
75
|
})[];
|
|
78
76
|
};
|
|
79
77
|
optionName: string;
|
|
@@ -361,6 +359,10 @@ export declare const tabsItem: {
|
|
|
361
359
|
type: string;
|
|
362
360
|
enum: string[];
|
|
363
361
|
};
|
|
362
|
+
colorTheme: {
|
|
363
|
+
type: string;
|
|
364
|
+
enum: string[];
|
|
365
|
+
};
|
|
364
366
|
analyticsEvents: {
|
|
365
367
|
oneOf: ({
|
|
366
368
|
optionName: string;
|
|
@@ -458,9 +460,9 @@ export declare const tabsItem: {
|
|
|
458
460
|
};
|
|
459
461
|
};
|
|
460
462
|
} | {
|
|
463
|
+
optionName: string;
|
|
461
464
|
type: string;
|
|
462
465
|
pattern: string;
|
|
463
|
-
optionName: string;
|
|
464
466
|
items?: undefined;
|
|
465
467
|
} | {
|
|
466
468
|
type: string;
|
|
@@ -473,7 +475,6 @@ export declare const tabsItem: {
|
|
|
473
475
|
};
|
|
474
476
|
};
|
|
475
477
|
optionName: string;
|
|
476
|
-
pattern?: undefined;
|
|
477
478
|
})[];
|
|
478
479
|
} & {
|
|
479
480
|
optionName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Tabs/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,6DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Tabs/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,6DAAyD;AACzD,8DAWwC;AACxC,4DAA4D;AAC5D,+DAA4D;AAE5D,MAAM,oBAAoB,GAAG,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAE7E,QAAA,QAAQ,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,GAAG,oBAAoB;QACvB,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,KAAK,EAAE,IAAA,kBAAS,EAAC;YACb,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,mBAAU;SACzB,CAAC;QACF,iBAAiB;QACjB,IAAI,EAAE,kBAAS;QACf,KAAK,EAAE,IAAA,kBAAS,EAAC,mBAAU,CAAC;QAC5B,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,qBAAY;SACrB;KACJ;CACJ,CAAC;AAEW,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC5B,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,GAAG,yBAAgB;YACnB,YAAY,EAAE,4BAAmB,CAAC,MAAM,CACpC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,mBAAU,EAAC,CAAC,EAC7C,EAAE,CACL;YACD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,uBAAc;aACvB;YACD,QAAQ,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;YAC3B,KAAK,EAAE,IAAA,qBAAa,EAAC,gBAAQ,CAAC;YAC9B,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,qBAAY;aACrB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {ImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n BlockHeaderProps,\n LinkProps,\n MediaProps,\n containerSizesArray,\n contentSizes,\n mediaBorders,\n mediaDirection,\n sizeNumber,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nconst TabsItemContentProps = omit(ContentBase, ['size', 'colSizes', 'centered', 'theme']);\n\nexport const tabsItem = {\n type: 'object',\n additionalProperties: false,\n required: ['tabName'],\n properties: {\n ...TabsItemContentProps,\n tabName: {\n type: 'string',\n },\n caption: {\n type: 'string',\n contentType: 'text',\n },\n media: withTheme({\n type: 'object',\n properties: MediaProps,\n }),\n //TODO deprecated\n link: LinkProps,\n image: withTheme(ImageProps),\n border: {\n type: 'string',\n enum: mediaBorders,\n },\n },\n};\n\nexport const TabsBlock = {\n 'tabs-block': {\n additionalProperties: false,\n required: ['title', 'items'],\n properties: {\n ...BlockBaseProps,\n ...BlockHeaderProps,\n tabsColSizes: containerSizesArray.reduce(\n (acc, size) => ({...acc, [size]: sizeNumber}),\n {},\n ),\n direction: {\n type: 'string',\n enum: mediaDirection,\n },\n centered: {type: 'boolean'},\n items: filteredArray(tabsItem),\n contentSize: {\n type: 'string',\n enum: contentSizes,\n },\n },\n },\n};\n"]}
|
|
@@ -25,9 +25,9 @@ export declare const author: {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
} | {
|
|
28
|
+
optionName: string;
|
|
28
29
|
type: string;
|
|
29
30
|
pattern: string;
|
|
30
|
-
optionName: string;
|
|
31
31
|
items?: undefined;
|
|
32
32
|
} | {
|
|
33
33
|
type: string;
|
|
@@ -40,7 +40,6 @@ export declare const author: {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
optionName: string;
|
|
43
|
-
pattern?: undefined;
|
|
44
43
|
})[];
|
|
45
44
|
};
|
|
46
45
|
description: {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Device } from "../../models/index.js";
|
|
1
2
|
export declare const imageUrlPattern = "^((http[s]?|ftp):\\/)?\\/?([^:\\/\\s]+)((\\/\\w+)*\\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$";
|
|
2
3
|
export declare const ImageDeviceProps: {
|
|
3
4
|
type: string;
|
|
4
5
|
additionalProperties: boolean;
|
|
5
|
-
required:
|
|
6
|
+
required: Device[];
|
|
7
|
+
anyOf: {
|
|
8
|
+
required: Device[];
|
|
9
|
+
}[];
|
|
6
10
|
properties: {
|
|
7
11
|
desktop: {
|
|
8
12
|
type: string;
|
|
@@ -188,9 +192,9 @@ export declare const ImageProps: {
|
|
|
188
192
|
};
|
|
189
193
|
};
|
|
190
194
|
} | {
|
|
195
|
+
optionName: string;
|
|
191
196
|
type: string;
|
|
192
197
|
pattern: string;
|
|
193
|
-
optionName: string;
|
|
194
198
|
items?: undefined;
|
|
195
199
|
} | {
|
|
196
200
|
type: string;
|
|
@@ -203,11 +207,10 @@ export declare const ImageProps: {
|
|
|
203
207
|
};
|
|
204
208
|
};
|
|
205
209
|
optionName: string;
|
|
206
|
-
pattern?: undefined;
|
|
207
210
|
})[];
|
|
208
211
|
};
|
|
209
212
|
export declare const BackgroundImageProps: {
|
|
210
|
-
|
|
213
|
+
oneOf: ({
|
|
211
214
|
optionName: string;
|
|
212
215
|
type: string;
|
|
213
216
|
additionalProperties: boolean;
|
|
@@ -271,11 +274,26 @@ export declare const BackgroundImageProps: {
|
|
|
271
274
|
};
|
|
272
275
|
};
|
|
273
276
|
} | {
|
|
274
|
-
optionName: string;
|
|
275
|
-
type: string;
|
|
276
|
-
additionalProperties: boolean;
|
|
277
|
-
required: string[];
|
|
278
277
|
properties: {
|
|
278
|
+
style: {
|
|
279
|
+
type: string;
|
|
280
|
+
additionalProperties: boolean;
|
|
281
|
+
required: never[];
|
|
282
|
+
properties: {
|
|
283
|
+
backgroundColor: {
|
|
284
|
+
type: string;
|
|
285
|
+
};
|
|
286
|
+
height: {
|
|
287
|
+
type: string[];
|
|
288
|
+
};
|
|
289
|
+
width: {
|
|
290
|
+
type: string[];
|
|
291
|
+
};
|
|
292
|
+
color: {
|
|
293
|
+
type: string;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
279
297
|
desktop: {
|
|
280
298
|
type: string;
|
|
281
299
|
pattern: string;
|
|
@@ -323,5 +341,12 @@ export declare const BackgroundImageProps: {
|
|
|
323
341
|
})[];
|
|
324
342
|
};
|
|
325
343
|
};
|
|
344
|
+
optionName: string;
|
|
345
|
+
type: string;
|
|
346
|
+
additionalProperties: boolean;
|
|
347
|
+
required: Device[];
|
|
348
|
+
anyOf: {
|
|
349
|
+
required: Device[];
|
|
350
|
+
}[];
|
|
326
351
|
})[];
|
|
327
352
|
};
|