@gravity-ui/page-constructor 8.5.0-alpha.0 → 8.5.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/build/cjs/blocks/Banner/icon.d.ts +2 -0
  2. package/build/cjs/blocks/Banner/icon.js +13 -0
  3. package/build/cjs/blocks/Banner/icon.js.map +1 -0
  4. package/build/cjs/blocks/Banner/index.js +2 -2
  5. package/build/cjs/blocks/Banner/index.js.map +1 -1
  6. package/build/cjs/blocks/CardLayout/icon.d.ts +2 -0
  7. package/build/cjs/blocks/CardLayout/icon.js +19 -0
  8. package/build/cjs/blocks/CardLayout/icon.js.map +1 -0
  9. package/build/cjs/blocks/CardLayout/index.js +17 -2
  10. package/build/cjs/blocks/CardLayout/index.js.map +1 -1
  11. package/build/cjs/blocks/ContentLayout/icon.d.ts +2 -0
  12. package/build/cjs/blocks/ContentLayout/icon.js +15 -0
  13. package/build/cjs/blocks/ContentLayout/icon.js.map +1 -0
  14. package/build/cjs/blocks/ContentLayout/index.js +2 -2
  15. package/build/cjs/blocks/ContentLayout/index.js.map +1 -1
  16. package/build/cjs/blocks/ExtendedFeatures/icon.d.ts +2 -0
  17. package/build/cjs/blocks/ExtendedFeatures/icon.js +20 -0
  18. package/build/cjs/blocks/ExtendedFeatures/icon.js.map +1 -0
  19. package/build/cjs/blocks/ExtendedFeatures/index.js +2 -2
  20. package/build/cjs/blocks/ExtendedFeatures/index.js.map +1 -1
  21. package/build/cjs/blocks/Header/icon.d.ts +2 -0
  22. package/build/cjs/blocks/Header/icon.js +13 -0
  23. package/build/cjs/blocks/Header/icon.js.map +1 -0
  24. package/build/cjs/blocks/Header/index.js +2 -2
  25. package/build/cjs/blocks/Header/index.js.map +1 -1
  26. package/build/cjs/blocks/Info/icon.d.ts +2 -0
  27. package/build/cjs/blocks/Info/icon.js +18 -0
  28. package/build/cjs/blocks/Info/icon.js.map +1 -0
  29. package/build/cjs/blocks/Info/index.js +2 -2
  30. package/build/cjs/blocks/Info/index.js.map +1 -1
  31. package/build/cjs/blocks/Media/icon.d.ts +2 -0
  32. package/build/cjs/blocks/Media/icon.js +13 -0
  33. package/build/cjs/blocks/Media/icon.js.map +1 -0
  34. package/build/cjs/blocks/Media/index.js +2 -2
  35. package/build/cjs/blocks/Media/index.js.map +1 -1
  36. package/build/cjs/blocks/Media/index_deprecated.js +2 -2
  37. package/build/cjs/blocks/Media/index_deprecated.js.map +1 -1
  38. package/build/cjs/blocks/Questions/icon.d.ts +2 -0
  39. package/build/cjs/blocks/Questions/icon.js +19 -0
  40. package/build/cjs/blocks/Questions/icon.js.map +1 -0
  41. package/build/cjs/blocks/Questions/index.js +2 -2
  42. package/build/cjs/blocks/Questions/index.js.map +1 -1
  43. package/build/cjs/blocks/Slider/icon.d.ts +2 -0
  44. package/build/cjs/blocks/Slider/icon.js +55 -0
  45. package/build/cjs/blocks/Slider/icon.js.map +1 -0
  46. package/build/cjs/blocks/Slider/index.js +2 -2
  47. package/build/cjs/blocks/Slider/index.js.map +1 -1
  48. package/build/cjs/blocks/Tabs/icon.d.ts +2 -0
  49. package/build/cjs/blocks/Tabs/icon.js +16 -0
  50. package/build/cjs/blocks/Tabs/icon.js.map +1 -0
  51. package/build/cjs/blocks/Tabs/index.js +2 -2
  52. package/build/cjs/blocks/Tabs/index.js.map +1 -1
  53. package/build/cjs/common/postMessage.js +1 -1
  54. package/build/cjs/common/postMessage.js.map +1 -1
  55. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js +7 -2
  56. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -1
  57. package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +3 -3
  58. package/build/cjs/editor-v2/containers/Editor/Editor.js +4 -4
  59. package/build/cjs/editor-v2/containers/Editor/Editor.js.map +1 -1
  60. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.d.ts +1 -1
  61. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js +5 -5
  62. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js.map +1 -1
  63. package/build/cjs/hooks/usePostMessageAPI.js +1 -1
  64. package/build/cjs/hooks/usePostMessageAPI.js.map +1 -1
  65. package/build/cjs/sub-blocks/ImageCard/icon.d.ts +2 -0
  66. package/build/cjs/sub-blocks/ImageCard/icon.js +11 -0
  67. package/build/cjs/sub-blocks/ImageCard/icon.js.map +1 -0
  68. package/build/cjs/sub-blocks/ImageCard/index.js +2 -2
  69. package/build/cjs/sub-blocks/ImageCard/index.js.map +1 -1
  70. package/build/cjs/sub-blocks/MediaCard/icon.d.ts +2 -0
  71. package/build/cjs/sub-blocks/MediaCard/icon.js +11 -0
  72. package/build/cjs/sub-blocks/MediaCard/icon.js.map +1 -0
  73. package/build/cjs/sub-blocks/MediaCard/index.js +2 -2
  74. package/build/cjs/sub-blocks/MediaCard/index.js.map +1 -1
  75. package/build/cjs/utils/index.d.ts +1 -0
  76. package/build/cjs/utils/index.js +1 -0
  77. package/build/cjs/utils/index.js.map +1 -1
  78. package/build/cjs/utils/svg.d.ts +1 -0
  79. package/build/cjs/utils/svg.js +4 -0
  80. package/build/cjs/utils/svg.js.map +1 -1
  81. package/build/esm/blocks/Banner/icon.d.ts +2 -0
  82. package/{widget/e939f84b0589c88eda82.svg → build/esm/blocks/Banner/icon.js} +4 -2
  83. package/build/esm/blocks/Banner/icon.js.map +1 -0
  84. package/build/esm/blocks/Banner/index.js +1 -1
  85. package/build/esm/blocks/Banner/index.js.map +1 -1
  86. package/build/esm/blocks/CardLayout/icon.d.ts +2 -0
  87. package/{widget/f077b7db51dd159290d7.svg → build/esm/blocks/CardLayout/icon.js} +4 -2
  88. package/build/esm/blocks/CardLayout/icon.js.map +1 -0
  89. package/build/esm/blocks/CardLayout/index.js +16 -1
  90. package/build/esm/blocks/CardLayout/index.js.map +1 -1
  91. package/build/esm/blocks/ContentLayout/icon.d.ts +2 -0
  92. package/{widget/6bd40d99d7acda70c988.svg → build/esm/blocks/ContentLayout/icon.js} +4 -2
  93. package/build/esm/blocks/ContentLayout/icon.js.map +1 -0
  94. package/build/esm/blocks/ContentLayout/index.js +1 -1
  95. package/build/esm/blocks/ContentLayout/index.js.map +1 -1
  96. package/build/esm/blocks/ExtendedFeatures/icon.d.ts +2 -0
  97. package/{widget/8eee8263ebe9e3a9a5ec.svg → build/esm/blocks/ExtendedFeatures/icon.js} +4 -2
  98. package/build/esm/blocks/ExtendedFeatures/icon.js.map +1 -0
  99. package/build/esm/blocks/ExtendedFeatures/index.js +1 -1
  100. package/build/esm/blocks/ExtendedFeatures/index.js.map +1 -1
  101. package/build/esm/blocks/Header/icon.d.ts +2 -0
  102. package/{widget/e0148e2f56361cf735a0.svg → build/esm/blocks/Header/icon.js} +4 -2
  103. package/build/esm/blocks/Header/icon.js.map +1 -0
  104. package/build/esm/blocks/Header/index.js +1 -1
  105. package/build/esm/blocks/Header/index.js.map +1 -1
  106. package/build/esm/blocks/Info/icon.d.ts +2 -0
  107. package/{widget/dd2cee88264c25f71647.svg → build/esm/blocks/Info/icon.js} +4 -2
  108. package/build/esm/blocks/Info/icon.js.map +1 -0
  109. package/build/esm/blocks/Info/index.js +1 -1
  110. package/build/esm/blocks/Info/index.js.map +1 -1
  111. package/build/esm/blocks/Media/icon.d.ts +2 -0
  112. package/{widget/59e86539ac1545c64458.svg → build/esm/blocks/Media/icon.js} +4 -2
  113. package/build/esm/blocks/Media/icon.js.map +1 -0
  114. package/build/esm/blocks/Media/index.js +1 -1
  115. package/build/esm/blocks/Media/index.js.map +1 -1
  116. package/build/esm/blocks/Media/index_deprecated.js +1 -1
  117. package/build/esm/blocks/Media/index_deprecated.js.map +1 -1
  118. package/build/esm/blocks/Questions/icon.d.ts +2 -0
  119. package/{widget/b4759683d7f3c55b222d.svg → build/esm/blocks/Questions/icon.js} +4 -2
  120. package/build/esm/blocks/Questions/icon.js.map +1 -0
  121. package/build/esm/blocks/Questions/index.js +1 -1
  122. package/build/esm/blocks/Questions/index.js.map +1 -1
  123. package/build/esm/blocks/Slider/icon.d.ts +2 -0
  124. package/{widget/f8de93d922c0adc378bb.svg → build/esm/blocks/Slider/icon.js} +4 -2
  125. package/build/esm/blocks/Slider/icon.js.map +1 -0
  126. package/build/esm/blocks/Slider/index.js +1 -1
  127. package/build/esm/blocks/Slider/index.js.map +1 -1
  128. package/build/esm/blocks/Tabs/icon.d.ts +2 -0
  129. package/{widget/48692712e33c3bdae70f.svg → build/esm/blocks/Tabs/icon.js} +4 -2
  130. package/build/esm/blocks/Tabs/icon.js.map +1 -0
  131. package/build/esm/blocks/Tabs/index.js +1 -1
  132. package/build/esm/blocks/Tabs/index.js.map +1 -1
  133. package/build/esm/common/postMessage.js +1 -1
  134. package/build/esm/common/postMessage.js.map +1 -1
  135. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js +7 -2
  136. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -1
  137. package/build/esm/editor-v2/containers/Editor/Editor.d.ts +3 -3
  138. package/build/esm/editor-v2/containers/Editor/Editor.js +4 -4
  139. package/build/esm/editor-v2/containers/Editor/Editor.js.map +1 -1
  140. package/build/esm/editor-v2/hooks/useMainEditorInitialize.d.ts +1 -1
  141. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js +5 -5
  142. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js.map +1 -1
  143. package/build/esm/hooks/usePostMessageAPI.js +1 -1
  144. package/build/esm/hooks/usePostMessageAPI.js.map +1 -1
  145. package/build/esm/sub-blocks/ImageCard/icon.d.ts +2 -0
  146. package/{widget/d0f61f0a190743ed85bf.svg → build/esm/sub-blocks/ImageCard/icon.js} +4 -2
  147. package/build/esm/sub-blocks/ImageCard/icon.js.map +1 -0
  148. package/build/esm/sub-blocks/ImageCard/index.js +1 -1
  149. package/build/esm/sub-blocks/ImageCard/index.js.map +1 -1
  150. package/build/esm/sub-blocks/MediaCard/icon.d.ts +2 -0
  151. package/build/esm/sub-blocks/MediaCard/icon.js +9 -0
  152. package/build/esm/sub-blocks/MediaCard/icon.js.map +1 -0
  153. package/build/esm/sub-blocks/MediaCard/index.js +1 -1
  154. package/build/esm/sub-blocks/MediaCard/index.js.map +1 -1
  155. package/build/esm/utils/index.d.ts +1 -0
  156. package/build/esm/utils/index.js +1 -0
  157. package/build/esm/utils/index.js.map +1 -1
  158. package/build/esm/utils/svg.d.ts +1 -0
  159. package/build/esm/utils/svg.js +3 -0
  160. package/build/esm/utils/svg.js.map +1 -1
  161. package/package.json +2 -2
  162. package/server/utils/index.d.ts +1 -0
  163. package/server/utils/index.js +1 -0
  164. package/server/utils/svg.d.ts +4 -0
  165. package/server/utils/svg.js +11 -0
  166. package/widget/index.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Header/index.ts"],"names":[],"mappings":";;;AAGA,iEAAmC;AAEnC,kEAA8B;AAE9B,MAAM,iBAAiB,GAAc;IACjC,IAAI,EAAE,2CAA2C;IACjD,SAAS,EAAE,gBAAW;IACtB,MAAM,EAAE;QACJ,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,qCAAqC;QAC5C,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ;wBACI,KAAK,EAAE,iBAAiB;wBACxB,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE;4BACL,EAAC,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC;4BAC1B,EAAC,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC;4BAC1B,EAAC,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC;4BAC1B,EAAC,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC;4BAC1B,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,I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from '../../form-generator-v2/types';\n\nimport HeaderBlock from './Header';\n\nimport icon from './icon.svg';\n\nconst HeaderBlockConfig: BlockData = {\n type: '@gravity-ui/page-constructor/header-block',\n component: HeaderBlock,\n schema: {\n name: 'Header Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n title: 'Vertical offset',\n name: 'verticalOffset',\n type: 'select',\n options: [\n {content: '0', value: '0'},\n {content: 'S', value: 's'},\n {content: 'M', value: 'm'},\n {content: 'L', value: 'l'},\n {content: 'XL', value: 'xl'},\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Breadcrumbs',\n withAddButton: true,\n index: 'index',\n itemTitle: 'Item {{index}}',\n itemView: 'card',\n fields: [\n {\n title: 'Text',\n name: 'breadcrumbs.items[{{index}}].text',\n type: 'textInput',\n },\n {\n title: 'URL',\n name: 'breadcrumbs.items[{{index}}].url',\n type: 'textInput',\n },\n ],\n },\n {\n type: 'section',\n title: 'Text',\n opened: true,\n fields: [\n {\n title: 'Overtitle',\n name: 'overtitle',\n type: 'textInput',\n },\n {\n title: 'Title',\n name: 'title',\n type: 'textInput',\n },\n {\n title: 'Description',\n name: 'description',\n type: 'textArea',\n },\n {\n title: 'Width',\n name: 'width',\n options: [\n {content: 'S', value: 's'},\n {content: 'M', value: 'm'},\n ],\n type: 'select',\n },\n {\n title: 'Theme',\n name: 'theme',\n options: [\n {content: 'Light', value: 'light'},\n {content: 'Dark', value: 'dark'},\n ],\n type: 'segmentedRadioGroup',\n defaultValue: 'light',\n },\n ],\n },\n {\n type: 'section',\n title: 'Buttons',\n withAddButton: true,\n index: 'index',\n itemTitle: 'Button {{index}}',\n itemView: 'card',\n fields: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n title: 'Text',\n type: 'textInput',\n name: 'buttons[{{index}}].text',\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'buttons[{{index}}].url',\n },\n {\n title: 'URL title',\n type: 'textInput',\n name: 'buttons[{{index}}].urlTitle',\n },\n {\n title: 'Style',\n type: 'select',\n name: 'buttons[{{index}}].theme',\n options: [\n {value: 'action', content: 'Action'},\n {value: 'outlined', content: 'Outlined'},\n {value: 'normal', content: 'Normal'},\n {value: 'monochrome', content: 'Monochrome'},\n {\n value: 'outlined-contrast',\n content: 'Outlined-contrast',\n },\n {value: 'normal-contrast', content: 'Normal-contrast'},\n ],\n },\n {\n title: 'Target',\n type: 'select',\n name: 'buttons[{{index}}].target',\n options: [\n {value: '_blank'},\n {value: '_self'},\n {value: '_parent'},\n {value: '_top'},\n ],\n hasClear: true,\n },\n ],\n },\n {\n type: 'section',\n title: 'Analytics tracking',\n withAddButton: true,\n index: 'index2',\n itemTitle: 'Analytics event {{index2}}',\n itemView: 'card',\n fields: [\n {\n title: 'Name',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].name',\n },\n {\n title: 'Target',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].target',\n },\n {\n title: 'Counters',\n withAddButton: true,\n type: 'section',\n index: 'indexgoal',\n itemTitle: 'Counter {{indexgoal}}',\n itemView: 'card',\n fields: [\n {\n title: 'Counter',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].counters[{{indexgoal}}].includes',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Background',\n opened: true,\n fields: [\n {\n title: 'Color HEX',\n type: 'textInput',\n name: 'background.color',\n },\n {\n title: 'Type',\n name: '_mediaType',\n options: [\n {content: 'Image', value: 'image'},\n {content: 'Video', value: 'video'},\n ],\n type: 'segmentedRadioGroup',\n },\n {\n type: 'text',\n text: 'Light theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'background.light.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'background.light.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'background.light.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'background.light.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n {\n type: 'text',\n text: 'Dark theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'background.dark.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'background.dark.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'background.dark.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'background.dark.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n ],\n },\n ] as Fields,\n default: {\n type: 'header-block',\n title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',\n description:\n 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n buttons: [\n {\n text: 'Button\\r',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: 'https://example.com',\n },\n ],\n },\n previewImg: icon,\n },\n};\n\nexport default HeaderBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Header/index.ts"],"names":[],"mappings":";;;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AQ,EAAE,KAAK;gCACf,KAAK,EAAE,OAAO;6BACjB;yBACJ;qBACJ;oBACD;wBACI,KAAK,EAAE,KAAK;wBACZ,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,2BAA2B;wBACjC,IAAI,EAAE;4BACF;gCACI,KAAK,EAAE,YAAY;gCACnB,QAAQ,EAAE,KAAK;gCACf,KAAK,EAAE,OAAO;6BACjB;yBACJ;qBACJ;iBACJ;aACJ;SACM;QACX,OAAO,EAAE;YACL,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,yDAAyD;YAChE,WAAW,EACP,mNAAmN;YACvN,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,QAAQ;oBACf,GAAG,EAAE,qBAAqB;iBAC7B;gBACD;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,UAAU;oBACjB,GAAG,EAAE,qBAAqB;iBAC7B;aACJ;SACJ;QACD,UAAU,EAAE,cAAI;KACnB;CACJ,CAAC;AAEF,kBAAe,iBAAiB,CAAC","sourcesContent":["import {BlockData} from '../../constructor-items';\nimport {Fields} from '../../form-generator-v2/types';\n\nimport HeaderBlock from './Header';\nimport icon from './icon';\n\nconst HeaderBlockConfig: BlockData = {\n type: '@gravity-ui/page-constructor/header-block',\n component: HeaderBlock,\n schema: {\n name: 'Header Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n title: 'Vertical offset',\n name: 'verticalOffset',\n type: 'select',\n options: [\n {content: '0', value: '0'},\n {content: 'S', value: 's'},\n {content: 'M', value: 'm'},\n {content: 'L', value: 'l'},\n {content: 'XL', value: 'xl'},\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Breadcrumbs',\n withAddButton: true,\n index: 'index',\n itemTitle: 'Item {{index}}',\n itemView: 'card',\n fields: [\n {\n title: 'Text',\n name: 'breadcrumbs.items[{{index}}].text',\n type: 'textInput',\n },\n {\n title: 'URL',\n name: 'breadcrumbs.items[{{index}}].url',\n type: 'textInput',\n },\n ],\n },\n {\n type: 'section',\n title: 'Text',\n opened: true,\n fields: [\n {\n title: 'Overtitle',\n name: 'overtitle',\n type: 'textInput',\n },\n {\n title: 'Title',\n name: 'title',\n type: 'textInput',\n },\n {\n title: 'Description',\n name: 'description',\n type: 'textArea',\n },\n {\n title: 'Width',\n name: 'width',\n options: [\n {content: 'S', value: 's'},\n {content: 'M', value: 'm'},\n ],\n type: 'select',\n },\n {\n title: 'Theme',\n name: 'theme',\n options: [\n {content: 'Light', value: 'light'},\n {content: 'Dark', value: 'dark'},\n ],\n type: 'segmentedRadioGroup',\n defaultValue: 'light',\n },\n ],\n },\n {\n type: 'section',\n title: 'Buttons',\n withAddButton: true,\n index: 'index',\n itemTitle: 'Button {{index}}',\n itemView: 'card',\n fields: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n title: 'Text',\n type: 'textInput',\n name: 'buttons[{{index}}].text',\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'buttons[{{index}}].url',\n },\n {\n title: 'URL title',\n type: 'textInput',\n name: 'buttons[{{index}}].urlTitle',\n },\n {\n title: 'Style',\n type: 'select',\n name: 'buttons[{{index}}].theme',\n options: [\n {value: 'action', content: 'Action'},\n {value: 'outlined', content: 'Outlined'},\n {value: 'normal', content: 'Normal'},\n {value: 'monochrome', content: 'Monochrome'},\n {\n value: 'outlined-contrast',\n content: 'Outlined-contrast',\n },\n {value: 'normal-contrast', content: 'Normal-contrast'},\n ],\n },\n {\n title: 'Target',\n type: 'select',\n name: 'buttons[{{index}}].target',\n options: [\n {value: '_blank'},\n {value: '_self'},\n {value: '_parent'},\n {value: '_top'},\n ],\n hasClear: true,\n },\n ],\n },\n {\n type: 'section',\n title: 'Analytics tracking',\n withAddButton: true,\n index: 'index2',\n itemTitle: 'Analytics event {{index2}}',\n itemView: 'card',\n fields: [\n {\n title: 'Name',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].name',\n },\n {\n title: 'Target',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].target',\n },\n {\n title: 'Counters',\n withAddButton: true,\n type: 'section',\n index: 'indexgoal',\n itemTitle: 'Counter {{indexgoal}}',\n itemView: 'card',\n fields: [\n {\n title: 'Counter',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].counters[{{indexgoal}}].includes',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Background',\n opened: true,\n fields: [\n {\n title: 'Color HEX',\n type: 'textInput',\n name: 'background.color',\n },\n {\n title: 'Type',\n name: '_mediaType',\n options: [\n {content: 'Image', value: 'image'},\n {content: 'Video', value: 'video'},\n ],\n type: 'segmentedRadioGroup',\n },\n {\n type: 'text',\n text: 'Light theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'background.light.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'background.light.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'background.light.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'background.light.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n {\n type: 'text',\n text: 'Dark theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'background.dark.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'background.dark.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'background.dark.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'background.dark.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n ],\n },\n ] as Fields,\n default: {\n type: 'header-block',\n title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',\n description:\n 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n buttons: [\n {\n text: 'Button\\r',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: 'https://example.com',\n },\n ],\n },\n previewImg: icon,\n },\n};\n\nexport default HeaderBlockConfig;\n"]}
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const svg_1 = require("../../utils/svg.js");
4
+ exports.default = (0, svg_1.svgToDataUri)(`<svg width="100" height="50" viewBox="0 0 100 50" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <rect width="100" height="50" rx="7.81395" fill="white"/>
6
+ <rect x="8.93024" y="12" width="82.1395" height="26" rx="3.34884" fill="#C0C8DB"/>
7
+ <rect x="9.20931" y="12.2791" width="81.5814" height="25.4419" rx="3.06977" fill="#222222"/>
8
+ <rect x="9.20931" y="12.2791" width="81.5814" height="25.4419" rx="3.06977" stroke="#C0C8DB" stroke-width="0.55814"/>
9
+ <rect x="12" y="18" width="23" height="2" rx="0.55814" fill="#C0C8DB"/>
10
+ <rect x="12" y="22" width="7" height="2" rx="0.55814" fill="#C0C8DB"/>
11
+ <rect x="20" y="22" width="7" height="2" rx="0.55814" fill="#C0C8DB"/>
12
+ <rect x="48" y="18" width="27" height="2" rx="0.55814" fill="#C0C8DB"/>
13
+ <rect x="48" y="22" width="12" height="1" rx="0.5" fill="#C0C8DB"/>
14
+ <rect x="48" y="24" width="14" height="1" rx="0.5" fill="#C0C8DB"/>
15
+ <rect x="48" y="26" width="15" height="1" rx="0.5" fill="#C0C8DB"/>
16
+ <rect x="48" y="28" width="8" height="1" rx="0.5" fill="#C0C8DB"/>
17
+ </svg>`);
18
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"../../../../src","sources":["blocks/Info/icon.ts"],"names":[],"mappings":";;AAAA,4CAA6C;AAE7C,kBAAe,IAAA,kBAAY,EACvB;;;;;;;;;;;;;OAaG,CACN,CAAC","sourcesContent":["import {svgToDataUri} from '../../utils/svg';\n\nexport default svgToDataUri(\n `<svg width=\"100\" height=\"50\" viewBox=\"0 0 100 50\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"100\" height=\"50\" rx=\"7.81395\" fill=\"white\"/>\n<rect x=\"8.93024\" y=\"12\" width=\"82.1395\" height=\"26\" rx=\"3.34884\" fill=\"#C0C8DB\"/>\n<rect x=\"9.20931\" y=\"12.2791\" width=\"81.5814\" height=\"25.4419\" rx=\"3.06977\" fill=\"#222222\"/>\n<rect x=\"9.20931\" y=\"12.2791\" width=\"81.5814\" height=\"25.4419\" rx=\"3.06977\" stroke=\"#C0C8DB\" stroke-width=\"0.55814\"/>\n<rect x=\"12\" y=\"18\" width=\"23\" height=\"2\" rx=\"0.55814\" fill=\"#C0C8DB\"/>\n<rect x=\"12\" y=\"22\" width=\"7\" height=\"2\" rx=\"0.55814\" fill=\"#C0C8DB\"/>\n<rect x=\"20\" y=\"22\" width=\"7\" height=\"2\" rx=\"0.55814\" fill=\"#C0C8DB\"/>\n<rect x=\"48\" y=\"18\" width=\"27\" height=\"2\" rx=\"0.55814\" fill=\"#C0C8DB\"/>\n<rect x=\"48\" y=\"22\" width=\"12\" height=\"1\" rx=\"0.5\" fill=\"#C0C8DB\"/>\n<rect x=\"48\" y=\"24\" width=\"14\" height=\"1\" rx=\"0.5\" fill=\"#C0C8DB\"/>\n<rect x=\"48\" y=\"26\" width=\"15\" height=\"1\" rx=\"0.5\" fill=\"#C0C8DB\"/>\n<rect x=\"48\" y=\"28\" width=\"8\" height=\"1\" rx=\"0.5\" fill=\"#C0C8DB\"/>\n</svg>`,\n);\n"]}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const generateFormFieldsFromAjv_1 = require("../../form-generator-v2/utils/generateFormFieldsFromAjv.js");
5
5
  const Info_1 = tslib_1.__importDefault(require("./Info.js"));
6
+ const icon_1 = tslib_1.__importDefault(require("./icon.js"));
6
7
  const schema_1 = require("./schema.js");
7
- const icon_svg_1 = tslib_1.__importDefault(require("./icon.svg"));
8
8
  const InfoBlockConfig = {
9
9
  type: '@gravity-ui/page-constructor/info-block',
10
10
  component: Info_1.default,
@@ -40,7 +40,7 @@ const InfoBlockConfig = {
40
40
  },
41
41
  ],
42
42
  },
43
- previewImg: icon_svg_1.default,
43
+ previewImg: icon_1.default,
44
44
  },
45
45
  };
46
46
  exports.default = InfoBlockConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Info/index.ts"],"names":[],"mappings":";;;AAEA,0GAAwG;AAExG,6DAA+B;AAC/B,wCAAsD;AAEtD,kEAA8B;AAE9B,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,yCAAyC;IAC/C,SAAS,EAAE,cAAS;IACpB,MAAM,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,qCAAqC;QAC5C,sCAAsC;QACtC,MAAM,EAAE,IAAA,2DAA+B,EACnC,kBAAe,CAAC,YAAY,CAAkC,CACjE;QACD,OAAO,EAAE;YACL,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,YAAY;YACnB,eAAe,EAAE,SAAS;YAC1B,aAAa,EAAE,aAAa;YAC5B,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,QAAQ;iBACjB;gBACD;oBACI,IAAI,EAAE,QAAQ;iBACjB;gBACD;oBACI,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,mBAAmB;iBAC7B;gBACD;oBACI,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,QAAQ;iBAClB;aACJ;SACJ;QACD,UAAU,EAAE,kBAAI;KACnB;CACJ,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFormFieldsFromAjvSchema} from '../../form-generator-v2/utils/generateFormFieldsFromAjv';\n\nimport InfoBlock from './Info';\nimport {InfoBlock as InfoBlockSchema} from './schema';\n\nimport icon from './icon.svg';\n\nconst InfoBlockConfig = {\n type: '@gravity-ui/page-constructor/info-block',\n component: InfoBlock,\n schema: {\n name: 'Info Block',\n group: '@gravity-ui/page-constructor/Blocks',\n // TODO: change to custom block schema\n inputs: generateFormFieldsFromAjvSchema(\n InfoBlockSchema['info-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n type: 'info-block',\n title: 'Info Block',\n backgroundColor: '#1c1c1c',\n sectionsTitle: 'Other links',\n links: [\n {\n text: 'Link 1',\n },\n {\n text: 'Link 2',\n },\n {\n text: 'Link 3',\n },\n ],\n buttons: [\n {\n text: 'Read more',\n theme: 'outlined-contrast',\n },\n {\n text: 'Go back',\n theme: 'action',\n },\n ],\n },\n previewImg: icon,\n },\n};\n\nexport default InfoBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Info/index.ts"],"names":[],"mappings":";;;AAEA,0GAAwG;AAExG,6DAA+B;AAC/B,6DAA0B;AAC1B,wCAAsD;AAEtD,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,yCAAyC;IAC/C,SAAS,EAAE,cAAS;IACpB,MAAM,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,qCAAqC;QAC5C,sCAAsC;QACtC,MAAM,EAAE,IAAA,2DAA+B,EACnC,kBAAe,CAAC,YAAY,CAAkC,CACjE;QACD,OAAO,EAAE;YACL,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,YAAY;YACnB,eAAe,EAAE,SAAS;YAC1B,aAAa,EAAE,aAAa;YAC5B,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,QAAQ;iBACjB;gBACD;oBACI,IAAI,EAAE,QAAQ;iBACjB;gBACD;oBACI,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,mBAAmB;iBAC7B;gBACD;oBACI,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,QAAQ;iBAClB;aACJ;SACJ;QACD,UAAU,EAAE,cAAI;KACnB;CACJ,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFormFieldsFromAjvSchema} from '../../form-generator-v2/utils/generateFormFieldsFromAjv';\n\nimport InfoBlock from './Info';\nimport icon from './icon';\nimport {InfoBlock as InfoBlockSchema} from './schema';\n\nconst InfoBlockConfig = {\n type: '@gravity-ui/page-constructor/info-block',\n component: InfoBlock,\n schema: {\n name: 'Info Block',\n group: '@gravity-ui/page-constructor/Blocks',\n // TODO: change to custom block schema\n inputs: generateFormFieldsFromAjvSchema(\n InfoBlockSchema['info-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n type: 'info-block',\n title: 'Info Block',\n backgroundColor: '#1c1c1c',\n sectionsTitle: 'Other links',\n links: [\n {\n text: 'Link 1',\n },\n {\n text: 'Link 2',\n },\n {\n text: 'Link 3',\n },\n ],\n buttons: [\n {\n text: 'Read more',\n theme: 'outlined-contrast',\n },\n {\n text: 'Go back',\n theme: 'action',\n },\n ],\n },\n previewImg: icon,\n },\n};\n\nexport default InfoBlockConfig;\n"]}
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const svg_1 = require("../../utils/svg.js");
4
+ exports.default = (0, svg_1.svgToDataUri)(`<svg width="100" height="50" viewBox="0 0 100 50" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <rect width="100" height="50" rx="7.97674" fill="white"/>
6
+ <rect x="9.11628" y="16.9999" width="13" height="2" rx="0.569767" fill="#262626"/>
7
+ <rect x="9.11628" y="20.9999" width="37.3256" height="2" rx="0.569767" fill="#262626"/>
8
+ <rect x="9.11628" y="23.9999" width="37.3256" height="2" rx="0.569767" fill="#262626"/>
9
+ <rect x="9.11628" y="26.9999" width="37.3256" height="2" rx="0.569767" fill="#262626"/>
10
+ <rect x="9.11628" y="30.9999" width="7" height="2" rx="0.569767" fill="#262626"/>
11
+ <rect x="51" y="5.05811" width="39.8837" height="39.8837" rx="3" fill="#222222"/>
12
+ </svg>`);
13
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"../../../../src","sources":["blocks/Media/icon.ts"],"names":[],"mappings":";;AAAA,4CAA6C;AAE7C,kBAAe,IAAA,kBAAY,EACvB;;;;;;;;OAQG,CACN,CAAC","sourcesContent":["import {svgToDataUri} from '../../utils/svg';\n\nexport default svgToDataUri(\n `<svg width=\"100\" height=\"50\" viewBox=\"0 0 100 50\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"100\" height=\"50\" rx=\"7.97674\" fill=\"white\"/>\n<rect x=\"9.11628\" y=\"16.9999\" width=\"13\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"9.11628\" y=\"20.9999\" width=\"37.3256\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"9.11628\" y=\"23.9999\" width=\"37.3256\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"9.11628\" y=\"26.9999\" width=\"37.3256\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"9.11628\" y=\"30.9999\" width=\"7\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"51\" y=\"5.05811\" width=\"39.8837\" height=\"39.8837\" rx=\"3\" fill=\"#222222\"/>\n</svg>`,\n);\n"]}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const Media_1 = tslib_1.__importDefault(require("./Media.js"));
5
- const icon_svg_1 = tslib_1.__importDefault(require("./icon.svg"));
5
+ const icon_1 = tslib_1.__importDefault(require("./icon.js"));
6
6
  const MediaBlockConfig = {
7
7
  type: '@gravity-ui/page-constructor/media-block',
8
8
  component: Media_1.default,
@@ -490,7 +490,7 @@ const MediaBlockConfig = {
490
490
  },
491
491
  },
492
492
  },
493
- previewImg: icon_svg_1.default,
493
+ previewImg: icon_1.default,
494
494
  },
495
495
  };
496
496
  exports.default = MediaBlockConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Media/index.ts"],"names":[],"mappings":";;;AAEA,+DAAiC;AAEjC,kEAA8B;AAE9B,MAAM,gBAAgB,GAAG;IACrB,IAAI,EAAE,0CAA0C;IAChD,SAAS,EAAE,eAAU;IACrB,MAAM,EAAE;QACJ,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,qCAAqC;QAC5C,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ;wBACI,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,WAAW;wBAClB,I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AK,EAAE,YAAY;gCACnB,QAAQ,EAAE,KAAK;gCACf,KAAK,EAAE,OAAO;6BACjB;yBACJ;qBACJ;iBACJ;aACJ;SACM;QACX,OAAO,EAAE;YACL,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EACP,mNAAmN;YACvN,cAAc,EACV,uGAAuG;YAC3G,KAAK,EAAE;gBACH;oBACI,GAAG,EAAE,GAAG;oBACR,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,QAAQ;oBACf,KAAK,EAAE,IAAI;iBACd;aACJ;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,QAAQ;oBACf,GAAG,EAAE,qBAAqB;iBAC7B;gBACD;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,UAAU;oBACjB,GAAG,EAAE,GAAG;iBACX;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,KAAK,EAAE,mBAAmB;iBAC7B;aACJ;YACD,KAAK,EAAE;gBACH,KAAK,EAAE;oBACH,KAAK,EAAE;wBACH,OAAO,EACH,uFAAuF;qBAC9F;iBACJ;aACJ;SACJ;QACD,UAAU,EAAE,kBAAI;KACnB;CACJ,CAAC;AAEF,kBAAe,gBAAgB,CAAC","sourcesContent":["import {Fields} from '../../form-generator-v2/types';\n\nimport MediaBlock from './Media';\n\nimport icon from './icon.svg';\n\nconst MediaBlockConfig = {\n type: '@gravity-ui/page-constructor/media-block',\n component: MediaBlock,\n schema: {\n name: 'Media Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n type: 'select',\n title: 'Direction',\n name: 'direction',\n options: [\n {content: 'Media-content', value: 'media-content'},\n {content: 'Content-media', value: 'content-media'},\n ],\n },\n {\n type: 'select',\n title: 'Mobile direction',\n name: 'mobileDirection',\n options: [\n {content: 'Media-content', value: 'media-content'},\n {content: 'Content-media', value: 'content-media'},\n ],\n },\n {\n type: 'select',\n title: 'Top indent',\n name: 'indent.top',\n options: [\n {value: '0'},\n {value: 'xs'},\n {value: 's'},\n {value: 'm'},\n {value: 'l'},\n {value: 'xl'},\n ],\n },\n {\n type: 'select',\n title: 'Bottom indent',\n name: 'indent.bottom',\n options: [\n {value: '0'},\n {value: 'xs'},\n {value: 's'},\n {value: 'm'},\n {value: 'l'},\n {value: 'xl'},\n ],\n },\n {\n type: 'switch',\n title: 'Large media',\n name: 'largeMedia',\n },\n {\n type: 'switch',\n title: 'Media only',\n name: 'mediaOnly',\n },\n ],\n },\n {\n type: 'section',\n opened: true,\n title: 'Text',\n fields: [\n {\n type: 'textInput',\n title: 'Title',\n name: 'title',\n },\n {\n type: 'textArea',\n title: 'Description',\n name: 'description',\n },\n {\n type: 'textArea',\n title: 'Additional info',\n name: 'additionalInfo',\n },\n {\n type: 'select',\n title: 'Text size',\n name: 'size',\n options: [{value: 's'}, {value: 'm'}, {value: 'l'}],\n },\n {\n type: 'segmentedRadioGroup',\n title: 'Theme',\n options: [\n {content: 'Light', value: 'light'},\n {content: 'Dark', value: 'dark'},\n ],\n name: 'theme',\n },\n ],\n },\n {\n type: 'section',\n title: 'Content list',\n withAddButton: true,\n index: 'index1',\n itemTitle: 'Item {{index1}}',\n itemView: 'card',\n fields: [\n {\n type: 'textInput',\n title: 'Title',\n name: 'list[{{index1}}].title',\n },\n {\n type: 'textArea',\n title: 'Description',\n name: 'list[{{index1}}].text',\n },\n {\n type: 'textInput',\n title: 'URL icon',\n name: 'list[{{index1}}].icon',\n },\n ],\n },\n {\n type: 'section',\n title: 'Buttons',\n withAddButton: true,\n index: 'index',\n itemTitle: 'Button {{index}}',\n itemView: 'card',\n fields: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n title: 'Text',\n type: 'textInput',\n name: 'buttons[{{index}}].text',\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'buttons[{{index}}].url',\n },\n {\n title: 'URL title',\n type: 'textInput',\n name: 'buttons[{{index}}].urlTitle',\n },\n {\n title: 'Style',\n type: 'select',\n name: 'buttons[{{index}}].theme',\n options: [\n {value: 'action', content: 'Action'},\n {value: 'outlined', content: 'Outlined'},\n {value: 'normal', content: 'Normal'},\n {value: 'monochrome', content: 'Monochrome'},\n {\n value: 'outlined-contrast',\n content: 'Outlined-contrast',\n },\n {value: 'normal-contrast', content: 'Normal-contrast'},\n ],\n },\n {\n title: 'Target',\n type: 'select',\n name: 'buttons[{{index}}].target',\n options: [\n {value: '_blank'},\n {value: '_self'},\n {value: '_parent'},\n {value: '_top'},\n ],\n hasClear: true,\n },\n ],\n },\n {\n type: 'section',\n title: 'Analytics tracking',\n withAddButton: true,\n index: 'index2',\n itemTitle: 'Analytics event {{index2}}',\n itemView: 'card',\n fields: [\n {\n title: 'Name',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].name',\n },\n {\n title: 'Target',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].target',\n },\n {\n title: 'Counters',\n withAddButton: true,\n type: 'section',\n index: 'indexgoal',\n itemTitle: 'Counter {{indexgoal}}',\n itemView: 'card',\n fields: [\n {\n title: 'Counter',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].counters[{{indexgoal}}].includes',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Link',\n index: 'index1',\n withAddButton: true,\n itemTitle: 'Link {{index1}}',\n itemView: 'card',\n fields: [\n {\n type: 'textInput',\n title: 'Text',\n name: 'links[{{index1}}].text',\n },\n {\n type: 'textInput',\n title: 'URL',\n name: 'links[{{index1}}].url',\n },\n {\n type: 'textInput',\n title: 'URL title',\n name: 'links[{{index1}}].urlTitle',\n },\n {\n type: 'select',\n title: 'Style',\n name: 'links[{{index1}}].theme',\n options: [\n {content: 'File-link', value: 'file-link'},\n {content: 'Normal', value: 'normal'},\n {content: 'Back', value: 'back'},\n {content: 'Underline', value: 'underline'},\n ],\n },\n {\n title: 'Target',\n type: 'select',\n name: 'links[{{index1}}].target',\n options: [\n {value: '_blank'},\n {value: '_self'},\n {value: '_parent'},\n {value: '_top'},\n ],\n hasClear: true,\n },\n {\n type: 'section',\n title: 'Analytics tracking',\n withAddButton: true,\n index: 'index2',\n itemTitle: 'Analytics event {{index2}}',\n itemView: 'card',\n fields: [\n {\n title: 'Name',\n type: 'textInput',\n name: 'links[{{index1}}].analyticsEvents[{{index2}}].name',\n },\n {\n title: 'Target',\n type: 'textInput',\n name: 'links[{{index1}}].analyticsEvents[{{index2}}].target',\n },\n {\n title: 'Counters',\n withAddButton: true,\n type: 'section',\n index: 'indexgoal',\n itemTitle: 'Counter {{indexgoal}}',\n itemView: 'card',\n fields: [\n {\n title: 'Counter',\n type: 'textInput',\n name: 'links[{{index1}}].analyticsEvents[{{index2}}].counters[{{indexgoal}}].includes',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Media',\n opened: true,\n fields: [\n {\n title: 'Type',\n name: '_mediaType',\n options: [\n {content: 'Image', value: 'image'},\n {content: 'Video', value: 'video'},\n ],\n type: 'segmentedRadioGroup',\n },\n {\n type: 'text',\n text: 'Light theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'media.light.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'media.light.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'media.light.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'media.light.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n {\n type: 'text',\n text: 'Dark theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'media.dark.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'media.dark.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'media.dark.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'media.dark.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n ],\n },\n ] as Fields,\n default: {\n title: 'Lorem ipsum dolor sit',\n description:\n 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n links: [\n {\n url: '#',\n text: 'Learn more',\n theme: 'normal',\n arrow: true,\n },\n ],\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: '#',\n },\n ],\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n },\n ],\n media: {\n light: {\n image: {\n desktop:\n 'https://storage.yandexcloud.net/cloud-www-assets/constructor/main/new/media-01-01.jpg',\n },\n },\n },\n },\n previewImg: icon,\n },\n};\n\nexport default MediaBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Media/index.ts"],"names":[],"mappings":";;;AAEA,+DAAiC;AACjC,6DAA0B;AAE1B,MAAM,gBAAgB,GAAG;IACrB,IAAI,EAAE,0CAA0C;IAChD,SAAS,EAAE,eAAU;IACrB,MAAM,EAAE;QACJ,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,qCAAqC;QAC5C,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ;wBACI,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,WAAW;wBAClB,IAAI,EAAE,WAAW;wBACjB,OAAO,EAAE;4BACL,EAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAC;4BAClD,EAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAC;yBACrD;qBACJ;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,iBAAiB;wBACvB,OAAO,EAAE;4BACL,EAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAC;4BAClD,EAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAC;yBACrD;qBACJ;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,YAAY;wBACnB,IAAI,EAAE,YAAY;wBAClB,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BACjB,GAAG,EAAE,GAAG;iBACX;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,KAAK,EAAE,mBAAmB;iBAC7B;aACJ;YACD,KAAK,EAAE;gBACH,KAAK,EAAE;oBACH,KAAK,EAAE;wBACH,OAAO,EACH,uFAAuF;qBAC9F;iBACJ;aACJ;SACJ;QACD,UAAU,EAAE,cAAI;KACnB;CACJ,CAAC;AAEF,kBAAe,gBAAgB,CAAC","sourcesContent":["import {Fields} from '../../form-generator-v2/types';\n\nimport MediaBlock from './Media';\nimport icon from './icon';\n\nconst MediaBlockConfig = {\n type: '@gravity-ui/page-constructor/media-block',\n component: MediaBlock,\n schema: {\n name: 'Media Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n type: 'select',\n title: 'Direction',\n name: 'direction',\n options: [\n {content: 'Media-content', value: 'media-content'},\n {content: 'Content-media', value: 'content-media'},\n ],\n },\n {\n type: 'select',\n title: 'Mobile direction',\n name: 'mobileDirection',\n options: [\n {content: 'Media-content', value: 'media-content'},\n {content: 'Content-media', value: 'content-media'},\n ],\n },\n {\n type: 'select',\n title: 'Top indent',\n name: 'indent.top',\n options: [\n {value: '0'},\n {value: 'xs'},\n {value: 's'},\n {value: 'm'},\n {value: 'l'},\n {value: 'xl'},\n ],\n },\n {\n type: 'select',\n title: 'Bottom indent',\n name: 'indent.bottom',\n options: [\n {value: '0'},\n {value: 'xs'},\n {value: 's'},\n {value: 'm'},\n {value: 'l'},\n {value: 'xl'},\n ],\n },\n {\n type: 'switch',\n title: 'Large media',\n name: 'largeMedia',\n },\n {\n type: 'switch',\n title: 'Media only',\n name: 'mediaOnly',\n },\n ],\n },\n {\n type: 'section',\n opened: true,\n title: 'Text',\n fields: [\n {\n type: 'textInput',\n title: 'Title',\n name: 'title',\n },\n {\n type: 'textArea',\n title: 'Description',\n name: 'description',\n },\n {\n type: 'textArea',\n title: 'Additional info',\n name: 'additionalInfo',\n },\n {\n type: 'select',\n title: 'Text size',\n name: 'size',\n options: [{value: 's'}, {value: 'm'}, {value: 'l'}],\n },\n {\n type: 'segmentedRadioGroup',\n title: 'Theme',\n options: [\n {content: 'Light', value: 'light'},\n {content: 'Dark', value: 'dark'},\n ],\n name: 'theme',\n },\n ],\n },\n {\n type: 'section',\n title: 'Content list',\n withAddButton: true,\n index: 'index1',\n itemTitle: 'Item {{index1}}',\n itemView: 'card',\n fields: [\n {\n type: 'textInput',\n title: 'Title',\n name: 'list[{{index1}}].title',\n },\n {\n type: 'textArea',\n title: 'Description',\n name: 'list[{{index1}}].text',\n },\n {\n type: 'textInput',\n title: 'URL icon',\n name: 'list[{{index1}}].icon',\n },\n ],\n },\n {\n type: 'section',\n title: 'Buttons',\n withAddButton: true,\n index: 'index',\n itemTitle: 'Button {{index}}',\n itemView: 'card',\n fields: [\n {\n type: 'section',\n title: 'Main settings',\n opened: true,\n fields: [\n {\n title: 'Text',\n type: 'textInput',\n name: 'buttons[{{index}}].text',\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'buttons[{{index}}].url',\n },\n {\n title: 'URL title',\n type: 'textInput',\n name: 'buttons[{{index}}].urlTitle',\n },\n {\n title: 'Style',\n type: 'select',\n name: 'buttons[{{index}}].theme',\n options: [\n {value: 'action', content: 'Action'},\n {value: 'outlined', content: 'Outlined'},\n {value: 'normal', content: 'Normal'},\n {value: 'monochrome', content: 'Monochrome'},\n {\n value: 'outlined-contrast',\n content: 'Outlined-contrast',\n },\n {value: 'normal-contrast', content: 'Normal-contrast'},\n ],\n },\n {\n title: 'Target',\n type: 'select',\n name: 'buttons[{{index}}].target',\n options: [\n {value: '_blank'},\n {value: '_self'},\n {value: '_parent'},\n {value: '_top'},\n ],\n hasClear: true,\n },\n ],\n },\n {\n type: 'section',\n title: 'Analytics tracking',\n withAddButton: true,\n index: 'index2',\n itemTitle: 'Analytics event {{index2}}',\n itemView: 'card',\n fields: [\n {\n title: 'Name',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].name',\n },\n {\n title: 'Target',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].target',\n },\n {\n title: 'Counters',\n withAddButton: true,\n type: 'section',\n index: 'indexgoal',\n itemTitle: 'Counter {{indexgoal}}',\n itemView: 'card',\n fields: [\n {\n title: 'Counter',\n type: 'textInput',\n name: 'buttons[{{index}}].analyticsEvents[{{index2}}].counters[{{indexgoal}}].includes',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Link',\n index: 'index1',\n withAddButton: true,\n itemTitle: 'Link {{index1}}',\n itemView: 'card',\n fields: [\n {\n type: 'textInput',\n title: 'Text',\n name: 'links[{{index1}}].text',\n },\n {\n type: 'textInput',\n title: 'URL',\n name: 'links[{{index1}}].url',\n },\n {\n type: 'textInput',\n title: 'URL title',\n name: 'links[{{index1}}].urlTitle',\n },\n {\n type: 'select',\n title: 'Style',\n name: 'links[{{index1}}].theme',\n options: [\n {content: 'File-link', value: 'file-link'},\n {content: 'Normal', value: 'normal'},\n {content: 'Back', value: 'back'},\n {content: 'Underline', value: 'underline'},\n ],\n },\n {\n title: 'Target',\n type: 'select',\n name: 'links[{{index1}}].target',\n options: [\n {value: '_blank'},\n {value: '_self'},\n {value: '_parent'},\n {value: '_top'},\n ],\n hasClear: true,\n },\n {\n type: 'section',\n title: 'Analytics tracking',\n withAddButton: true,\n index: 'index2',\n itemTitle: 'Analytics event {{index2}}',\n itemView: 'card',\n fields: [\n {\n title: 'Name',\n type: 'textInput',\n name: 'links[{{index1}}].analyticsEvents[{{index2}}].name',\n },\n {\n title: 'Target',\n type: 'textInput',\n name: 'links[{{index1}}].analyticsEvents[{{index2}}].target',\n },\n {\n title: 'Counters',\n withAddButton: true,\n type: 'section',\n index: 'indexgoal',\n itemTitle: 'Counter {{indexgoal}}',\n itemView: 'card',\n fields: [\n {\n title: 'Counter',\n type: 'textInput',\n name: 'links[{{index1}}].analyticsEvents[{{index2}}].counters[{{indexgoal}}].includes',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'section',\n title: 'Media',\n opened: true,\n fields: [\n {\n title: 'Type',\n name: '_mediaType',\n options: [\n {content: 'Image', value: 'image'},\n {content: 'Video', value: 'video'},\n ],\n type: 'segmentedRadioGroup',\n },\n {\n type: 'text',\n text: 'Light theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'media.light.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'media.light.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'media.light.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'media.light.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n {\n type: 'text',\n text: 'Dark theme',\n when: [\n {\n field: '_mediaType',\n operator: '!==',\n value: undefined,\n },\n ],\n },\n {\n title: 'Desktop',\n type: 'textInput',\n name: 'media.dark.image.desktop',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Tablet',\n type: 'textInput',\n name: 'media.dark.image.tablet',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'Mobile',\n type: 'textInput',\n name: 'media.dark.image.mobile',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'image',\n },\n ],\n },\n {\n title: 'URL',\n type: 'textInput',\n name: 'media.dark.video.src',\n when: [\n {\n field: '_mediaType',\n operator: '===',\n value: 'video',\n },\n ],\n },\n ],\n },\n ] as Fields,\n default: {\n title: 'Lorem ipsum dolor sit',\n description:\n 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n links: [\n {\n url: '#',\n text: 'Learn more',\n theme: 'normal',\n arrow: true,\n },\n ],\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: '#',\n },\n ],\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n },\n ],\n media: {\n light: {\n image: {\n desktop:\n 'https://storage.yandexcloud.net/cloud-www-assets/constructor/main/new/media-01-01.jpg',\n },\n },\n },\n },\n previewImg: icon,\n },\n};\n\nexport default MediaBlockConfig;\n"]}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const generateFormFieldsFromAjv_1 = require("../../form-generator-v2/utils/generateFormFieldsFromAjv.js");
5
5
  const Media_1 = tslib_1.__importDefault(require("./Media.js"));
6
+ const icon_1 = tslib_1.__importDefault(require("./icon.js"));
6
7
  const schema_1 = require("./schema.js");
7
- const icon_svg_1 = tslib_1.__importDefault(require("./icon.svg"));
8
8
  const MediaBlockConfig = {
9
9
  type: 'media-block',
10
10
  component: Media_1.default,
@@ -53,7 +53,7 @@ const MediaBlockConfig = {
53
53
  image: 'https://storage.yandexcloud.net/cloud-www-assets/constructor/main/new/media-01-01.jpg',
54
54
  },
55
55
  },
56
- previewImg: icon_svg_1.default,
56
+ previewImg: icon_1.default,
57
57
  },
58
58
  };
59
59
  exports.default = MediaBlockConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index_deprecated.js","sourceRoot":"../../../../src","sources":["blocks/Media/index_deprecated.ts"],"names":[],"mappings":";;;AAEA,0GAAwG;AAExG,+DAAiC;AACjC,wCAAwD;AAExD,kEAAiC;AAEjC,MAAM,gBAAgB,GAAG;IACrB,IAAI,EAAE,aAAa;IACnB,SAAS,EAAE,eAAU;IACrB,MAAM,EAAE;QACJ,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,IAAA,2DAA+B,EACnC,mBAAgB,CAAC,aAAa,CAAkC,CACnE;QACD,OAAO,EAAE;YACL,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EACP,mNAAmN;YACvN,cAAc,EACV,uGAAuG;YAC3G,KAAK,EAAE;gBACH;oBACI,GAAG,EAAE,GAAG;oBACR,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,QAAQ;oBACf,KAAK,EAAE,IAAI;iBACd;aACJ;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,QAAQ;oBACf,GAAG,EAAE,qBAAqB;iBAC7B;gBACD;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,UAAU;oBACjB,GAAG,EAAE,GAAG;iBACX;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,KAAK,EAAE,mBAAmB;iBAC7B;aACJ;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,uFAAuF;aACjG;SACJ;QACD,UAAU,EAAE,kBAAO;KACtB;CACJ,CAAC;AAEF,kBAAe,gBAAgB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFormFieldsFromAjvSchema} from '../../form-generator-v2/utils/generateFormFieldsFromAjv';\n\nimport MediaBlock from './Media';\nimport {MediaBlock as MediaBlockSchema} from './schema';\n\nimport svgIcon from './icon.svg';\n\nconst MediaBlockConfig = {\n type: 'media-block',\n component: MediaBlock,\n schema: {\n name: 'Media Block',\n group: '@deprecated',\n hidden: true,\n inputs: generateFormFieldsFromAjvSchema(\n MediaBlockSchema['media-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n title: 'Lorem ipsum dolor sit',\n description:\n 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n links: [\n {\n url: '#',\n text: 'Learn more',\n theme: 'normal',\n arrow: true,\n },\n ],\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: '#',\n },\n ],\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n },\n ],\n media: {\n image: 'https://storage.yandexcloud.net/cloud-www-assets/constructor/main/new/media-01-01.jpg',\n },\n },\n previewImg: svgIcon,\n },\n};\n\nexport default MediaBlockConfig;\n"]}
1
+ {"version":3,"file":"index_deprecated.js","sourceRoot":"../../../../src","sources":["blocks/Media/index_deprecated.ts"],"names":[],"mappings":";;;AAEA,0GAAwG;AAExG,+DAAiC;AACjC,6DAA6B;AAC7B,wCAAwD;AAExD,MAAM,gBAAgB,GAAG;IACrB,IAAI,EAAE,aAAa;IACnB,SAAS,EAAE,eAAU;IACrB,MAAM,EAAE;QACJ,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,IAAA,2DAA+B,EACnC,mBAAgB,CAAC,aAAa,CAAkC,CACnE;QACD,OAAO,EAAE;YACL,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EACP,mNAAmN;YACvN,cAAc,EACV,uGAAuG;YAC3G,KAAK,EAAE;gBACH;oBACI,GAAG,EAAE,GAAG;oBACR,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,QAAQ;oBACf,KAAK,EAAE,IAAI;iBACd;aACJ;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,QAAQ;oBACf,GAAG,EAAE,qBAAqB;iBAC7B;gBACD;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,UAAU;oBACjB,GAAG,EAAE,GAAG;iBACX;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,KAAK,EAAE,mBAAmB;iBAC7B;aACJ;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,uFAAuF;aACjG;SACJ;QACD,UAAU,EAAE,cAAO;KACtB;CACJ,CAAC;AAEF,kBAAe,gBAAgB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFormFieldsFromAjvSchema} from '../../form-generator-v2/utils/generateFormFieldsFromAjv';\n\nimport MediaBlock from './Media';\nimport svgIcon from './icon';\nimport {MediaBlock as MediaBlockSchema} from './schema';\n\nconst MediaBlockConfig = {\n type: 'media-block',\n component: MediaBlock,\n schema: {\n name: 'Media Block',\n group: '@deprecated',\n hidden: true,\n inputs: generateFormFieldsFromAjvSchema(\n MediaBlockSchema['media-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n title: 'Lorem ipsum dolor sit',\n description:\n 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n links: [\n {\n url: '#',\n text: 'Learn more',\n theme: 'normal',\n arrow: true,\n },\n ],\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: '#',\n },\n ],\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n },\n ],\n media: {\n image: 'https://storage.yandexcloud.net/cloud-www-assets/constructor/main/new/media-01-01.jpg',\n },\n },\n previewImg: svgIcon,\n },\n};\n\nexport default MediaBlockConfig;\n"]}
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const svg_1 = require("../../utils/svg.js");
4
+ exports.default = (0, svg_1.svgToDataUri)(`<svg width="100" height="50" viewBox="0 0 100 50" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <rect width="100" height="50" rx="7.97674" fill="white"/>
6
+ <rect x="9.11628" y="13" width="19" height="2" rx="0.569767" fill="#262626"/>
7
+ <rect x="9.11628" y="17" width="13" height="2" rx="0.569767" fill="#262626"/>
8
+ <rect x="36.1163" y="13" width="50" height="2" rx="0.569767" fill="#262626"/>
9
+ <rect x="88.8837" y="13" width="2" height="2" rx="0.569767" fill="#262626"/>
10
+ <rect x="36.1163" y="17" width="39" height="2" rx="0.569767" fill="#262626"/>
11
+ <rect x="88.8837" y="17" width="2" height="2" rx="0.569767" fill="#262626"/>
12
+ <rect x="36.1163" y="21" width="44" height="2" rx="0.569767" fill="#262626"/>
13
+ <rect x="88.8837" y="21" width="2" height="2" rx="0.569767" fill="#262626"/>
14
+ <rect x="36.1163" y="25" width="32" height="2" rx="0.569767" fill="#262626"/>
15
+ <rect x="88.8837" y="25" width="2" height="2" rx="0.569767" fill="#262626"/>
16
+ <rect x="36.1163" y="29" width="36" height="2" rx="0.569767" fill="#262626"/>
17
+ <rect x="88.8837" y="29" width="2" height="2" rx="0.569767" fill="#262626"/>
18
+ </svg>`);
19
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"../../../../src","sources":["blocks/Questions/icon.ts"],"names":[],"mappings":";;AAAA,4CAA6C;AAE7C,kBAAe,IAAA,kBAAY,EACvB;;;;;;;;;;;;;;OAcG,CACN,CAAC","sourcesContent":["import {svgToDataUri} from '../../utils/svg';\n\nexport default svgToDataUri(\n `<svg width=\"100\" height=\"50\" viewBox=\"0 0 100 50\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"100\" height=\"50\" rx=\"7.97674\" fill=\"white\"/>\n<rect x=\"9.11628\" y=\"13\" width=\"19\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"9.11628\" y=\"17\" width=\"13\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"36.1163\" y=\"13\" width=\"50\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"88.8837\" y=\"13\" width=\"2\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"36.1163\" y=\"17\" width=\"39\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"88.8837\" y=\"17\" width=\"2\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"36.1163\" y=\"21\" width=\"44\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"88.8837\" y=\"21\" width=\"2\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"36.1163\" y=\"25\" width=\"32\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"88.8837\" y=\"25\" width=\"2\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"36.1163\" y=\"29\" width=\"36\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n<rect x=\"88.8837\" y=\"29\" width=\"2\" height=\"2\" rx=\"0.569767\" fill=\"#262626\"/>\n</svg>`,\n);\n"]}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const generateFormFieldsFromAjv_1 = require("../../form-generator-v2/utils/generateFormFieldsFromAjv.js");
5
5
  const Questions_1 = tslib_1.__importDefault(require("./Questions.js"));
6
+ const icon_1 = tslib_1.__importDefault(require("./icon.js"));
6
7
  const schema_1 = require("./schema.js");
7
- const icon_svg_1 = tslib_1.__importDefault(require("./icon.svg"));
8
8
  const QuestionsBlockConfig = {
9
9
  type: '@gravity-ui/page-constructor/questions-block',
10
10
  component: Questions_1.default,
@@ -46,7 +46,7 @@ const QuestionsBlockConfig = {
46
46
  },
47
47
  ],
48
48
  },
49
- previewImg: icon_svg_1.default,
49
+ previewImg: icon_1.default,
50
50
  },
51
51
  };
52
52
  exports.default = QuestionsBlockConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Questions/index.ts"],"names":[],"mappings":";;;AAGA,0GAAwG;AAExG,uEAAyC;AACzC,wCAAgE;AAEhE,kEAA8B;AAE9B,MAAM,oBAAoB,GAAc;IACpC,IAAI,EAAE,8CAA8C;IACpD,SAAS,EAAE,mBAAc;IACzB,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,qCAAqC;QAC5C,sCAAsC;QACtC,MAAM,EAAE,IAAA,2DAA+B,EACnC,uBAAoB,CAAC,iBAAiB,CAAkC,CAC3E;QACD,OAAO,EAAE;YACL,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,4BAA4B;YAClC,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,UAAU;iBAClB;aACJ;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,eAAe;iBACzB;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,KAAK,EAAE,iBAAiB;oBACxB,IAAI,EAAE,kBAAkB;iBAC3B;aACJ;YACD,KAAK,EAAE;gBACH;oBACI,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,uBAAuB;iBAChC;gBACD;oBACI,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,uBAAuB;iBAChC;aACJ;SACJ;QACD,UAAU,EAAE,kBAAI;KACnB;CACJ,CAAC;AAEF,kBAAe,oBAAoB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFormFieldsFromAjvSchema} from '../../form-generator-v2/utils/generateFormFieldsFromAjv';\n\nimport QuestionsBlock from './Questions';\nimport {QuestionsBlock as QuestionsBlockSchema} from './schema';\n\nimport icon from './icon.svg';\n\nconst QuestionsBlockConfig: BlockData = {\n type: '@gravity-ui/page-constructor/questions-block',\n component: QuestionsBlock,\n schema: {\n name: 'Questions Block',\n group: '@gravity-ui/page-constructor/Blocks',\n // TODO: change to custom block schema\n inputs: generateFormFieldsFromAjvSchema(\n QuestionsBlockSchema['questions-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n type: 'questions-block',\n title: 'Questions Block',\n text: 'Here you can find answers.',\n links: [\n {\n text: 'Report for 2024',\n url: 'file.doc',\n },\n ],\n buttons: [\n {\n text: 'Get more',\n theme: 'outlined-info',\n },\n ],\n list: [\n {\n title: 'Report for 2024',\n text: 'Some advice here',\n },\n ],\n items: [\n {\n title: 'Question 1',\n text: 'Answer for question 1',\n },\n {\n title: 'Question 2',\n text: 'Answer for question 2',\n },\n ],\n },\n previewImg: icon,\n },\n};\n\nexport default QuestionsBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Questions/index.ts"],"names":[],"mappings":";;;AAGA,0GAAwG;AAExG,uEAAyC;AACzC,6DAA0B;AAC1B,wCAAgE;AAEhE,MAAM,oBAAoB,GAAc;IACpC,IAAI,EAAE,8CAA8C;IACpD,SAAS,EAAE,mBAAc;IACzB,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,qCAAqC;QAC5C,sCAAsC;QACtC,MAAM,EAAE,IAAA,2DAA+B,EACnC,uBAAoB,CAAC,iBAAiB,CAAkC,CAC3E;QACD,OAAO,EAAE;YACL,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,4BAA4B;YAClC,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,UAAU;iBAClB;aACJ;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,eAAe;iBACzB;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,KAAK,EAAE,iBAAiB;oBACxB,IAAI,EAAE,kBAAkB;iBAC3B;aACJ;YACD,KAAK,EAAE;gBACH;oBACI,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,uBAAuB;iBAChC;gBACD;oBACI,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,uBAAuB;iBAChC;aACJ;SACJ;QACD,UAAU,EAAE,cAAI;KACnB;CACJ,CAAC;AAEF,kBAAe,oBAAoB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFormFieldsFromAjvSchema} from '../../form-generator-v2/utils/generateFormFieldsFromAjv';\n\nimport QuestionsBlock from './Questions';\nimport icon from './icon';\nimport {QuestionsBlock as QuestionsBlockSchema} from './schema';\n\nconst QuestionsBlockConfig: BlockData = {\n type: '@gravity-ui/page-constructor/questions-block',\n component: QuestionsBlock,\n schema: {\n name: 'Questions Block',\n group: '@gravity-ui/page-constructor/Blocks',\n // TODO: change to custom block schema\n inputs: generateFormFieldsFromAjvSchema(\n QuestionsBlockSchema['questions-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n type: 'questions-block',\n title: 'Questions Block',\n text: 'Here you can find answers.',\n links: [\n {\n text: 'Report for 2024',\n url: 'file.doc',\n },\n ],\n buttons: [\n {\n text: 'Get more',\n theme: 'outlined-info',\n },\n ],\n list: [\n {\n title: 'Report for 2024',\n text: 'Some advice here',\n },\n ],\n items: [\n {\n title: 'Question 1',\n text: 'Answer for question 1',\n },\n {\n title: 'Question 2',\n text: 'Answer for question 2',\n },\n ],\n },\n previewImg: icon,\n },\n};\n\nexport default QuestionsBlockConfig;\n"]}
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const svg_1 = require("../../utils/svg.js");
4
+ exports.default = (0, svg_1.svgToDataUri)(`<svg width="100" height="50" viewBox="0 0 100 50" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <rect width="100" height="50" rx="7.81395" fill="white"/>
6
+ <g filter="url(#filter0_dd_2013_12945)">
7
+ <rect x="8.93024" y="23" width="4" height="4" rx="2" fill="#B0BDD9"/>
8
+ </g>
9
+ <rect x="15.1628" y="10.2906" width="21.845" height="29.4186" rx="3.34884" fill="#C0C8DB"/>
10
+ <rect x="15.1628" y="10.2906" width="21.845" height="14.5116" rx="3.34884" fill="#262626"/>
11
+ <rect x="18.5116" y="28.593" width="15.1473" height="2" rx="0.55814" fill="#262626"/>
12
+ <rect x="18.5116" y="31.7094" width="9" height="2" rx="0.55814" fill="#262626"/>
13
+ <rect x="39.2403" y="10.2906" width="21.845" height="29.4186" rx="3.34884" fill="#C0C8DB"/>
14
+ <rect x="39.2403" y="10.2906" width="21.845" height="14.5116" rx="3.34884" fill="#262626"/>
15
+ <rect x="42.5892" y="28.593" width="15.1473" height="2" rx="0.55814" fill="#262626"/>
16
+ <rect x="42.5892" y="31.7094" width="10" height="2" rx="0.55814" fill="#262626"/>
17
+ <rect x="63.3178" y="10.2906" width="21.845" height="29.4186" rx="3.34884" fill="#C0C8DB"/>
18
+ <rect x="63.3178" y="10.2906" width="21.845" height="14.5116" rx="3.34884" fill="#262626"/>
19
+ <rect x="66.6667" y="28.593" width="15.1473" height="2" rx="0.55814" fill="#262626"/>
20
+ <rect x="66.6667" y="31.7094" width="9" height="2" rx="0.55814" fill="#262626"/>
21
+ <g filter="url(#filter1_dd_2013_12945)">
22
+ <rect x="87.3954" y="23" width="4" height="4" rx="2" fill="#B0BDD9"/>
23
+ </g>
24
+ <defs>
25
+ <filter id="filter0_dd_2013_12945" x="2.23256" y="17.4186" width="17.3953" height="17.3953" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
26
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
27
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
28
+ <feOffset dy="0.55814"/>
29
+ <feGaussianBlur stdDeviation="1.11628"/>
30
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
31
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2013_12945"/>
32
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
33
+ <feOffset dy="1.11628"/>
34
+ <feGaussianBlur stdDeviation="3.34884"/>
35
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
36
+ <feBlend mode="normal" in2="effect1_dropShadow_2013_12945" result="effect2_dropShadow_2013_12945"/>
37
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2013_12945" result="shape"/>
38
+ </filter>
39
+ <filter id="filter1_dd_2013_12945" x="80.6977" y="17.4186" width="17.3953" height="17.3953" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
40
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
41
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
42
+ <feOffset dy="0.55814"/>
43
+ <feGaussianBlur stdDeviation="1.11628"/>
44
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
45
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2013_12945"/>
46
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
47
+ <feOffset dy="1.11628"/>
48
+ <feGaussianBlur stdDeviation="3.34884"/>
49
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
50
+ <feBlend mode="normal" in2="effect1_dropShadow_2013_12945" result="effect2_dropShadow_2013_12945"/>
51
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2013_12945" result="shape"/>
52
+ </filter>
53
+ </defs>
54
+ </svg>`);
55
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"../../../../src","sources":["blocks/Slider/icon.ts"],"names":[],"mappings":";;AAAA,4CAA6C;AAE7C,kBAAe,IAAA,kBAAY,EACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG,CACN,CAAC","sourcesContent":["import {svgToDataUri} from '../../utils/svg';\n\nexport default svgToDataUri(\n `<svg width=\"100\" height=\"50\" viewBox=\"0 0 100 50\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"100\" height=\"50\" rx=\"7.81395\" fill=\"white\"/>\n<g filter=\"url(#filter0_dd_2013_12945)\">\n<rect x=\"8.93024\" y=\"23\" width=\"4\" height=\"4\" rx=\"2\" fill=\"#B0BDD9\"/>\n</g>\n<rect x=\"15.1628\" y=\"10.2906\" width=\"21.845\" height=\"29.4186\" rx=\"3.34884\" fill=\"#C0C8DB\"/>\n<rect x=\"15.1628\" y=\"10.2906\" width=\"21.845\" height=\"14.5116\" rx=\"3.34884\" fill=\"#262626\"/>\n<rect x=\"18.5116\" y=\"28.593\" width=\"15.1473\" height=\"2\" rx=\"0.55814\" fill=\"#262626\"/>\n<rect x=\"18.5116\" y=\"31.7094\" width=\"9\" height=\"2\" rx=\"0.55814\" fill=\"#262626\"/>\n<rect x=\"39.2403\" y=\"10.2906\" width=\"21.845\" height=\"29.4186\" rx=\"3.34884\" fill=\"#C0C8DB\"/>\n<rect x=\"39.2403\" y=\"10.2906\" width=\"21.845\" height=\"14.5116\" rx=\"3.34884\" fill=\"#262626\"/>\n<rect x=\"42.5892\" y=\"28.593\" width=\"15.1473\" height=\"2\" rx=\"0.55814\" fill=\"#262626\"/>\n<rect x=\"42.5892\" y=\"31.7094\" width=\"10\" height=\"2\" rx=\"0.55814\" fill=\"#262626\"/>\n<rect x=\"63.3178\" y=\"10.2906\" width=\"21.845\" height=\"29.4186\" rx=\"3.34884\" fill=\"#C0C8DB\"/>\n<rect x=\"63.3178\" y=\"10.2906\" width=\"21.845\" height=\"14.5116\" rx=\"3.34884\" fill=\"#262626\"/>\n<rect x=\"66.6667\" y=\"28.593\" width=\"15.1473\" height=\"2\" rx=\"0.55814\" fill=\"#262626\"/>\n<rect x=\"66.6667\" y=\"31.7094\" width=\"9\" height=\"2\" rx=\"0.55814\" fill=\"#262626\"/>\n<g filter=\"url(#filter1_dd_2013_12945)\">\n<rect x=\"87.3954\" y=\"23\" width=\"4\" height=\"4\" rx=\"2\" fill=\"#B0BDD9\"/>\n</g>\n<defs>\n<filter id=\"filter0_dd_2013_12945\" x=\"2.23256\" y=\"17.4186\" width=\"17.3953\" height=\"17.3953\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\n<feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\n<feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\n<feOffset dy=\"0.55814\"/>\n<feGaussianBlur stdDeviation=\"1.11628\"/>\n<feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0\"/>\n<feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_2013_12945\"/>\n<feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\n<feOffset dy=\"1.11628\"/>\n<feGaussianBlur stdDeviation=\"3.34884\"/>\n<feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0\"/>\n<feBlend mode=\"normal\" in2=\"effect1_dropShadow_2013_12945\" result=\"effect2_dropShadow_2013_12945\"/>\n<feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect2_dropShadow_2013_12945\" result=\"shape\"/>\n</filter>\n<filter id=\"filter1_dd_2013_12945\" x=\"80.6977\" y=\"17.4186\" width=\"17.3953\" height=\"17.3953\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\n<feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\n<feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\n<feOffset dy=\"0.55814\"/>\n<feGaussianBlur stdDeviation=\"1.11628\"/>\n<feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0\"/>\n<feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_2013_12945\"/>\n<feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\n<feOffset dy=\"1.11628\"/>\n<feGaussianBlur stdDeviation=\"3.34884\"/>\n<feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0\"/>\n<feBlend mode=\"normal\" in2=\"effect1_dropShadow_2013_12945\" result=\"effect2_dropShadow_2013_12945\"/>\n<feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect2_dropShadow_2013_12945\" result=\"shape\"/>\n</filter>\n</defs>\n</svg>`,\n);\n"]}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const generateFormFieldsFromAjv_1 = require("../../form-generator-v2/utils/generateFormFieldsFromAjv.js");
5
5
  const Slider_1 = tslib_1.__importDefault(require("./Slider.js"));
6
+ const icon_1 = tslib_1.__importDefault(require("./icon.js"));
6
7
  const schema_1 = require("./schema.js");
7
- const icon_svg_1 = tslib_1.__importDefault(require("./icon.svg"));
8
8
  const SliderBlockConfig = {
9
9
  type: '@gravity-ui/page-constructor/slider-block',
10
10
  component: Slider_1.default,
@@ -43,7 +43,7 @@ const SliderBlockConfig = {
43
43
  },
44
44
  ],
45
45
  },
46
- previewImg: icon_svg_1.default,
46
+ previewImg: icon_1.default,
47
47
  },
48
48
  };
49
49
  exports.default = SliderBlockConfig;