@starlightcms/react-sdk 1.1.0 → 2.0.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.
Files changed (121) hide show
  1. package/dist/cjs/VisualContent/blocks/{HTML.d.ts → HTML/index.d.ts} +2 -2
  2. package/dist/cjs/VisualContent/blocks/HTML/index.d.ts.map +1 -0
  3. package/dist/cjs/VisualContent/blocks/{HTML.js → HTML/index.js} +5 -2
  4. package/dist/cjs/VisualContent/blocks/HTML/index.js.map +1 -0
  5. package/dist/cjs/VisualContent/blocks/HTML/styles.d.ts +6 -0
  6. package/dist/cjs/VisualContent/blocks/HTML/styles.d.ts.map +1 -0
  7. package/dist/cjs/VisualContent/blocks/HTML/styles.js +13 -0
  8. package/dist/cjs/VisualContent/blocks/HTML/styles.js.map +1 -0
  9. package/dist/cjs/VisualContent/blocks/Header.d.ts.map +1 -1
  10. package/dist/cjs/VisualContent/blocks/Header.js +3 -1
  11. package/dist/cjs/VisualContent/blocks/Header.js.map +1 -1
  12. package/dist/{esm/VisualContent/blocks/Image.d.ts → cjs/VisualContent/blocks/Image/index.d.ts} +2 -2
  13. package/dist/cjs/VisualContent/blocks/Image/index.d.ts.map +1 -0
  14. package/dist/cjs/VisualContent/blocks/{Image.js → Image/index.js} +14 -11
  15. package/dist/cjs/VisualContent/blocks/Image/index.js.map +1 -0
  16. package/dist/cjs/VisualContent/blocks/Image/styles.d.ts +18 -0
  17. package/dist/cjs/VisualContent/blocks/Image/styles.d.ts.map +1 -0
  18. package/dist/cjs/VisualContent/blocks/Image/styles.js +31 -0
  19. package/dist/cjs/VisualContent/blocks/Image/styles.js.map +1 -0
  20. package/dist/{esm/VisualContent/blocks/List.d.ts → cjs/VisualContent/blocks/List/index.d.ts} +2 -2
  21. package/dist/cjs/VisualContent/blocks/List/index.d.ts.map +1 -0
  22. package/dist/cjs/VisualContent/blocks/{List.js → List/index.js} +6 -3
  23. package/dist/cjs/VisualContent/blocks/List/index.js.map +1 -0
  24. package/dist/cjs/VisualContent/blocks/List/styles.d.ts +6 -0
  25. package/dist/cjs/VisualContent/blocks/List/styles.d.ts.map +1 -0
  26. package/dist/cjs/VisualContent/blocks/List/styles.js +21 -0
  27. package/dist/cjs/VisualContent/blocks/List/styles.js.map +1 -0
  28. package/dist/cjs/VisualContent/blocks/Paragraph.d.ts +1 -1
  29. package/dist/cjs/VisualContent/blocks/Paragraph.d.ts.map +1 -1
  30. package/dist/cjs/VisualContent/blocks/Paragraph.js +6 -3
  31. package/dist/cjs/VisualContent/blocks/Paragraph.js.map +1 -1
  32. package/dist/cjs/VisualContent/blocks/Quote.d.ts +1 -1
  33. package/dist/cjs/VisualContent/blocks/Quote.d.ts.map +1 -1
  34. package/dist/cjs/VisualContent/blocks/Quote.js +3 -1
  35. package/dist/cjs/VisualContent/blocks/Quote.js.map +1 -1
  36. package/dist/cjs/VisualContent/blocks/Video/index.d.ts +16 -0
  37. package/dist/cjs/VisualContent/blocks/Video/index.d.ts.map +1 -0
  38. package/dist/cjs/VisualContent/blocks/Video/index.js +29 -0
  39. package/dist/cjs/VisualContent/blocks/Video/index.js.map +1 -0
  40. package/dist/cjs/VisualContent/blocks/Video/styles.d.ts +14 -0
  41. package/dist/cjs/VisualContent/blocks/Video/styles.d.ts.map +1 -0
  42. package/dist/cjs/VisualContent/blocks/Video/styles.js +41 -0
  43. package/dist/cjs/VisualContent/blocks/Video/styles.js.map +1 -0
  44. package/dist/cjs/VisualContent/index.d.ts +3 -3
  45. package/dist/cjs/VisualContent/index.d.ts.map +1 -1
  46. package/dist/cjs/VisualContent/index.js +9 -7
  47. package/dist/cjs/VisualContent/index.js.map +1 -1
  48. package/dist/cjs/VisualContent/styles.d.ts +12 -12
  49. package/dist/cjs/VisualContent/styles.d.ts.map +1 -1
  50. package/dist/cjs/VisualContent/styles.js +81 -42
  51. package/dist/cjs/VisualContent/styles.js.map +1 -1
  52. package/dist/cjs/VisualContent/types.d.ts +2 -1
  53. package/dist/cjs/VisualContent/types.d.ts.map +1 -1
  54. package/dist/cjs/VisualContent/types.js.map +1 -1
  55. package/dist/esm/VisualContent/blocks/{HTML.d.ts → HTML/index.d.ts} +2 -2
  56. package/dist/esm/VisualContent/blocks/HTML/index.d.ts.map +1 -0
  57. package/dist/esm/VisualContent/blocks/{HTML.js → HTML/index.js} +5 -2
  58. package/dist/esm/VisualContent/blocks/HTML/index.js.map +1 -0
  59. package/dist/esm/VisualContent/blocks/HTML/styles.d.ts +6 -0
  60. package/dist/esm/VisualContent/blocks/HTML/styles.d.ts.map +1 -0
  61. package/dist/esm/VisualContent/blocks/HTML/styles.js +7 -0
  62. package/dist/esm/VisualContent/blocks/HTML/styles.js.map +1 -0
  63. package/dist/esm/VisualContent/blocks/Header.d.ts.map +1 -1
  64. package/dist/esm/VisualContent/blocks/Header.js +3 -1
  65. package/dist/esm/VisualContent/blocks/Header.js.map +1 -1
  66. package/dist/{cjs/VisualContent/blocks/Image.d.ts → esm/VisualContent/blocks/Image/index.d.ts} +2 -2
  67. package/dist/esm/VisualContent/blocks/Image/index.d.ts.map +1 -0
  68. package/dist/esm/VisualContent/blocks/{Image.js → Image/index.js} +14 -11
  69. package/dist/esm/VisualContent/blocks/Image/index.js.map +1 -0
  70. package/dist/esm/VisualContent/blocks/Image/styles.d.ts +18 -0
  71. package/dist/esm/VisualContent/blocks/Image/styles.d.ts.map +1 -0
  72. package/dist/esm/VisualContent/blocks/Image/styles.js +25 -0
  73. package/dist/esm/VisualContent/blocks/Image/styles.js.map +1 -0
  74. package/dist/{cjs/VisualContent/blocks/List.d.ts → esm/VisualContent/blocks/List/index.d.ts} +2 -2
  75. package/dist/esm/VisualContent/blocks/List/index.d.ts.map +1 -0
  76. package/dist/esm/VisualContent/blocks/{List.js → List/index.js} +6 -3
  77. package/dist/esm/VisualContent/blocks/List/index.js.map +1 -0
  78. package/dist/esm/VisualContent/blocks/List/styles.d.ts +6 -0
  79. package/dist/esm/VisualContent/blocks/List/styles.d.ts.map +1 -0
  80. package/dist/esm/VisualContent/blocks/List/styles.js +15 -0
  81. package/dist/esm/VisualContent/blocks/List/styles.js.map +1 -0
  82. package/dist/esm/VisualContent/blocks/Paragraph.d.ts +1 -1
  83. package/dist/esm/VisualContent/blocks/Paragraph.d.ts.map +1 -1
  84. package/dist/esm/VisualContent/blocks/Paragraph.js +6 -3
  85. package/dist/esm/VisualContent/blocks/Paragraph.js.map +1 -1
  86. package/dist/esm/VisualContent/blocks/Quote.d.ts +1 -1
  87. package/dist/esm/VisualContent/blocks/Quote.d.ts.map +1 -1
  88. package/dist/esm/VisualContent/blocks/Quote.js +3 -1
  89. package/dist/esm/VisualContent/blocks/Quote.js.map +1 -1
  90. package/dist/esm/VisualContent/blocks/Video/index.d.ts +16 -0
  91. package/dist/esm/VisualContent/blocks/Video/index.d.ts.map +1 -0
  92. package/dist/esm/VisualContent/blocks/Video/index.js +24 -0
  93. package/dist/esm/VisualContent/blocks/Video/index.js.map +1 -0
  94. package/dist/esm/VisualContent/blocks/Video/styles.d.ts +14 -0
  95. package/dist/esm/VisualContent/blocks/Video/styles.d.ts.map +1 -0
  96. package/dist/esm/VisualContent/blocks/Video/styles.js +35 -0
  97. package/dist/esm/VisualContent/blocks/Video/styles.js.map +1 -0
  98. package/dist/esm/VisualContent/index.d.ts +3 -3
  99. package/dist/esm/VisualContent/index.d.ts.map +1 -1
  100. package/dist/esm/VisualContent/index.js +7 -5
  101. package/dist/esm/VisualContent/index.js.map +1 -1
  102. package/dist/esm/VisualContent/styles.d.ts +12 -12
  103. package/dist/esm/VisualContent/styles.d.ts.map +1 -1
  104. package/dist/esm/VisualContent/styles.js +80 -40
  105. package/dist/esm/VisualContent/styles.js.map +1 -1
  106. package/dist/esm/VisualContent/types.d.ts +2 -1
  107. package/dist/esm/VisualContent/types.d.ts.map +1 -1
  108. package/dist/esm/VisualContent/types.js.map +1 -1
  109. package/package.json +4 -2
  110. package/dist/cjs/VisualContent/blocks/HTML.d.ts.map +0 -1
  111. package/dist/cjs/VisualContent/blocks/HTML.js.map +0 -1
  112. package/dist/cjs/VisualContent/blocks/Image.d.ts.map +0 -1
  113. package/dist/cjs/VisualContent/blocks/Image.js.map +0 -1
  114. package/dist/cjs/VisualContent/blocks/List.d.ts.map +0 -1
  115. package/dist/cjs/VisualContent/blocks/List.js.map +0 -1
  116. package/dist/esm/VisualContent/blocks/HTML.d.ts.map +0 -1
  117. package/dist/esm/VisualContent/blocks/HTML.js.map +0 -1
  118. package/dist/esm/VisualContent/blocks/Image.d.ts.map +0 -1
  119. package/dist/esm/VisualContent/blocks/Image.js.map +0 -1
  120. package/dist/esm/VisualContent/blocks/List.d.ts.map +0 -1
  121. package/dist/esm/VisualContent/blocks/List.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
1
  import { HTMLBlock, VisualDataBlock } from '@starlightcms/js-sdk';
2
+ import { FC } from 'react';
3
3
  /**
4
4
  * VisualContent renderer component that renders `raw` type blocks
5
5
  * as inline HTML inside a `div` element.
@@ -13,4 +13,4 @@ import { HTMLBlock, VisualDataBlock } from '@starlightcms/js-sdk';
13
13
  */
14
14
  declare const HTML: FC<VisualDataBlock<HTMLBlock>>;
15
15
  export default HTML;
16
- //# sourceMappingURL=HTML.d.ts.map
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGjE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,SAAS,CAAC,CAMxC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styles_1 = require("../../styles");
7
+ const styles_2 = require("./styles");
6
8
  const react_1 = __importDefault(require("react"));
7
9
  /**
8
10
  * VisualContent renderer component that renders `raw` type blocks
@@ -16,7 +18,8 @@ const react_1 = __importDefault(require("react"));
16
18
  * @group VisualContent Renderers
17
19
  */
18
20
  const HTML = ({ data }) => {
19
- return (react_1.default.createElement("div", { className: "sl-content-block sl-html test", dangerouslySetInnerHTML: { __html: data.html } }));
21
+ return (react_1.default.createElement(styles_1.BlockWrapper, { className: "sl-content-block sl-html" },
22
+ react_1.default.createElement(styles_2.HTMLWrapper, { dangerouslySetInnerHTML: { __html: data.html } })));
20
23
  };
21
24
  exports.default = HTML;
22
- //# sourceMappingURL=HTML.js.map
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/index.tsx"],"names":[],"mappings":";;;;;AACA,yCAA2C;AAC3C,qCAAsC;AACtC,kDAAiC;AAEjC;;;;;;;;;;GAUG;AACH,MAAM,IAAI,GAAmC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACxD,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAC,0BAA0B;QAChD,8BAAC,oBAAW,IAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,GAAI,CAClD,CAChB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,IAAI,CAAA","sourcesContent":["import { HTMLBlock, VisualDataBlock } from '@starlightcms/js-sdk'\nimport { BlockWrapper } from '../../styles'\nimport { HTMLWrapper } from './styles'\nimport React, { FC } from 'react'\n\n/**\n * VisualContent renderer component that renders `raw` type blocks\n * as inline HTML inside a `div` element.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link HTMLBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst HTML: FC<VisualDataBlock<HTMLBlock>> = ({ data }) => {\n return (\n <BlockWrapper className=\"sl-content-block sl-html\">\n <HTMLWrapper dangerouslySetInnerHTML={{ __html: data.html }} />\n </BlockWrapper>\n )\n}\n\nexport default HTML\n"]}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const HTMLWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;yGAIvB,CAAA"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.HTMLWrapper = void 0;
7
+ const styled_1 = __importDefault(require("@emotion/styled"));
8
+ exports.HTMLWrapper = styled_1.default.div `
9
+ > * {
10
+ max-width: 100%;
11
+ }
12
+ `;
13
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/styles.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAoC;AAEvB,QAAA,WAAW,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;CAIpC,CAAA","sourcesContent":["import styled from '@emotion/styled'\n\nexport const HTMLWrapper = styled.div`\n > * {\n max-width: 100%;\n }\n`\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEnE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,aAAc,gBAAgB,WAAW,CAAC,KAAG,WASxD,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAInE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,aAAc,gBAAgB,WAAW,CAAC,KAAG,WAQxD,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styles_1 = require("../styles");
6
7
  const react_1 = __importDefault(require("react"));
7
8
  /**
8
9
  * VisualContent renderer component that renders `header` type blocks
@@ -17,7 +18,8 @@ const react_1 = __importDefault(require("react"));
17
18
  */
18
19
  const Header = ({ data }) => {
19
20
  const HeaderComponent = `h${data.level}`;
20
- return (react_1.default.createElement(HeaderComponent, { className: "sl-content-block sl-header", dangerouslySetInnerHTML: { __html: data.text } }));
21
+ return (react_1.default.createElement(styles_1.BlockWrapper, { className: "sl-content-block sl-header" },
22
+ react_1.default.createElement(HeaderComponent, { dangerouslySetInnerHTML: { __html: data.text } })));
21
23
  };
22
24
  exports.default = Header;
23
25
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Header.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AAGzB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAgC,EAAe,EAAE;IACrE,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,KAAK,EAAU,CAAA;IAEhD,OAAO,CACL,8BAAC,eAAe,IACd,SAAS,EAAC,4BAA4B,EACtC,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,GAC9C,CACH,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,MAAM,CAAA","sourcesContent":["import React from 'react'\nimport { HeaderBlock, VisualDataBlock } from '@starlightcms/js-sdk'\n\n/**\n * VisualContent renderer component that renders `header` type blocks\n * as HTML heading elements, like `<h1>`, `<h2>`, and so on.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link HeaderBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst Header = ({ data }: VisualDataBlock<HeaderBlock>): JSX.Element => {\n const HeaderComponent = `h${data.level}` as 'h1'\n\n return (\n <HeaderComponent\n className=\"sl-content-block sl-header\"\n dangerouslySetInnerHTML={{ __html: data.text }}\n />\n )\n}\n\nexport default Header\n"]}
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Header.tsx"],"names":[],"mappings":";;;;;AACA,sCAAwC;AACxC,kDAAyB;AAEzB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAgC,EAAe,EAAE;IACrE,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,KAAK,EAAU,CAAA;IAEhD,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAC,4BAA4B;QAClD,8BAAC,eAAe,IAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,GAAI,CACtD,CAChB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,MAAM,CAAA","sourcesContent":["import { HeaderBlock, VisualDataBlock } from '@starlightcms/js-sdk'\nimport { BlockWrapper } from '../styles'\nimport React from 'react'\n\n/**\n * VisualContent renderer component that renders `header` type blocks\n * as HTML heading elements, like `<h1>`, `<h2>`, and so on.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link HeaderBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst Header = ({ data }: VisualDataBlock<HeaderBlock>): JSX.Element => {\n const HeaderComponent = `h${data.level}` as 'h1'\n\n return (\n <BlockWrapper className=\"sl-content-block sl-header\">\n <HeaderComponent dangerouslySetInnerHTML={{ __html: data.text }} />\n </BlockWrapper>\n )\n}\n\nexport default Header\n"]}
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
1
  import { ImageBlock, VisualDataBlock } from '@starlightcms/js-sdk';
2
+ import { FC } from 'react';
3
3
  /**
4
4
  * Type used by {@link ImageComponent} to accept a `sizes` prop.
5
5
  */
@@ -25,4 +25,4 @@ export declare type ImageOptions = {
25
25
  */
26
26
  declare const Image: FC<VisualDataBlock<ImageBlock> & ImageOptions>;
27
27
  export default Image;
28
- //# sourceMappingURL=Image.d.ts.map
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Image/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAc,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAA;AAItD;;GAEG;AACH,oBAAY,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,YAAY,CAoDzD,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -24,6 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  const react_1 = __importStar(require("react"));
27
+ const styles_1 = require("./styles");
28
+ const styles_2 = require("../../styles");
27
29
  /**
28
30
  * VisualContent renderer component that renders `image` type blocks
29
31
  * as a responsive image along with its caption (if defined). Optionally
@@ -42,23 +44,24 @@ const react_1 = __importStar(require("react"));
42
44
  * @group VisualContent Renderers
43
45
  */
44
46
  const Image = ({ data, sizes = '(max-width: 480px) 90vw, 70vw', }) => {
45
- const { url, files, alt = '', caption, href } = data;
47
+ const { url, files, alt = '', caption, width, href } = data;
46
48
  const [target, setTarget] = (0, react_1.useState)('_self');
47
49
  const [srcSet, setSrcSet] = (0, react_1.useState)('');
50
+ const widthType = ['auto', 'justify', 'max'].includes(width) ? width : 'fixed';
48
51
  (0, react_1.useEffect)(() => {
49
52
  if (!href)
50
53
  return;
51
54
  setTarget(new URL(href).origin === window.location.origin ? '_self' : '_blank');
52
55
  }, [href]);
53
- (0, react_1.useEffect)(() => {
54
- if (!files || !files.length)
55
- return;
56
- setSrcSet(files.map((file) => `${file.url} ${file.width}w`).join(', '));
57
- }, [files]);
58
- return (react_1.default.createElement("figure", null,
59
- href ? (react_1.default.createElement("a", { href: href, target: target },
60
- react_1.default.createElement("img", { className: "sl-content-block sl-image", src: url, alt: alt, srcSet: srcSet, sizes: srcSet ? sizes : undefined }))) : (react_1.default.createElement("img", { className: "sl-content-block sl-image", src: url, alt: alt, srcSet: srcSet, sizes: srcSet ? sizes : undefined })),
61
- caption && react_1.default.createElement("figcaption", { dangerouslySetInnerHTML: { __html: caption } })));
56
+ // useEffect(() => {
57
+ // if (!files || !files.length) return
58
+ // setSrcSet(files.map((file) => `${file.url} ${file.width}w`).join(', '))
59
+ // }, [files])
60
+ return (react_1.default.createElement(styles_2.BlockWrapper, { className: `sl-content-block sl-image sl-width-${widthType}` },
61
+ react_1.default.createElement(styles_1.ImageWrapper, null,
62
+ href ? (react_1.default.createElement("a", { href: href, target: target },
63
+ react_1.default.createElement(styles_1.SelectedImage, { width: width, src: url, alt: alt, srcSet: srcSet, sizes: srcSet ? sizes : undefined }))) : (react_1.default.createElement(styles_1.SelectedImage, { width: width, src: url, alt: alt, srcSet: srcSet, sizes: srcSet ? sizes : undefined })),
64
+ caption && (react_1.default.createElement("figcaption", { dangerouslySetInnerHTML: { __html: caption } })))));
62
65
  };
63
66
  exports.default = Image;
64
- //# sourceMappingURL=Image.js.map
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Image/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAsD;AACtD,qCAAsD;AACtD,yCAA2C;AAS3C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,KAAK,GAAmD,CAAC,EAC7D,IAAI,EACJ,KAAK,GAAG,+BAA+B,GACxC,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IAC3D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,CAAA;IAC7C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAA;IAExC,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAA;IAE9E,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,IAAI;YAAE,OAAM;QAEjB,SAAS,CACP,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CACrE,CAAA;IACH,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAEV,oBAAoB;IACpB,wCAAwC;IAExC,4EAA4E;IAC5E,cAAc;IAEd,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAE,sCAAsC,SAAS,EAAE;QACxE,8BAAC,qBAAY;YACV,IAAI,CAAC,CAAC,CAAC,CACN,qCAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM;gBAC3B,8BAAC,sBAAa,IACZ,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,GACjC,CACA,CACL,CAAC,CAAC,CAAC,CACF,8BAAC,sBAAa,IACZ,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,GACjC,CACH;YACA,OAAO,IAAI,CACV,8CAAY,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,CAC7D,CACY,CACF,CAChB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,KAAK,CAAA","sourcesContent":["import { ImageBlock, VisualDataBlock } from '@starlightcms/js-sdk'\nimport React, { FC, useEffect, useState } from 'react'\nimport { ImageWrapper, SelectedImage } from './styles'\nimport { BlockWrapper } from '../../styles'\n\n/**\n * Type used by {@link ImageComponent} to accept a `sizes` prop.\n */\nexport type ImageOptions = {\n sizes?: string\n}\n\n/**\n * VisualContent renderer component that renders `image` type blocks\n * as a responsive image along with its caption (if defined). Optionally\n * wraps the image in an anchor if a link is defined in the content.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * This component also supports an optional `sizes` prop to provide better image\n * responsiveness, see {@doclink components/VisualContent/#responsive-images | the guide page on responsive images}\n * to learn more.\n *\n * @param props VisualDataBlock object. See {@link ImageBlock} to learn the\n * type of data this component receives. Also accepts\n * an optional `sizes` string prop.\n * @group VisualContent Renderers\n */\nconst Image: FC<VisualDataBlock<ImageBlock> & ImageOptions> = ({\n data,\n sizes = '(max-width: 480px) 90vw, 70vw',\n}) => {\n const { url, files, alt = '', caption, width, href } = data\n const [target, setTarget] = useState('_self')\n const [srcSet, setSrcSet] = useState('')\n\n const widthType = ['auto', 'justify', 'max'].includes(width) ? width : 'fixed'\n\n useEffect(() => {\n if (!href) return\n\n setTarget(\n new URL(href).origin === window.location.origin ? '_self' : '_blank'\n )\n }, [href])\n\n // useEffect(() => {\n // if (!files || !files.length) return\n\n // setSrcSet(files.map((file) => `${file.url} ${file.width}w`).join(', '))\n // }, [files])\n\n return (\n <BlockWrapper className={`sl-content-block sl-image sl-width-${widthType}`}>\n <ImageWrapper>\n {href ? (\n <a href={href} target={target}>\n <SelectedImage\n width={width}\n src={url}\n alt={alt}\n srcSet={srcSet}\n sizes={srcSet ? sizes : undefined}\n />\n </a>\n ) : (\n <SelectedImage\n width={width}\n src={url}\n alt={alt}\n srcSet={srcSet}\n sizes={srcSet ? sizes : undefined}\n />\n )}\n {caption && (\n <figcaption dangerouslySetInnerHTML={{ __html: caption }} />\n )}\n </ImageWrapper>\n </BlockWrapper>\n )\n}\n\nexport default Image\n"]}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ export declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
6
+ children?: import("react").ReactNode;
7
+ } & {
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ }, {}, {}>;
10
+ declare type ImageProps = {
11
+ width: string;
12
+ };
13
+ export declare const SelectedImage: import("@emotion/styled").StyledComponent<{
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ } & ImageProps, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
17
+ export {};
18
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Image/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,YAAY;;;;;;;UAExB,CAAA;AAED,aAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,aAAa;;;6HAkBzB,CAAA"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SelectedImage = exports.ImageWrapper = void 0;
7
+ const styles_1 = require("../../styles");
8
+ const styled_1 = __importDefault(require("@emotion/styled"));
9
+ exports.ImageWrapper = (0, styled_1.default)(styles_1.FigureWrapper) `
10
+ margin: 1em auto;
11
+ `;
12
+ exports.SelectedImage = styled_1.default.img `
13
+ display: block;
14
+ margin: auto;
15
+ object-fit: cover;
16
+
17
+ max-width: 100%;
18
+
19
+ width: ${({ width }) => {
20
+ switch (width) {
21
+ case 'auto':
22
+ return 'initial';
23
+ case 'justify':
24
+ case 'max':
25
+ return '100%';
26
+ default:
27
+ return width;
28
+ }
29
+ }};
30
+ `;
31
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Image/styles.ts"],"names":[],"mappings":";;;;;;AAAA,yCAA4C;AAC5C,6DAAoC;AAEvB,QAAA,YAAY,GAAG,IAAA,gBAAM,EAAC,sBAAa,CAAC,CAAA;;CAEhD,CAAA;AAMY,QAAA,aAAa,GAAG,gBAAM,CAAC,GAAG,CAAY;;;;;;;WAOxC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACrB,QAAQ,KAAK,EAAE;QACb,KAAK,MAAM;YACT,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC;QACf,KAAK,KAAK;YACR,OAAO,MAAM,CAAA;QACf;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC;CACF,CAAA","sourcesContent":["import { FigureWrapper } from '../../styles'\nimport styled from '@emotion/styled'\n\nexport const ImageWrapper = styled(FigureWrapper)`\n margin: 1em auto;\n`\n\ntype ImageProps = {\n width: string\n}\n\nexport const SelectedImage = styled.img<ImageProps>`\n display: block;\n margin: auto;\n object-fit: cover;\n\n max-width: 100%;\n\n width: ${({ width }) => {\n switch (width) {\n case 'auto':\n return 'initial'\n case 'justify':\n case 'max':\n return '100%'\n default:\n return width\n }\n }};\n`\n"]}
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
1
  import { ListBlock, VisualDataBlock } from '@starlightcms/js-sdk';
2
+ import { FC } from 'react';
3
3
  /**
4
4
  * VisualContent renderer component that renders `list` type blocks
5
5
  * as `<ul>` or `<ol>` elements, depending on the list style.
@@ -13,4 +13,4 @@ import { ListBlock, VisualDataBlock } from '@starlightcms/js-sdk';
13
13
  */
14
14
  declare const List: FC<VisualDataBlock<ListBlock>>;
15
15
  export default List;
16
- //# sourceMappingURL=List.d.ts.map
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAG3E,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAuBjC;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,SAAS,CAAC,CAYxC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styles_1 = require("../../styles");
7
+ const styles_2 = require("./styles");
6
8
  const react_1 = __importDefault(require("react"));
7
9
  const SubList = ({ item, Wrapper }) => {
8
10
  return (react_1.default.createElement("li", null,
@@ -22,8 +24,9 @@ const SubList = ({ item, Wrapper }) => {
22
24
  * @group VisualContent Renderers
23
25
  */
24
26
  const List = ({ data }) => {
25
- const ListWrapper = data.style === 'ordered' ? 'ol' : 'ul';
26
- return (react_1.default.createElement(ListWrapper, { className: "sl-content-block sl-list sl-list__root" }, data.items.map((item, index) => (react_1.default.createElement(SubList, { key: index, item: item, Wrapper: ListWrapper })))));
27
+ const listElement = data.style === 'ordered' ? 'ol' : 'ul';
28
+ return (react_1.default.createElement(styles_1.BlockWrapper, { className: "sl-content-block sl-list" },
29
+ react_1.default.createElement(styles_2.ListWrapper, { as: listElement, className: "sl-list__root" }, data.items.map((item, index) => (react_1.default.createElement(SubList, { key: index, item: item, Wrapper: listElement }))))));
27
30
  };
28
31
  exports.default = List;
29
- //# sourceMappingURL=List.js.map
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/List/index.tsx"],"names":[],"mappings":";;;;;AACA,yCAA2C;AAC3C,qCAAsC;AACtC,kDAAiC;AAOjC,MAAM,OAAO,GAAqB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IACtD,OAAO,CACL;QACE,wCAAM,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,GAAI;QAC1D,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACjC,8BAAC,OAAO,QACL,IAAI,CAAC,KAAK;YACT,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CACjC,8BAAC,OAAO,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAI,CACzD,CAAC,CACI,CACX,CAAC,CAAC,CAAC,IAAI,CACL,CACN,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;GAUG;AACH,MAAM,IAAI,GAAmC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACxD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;IAE1D,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAC,0BAA0B;QAChD,8BAAC,oBAAW,IAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAC,eAAe,IACpD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/B,8BAAC,OAAO,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,GAAI,CAC1D,CAAC,CACU,CACD,CAChB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,IAAI,CAAA","sourcesContent":["import { ListBlock, ListItem, VisualDataBlock } from '@starlightcms/js-sdk'\nimport { BlockWrapper } from '../../styles'\nimport { ListWrapper } from './styles'\nimport React, { FC } from 'react'\n\ntype SubListProps = {\n item: ListItem\n Wrapper: 'ul' | 'ol'\n}\n\nconst SubList: FC<SubListProps> = ({ item, Wrapper }) => {\n return (\n <li>\n <span dangerouslySetInnerHTML={{ __html: item.content }} />\n {item.items && item.items.length ? (\n <Wrapper>\n {item.items &&\n item.items.map((subItem, index) => (\n <SubList key={index} item={subItem} Wrapper={Wrapper} />\n ))}\n </Wrapper>\n ) : null}\n </li>\n )\n}\n\n/**\n * VisualContent renderer component that renders `list` type blocks\n * as `<ul>` or `<ol>` elements, depending on the list style.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link ListBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst List: FC<VisualDataBlock<ListBlock>> = ({ data }) => {\n const listElement = data.style === 'ordered' ? 'ol' : 'ul'\n\n return (\n <BlockWrapper className=\"sl-content-block sl-list\">\n <ListWrapper as={listElement} className=\"sl-list__root\">\n {data.items.map((item, index) => (\n <SubList key={index} item={item} Wrapper={listElement} />\n ))}\n </ListWrapper>\n </BlockWrapper>\n )\n}\n\nexport default List\n"]}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
6
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/List/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;6GAYvB,CAAA"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ListWrapper = void 0;
7
+ const styled_1 = __importDefault(require("@emotion/styled"));
8
+ exports.ListWrapper = styled_1.default.ul `
9
+ list-style: none;
10
+ padding-left: 1em;
11
+
12
+ > li {
13
+ margin: 0.5em 0;
14
+
15
+ &::before {
16
+ content: '•';
17
+ margin-right: 0.5em;
18
+ }
19
+ }
20
+ `;
21
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/List/styles.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAoC;AAEvB,QAAA,WAAW,GAAG,gBAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;CAYnC,CAAA","sourcesContent":["import styled from '@emotion/styled'\n\nexport const ListWrapper = styled.ul`\n list-style: none;\n padding-left: 1em;\n\n > li {\n margin: 0.5em 0;\n\n &::before {\n content: '•';\n margin-right: 0.5em;\n }\n }\n`\n"]}
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
1
  import { ParagraphBlock, VisualDataBlock } from '@starlightcms/js-sdk';
2
+ import { FC } from 'react';
3
3
  /**
4
4
  * VisualContent renderer component that renders `paragraph` type blocks
5
5
  * as `<p>` elements. Empty paragraph blocks (generally used to break
@@ -1 +1 @@
1
- {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtE;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC,cAAc,CAAC,CAclD,CAAA;AAED,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC,cAAc,CAAC,CAelD,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styles_1 = require("../styles");
6
7
  const react_1 = __importDefault(require("react"));
7
8
  /**
8
9
  * VisualContent renderer component that renders `paragraph` type blocks
@@ -18,9 +19,11 @@ const react_1 = __importDefault(require("react"));
18
19
  */
19
20
  const Paragraph = ({ data }) => {
20
21
  if (!data.text)
21
- return (react_1.default.createElement("p", { className: "sl-content-block sl-paragraph empty", "aria-hidden": true },
22
- react_1.default.createElement("br", null)));
23
- return (react_1.default.createElement("p", { className: "sl-content-block sl-paragraph", dangerouslySetInnerHTML: { __html: data.text } }));
22
+ return (react_1.default.createElement(styles_1.BlockWrapper, { className: "sl-content-block sl-paragraph empty", "aria-hidden": true },
23
+ react_1.default.createElement("p", null,
24
+ react_1.default.createElement("br", null))));
25
+ return (react_1.default.createElement(styles_1.BlockWrapper, { className: "sl-content-block sl-paragraph" },
26
+ react_1.default.createElement("p", { dangerouslySetInnerHTML: { __html: data.text } })));
24
27
  };
25
28
  exports.default = Paragraph;
26
29
  //# sourceMappingURL=Paragraph.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Paragraph.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAiC;AAGjC;;;;;;;;;;;GAWG;AACH,MAAM,SAAS,GAAwC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAClE,IAAI,CAAC,IAAI,CAAC,IAAI;QACZ,OAAO,CACL,qCAAG,SAAS,EAAC,qCAAqC;YAChD,yCAAM,CACJ,CACL,CAAA;IAEH,OAAO,CACL,qCACE,SAAS,EAAC,+BAA+B,EACzC,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,GAC9C,CACH,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,SAAS,CAAA","sourcesContent":["import React, { FC } from 'react'\nimport { ParagraphBlock, VisualDataBlock } from '@starlightcms/js-sdk'\n\n/**\n * VisualContent renderer component that renders `paragraph` type blocks\n * as `<p>` elements. Empty paragraph blocks (generally used to break\n * lines) will have an `empty` class added to them.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link ParagraphBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst Paragraph: FC<VisualDataBlock<ParagraphBlock>> = ({ data }) => {\n if (!data.text)\n return (\n <p className=\"sl-content-block sl-paragraph empty\" aria-hidden>\n <br />\n </p>\n )\n\n return (\n <p\n className=\"sl-content-block sl-paragraph\"\n dangerouslySetInnerHTML={{ __html: data.text }}\n />\n )\n}\n\nexport default Paragraph\n"]}
1
+ {"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Paragraph.tsx"],"names":[],"mappings":";;;;;AACA,sCAAwC;AACxC,kDAAiC;AAEjC;;;;;;;;;;;GAWG;AACH,MAAM,SAAS,GAAwC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAClE,IAAI,CAAC,IAAI,CAAC,IAAI;QACZ,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAC,qCAAqC;YAC3D;gBACE,yCAAM,CACJ,CACS,CAChB,CAAA;IAEH,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAC,+BAA+B;QACrD,qCAAG,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,GAAI,CACxC,CAChB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,SAAS,CAAA","sourcesContent":["import { ParagraphBlock, VisualDataBlock } from '@starlightcms/js-sdk'\nimport { BlockWrapper } from '../styles'\nimport React, { FC } from 'react'\n\n/**\n * VisualContent renderer component that renders `paragraph` type blocks\n * as `<p>` elements. Empty paragraph blocks (generally used to break\n * lines) will have an `empty` class added to them.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link ParagraphBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst Paragraph: FC<VisualDataBlock<ParagraphBlock>> = ({ data }) => {\n if (!data.text)\n return (\n <BlockWrapper className=\"sl-content-block sl-paragraph empty\" aria-hidden>\n <p>\n <br />\n </p>\n </BlockWrapper>\n )\n\n return (\n <BlockWrapper className=\"sl-content-block sl-paragraph\">\n <p dangerouslySetInnerHTML={{ __html: data.text }} />\n </BlockWrapper>\n )\n}\n\nexport default Paragraph\n"]}
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
1
  import { QuoteBlock, VisualDataBlock } from '@starlightcms/js-sdk';
2
+ import { FC } from 'react';
3
3
  /**
4
4
  * VisualContent renderer component that renders `quote` type blocks
5
5
  * as `<blockquote>` elements.
@@ -1 +1 @@
1
- {"version":3,"file":"Quote.d.ts","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Quote.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAElE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,CAAC,CAI1C,CAAA;AAED,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"Quote.d.ts","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Quote.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAElE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,CAAC,CAM1C,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styles_1 = require("../styles");
6
7
  const react_1 = __importDefault(require("react"));
7
8
  /**
8
9
  * VisualContent renderer component that renders `quote` type blocks
@@ -16,7 +17,8 @@ const react_1 = __importDefault(require("react"));
16
17
  * @group VisualContent Renderers
17
18
  */
18
19
  const Quote = ({ data }) => {
19
- return (react_1.default.createElement("blockquote", { className: "sl-content-block sl-quote" }, data.text));
20
+ return (react_1.default.createElement(styles_1.BlockWrapper, { className: "sl-content-block sl-quote" },
21
+ react_1.default.createElement("blockquote", null, data.text)));
20
22
  };
21
23
  exports.default = Quote;
22
24
  //# sourceMappingURL=Quote.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Quote.js","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Quote.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAiC;AAGjC;;;;;;;;;;GAUG;AACH,MAAM,KAAK,GAAoC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,8CAAY,SAAS,EAAC,2BAA2B,IAAE,IAAI,CAAC,IAAI,CAAc,CAC3E,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,KAAK,CAAA","sourcesContent":["import React, { FC } from 'react'\nimport { QuoteBlock, VisualDataBlock } from '@starlightcms/js-sdk'\n\n/**\n * VisualContent renderer component that renders `quote` type blocks\n * as `<blockquote>` elements.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link QuoteBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst Quote: FC<VisualDataBlock<QuoteBlock>> = ({ data }) => {\n return (\n <blockquote className=\"sl-content-block sl-quote\">{data.text}</blockquote>\n )\n}\n\nexport default Quote\n"]}
1
+ {"version":3,"file":"Quote.js","sourceRoot":"","sources":["../../../../src/VisualContent/blocks/Quote.tsx"],"names":[],"mappings":";;;;;AACA,sCAAwC;AACxC,kDAAiC;AAEjC;;;;;;;;;;GAUG;AACH,MAAM,KAAK,GAAoC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAC,2BAA2B;QACjD,kDAAa,IAAI,CAAC,IAAI,CAAc,CACvB,CAChB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,KAAK,CAAA","sourcesContent":["import { QuoteBlock, VisualDataBlock } from '@starlightcms/js-sdk'\nimport { BlockWrapper } from '../styles'\nimport React, { FC } from 'react'\n\n/**\n * VisualContent renderer component that renders `quote` type blocks\n * as `<blockquote>` elements.\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link QuoteBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst Quote: FC<VisualDataBlock<QuoteBlock>> = ({ data }) => {\n return (\n <BlockWrapper className=\"sl-content-block sl-quote\">\n <blockquote>{data.text}</blockquote>\n </BlockWrapper>\n )\n}\n\nexport default Quote\n"]}
@@ -0,0 +1,16 @@
1
+ import { VideoBlock, VisualDataBlock } from '@starlightcms/js-sdk';
2
+ import { FC } from 'react';
3
+ /**
4
+ * VisualContent renderer component that renders `video` type blocks
5
+ * as a responsive video along with its caption (if defined).
6
+ *
7
+ * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}
8
+ * to learn how to customize block renderer components like this one.
9
+ *
10
+ * @param props VisualDataBlock object. See {@link VideoBlock} to learn the
11
+ * type of data this component receives.
12
+ * @group VisualContent Renderers
13
+ */
14
+ declare const Video: FC<VisualDataBlock<VideoBlock>>;
15
+ export default Video;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Video/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGlE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,CAAC,CAgB1C,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styles_1 = require("../../styles");
7
+ const styles_2 = require("./styles");
8
+ const react_1 = __importDefault(require("react"));
9
+ /**
10
+ * VisualContent renderer component that renders `video` type blocks
11
+ * as a responsive video along with its caption (if defined).
12
+ *
13
+ * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}
14
+ * to learn how to customize block renderer components like this one.
15
+ *
16
+ * @param props VisualDataBlock object. See {@link VideoBlock} to learn the
17
+ * type of data this component receives.
18
+ * @group VisualContent Renderers
19
+ */
20
+ const Video = ({ data }) => {
21
+ const { html, width, caption } = data;
22
+ const widthType = ['auto', 'justify', 'max'].includes(width) ? width : 'fixed';
23
+ return (react_1.default.createElement(styles_1.BlockWrapper, { className: `sl-content-block sl-video sl-width-${widthType}` },
24
+ react_1.default.createElement(styles_2.VideoWrapper, { width: width },
25
+ react_1.default.createElement("div", { dangerouslySetInnerHTML: { __html: html } }),
26
+ caption && (react_1.default.createElement("figcaption", { dangerouslySetInnerHTML: { __html: caption } })))));
27
+ };
28
+ exports.default = Video;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Video/index.tsx"],"names":[],"mappings":";;;;;AACA,yCAA2C;AAC3C,qCAAuC;AACvC,kDAAiC;AAEjC;;;;;;;;;;GAUG;AACH,MAAM,KAAK,GAAoC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAErC,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAA;IAE9E,OAAO,CACL,8BAAC,qBAAY,IAAC,SAAS,EAAE,sCAAsC,SAAS,EAAE;QACxE,8BAAC,qBAAY,IAAC,KAAK,EAAE,KAAK;YACxB,uCAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAI;YAEjD,OAAO,IAAI,CACV,8CAAY,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,CAC7D,CACY,CACF,CAChB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,KAAK,CAAA","sourcesContent":["import { VideoBlock, VisualDataBlock } from '@starlightcms/js-sdk'\nimport { BlockWrapper } from '../../styles'\nimport { VideoWrapper } from './styles'\nimport React, { FC } from 'react'\n\n/**\n * VisualContent renderer component that renders `video` type blocks\n * as a responsive video along with its caption (if defined).\n *\n * See {@doclink components/VisualContent/#customizing-components | the guide page on the VisualContent component}\n * to learn how to customize block renderer components like this one.\n *\n * @param props VisualDataBlock object. See {@link VideoBlock} to learn the\n * type of data this component receives.\n * @group VisualContent Renderers\n */\nconst Video: FC<VisualDataBlock<VideoBlock>> = ({ data }) => {\n const { html, width, caption } = data\n\n const widthType = ['auto', 'justify', 'max'].includes(width) ? width : 'fixed'\n\n return (\n <BlockWrapper className={`sl-content-block sl-video sl-width-${widthType}`}>\n <VideoWrapper width={width}>\n <div dangerouslySetInnerHTML={{ __html: html }} />\n\n {caption && (\n <figcaption dangerouslySetInnerHTML={{ __html: caption }} />\n )}\n </VideoWrapper>\n </BlockWrapper>\n )\n}\n\nexport default Video\n"]}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ declare type VideoWrapperProps = {
3
+ width: string | null;
4
+ };
5
+ export declare const VideoWrapper: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
9
+ children?: import("react").ReactNode;
10
+ } & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ } & VideoWrapperProps, {}, {}>;
13
+ export {};
14
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Video/styles.ts"],"names":[],"mappings":";AAGA,aAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;8BA+BxB,CAAA"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.VideoWrapper = void 0;
7
+ const styles_1 = require("../../styles");
8
+ const styled_1 = __importDefault(require("@emotion/styled"));
9
+ exports.VideoWrapper = (0, styled_1.default)(styles_1.FigureWrapper) `
10
+ margin: 0;
11
+
12
+ > div {
13
+ > * {
14
+ max-width: 100%;
15
+ }
16
+
17
+ > iframe {
18
+ display: block;
19
+ margin: auto;
20
+
21
+ aspect-ratio: 16/9;
22
+
23
+ border: none;
24
+
25
+ background-color: transparent;
26
+
27
+ width: ${({ width }) => {
28
+ switch (width) {
29
+ case 'auto':
30
+ return 'initial';
31
+ case 'justify':
32
+ case 'max':
33
+ return '100%';
34
+ default:
35
+ return width;
36
+ }
37
+ }};
38
+ }
39
+ }
40
+ `;
41
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Video/styles.ts"],"names":[],"mappings":";;;;;;AAAA,yCAA4C;AAC5C,6DAAoC;AAMvB,QAAA,YAAY,GAAG,IAAA,gBAAM,EAAC,sBAAa,CAAC,CAAmB;;;;;;;;;;;;;;;;;;eAkBrD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACrB,QAAQ,KAAK,EAAE;QACb,KAAK,MAAM;YACT,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC;QACf,KAAK,KAAK;YACR,OAAO,MAAM,CAAA;QACf;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC;;;CAGN,CAAA","sourcesContent":["import { FigureWrapper } from '../../styles'\nimport styled from '@emotion/styled'\n\ntype VideoWrapperProps = {\n width: string | null\n}\n\nexport const VideoWrapper = styled(FigureWrapper)<VideoWrapperProps>`\n margin: 0;\n\n > div {\n > * {\n max-width: 100%;\n }\n\n > iframe {\n display: block;\n margin: auto;\n\n aspect-ratio: 16/9;\n\n border: none;\n\n background-color: transparent;\n\n width: ${({ width }) => {\n switch (width) {\n case 'auto':\n return 'initial'\n case 'justify':\n case 'max':\n return '100%'\n default:\n return width\n }\n }};\n }\n }\n`\n"]}
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { VisualContentProps } from './types';
3
- import { VisualContentStyles } from './styles';
3
+ import Image, { ImageOptions } from './blocks/Image';
4
4
  import Paragraph from './blocks/Paragraph';
5
5
  import Header from './blocks/Header';
6
6
  import Quote from './blocks/Quote';
7
- import Image, { ImageOptions } from './blocks/Image';
8
7
  import HTML from './blocks/HTML';
9
8
  import List from './blocks/List';
9
+ import Video from './blocks/Video';
10
10
  /**
11
11
  * Renders HTML content from data returned by a Visual Editor field on Starlight.
12
12
  *
@@ -59,6 +59,6 @@ import List from './blocks/List';
59
59
  * @group VisualContent
60
60
  */
61
61
  export declare const VisualContent: ({ content, components, excerpt, excerptLength, }: VisualContentProps) => JSX.Element;
62
- export { VisualContentStyles, Paragraph as ParagraphComponent, Header as HeaderComponent, Quote as QuoteComponent, Image as ImageComponent, HTML as HTMLComponent, List as ListComponent, };
62
+ export { Paragraph as ParagraphComponent, Header as HeaderComponent, Quote as QuoteComponent, Image as ImageComponent, HTML as HTMLComponent, List as ListComponent, Video as VideoComponent, };
63
63
  export type { VisualContentProps, ImageOptions };
64
64
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/VisualContent/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAmB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAC1C,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,KAAK,MAAM,gBAAgB,CAAA;AAClC,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,IAAI,MAAM,eAAe,CAAA;AAChC,OAAO,IAAI,MAAM,eAAe,CAAA;AAWhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,eAAO,MAAM,aAAa,qDAKvB,kBAAkB,KAAG,WAmDvB,CAAA;AAED,OAAO,EACL,mBAAmB,EACnB,SAAS,IAAI,kBAAkB,EAC/B,MAAM,IAAI,eAAe,EACzB,KAAK,IAAI,cAAc,EACvB,KAAK,IAAI,cAAc,EACvB,IAAI,IAAI,aAAa,EACrB,IAAI,IAAI,aAAa,GACtB,CAAA;AAED,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/VisualContent/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAmB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAG1C,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,KAAK,MAAM,gBAAgB,CAAA;AAClC,OAAO,IAAI,MAAM,eAAe,CAAA;AAChC,OAAO,IAAI,MAAM,eAAe,CAAA;AAChC,OAAO,KAAK,MAAM,gBAAgB,CAAA;AAYlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,eAAO,MAAM,aAAa,qDAKvB,kBAAkB,KAAG,WAmDvB,CAAA;AAED,OAAO,EACL,SAAS,IAAI,kBAAkB,EAC/B,MAAM,IAAI,eAAe,EACzB,KAAK,IAAI,cAAc,EACvB,KAAK,IAAI,cAAc,EACvB,IAAI,IAAI,aAAa,EACrB,IAAI,IAAI,aAAa,EACrB,KAAK,IAAI,cAAc,GACxB,CAAA;AAED,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAA"}