monto-email-builder 1.0.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 +169 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/index.d.ts +3 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/index.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts +8 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +8 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts +10 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts +14 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts +14 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +10 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts +10 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/StylesPanel.d.ts +3 -0
- package/dist/App/InspectorDrawer/StylesPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts +3 -0
- package/dist/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/index.d.ts +4 -0
- package/dist/App/InspectorDrawer/index.d.ts.map +1 -0
- package/dist/App/LanguageSwitcher/index.d.ts +3 -0
- package/dist/App/LanguageSwitcher/index.d.ts.map +1 -0
- package/dist/App/SamplesDrawer/SidebarButton.d.ts +6 -0
- package/dist/App/SamplesDrawer/SidebarButton.d.ts.map +1 -0
- package/dist/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts +3 -0
- package/dist/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts.map +1 -0
- package/dist/App/SamplesDrawer/index.d.ts +4 -0
- package/dist/App/SamplesDrawer/index.d.ts.map +1 -0
- package/dist/App/TemplatePanel/DownloadJson/index.d.ts +3 -0
- package/dist/App/TemplatePanel/DownloadJson/index.d.ts.map +1 -0
- package/dist/App/TemplatePanel/HtmlPanel.d.ts +3 -0
- package/dist/App/TemplatePanel/HtmlPanel.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts +7 -0
- package/dist/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ImportJson/index.d.ts +3 -0
- package/dist/App/TemplatePanel/ImportJson/index.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts +11 -0
- package/dist/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts.map +1 -0
- package/dist/App/TemplatePanel/JsonPanel.d.ts +3 -0
- package/dist/App/TemplatePanel/JsonPanel.d.ts.map +1 -0
- package/dist/App/TemplatePanel/MainTabsGroup.d.ts +3 -0
- package/dist/App/TemplatePanel/MainTabsGroup.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ShareButton.d.ts +3 -0
- package/dist/App/TemplatePanel/ShareButton.d.ts.map +1 -0
- package/dist/App/TemplatePanel/helper/HighlightedCodePanel.d.ts +8 -0
- package/dist/App/TemplatePanel/helper/HighlightedCodePanel.d.ts.map +1 -0
- package/dist/App/TemplatePanel/helper/highlighters.d.ts +3 -0
- package/dist/App/TemplatePanel/helper/highlighters.d.ts.map +1 -0
- package/dist/App/TemplatePanel/index.d.ts +3 -0
- package/dist/App/TemplatePanel/index.d.ts.map +1 -0
- package/dist/App/index.d.ts +3 -0
- package/dist/App/index.d.ts.map +1 -0
- package/dist/EmailBuilder/index.d.ts +68 -0
- package/dist/EmailBuilder/index.d.ts.map +1 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts +4 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts.map +1 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +136 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts.map +1 -0
- package/dist/documents/blocks/Container/ContainerEditor.d.ts +4 -0
- package/dist/documents/blocks/Container/ContainerEditor.d.ts.map +1 -0
- package/dist/documents/blocks/Container/ContainerPropsSchema.d.ts +84 -0
- package/dist/documents/blocks/Container/ContainerPropsSchema.d.ts.map +1 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts +4 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts.map +1 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +32 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +9 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +10 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +8 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +7 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +10 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +9 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/index.d.ts +13 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/index.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/TStyle.d.ts +12 -0
- package/dist/documents/blocks/helpers/TStyle.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +7 -0
- package/dist/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts +9 -0
- package/dist/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +7 -0
- package/dist/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/fontFamily.d.ts +7 -0
- package/dist/documents/blocks/helpers/fontFamily.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/zod.d.ts +22 -0
- package/dist/documents/blocks/helpers/zod.d.ts.map +1 -0
- package/dist/documents/editor/EditorBlock.d.ts +13 -0
- package/dist/documents/editor/EditorBlock.d.ts.map +1 -0
- package/dist/documents/editor/EditorContext.d.ts +40 -0
- package/dist/documents/editor/EditorContext.d.ts.map +1 -0
- package/dist/documents/editor/core.d.ts +2777 -0
- package/dist/documents/editor/core.d.ts.map +1 -0
- package/dist/getConfiguration/index.d.ts +3 -0
- package/dist/getConfiguration/index.d.ts.map +1 -0
- package/dist/getConfiguration/sample/empty-email-message.d.ts +4 -0
- package/dist/getConfiguration/sample/empty-email-message.d.ts.map +1 -0
- package/dist/getConfiguration/sample/one-time-passcode.d.ts +4 -0
- package/dist/getConfiguration/sample/one-time-passcode.d.ts.map +1 -0
- package/dist/getConfiguration/sample/order-ecommerce.d.ts +4 -0
- package/dist/getConfiguration/sample/order-ecommerce.d.ts.map +1 -0
- package/dist/getConfiguration/sample/post-metrics-report.d.ts +4 -0
- package/dist/getConfiguration/sample/post-metrics-report.d.ts.map +1 -0
- package/dist/getConfiguration/sample/reservation-reminder.d.ts +4 -0
- package/dist/getConfiguration/sample/reservation-reminder.d.ts.map +1 -0
- package/dist/getConfiguration/sample/reset-password.d.ts +4 -0
- package/dist/getConfiguration/sample/reset-password.d.ts.map +1 -0
- package/dist/getConfiguration/sample/respond-to-message.d.ts +4 -0
- package/dist/getConfiguration/sample/respond-to-message.d.ts.map +1 -0
- package/dist/getConfiguration/sample/subscription-receipt.d.ts +4 -0
- package/dist/getConfiguration/sample/subscription-receipt.d.ts.map +1 -0
- package/dist/getConfiguration/sample/welcome.d.ts +4 -0
- package/dist/getConfiguration/sample/welcome.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +18 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/useTranslation.d.ts +9 -0
- package/dist/i18n/useTranslation.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3534 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/samples-SfLrANbd.js +6038 -0
- package/dist/theme.d.ts +3 -0
- package/dist/theme.d.ts.map +1 -0
- package/package.json +102 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/documents/editor/core.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwHxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-email-message.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/empty-email-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,mBAAmB,EAAE,oBAW1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"one-time-passcode.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/one-time-passcode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,iBAAiB,EAAE,oBA6HxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-ecommerce.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/order-ecommerce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,eAAe,EAAE,oBAg6CtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-metrics-report.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/post-metrics-report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,mBAAmB,EAAE,oBAqY1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation-reminder.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/reservation-reminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,oBAAoB,EAAE,oBAgpE3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/reset-password.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,cAAc,EAAE,oBAuJrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"respond-to-message.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/respond-to-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,kBAAkB,EAAE,oBA0KzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-receipt.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/subscription-receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,oBAAoB,EAAE,oBAg0C3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration/sample/welcome.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAA,MAAM,OAAO,EAAE,oBAqKd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Language = 'zh' | 'en';
|
|
2
|
+
/**
|
|
3
|
+
* 翻译函数
|
|
4
|
+
* @param key 翻译键,支持嵌套路径,如 'common.emailBuilder'
|
|
5
|
+
* @param params 替换参数,如 { id: '123' } 会替换 {{id}}
|
|
6
|
+
* @param language 可选的语言参数,如果不提供则从 store 读取
|
|
7
|
+
* @returns 翻译后的文本
|
|
8
|
+
*/
|
|
9
|
+
export declare function t(key: string, params?: Record<string, string | number>, language?: Language): string;
|
|
10
|
+
/**
|
|
11
|
+
* 获取当前语言
|
|
12
|
+
*/
|
|
13
|
+
export declare function getLanguage(): Language;
|
|
14
|
+
/**
|
|
15
|
+
* 设置语言(仅更新 localStorage)
|
|
16
|
+
*/
|
|
17
|
+
export declare function setLanguage(lang: Language): void;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAOnC;;;;;;GAMG;AACH,wBAAgB,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CA2BpG;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,QAAQ,CAYtC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,QAIzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Hook 用于翻译
|
|
3
|
+
* 会自动从 zustand store 读取当前语言,语言改变时会自动重新渲染
|
|
4
|
+
*/
|
|
5
|
+
export declare function useTranslation(): {
|
|
6
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
7
|
+
language: import("./index").Language;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useTranslation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/i18n/useTranslation.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc;aAGZ,MAAM,WAAW,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM;;EAK1E"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmailBuilder - 邮件模板编辑器组件库
|
|
3
|
+
*
|
|
4
|
+
* 这是一个功能完整的邮件模板编辑器,可以在其他 React 项目中使用
|
|
5
|
+
*/
|
|
6
|
+
export { default as EmailBuilder } from './EmailBuilder';
|
|
7
|
+
export type { EmailBuilderProps } from './EmailBuilder';
|
|
8
|
+
export type { TEditorConfiguration, TEditorBlock } from './documents/editor/core';
|
|
9
|
+
export type { Language } from './i18n';
|
|
10
|
+
export { useDocument, useLanguage } from './documents/editor/EditorContext';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAClF,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC"}
|