@elmethis/core 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Bash-nrQ4AW4P.js → Bash-Baz1BxzT.js} +1 -1
- package/dist/{JavaScript-C4Aer4yq.js → JavaScript-B2h5GaAI.js} +1 -1
- package/dist/{Rust-Bkg6BX0_.js → Rust-OtMDYMq1.js} +1 -1
- package/dist/{TypeScript-LP8g9NCC.js → TypeScript-BjyEfQ06.js} +1 -1
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +13 -3
- package/dist/elmethis.js +2 -2
- package/dist/elmethis.umd.cjs +18 -18
- package/dist/{index-CQpTLLBe.js → index-DiODNzIp.js} +2561 -2389
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as l, createElementBlock as t, createElementVNode as e } from "vue";
|
|
2
|
-
import { _ as o } from "./index-
|
|
2
|
+
import { _ as o } from "./index-DiODNzIp.js";
|
|
3
3
|
const s = {}, r = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
viewBox: "0 0 128 128",
|
|
@@ -23,8 +23,10 @@ import { ElmTableCellProps } from '../table/ElmTableCell.vue';
|
|
|
23
23
|
import { ElmKatexProps } from '../code/ElmKatex.vue';
|
|
24
24
|
import { ElmImageProps } from '../media/ElmImage.vue';
|
|
25
25
|
import { ElmBookmarkProps } from '../navigation/ElmBookmark.vue';
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
import { ElmToggleProps } from '../containments/ElmToggle.vue';
|
|
27
|
+
import { ElmCheckboxProps } from '../form/ElmCheckbox.vue';
|
|
28
|
+
type ComponentType = 'ElmInlineText' | 'ElmInlineCode' | 'ElmInlineLink' | 'ElmCallout' | 'ElmBulletedList' | 'ElmNumberedList' | 'ElmListItem' | 'ElmBlockQuote' | 'ElmDivider' | 'ElmHeading1' | 'ElmHeading2' | 'ElmHeading3' | 'ElmHeading4' | 'ElmHeading5' | 'ElmHeading6' | 'ElmCodeBlock' | 'ElmParagraph' | 'ElmTable' | 'ElmTableHeader' | 'ElmTableBody' | 'ElmTableRow' | 'ElmTableCell' | 'ElmKatex' | 'ElmImage' | 'ElmBookmark' | 'ElmToggle' | 'ElmCheckbox';
|
|
29
|
+
type ComponentProps = ElmInlineTextProps | ElmInlineCodeProps | ElmInlineLinkProps | ElmCalloutProps | ElmBulletedListProps | ElmNumberedListProps | ElmListItemProps | ElmBlockQuoteProps | ElmDividerProps | ElmHeading1Props | ElmHeading2Props | ElmHeading3Props | ElmHeading4Props | ElmHeading5Props | ElmHeading6Props | ElmCodeBlockProps | ElmParagraphProps | ElmTableProps | ElmTableHeaderProps | ElmTableBodyProps | ElmTableRowProps | ElmTableCellProps | ElmKatexProps | ElmImageProps | ElmBookmarkProps | ElmToggleProps | ElmCheckboxProps;
|
|
28
30
|
interface JsonComponentBase {
|
|
29
31
|
type: ComponentType;
|
|
30
32
|
props?: ComponentProps;
|
|
@@ -130,7 +132,15 @@ interface ElmBookmarkJsonComponent extends JsonComponentBase {
|
|
|
130
132
|
type: 'ElmBookmark';
|
|
131
133
|
props?: ElmBookmarkProps;
|
|
132
134
|
}
|
|
133
|
-
|
|
135
|
+
interface ElmToggleJsonComponent extends JsonComponentBase {
|
|
136
|
+
type: 'ElmToggle';
|
|
137
|
+
props?: ElmToggleProps;
|
|
138
|
+
}
|
|
139
|
+
interface ElmCheckboxJsonComponent extends JsonComponentBase {
|
|
140
|
+
type: 'ElmCheckbox';
|
|
141
|
+
props?: ElmCheckboxProps;
|
|
142
|
+
}
|
|
143
|
+
type JsonComponent = ElmInlineTextJsonComponent | ElmInlineCodeJsonComponent | ElmInlineLinkJsonComponent | ElmCalloutJsonComponent | ElmBulletedListJsonComponent | ElmNumberedListJsonComponent | ElmListItemJsonComponent | ElmBlockQuoteJsonComponent | ElmDividerJsonComponent | ElmHeading1JsonComponent | ElmHeading2JsonComponent | ElmHeading3JsonComponent | ElmHeading4JsonComponent | ElmHeading5JsonComponent | ElmHeading6JsonComponent | ElmCodeBlockJsonComponent | ElmParagraphJsonComponent | ElmTableJsonComponent | ElmTableHeaderJsonComponent | ElmTableBodyJsonComponent | ElmTableRowJsonComponent | ElmTableCellJsonComponent | ElmKatexJsonComponent | ElmImageJsonComponent | ElmBookmarkJsonComponent | ElmToggleJsonComponent | ElmCheckboxJsonComponent;
|
|
134
144
|
export interface ElmJsonRendererProps {
|
|
135
145
|
json: JsonComponent[];
|
|
136
146
|
}
|