@elmethis/core 1.0.0-alpha.1 → 1.0.0-alpha.3
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-BmI1r-pL.js} +1 -1
- package/dist/{JavaScript-C4Aer4yq.js → JavaScript-BLh8XUTW.js} +1 -1
- package/dist/{Rust-Bkg6BX0_.js → Rust-byGZHaMF.js} +1 -1
- package/dist/{TypeScript-LP8g9NCC.js → TypeScript-BwE7LRoS.js} +1 -1
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +8 -3
- package/dist/elmethis.js +2 -2
- package/dist/elmethis.umd.cjs +18 -18
- package/dist/{index-CQpTLLBe.js → index-Bk5p9urM.js} +2103 -2037
- 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-Bk5p9urM.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,9 @@ 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
|
-
type
|
|
26
|
+
import { ElmToggleProps } from '../containments/ElmToggle.vue';
|
|
27
|
+
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';
|
|
28
|
+
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;
|
|
28
29
|
interface JsonComponentBase {
|
|
29
30
|
type: ComponentType;
|
|
30
31
|
props?: ComponentProps;
|
|
@@ -130,7 +131,11 @@ interface ElmBookmarkJsonComponent extends JsonComponentBase {
|
|
|
130
131
|
type: 'ElmBookmark';
|
|
131
132
|
props?: ElmBookmarkProps;
|
|
132
133
|
}
|
|
133
|
-
|
|
134
|
+
interface ElmToggleJsonComponent extends JsonComponentBase {
|
|
135
|
+
type: 'ElmToggle';
|
|
136
|
+
props?: ElmToggleProps;
|
|
137
|
+
}
|
|
138
|
+
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;
|
|
134
139
|
export interface ElmJsonRendererProps {
|
|
135
140
|
json: JsonComponent[];
|
|
136
141
|
}
|