@pobuca/email-builder 1.1.0 → 1.2.1
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/README.md +1 -1
- package/bundles/pobuca-email-builder.umd.js +4952 -4494
- package/bundles/pobuca-email-builder.umd.js.map +1 -1
- package/bundles/pobuca-email-builder.umd.min.js +1 -1
- package/bundles/pobuca-email-builder.umd.min.js.map +1 -1
- package/esm2015/lib/classes/DefaultEmail.js +54 -54
- package/esm2015/lib/classes/Elements.js +278 -229
- package/esm2015/lib/classes/Structure.js +89 -89
- package/esm2015/lib/components/block/block.component.js +89 -89
- package/esm2015/lib/components/block-settings/block-settings.component.js +53 -53
- package/esm2015/lib/components/builder-container/builder-container.component.js +114 -114
- package/esm2015/lib/components/dialog.component.js +30 -30
- package/esm2015/lib/components/general-settings/general-settings.component.js +25 -25
- package/esm2015/lib/components/import-dialog/import-dialog.component.js +62 -62
- package/esm2015/lib/components/preview.component.js +89 -89
- package/esm2015/lib/components/structure/structure.component.js +163 -163
- package/esm2015/lib/components/structure-settings/structure-settings.component.js +31 -31
- package/esm2015/lib/components/template-list-dialog/template-list-dialog.component.js +45 -45
- package/esm2015/lib/directives/dynamic-component.directive.js +48 -46
- package/esm2015/lib/elements/abstract-block.js +23 -23
- package/esm2015/lib/elements/button/button.component.js +29 -29
- package/esm2015/lib/elements/divider/divider.component.js +30 -30
- package/esm2015/lib/elements/image/image.component.js +64 -54
- package/esm2015/lib/elements/social/social.component.js +42 -42
- package/esm2015/lib/elements/spacer/spacer.component.js +30 -30
- package/esm2015/lib/elements/text-element/text-element.component.js +80 -80
- package/esm2015/lib/elements/video/video.component.js +147 -0
- package/esm2015/lib/groups/align.js +79 -79
- package/esm2015/lib/groups/back-repeat.js +55 -55
- package/esm2015/lib/groups/border.js +102 -102
- package/esm2015/lib/groups/color.js +139 -139
- package/esm2015/lib/groups/direction.js +63 -63
- package/esm2015/lib/groups/font-styles.js +127 -127
- package/esm2015/lib/groups/gaps.js +45 -45
- package/esm2015/lib/groups/line-height.js +68 -68
- package/esm2015/lib/groups/link.js +67 -67
- package/esm2015/lib/groups/margin.js +45 -45
- package/esm2015/lib/groups/padding.js +53 -53
- package/esm2015/lib/groups/upload-image.js +112 -112
- package/esm2015/lib/groups/width-height.js +94 -94
- package/esm2015/lib/interceptors/pb-interceptor.interceptor.js +51 -51
- package/esm2015/lib/interfaces/interfaces.js +13 -13
- package/esm2015/lib/pb-email-builder.component.js +258 -258
- package/esm2015/lib/pb-email-builder.module.js +296 -291
- package/esm2015/lib/pb-email-builder.service.js +134 -134
- package/esm2015/lib/pipes/slugify.pipe.js +39 -39
- package/esm2015/lib/services/internals/pb-email-object-store/pb-email-object-store.service.js +180 -175
- package/esm2015/lib/services/internals/user-interfaces/user-interface.service.js +122 -122
- package/esm2015/lib/services/pb-storage/FreeUsersStorage.class.js +11 -11
- package/esm2015/lib/services/pb-storage/index.js +7 -7
- package/esm2015/lib/services/pb-storage/pb-storage.service.js +79 -79
- package/esm2015/lib/services/user-image-uploader-service/free-users-image-uploader.service.js +26 -26
- package/esm2015/lib/services/user-image-uploader-service/index.js +8 -8
- package/esm2015/lib/services/user-image-uploader-service/paid-users-image-uploader.service.js +30 -30
- package/esm2015/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.js +112 -112
- package/esm2015/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.js +91 -91
- package/esm2015/lib/services/user-image-uploader-service/user-image-uploader.service.js +26 -26
- package/esm2015/lib/services/user-middleware-service/FreeUsersMiddleware.js +31 -31
- package/esm2015/lib/services/user-middleware-service/PaidUsersMiddleware.js +12 -12
- package/esm2015/lib/services/user-middleware-service/index.js +8 -8
- package/esm2015/lib/services/user-middleware-service/pb-middlewares.service.js +195 -195
- package/esm2015/lib/services/user-rest-api-service/free-users-rest-api.service.js +16 -16
- package/esm2015/lib/services/user-rest-api-service/index.js +7 -7
- package/esm2015/lib/services/user-rest-api-service/user-rest-api.service.js +130 -116
- package/esm2015/lib/services/video-thumbnail.service.js +142 -0
- package/esm2015/lib/tokens/private-tokens.js +17 -17
- package/esm2015/lib/tokens/tokens.js +160 -159
- package/esm2015/lib/utils.js +147 -147
- package/esm2015/pobuca-email-builder.js +45 -43
- package/esm2015/public_api.js +26 -26
- package/fesm2015/pobuca-email-builder.js +4560 -4207
- package/fesm2015/pobuca-email-builder.js.map +1 -1
- package/lib/classes/DefaultEmail.d.ts +10 -10
- package/lib/classes/Elements.d.ts +72 -62
- package/lib/classes/Structure.d.ts +11 -11
- package/lib/components/block/block.component.d.ts +25 -25
- package/lib/components/block-settings/block-settings.component.d.ts +18 -18
- package/lib/components/builder-container/builder-container.component.d.ts +36 -36
- package/lib/components/dialog.component.d.ts +10 -10
- package/lib/components/general-settings/general-settings.component.d.ts +6 -6
- package/lib/components/import-dialog/import-dialog.component.d.ts +16 -16
- package/lib/components/preview.component.d.ts +18 -18
- package/lib/components/structure/structure.component.d.ts +43 -43
- package/lib/components/structure-settings/structure-settings.component.d.ts +9 -9
- package/lib/components/template-list-dialog/template-list-dialog.component.d.ts +15 -15
- package/lib/directives/dynamic-component.directive.d.ts +13 -13
- package/lib/elements/abstract-block.d.ts +8 -8
- package/lib/elements/button/button.component.d.ts +18 -18
- package/lib/elements/divider/divider.component.d.ts +10 -10
- package/lib/elements/image/image.component.d.ts +21 -19
- package/lib/elements/social/social.component.d.ts +21 -21
- package/lib/elements/spacer/spacer.component.d.ts +5 -5
- package/lib/elements/text-element/text-element.component.d.ts +52 -52
- package/lib/elements/video/video.component.d.ts +36 -0
- package/lib/groups/align.d.ts +17 -17
- package/lib/groups/back-repeat.d.ts +8 -8
- package/lib/groups/border.d.ts +13 -13
- package/lib/groups/color.d.ts +26 -26
- package/lib/groups/direction.d.ts +13 -13
- package/lib/groups/font-styles.d.ts +21 -21
- package/lib/groups/gaps.d.ts +7 -7
- package/lib/groups/line-height.d.ts +12 -12
- package/lib/groups/link.d.ts +11 -11
- package/lib/groups/margin.d.ts +8 -8
- package/lib/groups/padding.d.ts +8 -8
- package/lib/groups/upload-image.d.ts +19 -19
- package/lib/groups/width-height.d.ts +19 -19
- package/lib/interceptors/pb-interceptor.interceptor.d.ts +10 -10
- package/lib/interfaces/interfaces.d.ts +442 -430
- package/lib/pb-email-builder.component.d.ts +67 -67
- package/lib/pb-email-builder.module.d.ts +51 -51
- package/lib/pb-email-builder.service.d.ts +83 -83
- package/lib/pipes/slugify.pipe.d.ts +9 -9
- package/lib/services/internals/pb-email-object-store/pb-email-object-store.service.d.ts +51 -50
- package/lib/services/internals/user-interfaces/user-interface.service.d.ts +46 -46
- package/lib/services/pb-storage/FreeUsersStorage.class.d.ts +6 -6
- package/lib/services/pb-storage/index.d.ts +2 -2
- package/lib/services/pb-storage/pb-storage.service.d.ts +54 -54
- package/lib/services/user-image-uploader-service/free-users-image-uploader.service.d.ts +12 -12
- package/lib/services/user-image-uploader-service/index.d.ts +3 -3
- package/lib/services/user-image-uploader-service/paid-users-image-uploader.service.d.ts +14 -14
- package/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.d.ts +28 -28
- package/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.d.ts +27 -27
- package/lib/services/user-image-uploader-service/user-image-uploader.service.d.ts +26 -26
- package/lib/services/user-middleware-service/FreeUsersMiddleware.d.ts +15 -15
- package/lib/services/user-middleware-service/PaidUsersMiddleware.d.ts +7 -7
- package/lib/services/user-middleware-service/index.d.ts +3 -3
- package/lib/services/user-middleware-service/pb-middlewares.service.d.ts +190 -190
- package/lib/services/user-rest-api-service/free-users-rest-api.service.d.ts +10 -10
- package/lib/services/user-rest-api-service/index.d.ts +2 -2
- package/lib/services/user-rest-api-service/user-rest-api.service.d.ts +95 -82
- package/lib/services/video-thumbnail.service.d.ts +23 -0
- package/lib/tokens/private-tokens.d.ts +5 -5
- package/lib/tokens/tokens.d.ts +70 -70
- package/lib/utils.d.ts +88 -88
- package/package.json +1 -1
- package/pobuca-email-builder.d.ts +44 -42
- package/pobuca-email-builder.metadata.json +1 -1
- package/public_api.d.ts +16 -16
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Pobuca.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
// import { Structure } from './Structure';
|
|
6
|
-
export class Defaults {
|
|
7
|
-
constructor(structures = [], general = {
|
|
8
|
-
name: '',
|
|
9
|
-
previewText: '',
|
|
10
|
-
width: {
|
|
11
|
-
value: 600,
|
|
12
|
-
unit: 'px',
|
|
13
|
-
units: ['px']
|
|
14
|
-
},
|
|
15
|
-
background: {
|
|
16
|
-
// url: '',
|
|
17
|
-
color: '#f1f1f1',
|
|
18
|
-
// repeat: 'repeat',
|
|
19
|
-
size: {
|
|
20
|
-
value: 100,
|
|
21
|
-
unit: '%',
|
|
22
|
-
auto: true,
|
|
23
|
-
units: ['px', '%', 'cover', 'contain']
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
padding: {
|
|
27
|
-
top: 16,
|
|
28
|
-
right: 10,
|
|
29
|
-
bottom: 10,
|
|
30
|
-
left: 10
|
|
31
|
-
},
|
|
32
|
-
direction: 'ltr',
|
|
33
|
-
global: {
|
|
34
|
-
// TODO Add more global configurations
|
|
35
|
-
// fonts: [],
|
|
36
|
-
padding: {
|
|
37
|
-
top: 0,
|
|
38
|
-
right: 0,
|
|
39
|
-
bottom: 0,
|
|
40
|
-
left: 0
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, customFonts = []) {
|
|
44
|
-
this.structures = structures;
|
|
45
|
-
this.general = general;
|
|
46
|
-
this.customFonts = customFonts;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export class PBEmail extends Defaults {
|
|
50
|
-
constructor({ structures, general, customFonts } = {}) {
|
|
51
|
-
super(structures, general, customFonts);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2024 Pobuca.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
// import { Structure } from './Structure';
|
|
6
|
+
export class Defaults {
|
|
7
|
+
constructor(structures = [], general = {
|
|
8
|
+
name: '',
|
|
9
|
+
previewText: '',
|
|
10
|
+
width: {
|
|
11
|
+
value: 600,
|
|
12
|
+
unit: 'px',
|
|
13
|
+
units: ['px']
|
|
14
|
+
},
|
|
15
|
+
background: {
|
|
16
|
+
// url: '',
|
|
17
|
+
color: '#f1f1f1',
|
|
18
|
+
// repeat: 'repeat',
|
|
19
|
+
size: {
|
|
20
|
+
value: 100,
|
|
21
|
+
unit: '%',
|
|
22
|
+
auto: true,
|
|
23
|
+
units: ['px', '%', 'cover', 'contain']
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
padding: {
|
|
27
|
+
top: 16,
|
|
28
|
+
right: 10,
|
|
29
|
+
bottom: 10,
|
|
30
|
+
left: 10
|
|
31
|
+
},
|
|
32
|
+
direction: 'ltr',
|
|
33
|
+
global: {
|
|
34
|
+
// TODO Add more global configurations
|
|
35
|
+
// fonts: [],
|
|
36
|
+
padding: {
|
|
37
|
+
top: 0,
|
|
38
|
+
right: 0,
|
|
39
|
+
bottom: 0,
|
|
40
|
+
left: 0
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, customFonts = []) {
|
|
44
|
+
this.structures = structures;
|
|
45
|
+
this.general = general;
|
|
46
|
+
this.customFonts = customFonts;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export class PBEmail extends Defaults {
|
|
50
|
+
constructor({ structures, general, customFonts } = {}) {
|
|
51
|
+
super(structures, general, customFonts);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVmYXVsdEVtYWlsLmpzIiwic291cmN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1cmw6ICcnLFxuICAgICAgICBjb2xvcjogJyNmMWYxZjEnLFxuICAgICAgICAvLyByZXBlYXQ6ICdyZXBlYXQnLFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgdmFsdWU6IDEwMCxcbiAgICAgICAgICB1bml0OiAnJScsXG4gICAgICAgICAgYXV0bzogdHJ1ZSxcbiAgICAgICAgICB1bml0czogWydweCcsICclJywgJ2NvdmVyJywgJ2NvbnRhaW4nXVxuICAgICAgICB9XG4gICAgICB9LFxuICAgICAgcGFkZGluZzoge1xuICAgICAgICB0b3A6IDE2LFxuICAgICAgICByaWdodDogMTAsXG4gICAgICAgIGJvdHRvbTogMTAsXG4gICAgICAgIGxlZnQ6IDEwXG4gICAgICB9LFxuICAgICAgZGlyZWN0aW9uOiAnbHRyJyxcbiAgICAgIGdsb2JhbDoge1xuICAgICAgICAvLyBUT0RPIEFkZCBtb3JlIGdsb2JhbCBjb25maWd1cmF0aW9uc1xuICAgICAgICAvLyBmb250czogW10sXG4gICAgICAgIHBhZGRpbmc6IHtcbiAgICAgICAgICB0b3A6IDAsXG4gICAgICAgICAgcmlnaHQ6IDAsXG4gICAgICAgICAgYm90dG9tOiAwLFxuICAgICAgICAgIGxlZnQ6IDBcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG4gICAgcHVibGljIGN1c3RvbUZvbnRzOiBJQ3VzdG9tRm9udFtdID0gW11cbiAgKSB7IH1cbn1cblxuZXhwb3J0IGNsYXNzIFBCRW1haWwgZXh0ZW5kcyBEZWZhdWx0cyB7XG4gIGNvbnN0cnVjdG9yKHsgc3RydWN0dXJlcywgZ2VuZXJhbCwgY3VzdG9tRm9udHMgfTogSVBCRW1haWwgPSB7fSkge1xuICAgIHN1cGVyKHN0cnVjdHVyZXMsIGdlbmVyYWwsIGN1c3RvbUZvbnRzKTtcbiAgfVxufVxuIl19
|