@treygrr/vjml 0.1.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/LICENSE +21 -0
- package/README.md +143 -0
- package/dist/types/components/VjmlRenderFrame.vue.d.ts +69 -0
- package/dist/types/composables/useVjml.d.ts +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/metadata.d.ts +24 -0
- package/dist/types/metadata.generated.d.ts +1231 -0
- package/dist/types/plugin.d.ts +14 -0
- package/dist/types/runtime/client/renderVjmlToDebugTree.d.ts +5 -0
- package/dist/types/runtime/client/renderVjmlToHtml.d.ts +5 -0
- package/dist/types/runtime/client/useVjmlRenderer.d.ts +10 -0
- package/dist/types/runtime/component-types.generated.d.ts +581 -0
- package/dist/types/runtime/components/Accordion.d.ts +2 -0
- package/dist/types/runtime/components/AccordionElement.d.ts +2 -0
- package/dist/types/runtime/components/AccordionText.d.ts +2 -0
- package/dist/types/runtime/components/AccordionTitle.d.ts +2 -0
- package/dist/types/runtime/components/All.d.ts +2 -0
- package/dist/types/runtime/components/Attributes.d.ts +2 -0
- package/dist/types/runtime/components/Body.d.ts +2 -0
- package/dist/types/runtime/components/Breakpoint.d.ts +2 -0
- package/dist/types/runtime/components/Button.d.ts +2 -0
- package/dist/types/runtime/components/Carousel.d.ts +2 -0
- package/dist/types/runtime/components/CarouselImage.d.ts +2 -0
- package/dist/types/runtime/components/Class.d.ts +2 -0
- package/dist/types/runtime/components/Column.d.ts +2 -0
- package/dist/types/runtime/components/Divider.d.ts +2 -0
- package/dist/types/runtime/components/Font.d.ts +2 -0
- package/dist/types/runtime/components/Group.d.ts +2 -0
- package/dist/types/runtime/components/Head.d.ts +2 -0
- package/dist/types/runtime/components/Hero.d.ts +2 -0
- package/dist/types/runtime/components/HtmlAttribute.d.ts +2 -0
- package/dist/types/runtime/components/HtmlAttributes.d.ts +2 -0
- package/dist/types/runtime/components/Image.d.ts +2 -0
- package/dist/types/runtime/components/Mjml.d.ts +2 -0
- package/dist/types/runtime/components/Navbar.d.ts +2 -0
- package/dist/types/runtime/components/NavbarLink.d.ts +2 -0
- package/dist/types/runtime/components/Preview.d.ts +2 -0
- package/dist/types/runtime/components/Raw.d.ts +2 -0
- package/dist/types/runtime/components/Section.d.ts +2 -0
- package/dist/types/runtime/components/Selector.d.ts +2 -0
- package/dist/types/runtime/components/Social.d.ts +2 -0
- package/dist/types/runtime/components/SocialElement.d.ts +2 -0
- package/dist/types/runtime/components/Spacer.d.ts +2 -0
- package/dist/types/runtime/components/Style.d.ts +2 -0
- package/dist/types/runtime/components/Table.d.ts +2 -0
- package/dist/types/runtime/components/Text.d.ts +2 -0
- package/dist/types/runtime/components/Title.d.ts +2 -0
- package/dist/types/runtime/components/Wrapper.d.ts +2 -0
- package/dist/types/runtime/components.generated.d.ts +77 -0
- package/dist/types/runtime/composables/useVjml.d.ts +2 -0
- package/dist/types/runtime/composables/useVjmlComponentName.d.ts +2 -0
- package/dist/types/runtime/internal/browserDocument.d.ts +2 -0
- package/dist/types/runtime/internal/browserRendering.d.ts +3 -0
- package/dist/types/runtime/internal/componentMetadata.d.ts +2 -0
- package/dist/types/runtime/internal/content.d.ts +3 -0
- package/dist/types/runtime/internal/context.d.ts +82 -0
- package/dist/types/runtime/internal/factory.d.ts +54 -0
- package/dist/types/runtime/internal/head.d.ts +3 -0
- package/dist/types/runtime/internal/helpers/conditional.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/documentShared.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/measurements.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/shorthand.d.ts +3 -0
- package/dist/types/runtime/internal/interactive.d.ts +36 -0
- package/dist/types/runtime/internal/layout.d.ts +76 -0
- package/dist/types/runtime/internal/renderless.d.ts +1 -0
- package/dist/types/runtime/internal/vnodes.d.ts +11 -0
- package/dist/types/runtime/manifest.generated.d.ts +412 -0
- package/dist/types/runtime/types.d.ts +1 -0
- package/dist/types/vjml.d.ts +93 -0
- package/dist/vjml.cjs +154 -0
- package/dist/vjml.js +5056 -0
- package/package.json +73 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { DefineComponent } from 'vue';
|
|
2
|
+
import type { VjmlAccordionProps, VjmlAccordionElementProps, VjmlAccordionTextProps, VjmlAccordionTitleProps, VjmlAllProps, VjmlAttributesProps, VjmlBodyProps, VjmlBreakpointProps, VjmlButtonProps, VjmlCarouselProps, VjmlCarouselImageProps, VjmlClassProps, VjmlColumnProps, VjmlDividerProps, VjmlFontProps, VjmlGroupProps, VjmlHeadProps, VjmlHeroProps, VjmlHtmlAttributeProps, VjmlHtmlAttributesProps, VjmlImageProps, VjmlMjmlProps, VjmlNavbarProps, VjmlNavbarLinkProps, VjmlPreviewProps, VjmlRawProps, VjmlSectionProps, VjmlSelectorProps, VjmlSocialProps, VjmlSocialElementProps, VjmlSpacerProps, VjmlStyleProps, VjmlTableProps, VjmlTextProps, VjmlTitleProps, VjmlWrapperProps } from './component-types.generated';
|
|
3
|
+
export type VjmlTypedRuntimeComponent<TProps> = DefineComponent<TProps>;
|
|
4
|
+
export declare const Accordion: VjmlTypedRuntimeComponent<VjmlAccordionProps>;
|
|
5
|
+
export declare const AccordionElement: VjmlTypedRuntimeComponent<VjmlAccordionElementProps>;
|
|
6
|
+
export declare const AccordionText: VjmlTypedRuntimeComponent<VjmlAccordionTextProps>;
|
|
7
|
+
export declare const AccordionTitle: VjmlTypedRuntimeComponent<VjmlAccordionTitleProps>;
|
|
8
|
+
export declare const All: VjmlTypedRuntimeComponent<VjmlAllProps>;
|
|
9
|
+
export declare const Attributes: VjmlTypedRuntimeComponent<VjmlAttributesProps>;
|
|
10
|
+
export declare const Body: VjmlTypedRuntimeComponent<VjmlBodyProps>;
|
|
11
|
+
export declare const Breakpoint: VjmlTypedRuntimeComponent<VjmlBreakpointProps>;
|
|
12
|
+
export declare const Button: VjmlTypedRuntimeComponent<VjmlButtonProps>;
|
|
13
|
+
export declare const Carousel: VjmlTypedRuntimeComponent<VjmlCarouselProps>;
|
|
14
|
+
export declare const CarouselImage: VjmlTypedRuntimeComponent<VjmlCarouselImageProps>;
|
|
15
|
+
export declare const Class: VjmlTypedRuntimeComponent<VjmlClassProps>;
|
|
16
|
+
export declare const Column: VjmlTypedRuntimeComponent<VjmlColumnProps>;
|
|
17
|
+
export declare const Divider: VjmlTypedRuntimeComponent<VjmlDividerProps>;
|
|
18
|
+
export declare const Font: VjmlTypedRuntimeComponent<VjmlFontProps>;
|
|
19
|
+
export declare const Group: VjmlTypedRuntimeComponent<VjmlGroupProps>;
|
|
20
|
+
export declare const Head: VjmlTypedRuntimeComponent<VjmlHeadProps>;
|
|
21
|
+
export declare const Hero: VjmlTypedRuntimeComponent<VjmlHeroProps>;
|
|
22
|
+
export declare const HtmlAttribute: VjmlTypedRuntimeComponent<VjmlHtmlAttributeProps>;
|
|
23
|
+
export declare const HtmlAttributes: VjmlTypedRuntimeComponent<VjmlHtmlAttributesProps>;
|
|
24
|
+
export declare const Image: VjmlTypedRuntimeComponent<VjmlImageProps>;
|
|
25
|
+
export declare const Mjml: VjmlTypedRuntimeComponent<VjmlMjmlProps>;
|
|
26
|
+
export declare const Navbar: VjmlTypedRuntimeComponent<VjmlNavbarProps>;
|
|
27
|
+
export declare const NavbarLink: VjmlTypedRuntimeComponent<VjmlNavbarLinkProps>;
|
|
28
|
+
export declare const Preview: VjmlTypedRuntimeComponent<VjmlPreviewProps>;
|
|
29
|
+
export declare const Raw: VjmlTypedRuntimeComponent<VjmlRawProps>;
|
|
30
|
+
export declare const Section: VjmlTypedRuntimeComponent<VjmlSectionProps>;
|
|
31
|
+
export declare const Selector: VjmlTypedRuntimeComponent<VjmlSelectorProps>;
|
|
32
|
+
export declare const Social: VjmlTypedRuntimeComponent<VjmlSocialProps>;
|
|
33
|
+
export declare const SocialElement: VjmlTypedRuntimeComponent<VjmlSocialElementProps>;
|
|
34
|
+
export declare const Spacer: VjmlTypedRuntimeComponent<VjmlSpacerProps>;
|
|
35
|
+
export declare const Style: VjmlTypedRuntimeComponent<VjmlStyleProps>;
|
|
36
|
+
export declare const Table: VjmlTypedRuntimeComponent<VjmlTableProps>;
|
|
37
|
+
export declare const Text: VjmlTypedRuntimeComponent<VjmlTextProps>;
|
|
38
|
+
export declare const Title: VjmlTypedRuntimeComponent<VjmlTitleProps>;
|
|
39
|
+
export declare const Wrapper: VjmlTypedRuntimeComponent<VjmlWrapperProps>;
|
|
40
|
+
export declare const VJML_RUNTIME_COMPONENT_EXPORTS: {
|
|
41
|
+
readonly Accordion: VjmlTypedRuntimeComponent<VjmlAccordionProps>;
|
|
42
|
+
readonly AccordionElement: VjmlTypedRuntimeComponent<VjmlAccordionElementProps>;
|
|
43
|
+
readonly AccordionText: VjmlTypedRuntimeComponent<VjmlAccordionTextProps>;
|
|
44
|
+
readonly AccordionTitle: VjmlTypedRuntimeComponent<VjmlAccordionTitleProps>;
|
|
45
|
+
readonly All: VjmlTypedRuntimeComponent<VjmlAllProps>;
|
|
46
|
+
readonly Attributes: VjmlTypedRuntimeComponent<VjmlAttributesProps>;
|
|
47
|
+
readonly Body: VjmlTypedRuntimeComponent<VjmlBodyProps>;
|
|
48
|
+
readonly Breakpoint: VjmlTypedRuntimeComponent<VjmlBreakpointProps>;
|
|
49
|
+
readonly Button: VjmlTypedRuntimeComponent<VjmlButtonProps>;
|
|
50
|
+
readonly Carousel: VjmlTypedRuntimeComponent<VjmlCarouselProps>;
|
|
51
|
+
readonly CarouselImage: VjmlTypedRuntimeComponent<VjmlCarouselImageProps>;
|
|
52
|
+
readonly Class: VjmlTypedRuntimeComponent<VjmlClassProps>;
|
|
53
|
+
readonly Column: VjmlTypedRuntimeComponent<VjmlColumnProps>;
|
|
54
|
+
readonly Divider: VjmlTypedRuntimeComponent<VjmlDividerProps>;
|
|
55
|
+
readonly Font: VjmlTypedRuntimeComponent<VjmlFontProps>;
|
|
56
|
+
readonly Group: VjmlTypedRuntimeComponent<VjmlGroupProps>;
|
|
57
|
+
readonly Head: VjmlTypedRuntimeComponent<VjmlHeadProps>;
|
|
58
|
+
readonly Hero: VjmlTypedRuntimeComponent<VjmlHeroProps>;
|
|
59
|
+
readonly HtmlAttribute: VjmlTypedRuntimeComponent<VjmlHtmlAttributeProps>;
|
|
60
|
+
readonly HtmlAttributes: VjmlTypedRuntimeComponent<VjmlHtmlAttributesProps>;
|
|
61
|
+
readonly Image: VjmlTypedRuntimeComponent<VjmlImageProps>;
|
|
62
|
+
readonly Mjml: VjmlTypedRuntimeComponent<VjmlMjmlProps>;
|
|
63
|
+
readonly Navbar: VjmlTypedRuntimeComponent<VjmlNavbarProps>;
|
|
64
|
+
readonly NavbarLink: VjmlTypedRuntimeComponent<VjmlNavbarLinkProps>;
|
|
65
|
+
readonly Preview: VjmlTypedRuntimeComponent<VjmlPreviewProps>;
|
|
66
|
+
readonly Raw: VjmlTypedRuntimeComponent<VjmlRawProps>;
|
|
67
|
+
readonly Section: VjmlTypedRuntimeComponent<VjmlSectionProps>;
|
|
68
|
+
readonly Selector: VjmlTypedRuntimeComponent<VjmlSelectorProps>;
|
|
69
|
+
readonly Social: VjmlTypedRuntimeComponent<VjmlSocialProps>;
|
|
70
|
+
readonly SocialElement: VjmlTypedRuntimeComponent<VjmlSocialElementProps>;
|
|
71
|
+
readonly Spacer: VjmlTypedRuntimeComponent<VjmlSpacerProps>;
|
|
72
|
+
readonly Style: VjmlTypedRuntimeComponent<VjmlStyleProps>;
|
|
73
|
+
readonly Table: VjmlTypedRuntimeComponent<VjmlTableProps>;
|
|
74
|
+
readonly Text: VjmlTypedRuntimeComponent<VjmlTextProps>;
|
|
75
|
+
readonly Title: VjmlTypedRuntimeComponent<VjmlTitleProps>;
|
|
76
|
+
readonly Wrapper: VjmlTypedRuntimeComponent<VjmlWrapperProps>;
|
|
77
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
import type { VjmlDebugRenderResult, VjmlRuntimeConfig } from '../../vjml';
|
|
3
|
+
export declare function renderVjmlInBrowserWithDiagnostics(component: Component, config: VjmlRuntimeConfig, props?: Record<string, unknown>): Promise<VjmlDebugRenderResult>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type InjectionKey } from 'vue';
|
|
2
|
+
import type { VjmlFontMap, VjmlRuntimeConfig, VjmlValidationIssue } from '../../vjml';
|
|
3
|
+
import type { VjmlParsedWidth } from './helpers/measurements';
|
|
4
|
+
export interface VjmlValidationReporter {
|
|
5
|
+
issues: readonly VjmlValidationIssue[];
|
|
6
|
+
report: (issue: VjmlValidationIssue) => void;
|
|
7
|
+
reportInvalidChild: (parentTagName: string, childTagName: string, allowedChildTagNames: string[]) => void;
|
|
8
|
+
reportInvalidParent: (childTagName: string, actualParentTagName: string | null | undefined, allowedParentTagNames: string[]) => void;
|
|
9
|
+
}
|
|
10
|
+
export type VjmlBreakpointAwareValue = string | ((breakpoint: string) => string);
|
|
11
|
+
export type VjmlHeadCollectionTarget = 'breakpoint' | 'classes' | 'classesDefault' | 'componentsHeadStyle' | 'defaultAttributes' | 'fonts' | 'headRaw' | 'htmlAttributes' | 'inlineStyle' | 'preview' | 'style' | 'title';
|
|
12
|
+
export interface VjmlDocumentState {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
beforeDoctype: string[];
|
|
15
|
+
breakpoint: string;
|
|
16
|
+
classes: Record<string, Record<string, string>>;
|
|
17
|
+
classesDefault: Record<string, Record<string, string>>;
|
|
18
|
+
componentsHeadStyle: VjmlBreakpointAwareValue[];
|
|
19
|
+
defaultAttributes: Record<string, Record<string, string>>;
|
|
20
|
+
dir: string;
|
|
21
|
+
fonts: VjmlFontMap;
|
|
22
|
+
forceOWADesktop: boolean;
|
|
23
|
+
headRaw: string[];
|
|
24
|
+
headStyle: Record<string, VjmlBreakpointAwareValue>;
|
|
25
|
+
htmlAttributes: Record<string, Record<string, string>>;
|
|
26
|
+
inlineStyle: string[];
|
|
27
|
+
lang: string;
|
|
28
|
+
mediaQueries: Record<string, string>;
|
|
29
|
+
preview: string;
|
|
30
|
+
printerSupport: boolean;
|
|
31
|
+
style: VjmlBreakpointAwareValue[];
|
|
32
|
+
title: string;
|
|
33
|
+
wrapWithDocument: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface VjmlDocumentContext {
|
|
36
|
+
readonly state: VjmlDocumentState;
|
|
37
|
+
addBeforeDoctype: (content: string) => void;
|
|
38
|
+
addComponentHeadStyle: (style: VjmlBreakpointAwareValue) => void;
|
|
39
|
+
addFont: (name: string, href: string) => void;
|
|
40
|
+
addHeadRaw: (content: string) => void;
|
|
41
|
+
addHeadStyle: (identifier: string, style: VjmlBreakpointAwareValue) => void;
|
|
42
|
+
addHtmlAttribute: (selector: string, attributeName: string, value: string) => void;
|
|
43
|
+
addInlineStyle: (style: string) => void;
|
|
44
|
+
addMediaQuery: (className: string, width: VjmlParsedWidth) => void;
|
|
45
|
+
addStyle: (style: VjmlBreakpointAwareValue) => void;
|
|
46
|
+
beginDocument: (options?: Partial<Pick<VjmlDocumentState, 'dir' | 'forceOWADesktop' | 'lang' | 'printerSupport'>>) => void;
|
|
47
|
+
getState: () => VjmlDocumentState;
|
|
48
|
+
mergeClassAttributes: (className: string, attributes: Record<string, string>) => void;
|
|
49
|
+
mergeClassDefaultAttributes: (className: string, attributes: Record<string, string>) => void;
|
|
50
|
+
mergeDefaultAttributes: (tagName: string, attributes: Record<string, string>) => void;
|
|
51
|
+
setBackgroundColor: (color: string) => void;
|
|
52
|
+
setBreakpoint: (breakpoint: string) => void;
|
|
53
|
+
setDir: (dir: string) => void;
|
|
54
|
+
setForceOWADesktop: (value: boolean) => void;
|
|
55
|
+
setLang: (lang: string) => void;
|
|
56
|
+
setPreview: (preview: string) => void;
|
|
57
|
+
setPrinterSupport: (value: boolean) => void;
|
|
58
|
+
setTitle: (title: string) => void;
|
|
59
|
+
}
|
|
60
|
+
export interface VjmlBodyRenderContext {
|
|
61
|
+
readonly document: VjmlDocumentContext;
|
|
62
|
+
addComponentHeadStyle: (style: VjmlBreakpointAwareValue) => void;
|
|
63
|
+
addHeadStyle: (identifier: string, style: VjmlBreakpointAwareValue) => void;
|
|
64
|
+
addMediaQuery: (className: string, width: VjmlParsedWidth) => void;
|
|
65
|
+
setBackgroundColor: (color: string) => void;
|
|
66
|
+
}
|
|
67
|
+
export interface VjmlHeadCollectionContext {
|
|
68
|
+
readonly document: VjmlDocumentContext;
|
|
69
|
+
add: (target: VjmlHeadCollectionTarget, ...params: unknown[]) => void;
|
|
70
|
+
}
|
|
71
|
+
export declare function createVjmlDocumentContext(runtimeConfig: Readonly<VjmlRuntimeConfig>): VjmlDocumentContext;
|
|
72
|
+
export declare function createVjmlBodyRenderContext(document: VjmlDocumentContext): VjmlBodyRenderContext;
|
|
73
|
+
export declare function createVjmlHeadCollectionContext(document: VjmlDocumentContext): VjmlHeadCollectionContext;
|
|
74
|
+
export declare const VJML_RUNTIME_CONFIG_KEY: InjectionKey<Readonly<VjmlRuntimeConfig>>;
|
|
75
|
+
export declare const VJML_DOCUMENT_CONTEXT_KEY: InjectionKey<VjmlDocumentContext>;
|
|
76
|
+
export declare const VJML_BODY_RENDER_CONTEXT_KEY: InjectionKey<VjmlBodyRenderContext>;
|
|
77
|
+
export declare const VJML_HEAD_COLLECTION_CONTEXT_KEY: InjectionKey<VjmlHeadCollectionContext>;
|
|
78
|
+
export declare const VJML_VALIDATION_REPORTER_KEY: InjectionKey<VjmlValidationReporter>;
|
|
79
|
+
export declare function useVjmlDocumentContext(): VjmlDocumentContext | null;
|
|
80
|
+
export declare function useVjmlBodyRenderContext(): VjmlBodyRenderContext | null;
|
|
81
|
+
export declare function useVjmlHeadCollectionContext(): VjmlHeadCollectionContext | null;
|
|
82
|
+
export declare function useVjmlValidationReporter(): VjmlValidationReporter | null;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type Slots, type VNode, type VNodeChild } from 'vue';
|
|
2
|
+
import { type VjmlComponentMetadata, type VjmlComponentSlotKind } from '../../metadata';
|
|
3
|
+
import { type VjmlBodyRenderContext, type VjmlDocumentContext, type VjmlHeadCollectionContext, type VjmlValidationReporter } from './context';
|
|
4
|
+
export type VjmlContentSource = 'none' | 'prop' | 'slot';
|
|
5
|
+
export interface VjmlResolvedContent {
|
|
6
|
+
childNodes: VNode[];
|
|
7
|
+
hasContent: boolean;
|
|
8
|
+
propName: 'content' | 'html' | 'text' | null;
|
|
9
|
+
propValue: string | null;
|
|
10
|
+
slotKind: VjmlComponentSlotKind;
|
|
11
|
+
source: VjmlContentSource;
|
|
12
|
+
}
|
|
13
|
+
export interface VjmlNormalizedAttributesResult {
|
|
14
|
+
attrs: Record<string, string>;
|
|
15
|
+
explicitAttrs: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
export interface VjmlComponentRenderContext {
|
|
18
|
+
activeMjClass: string;
|
|
19
|
+
attrs: Readonly<Record<string, string>>;
|
|
20
|
+
bodyRenderContext: VjmlBodyRenderContext | null;
|
|
21
|
+
content: VjmlResolvedContent;
|
|
22
|
+
documentContext: VjmlDocumentContext | null;
|
|
23
|
+
explicitAttrs: Readonly<Record<string, string>>;
|
|
24
|
+
headCollectionContext: VjmlHeadCollectionContext | null;
|
|
25
|
+
inheritedMjClass: string;
|
|
26
|
+
metadata: VjmlComponentMetadata;
|
|
27
|
+
parentTagName: string | null;
|
|
28
|
+
rawAttrs: Readonly<Record<string, unknown>>;
|
|
29
|
+
slots: Slots;
|
|
30
|
+
validationReporter: VjmlValidationReporter | null;
|
|
31
|
+
}
|
|
32
|
+
export interface VjmlComponentSetupContext {
|
|
33
|
+
activeMjClass: string;
|
|
34
|
+
bodyRenderContext: VjmlBodyRenderContext | null;
|
|
35
|
+
documentContext: VjmlDocumentContext | null;
|
|
36
|
+
headCollectionContext: VjmlHeadCollectionContext | null;
|
|
37
|
+
inheritedMjClass: string;
|
|
38
|
+
metadata: VjmlComponentMetadata;
|
|
39
|
+
parentTagName: string | null;
|
|
40
|
+
slots: Slots;
|
|
41
|
+
validationReporter: VjmlValidationReporter | null;
|
|
42
|
+
}
|
|
43
|
+
export interface VjmlAttributeResolutionOptions {
|
|
44
|
+
documentContext?: VjmlDocumentContext | null;
|
|
45
|
+
inheritedMjClass?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface VjmlComponentFactoryOptions<TExtra = undefined> {
|
|
48
|
+
name?: string;
|
|
49
|
+
setup?: (context: VjmlComponentSetupContext) => TExtra;
|
|
50
|
+
render: (context: VjmlComponentRenderContext, extra: TExtra) => VNodeChild;
|
|
51
|
+
}
|
|
52
|
+
export declare function normalizeVjmlAttributes(rawAttrs: Record<string, unknown>, metadata: VjmlComponentMetadata, options?: VjmlAttributeResolutionOptions): VjmlNormalizedAttributesResult;
|
|
53
|
+
export declare function resolveVjmlComponentContent(rawAttrs: Record<string, unknown>, slots: Slots, metadata: VjmlComponentMetadata, validationReporter?: VjmlValidationReporter | null): VjmlResolvedContent;
|
|
54
|
+
export declare function createVjmlComponent<TExtra = undefined>(metadata: VjmlComponentMetadata, options: VjmlComponentFactoryOptions<TExtra>): import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { VjmlHeadCollectionContext, VjmlValidationReporter } from './context';
|
|
3
|
+
export declare function collectVjmlHeadFromVNodes(vnodes: readonly VNode[], headCollectionContext: VjmlHeadCollectionContext | null, validationReporter: VjmlValidationReporter | null): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const startConditionalTag = "<!--[if mso | IE]>";
|
|
2
|
+
export declare const startMsoConditionalTag = "<!--[if mso]>";
|
|
3
|
+
export declare const endConditionalTag = "<![endif]-->";
|
|
4
|
+
export declare const startNegationConditionalTag = "<!--[if !mso | IE]><!-->";
|
|
5
|
+
export declare const startMsoNegationConditionalTag = "<!--[if !mso]><!-->";
|
|
6
|
+
export declare const endNegationConditionalTag = "<!--<![endif]-->";
|
|
7
|
+
export declare function conditionalTag(content: string, negation?: boolean): string;
|
|
8
|
+
export declare function msoConditionalTag(content: string, negation?: boolean): string;
|
|
9
|
+
export declare function mergeOutlookConditionals(content: string): string;
|
|
10
|
+
export declare function minifyOutlookConditionals(content: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VjmlBreakpointAwareValue, VjmlDocumentState } from '../context';
|
|
2
|
+
export declare function buildPreview(content: string): string;
|
|
3
|
+
export declare function buildFontsTags(content: string, inlineStyle: readonly string[], fonts?: Readonly<Record<string, string>>): string;
|
|
4
|
+
export declare function buildMediaQueriesTags(breakpoint: string, mediaQueries?: Readonly<Record<string, string>>, options?: {
|
|
5
|
+
forceOWADesktop?: boolean;
|
|
6
|
+
printerSupport?: boolean;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function buildStyleFromComponents(breakpoint: string, componentsHeadStyles: readonly VjmlBreakpointAwareValue[], headStyles: Readonly<Record<string, VjmlBreakpointAwareValue>>): string;
|
|
9
|
+
export declare function buildStyleFromTags(breakpoint: string, styles: readonly VjmlBreakpointAwareValue[]): string;
|
|
10
|
+
export declare function buildVjmlDocumentHtml(content: string, documentState: VjmlDocumentState): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface VjmlParsedWidth {
|
|
2
|
+
parsedWidth: number;
|
|
3
|
+
unit: '%' | 'px';
|
|
4
|
+
}
|
|
5
|
+
export interface VjmlWidthParserOptions {
|
|
6
|
+
parseFloatToInt?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function widthParser(width: string, options?: VjmlWidthParserOptions): VjmlParsedWidth;
|
|
9
|
+
export declare function parseVjmlWidth(width: string, options?: VjmlWidthParserOptions): VjmlParsedWidth;
|
|
10
|
+
export declare function makeLowerBreakpoint(breakpoint: string): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface VjmlSocialContextState {
|
|
2
|
+
inheritedAttrs: Record<string, string>;
|
|
3
|
+
}
|
|
4
|
+
export interface VjmlNavbarContextState {
|
|
5
|
+
baseUrl: string | null;
|
|
6
|
+
hamburgerId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface VjmlAccordionContextState {
|
|
9
|
+
inheritedAttrs: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
export interface VjmlAccordionElementContextState {
|
|
12
|
+
inheritedAttrs: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
export interface VjmlCarouselContextState {
|
|
15
|
+
carouselId: string;
|
|
16
|
+
containerWidth: string;
|
|
17
|
+
inheritedAttrs: Record<string, string>;
|
|
18
|
+
thumbnails: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function createVjmlSocialContextState(): VjmlSocialContextState;
|
|
21
|
+
export declare function provideVjmlSocialContext(state: VjmlSocialContextState): void;
|
|
22
|
+
export declare function useVjmlSocialContext(): VjmlSocialContextState;
|
|
23
|
+
export declare function createVjmlNavbarContextState(hamburgerId: string): VjmlNavbarContextState;
|
|
24
|
+
export declare function provideVjmlNavbarContext(state: VjmlNavbarContextState): void;
|
|
25
|
+
export declare function useVjmlNavbarContext(): VjmlNavbarContextState;
|
|
26
|
+
export declare function createVjmlAccordionContextState(): VjmlAccordionContextState;
|
|
27
|
+
export declare function provideVjmlAccordionContext(state: VjmlAccordionContextState): void;
|
|
28
|
+
export declare function useVjmlAccordionContext(): VjmlAccordionContextState;
|
|
29
|
+
export declare function createVjmlAccordionElementContextState(): VjmlAccordionElementContextState;
|
|
30
|
+
export declare function provideVjmlAccordionElementContext(state: VjmlAccordionElementContextState): void;
|
|
31
|
+
export declare function useVjmlAccordionElementContext(): VjmlAccordionElementContextState;
|
|
32
|
+
export declare function createVjmlCarouselContextState(carouselId: string): VjmlCarouselContextState;
|
|
33
|
+
export declare function provideVjmlCarouselContext(state: VjmlCarouselContextState): void;
|
|
34
|
+
export declare function useVjmlCarouselContext(): VjmlCarouselContextState;
|
|
35
|
+
export declare function mergeVjmlInheritedAttributes(attrs: Readonly<Record<string, string>>, explicitAttrs: Readonly<Record<string, string>>, inheritedAttrs: Readonly<Record<string, string>>): Record<string, string>;
|
|
36
|
+
export declare function createVjmlInteractiveId(length?: number): string;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type PropType, type VNode } from 'vue';
|
|
2
|
+
import { type VjmlAttributeResolutionOptions } from './factory';
|
|
3
|
+
import type { VjmlParsedWidth } from './helpers/measurements';
|
|
4
|
+
import { type VjmlBoxSide } from './helpers/shorthand';
|
|
5
|
+
export declare const DEFAULT_VJML_BODY_WIDTH = "600px";
|
|
6
|
+
export interface VjmlLayoutContext {
|
|
7
|
+
containerWidth: string;
|
|
8
|
+
gap: string;
|
|
9
|
+
parentWidth: string;
|
|
10
|
+
preserveMobileWidth: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface VjmlSiblingContext {
|
|
13
|
+
first: boolean;
|
|
14
|
+
index: number;
|
|
15
|
+
last: boolean;
|
|
16
|
+
nonRawSiblings: number;
|
|
17
|
+
siblingCount: number;
|
|
18
|
+
}
|
|
19
|
+
export interface VjmlAnalyzedChildNode {
|
|
20
|
+
rawElement: boolean;
|
|
21
|
+
siblingContext: VjmlSiblingContext;
|
|
22
|
+
tagName: string | null;
|
|
23
|
+
vnode: VNode;
|
|
24
|
+
}
|
|
25
|
+
type HtmlStyleValue = Record<string, string | number | null | undefined> | string;
|
|
26
|
+
type HtmlAttributeValue = HtmlStyleValue | boolean | number | string | null | undefined;
|
|
27
|
+
export declare function createVjmlLayoutState(initialValue?: Partial<VjmlLayoutContext>): VjmlLayoutContext;
|
|
28
|
+
export declare function provideVjmlLayoutContext(context: VjmlLayoutContext): void;
|
|
29
|
+
export declare function useVjmlLayoutContext(): VjmlLayoutContext;
|
|
30
|
+
export declare function useVjmlSiblingContext(): VjmlSiblingContext;
|
|
31
|
+
export declare const VjmlSiblingContextProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
32
|
+
value: {
|
|
33
|
+
required: true;
|
|
34
|
+
type: PropType<VjmlSiblingContext>;
|
|
35
|
+
};
|
|
36
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
value: {
|
|
40
|
+
required: true;
|
|
41
|
+
type: PropType<VjmlSiblingContext>;
|
|
42
|
+
};
|
|
43
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export declare function withVjmlSiblingContext(vnode: VNode, siblingContext: VjmlSiblingContext): VNode;
|
|
45
|
+
export declare function createVjmlStaticHtml(content: string): "" | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>;
|
|
48
|
+
export declare function renderHtmlStyle(style: HtmlStyleValue): string;
|
|
49
|
+
export declare function compactStyleRecord(style: Record<string, string | number | null | undefined>): Record<string, string | number>;
|
|
50
|
+
export declare function renderHtmlAttributes(attributes: Record<string, HtmlAttributeValue>, options?: {
|
|
51
|
+
escapeAmpersand?: boolean;
|
|
52
|
+
}): string;
|
|
53
|
+
export declare function analyzeVjmlChildNodes(children: readonly VNode[]): VjmlAnalyzedChildNode[];
|
|
54
|
+
export declare function getNormalizedVNodeAttributes(vnode: VNode, options?: VjmlAttributeResolutionOptions): Record<string, string>;
|
|
55
|
+
export declare function suffixCssClasses(classes: string | undefined, suffix: string): string;
|
|
56
|
+
export declare function hasNonEmptyAttribute(value: string | undefined): boolean;
|
|
57
|
+
export declare function getShorthandAttrValue(attrs: Readonly<Record<string, string>>, attributeName: string, direction: VjmlBoxSide): number;
|
|
58
|
+
export declare function getShorthandBorderValue(attrs: Readonly<Record<string, string>>, direction: Exclude<VjmlBoxSide, 'bottom' | 'top'> | VjmlBoxSide, attributeName?: string): number;
|
|
59
|
+
export declare function getBoxWidths(containerWidth: string, attrs: Readonly<Record<string, string>>): {
|
|
60
|
+
borders: number;
|
|
61
|
+
box: number;
|
|
62
|
+
paddings: number;
|
|
63
|
+
totalWidth: number;
|
|
64
|
+
};
|
|
65
|
+
export declare function getParsedWidthValue(explicitWidth: string | undefined, nonRawSiblings: number): VjmlParsedWidth;
|
|
66
|
+
export declare function getRenderedWidthAsPixel(explicitWidth: string | undefined, containerWidth: string, nonRawSiblings: number): string;
|
|
67
|
+
export declare function getColumnContainerWidth(attrs: Readonly<Record<string, string>>, parentWidth: string, nonRawSiblings: number): string;
|
|
68
|
+
export declare function getGroupContainerWidth(attrs: Readonly<Record<string, string>>, parentWidth: string, nonRawSiblings: number): string;
|
|
69
|
+
export declare function getColumnClassName(explicitWidth: string | undefined, nonRawSiblings: number, options?: {
|
|
70
|
+
truncatePercentage?: boolean;
|
|
71
|
+
}): {
|
|
72
|
+
className: string;
|
|
73
|
+
parsedWidth: VjmlParsedWidth;
|
|
74
|
+
};
|
|
75
|
+
export declare function getColumnMobileWidth(attrs: Readonly<Record<string, string>>, parentWidth: string, nonRawSiblings: number, preserveMobileWidth: boolean): string;
|
|
76
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createVjmlRenderlessComponent(tagName: string, name?: string): import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
2
|
+
export interface VjmlTaggedComponent {
|
|
3
|
+
__vjmlTagName?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function tagVjmlComponent<T>(component: T, tagName: string): T;
|
|
6
|
+
export declare function flattenVjmlVNodes(children: unknown): VNode[];
|
|
7
|
+
export declare function getVjmlVNodeAttrs(vnode: VNode): Record<string, unknown>;
|
|
8
|
+
export declare function getVjmlVNodeChildren(vnode: VNode): VNode[];
|
|
9
|
+
export declare function getVjmlVNodeTagName(vnode: VNode): string | null;
|
|
10
|
+
export declare function getVjmlVNodesTextContent(vnodes: readonly VNode[]): string;
|
|
11
|
+
export declare function getVjmlVNodeTextContent(vnode: VNode): string;
|