@useinsider/guido 3.30.1-beta.34bc10d → 3.30.1-beta.49c2d00

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.
Files changed (37) hide show
  1. package/README.md +14 -0
  2. package/dist/@types/config/schemas.js +4 -4
  3. package/dist/@types/email-be/html-validation.js +1 -1
  4. package/dist/components/Guido.vue.js +9 -9
  5. package/dist/components/Guido.vue2.js +156 -130
  6. package/dist/components/organisms/dynamic-content/InvalidDynamicContentCard.vue.js +22 -0
  7. package/dist/components/organisms/dynamic-content/InvalidDynamicContentCard.vue2.js +30 -0
  8. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +2 -2
  9. package/dist/composables/useInvalidDynamicContentMarking.js +105 -0
  10. package/dist/enums/defaults.js +5 -4
  11. package/dist/enums/email-be.js +9 -20
  12. package/dist/extensions/DynamicContent/dynamic-content.js +39 -57
  13. package/dist/guido.css +1 -1
  14. package/dist/node_modules/valibot/dist/index.js +90 -95
  15. package/dist/package.json.js +1 -1
  16. package/dist/services/emailBe/errors/ApiError.js +26 -27
  17. package/dist/services/templateLibraryApi.js +87 -59
  18. package/dist/src/@types/generic.d.ts +11 -0
  19. package/dist/src/@types/save-as-template.d.ts +23 -1
  20. package/dist/src/components/Guido.vue.d.ts +5 -1
  21. package/dist/src/components/organisms/dynamic-content/InvalidDynamicContentCard.vue.d.ts +22 -0
  22. package/dist/src/composables/useInvalidDynamicContentMarking.d.ts +4 -0
  23. package/dist/src/enums/email-be.d.ts +0 -11
  24. package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +0 -8
  25. package/dist/src/library.d.ts +1 -1
  26. package/dist/src/stores/dynamic-content.d.ts +42 -1
  27. package/dist/src/utils/editorCanvas.d.ts +3 -0
  28. package/dist/static/styles/customEditorStyle.css.js +4 -0
  29. package/dist/stores/dynamic-content.js +19 -7
  30. package/dist/utils/editorCanvas.js +18 -0
  31. package/package.json +1 -1
  32. package/dist/@types/email-be/templates.js +0 -15
  33. package/dist/services/emailBe/templates/TemplateService.js +0 -149
  34. package/dist/services/emailBe/templates/index.js +0 -6
  35. package/dist/src/@types/email-be/templates.d.ts +0 -40
  36. package/dist/src/services/emailBe/templates/TemplateService.d.ts +0 -13
  37. package/dist/src/services/emailBe/templates/index.d.ts +0 -2
@@ -1,6 +0,0 @@
1
- import { emailBeHttp as e } from "../http/index.js";
2
- import { TemplateService as t } from "./TemplateService.js";
3
- const o = new t(e);
4
- export {
5
- o as templateService
6
- };
@@ -1,40 +0,0 @@
1
- import type { HtmlSyntaxValue } from '@@/Enums/email-be';
2
- import * as v from 'valibot';
3
- export declare const TemplateCategorySchema: v.ObjectSchema<{
4
- readonly id: v.NumberSchema<undefined>;
5
- readonly name: v.StringSchema<undefined>;
6
- }, undefined>;
7
- export declare const TemplateCategoryListSchema: v.ArraySchema<v.UnknownSchema, undefined>;
8
- export declare const TemplateNameCheckSchema: v.ObjectSchema<{
9
- readonly exists: v.BooleanSchema<undefined>;
10
- }, undefined>;
11
- export declare const CreatedTemplateSchema: v.ObjectSchema<{
12
- readonly id: v.NumberSchema<undefined>;
13
- }, undefined>;
14
- export declare const AllowlistValidationSchema: v.ObjectSchema<{
15
- readonly clean: v.BooleanSchema<undefined>;
16
- readonly violations: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
17
- }, undefined>;
18
- export type TemplateCategory = v.InferOutput<typeof TemplateCategorySchema>;
19
- export type TemplateWireType = 'promotional' | 'transactional';
20
- export type TemplateWireProduct = 'newsletter' | 'architect';
21
- export interface TemplateCreateContent {
22
- html: string;
23
- css: string;
24
- stripoConfig: string;
25
- recommendationConfigs: string;
26
- recommendationCampaignUrls: string;
27
- }
28
- export interface TemplateCreateBody {
29
- name: string;
30
- type: TemplateWireType;
31
- editor: 'guido';
32
- product: TemplateWireProduct;
33
- engine: HtmlSyntaxValue;
34
- categoryIds: number[];
35
- content: TemplateCreateContent;
36
- }
37
- export interface TemplateCreateMessages {
38
- nameTaken: string;
39
- fallback: string;
40
- }
@@ -1,13 +0,0 @@
1
- import type { HttpManager } from '@@/Services/emailBe/http/HttpManager';
2
- import type { Result } from '@@/Services/emailBe/http/types';
3
- import type { TemplateCategory, TemplateCreateBody, TemplateCreateContent, TemplateCreateMessages } from '@@/Types/email-be/templates';
4
- export declare class TemplateService {
5
- private readonly http;
6
- constructor(http: HttpManager);
7
- private errorOptions;
8
- listCategories(fallback?: string): Promise<Result<TemplateCategory[]>>;
9
- createCategory(name: string): Promise<Result<TemplateCategory>>;
10
- isNameTaken(name: string): Promise<Result<boolean>>;
11
- checkAllowlist(content: TemplateCreateContent, fallback: string): Promise<Result<true>>;
12
- create(body: TemplateCreateBody, messages: TemplateCreateMessages): Promise<Result<number>>;
13
- }
@@ -1,2 +0,0 @@
1
- import { TemplateService } from './TemplateService';
2
- export declare const templateService: TemplateService;