croco-html 2.10.0 → 2.13.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.
Files changed (76) hide show
  1. package/esm2022/lib/components/add-files-btn/add-files-btn.component.mjs +5 -5
  2. package/esm2022/lib/components/editor/download-file-button-block/download-file-button-block.component.mjs +42 -0
  3. package/esm2022/lib/components/editor/external-video-block/external-video-block.component.mjs +24 -7
  4. package/esm2022/lib/components/editor/external-video-block/vk-video-player/vk-video-player.component.mjs +3 -3
  5. package/esm2022/lib/components/editor/external-video-block/youtube-video-player/youtube-video-player.component.mjs +20 -0
  6. package/esm2022/lib/components/editor/html-raw-editor/html-raw-editor.component.mjs +7 -6
  7. package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +9 -8
  8. package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +13 -12
  9. package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +18 -9
  10. package/esm2022/lib/components/editor/text-editor/text-editor.component.mjs +9 -8
  11. package/esm2022/lib/components/editor/visual-editor/DefaultTags.mjs +5 -3
  12. package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +22 -16
  13. package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +7 -5
  14. package/esm2022/lib/components/html-view/html-view.component.mjs +5 -5
  15. package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +4 -4
  16. package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +3 -3
  17. package/esm2022/lib/components/xml-tags/html-raw-view/html-raw-view.component.mjs +3 -3
  18. package/esm2022/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.mjs +52 -0
  19. package/esm2022/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +15 -59
  20. package/esm2022/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.mjs +3 -3
  21. package/esm2022/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.mjs +4 -4
  22. package/esm2022/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +3 -3
  23. package/esm2022/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +4 -4
  24. package/esm2022/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.mjs +4 -4
  25. package/esm2022/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.mjs +3 -3
  26. package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +20 -10
  27. package/esm2022/lib/croco-html.module.mjs +71 -67
  28. package/esm2022/lib/extensions/BodyTagsExtensions.mjs +7 -2
  29. package/esm2022/lib/extensions/DownloadButtonMethods.mjs +17 -0
  30. package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +4 -2
  31. package/esm2022/lib/index.mjs +1 -3
  32. package/esm2022/lib/pipes/RichTextToHtmlPipe.mjs +4 -3
  33. package/esm2022/lib/pipes/TagToSpanPipe.mjs +4 -3
  34. package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +4 -3
  35. package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +4 -3
  36. package/esm2022/lib/pipes/to-preview.pipe.mjs +4 -3
  37. package/esm2022/lib/services/blob-create.service.mjs +20 -0
  38. package/fesm2022/croco-html.mjs +459 -333
  39. package/fesm2022/croco-html.mjs.map +1 -1
  40. package/lib/components/add-files-btn/add-files-btn.component.d.ts +1 -1
  41. package/lib/components/editor/download-file-button-block/download-file-button-block.component.d.ts +13 -0
  42. package/lib/components/editor/external-video-block/external-video-block.component.d.ts +3 -1
  43. package/lib/components/editor/external-video-block/youtube-video-player/youtube-video-player.component.d.ts +10 -0
  44. package/lib/components/editor/html-raw-editor/html-raw-editor.component.d.ts +1 -1
  45. package/lib/components/editor/image-editor/image-editor.component.d.ts +1 -1
  46. package/lib/components/editor/main-editor/main-editor.component.d.ts +1 -1
  47. package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +1 -1
  48. package/lib/components/editor/text-editor/text-editor.component.d.ts +1 -1
  49. package/lib/components/editor/visual-editor/visual-editor.component.d.ts +3 -2
  50. package/lib/components/file-id-select/file-id-select.component.d.ts +1 -1
  51. package/lib/components/html-view/html-view.component.d.ts +1 -1
  52. package/lib/components/upload-files-btn/upload-files-btn.component.d.ts +1 -1
  53. package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +1 -1
  54. package/lib/components/xml-tags/html-raw-view/html-raw-view.component.d.ts +1 -1
  55. package/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.d.ts +14 -0
  56. package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +3 -12
  57. package/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.d.ts +1 -1
  58. package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts +1 -1
  59. package/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.d.ts +1 -1
  60. package/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.d.ts +1 -1
  61. package/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.d.ts +1 -1
  62. package/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.d.ts +1 -1
  63. package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +1 -1
  64. package/lib/croco-html.module.d.ts +63 -62
  65. package/lib/extensions/DownloadButtonMethods.d.ts +16 -0
  66. package/lib/extensions/HtmlExtractionMethods.d.ts +1 -1
  67. package/lib/index.d.ts +8 -8
  68. package/lib/pipes/RichTextToHtmlPipe.d.ts +1 -1
  69. package/lib/pipes/TagToSpanPipe.d.ts +1 -1
  70. package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +1 -1
  71. package/lib/pipes/ToPreviewHtmlPipe.d.ts +1 -1
  72. package/lib/pipes/to-preview.pipe.d.ts +1 -1
  73. package/lib/services/blob-create.service.d.ts +10 -0
  74. package/package.json +1 -1
  75. package/esm2022/lib/components/xml-tags/xml-tag-external-video/resize-observable.mjs +0 -13
  76. package/lib/components/xml-tags/xml-tag-external-video/resize-observable.d.ts +0 -2
@@ -0,0 +1,20 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common/http";
4
+ export class BlobCreateService {
5
+ constructor(_http) {
6
+ this._http = _http;
7
+ }
8
+ getBlob(link) {
9
+ return this._http.get(link, { responseType: 'blob' });
10
+ }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: BlobCreateService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
12
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: BlobCreateService, providedIn: 'root' }); }
13
+ }
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: BlobCreateService, decorators: [{
15
+ type: Injectable,
16
+ args: [{
17
+ providedIn: 'root'
18
+ }]
19
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvYi1jcmVhdGUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nyb2NvLWh0bWwvc3JjL2xpYi9zZXJ2aWNlcy9ibG9iLWNyZWF0ZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQU8zQyxNQUFNLE9BQU8saUJBQWlCO0lBRTVCLFlBQTZCLEtBQWlCO1FBQWpCLFVBQUssR0FBTCxLQUFLLENBQ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