@kontakto/email-template-editor 2.3.1 → 2.4.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/dist/index.d.cts CHANGED
@@ -5955,10 +5955,12 @@ interface EmailEditorContextType {
5955
5955
  currentTemplateId: string | null;
5956
5956
  currentTemplateName: string | null;
5957
5957
  currentTemplateKind: TemplateKind$1 | null;
5958
+ currentTemplateTags: string[];
5958
5959
  saveTemplate: () => TEditorConfiguration;
5959
- loadTemplate: (template: TEditorConfiguration, templateId?: string, templateName?: string, kind?: TemplateKind$1 | null) => void;
5960
+ loadTemplate: (template: TEditorConfiguration, templateId?: string, templateName?: string, kind?: TemplateKind$1 | null, tags?: string[] | null) => void;
5960
5961
  registerSaveListener: (callback: (template: TEditorConfiguration) => void) => () => void;
5961
- setCurrentTemplate: (templateId: string | null, templateName: string | null, kind?: TemplateKind$1 | null) => void;
5962
+ setCurrentTemplate: (templateId: string | null, templateName: string | null, kind?: TemplateKind$1 | null, tags?: string[] | null) => void;
5963
+ setCurrentTemplateTags: (tags: string[]) => void;
5962
5964
  }
5963
5965
  interface EmailEditorProviderProps {
5964
5966
  children: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -5955,10 +5955,12 @@ interface EmailEditorContextType {
5955
5955
  currentTemplateId: string | null;
5956
5956
  currentTemplateName: string | null;
5957
5957
  currentTemplateKind: TemplateKind$1 | null;
5958
+ currentTemplateTags: string[];
5958
5959
  saveTemplate: () => TEditorConfiguration;
5959
- loadTemplate: (template: TEditorConfiguration, templateId?: string, templateName?: string, kind?: TemplateKind$1 | null) => void;
5960
+ loadTemplate: (template: TEditorConfiguration, templateId?: string, templateName?: string, kind?: TemplateKind$1 | null, tags?: string[] | null) => void;
5960
5961
  registerSaveListener: (callback: (template: TEditorConfiguration) => void) => () => void;
5961
- setCurrentTemplate: (templateId: string | null, templateName: string | null, kind?: TemplateKind$1 | null) => void;
5962
+ setCurrentTemplate: (templateId: string | null, templateName: string | null, kind?: TemplateKind$1 | null, tags?: string[] | null) => void;
5963
+ setCurrentTemplateTags: (tags: string[]) => void;
5962
5964
  }
5963
5965
  interface EmailEditorProviderProps {
5964
5966
  children: React.ReactNode;