@elmethis/core 1.0.0-alpha.3 → 1.0.0-alpha.5
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-BmI1r-pL.js → Bash-BNH7i6M4.js} +1 -1
- package/dist/{JavaScript-BLh8XUTW.js → JavaScript-Draokhsa.js} +1 -1
- package/dist/{Rust-byGZHaMF.js → Rust-C_eoFnxh.js} +1 -1
- package/dist/{TypeScript-BwE7LRoS.js → TypeScript-BNXNLm5c.js} +1 -1
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +8 -3
- package/dist/elmethis.js +2 -2
- package/dist/elmethis.umd.cjs +9 -9
- package/dist/{index-Bk5p9urM.js → index-CKwesLRY.js} +1007 -900
- 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-CKwesLRY.js";
|
|
3
3
|
const s = {}, r = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
viewBox: "0 0 128 128",
|
|
@@ -24,8 +24,9 @@ import { ElmKatexProps } from '../code/ElmKatex.vue';
|
|
|
24
24
|
import { ElmImageProps } from '../media/ElmImage.vue';
|
|
25
25
|
import { ElmBookmarkProps } from '../navigation/ElmBookmark.vue';
|
|
26
26
|
import { ElmToggleProps } from '../containments/ElmToggle.vue';
|
|
27
|
-
|
|
28
|
-
type
|
|
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;
|
|
29
30
|
interface JsonComponentBase {
|
|
30
31
|
type: ComponentType;
|
|
31
32
|
props?: ComponentProps;
|
|
@@ -135,7 +136,11 @@ interface ElmToggleJsonComponent extends JsonComponentBase {
|
|
|
135
136
|
type: 'ElmToggle';
|
|
136
137
|
props?: ElmToggleProps;
|
|
137
138
|
}
|
|
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;
|
|
139
144
|
export interface ElmJsonRendererProps {
|
|
140
145
|
json: JsonComponent[];
|
|
141
146
|
}
|