@alloy-js/markdown 0.25.0-dev.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/dev/src/components/Code.js.map +1 -1
- package/dist/dev/src/components/Frontmatter.js +2 -2
- package/dist/dev/src/components/Frontmatter.js.map +1 -1
- package/dist/dev/src/components/Heading.js.map +1 -1
- package/dist/dev/src/components/Link.js.map +1 -1
- package/dist/dev/src/components/List.js +3 -3
- package/dist/dev/src/components/List.js.map +1 -1
- package/dist/dev/src/components/Section.js +5 -5
- package/dist/dev/src/components/Section.js.map +1 -1
- package/dist/dev/src/components/SourceFile.js +2 -2
- package/dist/dev/src/components/SourceFile.js.map +1 -1
- package/dist/dev/src/components/index.js.map +1 -1
- package/dist/dev/src/context/section.js.map +1 -1
- package/dist/dev/src/index.js.map +1 -1
- package/dist/dev/test/Code.test.js +3 -3
- package/dist/dev/test/Code.test.js.map +1 -1
- package/dist/dev/test/Frontmatter.test.js +2 -2
- package/dist/dev/test/Frontmatter.test.js.map +1 -1
- package/dist/dev/test/list.test.js +6 -6
- package/dist/dev/test/list.test.js.map +1 -1
- package/dist/dev/test/paragraph.test.js +3 -3
- package/dist/dev/test/paragraph.test.js.map +1 -1
- package/dist/dev/test/section.test.js +6 -6
- package/dist/dev/test/section.test.js.map +1 -1
- package/dist/dev/test/utils.js +2 -2
- package/dist/dev/test/utils.js.map +1 -1
- package/dist/dev/test/vitest.d.js.map +1 -1
- package/dist/dev/test/vitest.setup.js.map +1 -1
- package/dist/src/components/Code.d.ts +1 -1
- package/dist/src/components/Code.d.ts.map +1 -1
- package/dist/src/components/Code.js.map +1 -1
- package/dist/src/components/Frontmatter.d.ts +1 -1
- package/dist/src/components/Frontmatter.d.ts.map +1 -1
- package/dist/src/components/Frontmatter.js.map +1 -1
- package/dist/src/components/Heading.d.ts +2 -2
- package/dist/src/components/Heading.d.ts.map +1 -1
- package/dist/src/components/Heading.js.map +1 -1
- package/dist/src/components/Link.d.ts +1 -1
- package/dist/src/components/Link.d.ts.map +1 -1
- package/dist/src/components/Link.js.map +1 -1
- package/dist/src/components/List.d.ts +1 -1
- package/dist/src/components/List.d.ts.map +1 -1
- package/dist/src/components/List.js.map +1 -1
- package/dist/src/components/Section.d.ts +1 -1
- package/dist/src/components/Section.d.ts.map +1 -1
- package/dist/src/components/Section.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts +1 -1
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/context/section.d.ts +1 -1
- package/dist/src/context/section.d.ts.map +1 -1
- package/dist/src/context/section.js.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/test/Code.test.js.map +1 -1
- package/dist/test/Frontmatter.test.js.map +1 -1
- package/dist/test/list.test.js.map +1 -1
- package/dist/test/paragraph.test.js.map +1 -1
- package/dist/test/section.test.js.map +1 -1
- package/dist/test/utils.d.ts +1 -1
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js.map +1 -1
- package/dist/test/vitest.d.js.map +1 -1
- package/dist/test/vitest.setup.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/components/Code.tsx +1 -1
- package/src/components/Frontmatter.tsx +5 -3
- package/src/components/Heading.tsx +3 -2
- package/src/components/Link.tsx +1 -1
- package/src/components/List.tsx +3 -4
- package/src/components/Section.tsx +2 -1
- package/src/components/SourceFile.tsx +3 -1
- package/src/context/section.ts +2 -1
- package/temp/api.json +1 -1
- package/test/Code.test.tsx +1 -0
- package/test/Frontmatter.test.tsx +1 -0
- package/test/list.test.tsx +1 -0
- package/test/paragraph.test.tsx +1 -0
- package/test/section.test.tsx +1 -0
- package/test/utils.tsx +3 -1
- package/tsdoc-metadata.json +1 -1
- package/vitest.config.ts +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/Section.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/Section.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAK3D,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,YAa1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Section.tsx"],"sourcesContent":["import { List } from \"@alloy-js/core\";\nimport type { Children } from \"@alloy-js/core/jsx-runtime\";\n\nimport { SectionContext, useSectionContext } from \"../context/section.js\";\nimport { Heading } from \"./Heading.jsx\";\n\nexport interface SectionProps {\n heading?: Children;\n children: Children;\n}\n\nexport function Section(props: SectionProps) {\n const sectionContext = useSectionContext();\n\n return (\n <List doubleHardline>\n {props.heading && <Heading>{props.heading}</Heading>}\n <SectionContext.Provider\n value={{ ...sectionContext, level: sectionContext.level + 1 }}\n >\n <List doubleHardline>{props.children}</List>\n </SectionContext.Provider>\n </List>\n );\n}\n"],"mappings":";AAAA,SAAS,IAAI,QAAQ,gBAAgB;AAGrC,SAAS,cAAc,EAAE,iBAAiB,QAAQ,uBAAuB;AACzE,SAAS,OAAO;AAOhB,OAAO,SAAS,OAAO,CAAC,KAAmB,EAAE;EAC3C,MAAM,cAAc,GAAG,iBAAiB,CAAC,CAAC;EAE1C,yBACG,IAAI;IAAC,cAAc;IAAA;MAAA,qBACjB,oBAAK,CAAC,OAAO,yBAAK,OAAO;QAAA;UAAA,OAAE,KAAK,CAAC,OAAO;QAAA;MAAA,EAAW,qBACnD,cAAc,CAAC,QAAQ;QAAA,IACtB,KAAK;UAAA,OAAE;YAAE,GAAG,cAAc;YAAE,KAAK,EAAE,cAAc,CAAC,KAAK,GAAG;UAAE,CAAC;QAAA;QAAA;UAAA,yBAE5D,IAAI;YAAC,cAAc;YAAA;cAAA,OAAE,KAAK,CAAC,QAAQ;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAI5C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK/C,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;CACpB;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/SourceFile.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { SourceFile as CoreSourceFile, List } from \"@alloy-js/core\";\n\nimport { Link } from \"./Link.jsx\";\n\nexport interface SourceFileProps {\n path: string;\n children: Children;\n}\nexport function SourceFile(props: SourceFileProps) {\n return (\n <CoreSourceFile path={props.path} filetype=\"md\" reference={Link}>\n <List doubleHardline>{props.children}</List>\n </CoreSourceFile>\n );\n}\n"],"mappings":";AACA,SAAS,UAAU,IAAI,cAAc,EAAE,IAAI,QAAQ,gBAAgB;AAEnE,SAAS,IAAI;AAMb,OAAO,SAAS,UAAU,CAAC,KAAsB,EAAE;EACjD,yBACG,cAAc;IAAA,IAAC,IAAI;MAAA,OAAE,KAAK,CAAC,IAAI;IAAA;IAAE,QAAQ;IAAM,SAAS,EAAE,IAAI;IAAA;MAAA,yBAC5D,IAAI;QAAC,cAAc;QAAA;UAAA,OAAE,KAAK,CAAC,QAAQ;QAAA;MAAA;IAAA;EAAA;AAG1C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../src/components/index.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Code.jsx\";\nexport * from \"./Frontmatter.jsx\";\nexport * from \"./Heading.jsx\";\nexport * from \"./Link.jsx\";\nexport * from \"./List.jsx\";\nexport * from \"./Section.jsx\";\nexport * from \"./SourceFile.jsx\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/context/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/context/section.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,cAAc,CACf,CAAC;AAE9C,wBAAgB,iBAAiB,IAAI,cAAc,CAOlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/context/section.ts"],"sourcesContent":["import type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, useContext } from \"@alloy-js/core\";\n\nexport interface SectionContext {\n level: number;\n}\n\nexport const SectionContext: ComponentContext<SectionContext> =\n createContext<SectionContext>({ level: 1 });\n\nexport function useSectionContext(): SectionContext {\n const context = useContext(SectionContext);\n\n if (context === undefined) {\n throw new Error(\"useSectionContext must be used within a Section\");\n }\n return context;\n}\n"],"mappings":"AACA,SAAS,aAAa,EAAE,UAAU,QAAQ,gBAAgB;AAM1D,OAAO,MAAM,cAAgD,GAC3D,aAAa,CAAiB;EAAE,KAAK,EAAE;AAAE,CAAC,CAAC;AAE7C,OAAO,SAAS,iBAAiB,GAAmB;EAClD,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC;EAE1C,IAAI,OAAO,KAAK,SAAS,EAAE;IACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC;EACpE;EACA,OAAO,OAAO;AAChB","ignoreList":[]}
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./components/index.js\";\n"],"mappings":"AAAA,cAAc,uBAAuB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/Code.test.tsx"],"sourcesContent":["import { List } from \"@alloy-js/core\";\nimport { d } from \"@alloy-js/core/testing\";\nimport { expect, it } from \"vitest\";\n\nimport { Code } from \"../src/components/Code.jsx\";\nimport { mdTest } from \"./utils.jsx\";\n\nit(\"renders with js value\", () => {\n const template = mdTest(\n <Code lang=\"ts\" children={\"const foo = 123;\\nconsole.log(foo);\"} />,\n );\n\n expect(template).toRenderTo(d`\n \\`\\`\\`ts\n const foo = 123;\n console.log(foo);\n \\`\\`\\`\n `);\n});\n\nit(\"renders with children\", () => {\n const template = mdTest(\n <Code lang=\"ts\">\n <List>\n <>const foo = 123;</>\n <>console.log(foo);</>\n </List>\n </Code>,\n );\n\n expect(template).toRenderTo(d`\n \\`\\`\\`ts\n const foo = 123;\n console.log(foo);\n \\`\\`\\`\n `);\n});\n"],"mappings":";AAAA,SAAS,IAAI,QAAQ,gBAAgB;AACrC,SAAS,CAAC,QAAQ,wBAAwB;AAC1C,SAAS,MAAM,EAAE,EAAE,QAAQ,QAAQ;AAEnC,SAAS,IAAI;AACb,SAAS,MAAM;AAEf,EAAE,CAAC,uBAAuB,EAAE,MAAM;EAChC,MAAM,QAAQ,GAAG,MAAM,mBACpB,IAAI;IAAC,IAAI;IAAM,QAAQ,EAAE;EAAqC,EACjE,CAAC;EAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC;AAEF,EAAE,CAAC,uBAAuB,EAAE,MAAM;EAChC,MAAM,QAAQ,GAAG,MAAM,mBACpB,IAAI;IAAC,IAAI;IAAA;MAAA,yBACP,IAAI;QAAA;UAAA;QAAA;MAAA;IAAA;EAAA,EAKT,CAAC;EAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/Frontmatter.test.tsx"],"sourcesContent":["import { d } from \"@alloy-js/core/testing\";\nimport { expect, it } from \"vitest\";\n\nimport { Frontmatter } from \"../src/components/Frontmatter.jsx\";\nimport { mdTest } from \"./utils.jsx\";\n\nit(\"renders with js value\", () => {\n const template = mdTest(\n <Frontmatter jsValue={{ title: \"My Title\", tags: [\"tag1\", \"tag2\"] }} />,\n );\n\n expect(template).toRenderTo(d`\n ---\n title: My Title\n tags:\n - tag1\n - tag2\n ---\n `);\n});\n\nit(\"renders with children\", () => {\n const template = mdTest(\n <Frontmatter>\n <>{`title: My Title`}</>\n <>{`tags:`}</>\n <>{` - tag1`}</>\n <>{` - tag2`}</>\n </Frontmatter>,\n );\n\n expect(template).toRenderTo(d`\n ---\n title: My Title\n tags:\n - tag1\n - tag2\n ---\n `);\n});\n"],"mappings":";AAAA,SAAS,CAAC,QAAQ,wBAAwB;AAC1C,SAAS,MAAM,EAAE,EAAE,QAAQ,QAAQ;AAEnC,SAAS,WAAW;AACpB,SAAS,MAAM;AAEf,EAAE,CAAC,uBAAuB,EAAE,MAAM;EAChC,MAAM,QAAQ,GAAG,MAAM,mBACpB,WAAW;IAAC,OAAO,EAAE;MAAE,KAAK,EAAE,UAAU;MAAE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM;IAAE;EAAC,EACrE,CAAC;EAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC;AAEF,EAAE,CAAC,uBAAuB,EAAE,MAAM;EAChC,MAAM,QAAQ,GAAG,MAAM,mBACpB,WAAW;IAAA;MAAA,SACP,iBAAiB,IACjB,OAAO,IACP,UAAU,IACV,UAAU;IAAA;EAAA,EAEjB,CAAC;EAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/list.test.tsx"],"sourcesContent":["import { d } from \"@alloy-js/core/testing\";\nimport { expect, it } from \"vitest\";\n\nimport { List } from \"../src/components/List.jsx\";\nimport { mdTest } from \"./utils.jsx\";\n\nit(\"renders ordered lists\", () => {\n const template = mdTest(\n <List ordered>\n <>Item 1</>\n <>Item 2</>\n <>\n Item 3<hbr />\n <List ordered start={10}>\n <>Item 3.1</>\n <>Item 3.2</>\n </List>\n </>\n </List>,\n );\n\n expect(template).toRenderTo(d`\n 1. Item 1\n 2. Item 2\n 3. Item 3\n 10. Item 3.1\n 11. Item 3.2\n `);\n});\n\nit(\"renders task lists\", () => {\n const template = mdTest(\n <List tasks bullet=\"-\">\n <>Item 1</>\n <>Item 2</>\n <>\n Item 3<hbr />\n <List tasks ordered>\n <>Item 3.1</>\n <>Item 3.2</>\n </List>\n </>\n </List>,\n );\n\n expect(template).toRenderTo(d`\n - [ ] Item 1\n - [ ] Item 2\n - [ ] Item 3\n 1. [ ] Item 3.1\n 2. [ ] Item 3.2\n `);\n});\n"],"mappings":";AAAA,SAAS,CAAC,QAAQ,wBAAwB;AAC1C,SAAS,MAAM,EAAE,EAAE,QAAQ,QAAQ;AAEnC,SAAS,IAAI;AACb,SAAS,MAAM;AAEf,EAAE,CAAC,uBAAuB,EAAE,MAAM;EAChC,MAAM,QAAQ,GAAG,MAAM,mBACpB,IAAI;IAAC,OAAO;IAAA;MAAA,2FAKR,IAAI;QAAC,OAAO;QAAC,KAAK,EAAE,EAAE;QAAA;UAAA;QAAA;MAAA;IAAA;EAAA,EAM7B,CAAC;EAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC;AAEF,EAAE,CAAC,oBAAoB,EAAE,MAAM;EAC7B,MAAM,QAAQ,GAAG,MAAM,mBACpB,IAAI;IAAC,KAAK;IAAC,MAAM;IAAA;MAAA,2FAKb,IAAI;QAAC,KAAK;QAAC,OAAO;QAAA;UAAA;QAAA;MAAA;IAAA;EAAA,EAMzB,CAAC;EAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/paragraph.test.tsx"],"sourcesContent":["import { Prose } from \"@alloy-js/core\";\nimport { expect, it } from \"vitest\";\n\nimport { Section } from \"../src/components/Section.jsx\";\nimport { mdTest } from \"./utils.jsx\";\n\nit(\"renders a section\", () => {\n const template = mdTest(\n <Section heading=\"hello\">\n <Prose>\n This is some text content that should be wrapped and such. We can put\n *italic* and **bold** text here, and it should be rendered correctly. We\n can also put in some code: `const x = 1;` and it should be rendered\n correctly. We can also put in some links:\n [Alloy](https://alloy-framework.github.io/alloy). It's pretty nice.\n </Prose>\n <Prose>\n Subsequent paragraphs should have a blank line between them.\n </Prose>\n </Section>,\n );\n\n expect(template).toRenderTo(\n `\n # hello\n\n This is some text content that should be\n wrapped and such. We can put *italic*\n and **bold** text here, and it should be\n rendered correctly. We can also put in\n some code: \\`const x = 1;\\` and it should\n be rendered correctly. We can also put\n in some links:\n [Alloy](https://alloy-framework.github.io/alloy).\n It's pretty nice.\n\n Subsequent paragraphs should have a\n blank line between them.\n `,\n { printWidth: 40 },\n );\n});\n"],"mappings":";AAAA,SAAS,KAAK,QAAQ,gBAAgB;AACtC,SAAS,MAAM,EAAE,EAAE,QAAQ,QAAQ;AAEnC,SAAS,OAAO;AAChB,SAAS,MAAM;AAEf,EAAE,CAAC,mBAAmB,EAAE,MAAM;EAC5B,MAAM,QAAQ,GAAG,MAAM,mBACpB,OAAO;IAAC,OAAO;IAAA;MAAA,0BACb,KAAK;QAAA;MAAA,sBAOL,KAAK;QAAA;MAAA;IAAA;EAAA,EAIV,CAAC;EAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CACzB;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,EACC;IAAE,UAAU,EAAE;EAAG,CACnB,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/section.test.tsx"],"sourcesContent":["import { expect, it } from \"vitest\";\n\nimport { Section } from \"../src/components/Section.jsx\";\nimport { mdTest } from \"./utils.jsx\";\n\nit(\"renders a section\", () => {\n const template = mdTest([<Section heading=\"hello\">world</Section>]);\n\n expect(template).toRenderTo(`\n # hello\n \n world\n `);\n});\n\nit(\"renders multiple sections\", () => {\n const template = mdTest([\n <Section heading=\"hello\">world</Section>,\n <Section heading=\"hello\">world</Section>,\n ]);\n\n expect(template).toRenderTo(`\n # hello\n \n world\n\n # hello\n\n world\n `);\n});\n\nit(\"renders nested sections\", () => {\n const template = mdTest([\n <Section heading=\"hello\">\n world\n <Section heading=\"subhello\">subworld</Section>\n </Section>,\n <Section heading=\"hello\">world</Section>,\n ]);\n\n expect(template).toRenderTo(`\n # hello\n\n world\n\n ## subhello\n\n subworld\n\n # hello\n\n world\n `);\n});\n"],"mappings":";AAAA,SAAS,MAAM,EAAE,EAAE,QAAQ,QAAQ;AAEnC,SAAS,OAAO;AAChB,SAAS,MAAM;AAEf,EAAE,CAAC,mBAAmB,EAAE,MAAM;EAC5B,MAAM,QAAQ,GAAG,MAAM,CAAC,mBAAE,OAAO;IAAC,OAAO;IAAA;EAAA,GAAyB,CAAC;EAEnE,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC;AAC9B;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC;AAEF,EAAE,CAAC,2BAA2B,EAAE,MAAM;EACpC,MAAM,QAAQ,GAAG,MAAM,CAAC,mBACrB,OAAO;IAAC,OAAO;IAAA;EAAA,sBACf,OAAO;IAAC,OAAO;IAAA;EAAA,GACjB,CAAC;EAEF,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC;AAEF,EAAE,CAAC,yBAAyB,EAAE,MAAM;EAClC,MAAM,QAAQ,GAAG,MAAM,CAAC,mBACrB,OAAO;IAAC,OAAO;IAAA;MAAA,mCAEb,OAAO;QAAC,OAAO;QAAA;MAAA;IAAA;EAAA,sBAEjB,OAAO;IAAC,OAAO;IAAA;EAAA,GACjB,CAAC;EAEF,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/dist/test/utils.d.ts
CHANGED
package/dist/test/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK/C,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,YAMxC"}
|
package/dist/test/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/utils.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { Output } from \"@alloy-js/core\";\n\nimport { SourceFile } from \"../src/components/SourceFile.jsx\";\n\nexport function mdTest(children: Children) {\n return (\n <Output>\n <SourceFile path=\"test.md\">{children}</SourceFile>\n </Output>\n );\n}\n"],"mappings":";AACA,SAAS,MAAM,QAAQ,gBAAgB;AAEvC,SAAS,UAAU;AAEnB,OAAO,SAAS,MAAM,CAAC,QAAkB,EAAE;EACzC,yBACG,MAAM;IAAA;MAAA,yBACJ,UAAU;QAAC,IAAI;QAAA,UAAY;MAAQ;IAAA;EAAA;AAG1C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../test/vitest.d.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/vitest.d.ts"],"sourcesContent":["import \"vitest\";\n\ninterface ToRenderToRenderOptions {\n printWidth?: number;\n tabWidth?: number;\n useTabs?: boolean;\n}\n\ninterface CustomMatchers<R = unknown> {\n toRenderTo: (str: string, options?: ToRenderToRenderOptions) => R;\n}\n\ndeclare module \"vitest\" {\n interface Assertion<T = any> extends CustomMatchers<T> {}\n interface AsymmetricMatchersContaining extends CustomMatchers {}\n}\n"],"mappings":"AAAA,OAAO,QAAQ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../test/vitest.setup.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../test/vitest.setup.ts"],"sourcesContent":["import \"@alloy-js/core/testing\";\n"],"mappings":"AAAA,OAAO,wBAAwB","ignoreList":[]}
|