@firestitch/html-editor 12.0.5 → 12.1.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 (71) hide show
  1. package/app/{classes → modules/html-editor/classes}/plugin.d.ts +0 -0
  2. package/app/{components → modules/html-editor/components}/html-editor/html-editor.component.d.ts +0 -0
  3. package/app/{consts → modules/html-editor/consts}/paragraph-buttons.const.d.ts +0 -0
  4. package/app/{consts → modules/html-editor/consts}/rich-buttons.const.d.ts +0 -0
  5. package/app/{consts → modules/html-editor/consts}/text-buttons.const.d.ts +0 -0
  6. package/app/{enums → modules/html-editor/enums}/default-plugin.enum.d.ts +0 -0
  7. package/app/{fs-html-editor.module.d.ts → modules/html-editor/fs-html-editor.module.d.ts} +5 -5
  8. package/app/{injects → modules/html-editor/injects}/config.inject.d.ts +0 -0
  9. package/app/{interfaces → modules/html-editor/interfaces}/html-editor-config.d.ts +0 -0
  10. package/app/{interfaces → modules/html-editor/interfaces}/plugin-button.d.ts +0 -0
  11. package/app/{interfaces → modules/html-editor/interfaces}/plugin-config.d.ts +0 -0
  12. package/app/{plugins → modules/html-editor/plugins}/checklist.plugin.d.ts +0 -0
  13. package/app/{plugins → modules/html-editor/plugins}/code.plugin.d.ts +0 -0
  14. package/app/{plugins → modules/html-editor/plugins}/configs/mention-plugin.config.d.ts +0 -0
  15. package/app/{plugins → modules/html-editor/plugins}/configs/screen-record-plugin.config.d.ts +0 -0
  16. package/app/{plugins → modules/html-editor/plugins}/mention.plugin.d.ts +0 -0
  17. package/app/modules/html-editor/plugins/realtime.plugin.d.ts +7 -0
  18. package/app/{plugins → modules/html-editor/plugins}/screen-record.plugin.d.ts +0 -0
  19. package/app/{services → modules/html-editor/services}/froala-loader.service.d.ts +0 -0
  20. package/app/{utils → modules/html-editor/utils}/loader.d.ts +0 -0
  21. package/app/{components → modules/html-renderer/components}/html-renderer/html-renderer.component.d.ts +0 -0
  22. package/app/modules/html-renderer/fs-html-renderer.module.d.ts +8 -0
  23. package/bundles/firestitch-html-editor.umd.js +48 -6
  24. package/bundles/firestitch-html-editor.umd.js.map +1 -1
  25. package/esm2015/app/modules/html-editor/classes/plugin.js +5 -0
  26. package/esm2015/app/modules/html-editor/components/html-editor/html-editor.component.js +493 -0
  27. package/esm2015/app/modules/html-editor/consts/paragraph-buttons.const.js +9 -0
  28. package/esm2015/app/modules/html-editor/consts/rich-buttons.const.js +7 -0
  29. package/esm2015/app/modules/html-editor/consts/text-buttons.const.js +19 -0
  30. package/esm2015/app/modules/html-editor/enums/default-plugin.enum.js +2 -0
  31. package/esm2015/app/modules/html-editor/fs-html-editor.module.js +68 -0
  32. package/esm2015/app/modules/html-editor/injects/config.inject.js +4 -0
  33. package/esm2015/app/modules/html-editor/interfaces/html-editor-config.js +2 -0
  34. package/esm2015/app/modules/html-editor/interfaces/plugin-button.js +2 -0
  35. package/esm2015/app/modules/html-editor/interfaces/plugin-config.js +2 -0
  36. package/esm2015/app/modules/html-editor/plugins/checklist.plugin.js +35 -0
  37. package/esm2015/app/modules/html-editor/plugins/code.plugin.js +63 -0
  38. package/esm2015/app/modules/html-editor/plugins/configs/mention-plugin.config.js +2 -0
  39. package/esm2015/app/modules/html-editor/plugins/configs/screen-record-plugin.config.js +2 -0
  40. package/esm2015/app/modules/html-editor/plugins/mention.plugin.js +87 -0
  41. package/esm2015/app/modules/html-editor/plugins/realtime.plugin.js +13 -0
  42. package/esm2015/app/modules/html-editor/plugins/screen-record.plugin.js +94 -0
  43. package/esm2015/app/modules/html-editor/services/froala-loader.service.js +80 -0
  44. package/esm2015/app/modules/html-editor/utils/loader.js +84 -0
  45. package/esm2015/app/modules/html-renderer/components/html-renderer/html-renderer.component.js +29 -0
  46. package/esm2015/app/modules/html-renderer/fs-html-renderer.module.js +26 -0
  47. package/esm2015/public_api.js +14 -12
  48. package/fesm2015/firestitch-html-editor.js +40 -7
  49. package/fesm2015/firestitch-html-editor.js.map +1 -1
  50. package/package.json +1 -1
  51. package/public_api.d.ts +18 -16
  52. package/esm2015/app/classes/plugin.js +0 -5
  53. package/esm2015/app/components/html-editor/html-editor.component.js +0 -493
  54. package/esm2015/app/components/html-renderer/html-renderer.component.js +0 -29
  55. package/esm2015/app/consts/paragraph-buttons.const.js +0 -9
  56. package/esm2015/app/consts/rich-buttons.const.js +0 -7
  57. package/esm2015/app/consts/text-buttons.const.js +0 -19
  58. package/esm2015/app/enums/default-plugin.enum.js +0 -2
  59. package/esm2015/app/fs-html-editor.module.js +0 -69
  60. package/esm2015/app/injects/config.inject.js +0 -4
  61. package/esm2015/app/interfaces/html-editor-config.js +0 -2
  62. package/esm2015/app/interfaces/plugin-button.js +0 -2
  63. package/esm2015/app/interfaces/plugin-config.js +0 -2
  64. package/esm2015/app/plugins/checklist.plugin.js +0 -35
  65. package/esm2015/app/plugins/code.plugin.js +0 -63
  66. package/esm2015/app/plugins/configs/mention-plugin.config.js +0 -2
  67. package/esm2015/app/plugins/configs/screen-record-plugin.config.js +0 -2
  68. package/esm2015/app/plugins/mention.plugin.js +0 -87
  69. package/esm2015/app/plugins/screen-record.plugin.js +0 -94
  70. package/esm2015/app/services/froala-loader.service.js +0 -80
  71. package/esm2015/app/utils/loader.js +0 -84
@@ -3,14 +3,14 @@ import { FsHtmlEditorConfig } from './interfaces/html-editor-config';
3
3
  import { FroalaPlugin } from './enums/default-plugin.enum';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "./components/html-editor/html-editor.component";
6
- import * as i2 from "./components/html-renderer/html-renderer.component";
7
- import * as i3 from "@angular/common";
8
- import * as i4 from "@firestitch/skeleton";
9
- import * as i5 from "@firestitch/label";
6
+ import * as i2 from "@angular/common";
7
+ import * as i3 from "@firestitch/skeleton";
8
+ import * as i4 from "@firestitch/label";
9
+ import * as i5 from "../html-renderer/fs-html-renderer.module";
10
10
  export declare class FsHtmlEditorModule {
11
11
  static forRoot(config?: FsHtmlEditorConfig): ModuleWithProviders<FsHtmlEditorModule>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlEditorModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlEditorModule, [typeof i1.FsHtmlEditorComponent, typeof i2.FsHtmlRendererComponent], [typeof i3.CommonModule, typeof i4.FsSkeletonModule, typeof i5.FsLabelModule], [typeof i1.FsHtmlEditorComponent, typeof i2.FsHtmlRendererComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlEditorModule, [typeof i1.FsHtmlEditorComponent], [typeof i2.CommonModule, typeof i3.FsSkeletonModule, typeof i4.FsLabelModule, typeof i5.FsHtmlRendererModule], [typeof i1.FsHtmlEditorComponent]>;
14
14
  static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlEditorModule>;
15
15
  }
16
16
  export declare function FsHtmlEditorConfigFactory(config: FsHtmlEditorConfig): {
@@ -0,0 +1,7 @@
1
+ import { PluginConfig } from '../interfaces/plugin-config';
2
+ import { Plugin } from '../classes/plugin';
3
+ export declare class RealtimePlugin extends Plugin {
4
+ config: PluginConfig;
5
+ constructor(config?: PluginConfig);
6
+ initialize(): void;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/html-renderer/html-renderer.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class FsHtmlRendererModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlRendererModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlRendererModule, [typeof i1.FsHtmlRendererComponent], [typeof i2.CommonModule], [typeof i1.FsHtmlRendererComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlRendererModule>;
8
+ }
@@ -1094,6 +1094,31 @@
1094
1094
  type: i0.Input
1095
1095
  }] } });
1096
1096
 
1097
+ var FsHtmlRendererModule = /** @class */ (function () {
1098
+ function FsHtmlRendererModule() {
1099
+ }
1100
+ return FsHtmlRendererModule;
1101
+ }());
1102
+ FsHtmlRendererModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1103
+ FsHtmlRendererModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, declarations: [FsHtmlRendererComponent], imports: [i4.CommonModule], exports: [FsHtmlRendererComponent] });
1104
+ FsHtmlRendererModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, imports: [[
1105
+ i4.CommonModule,
1106
+ ]] });
1107
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, decorators: [{
1108
+ type: i0.NgModule,
1109
+ args: [{
1110
+ imports: [
1111
+ i4.CommonModule,
1112
+ ],
1113
+ exports: [
1114
+ FsHtmlRendererComponent,
1115
+ ],
1116
+ declarations: [
1117
+ FsHtmlRendererComponent,
1118
+ ],
1119
+ }]
1120
+ }] });
1121
+
1097
1122
  var FsHtmlEditorModule = /** @class */ (function () {
1098
1123
  function FsHtmlEditorModule() {
1099
1124
  }
@@ -1114,15 +1139,15 @@
1114
1139
  return FsHtmlEditorModule;
1115
1140
  }());
1116
1141
  FsHtmlEditorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1117
- FsHtmlEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, declarations: [FsHtmlEditorComponent,
1118
- FsHtmlRendererComponent], imports: [i4.CommonModule,
1142
+ FsHtmlEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, declarations: [FsHtmlEditorComponent], imports: [i4.CommonModule,
1119
1143
  i5.FsSkeletonModule,
1120
- i2.FsLabelModule], exports: [FsHtmlEditorComponent,
1121
- FsHtmlRendererComponent] });
1144
+ i2.FsLabelModule,
1145
+ FsHtmlRendererModule], exports: [FsHtmlEditorComponent] });
1122
1146
  FsHtmlEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, imports: [[
1123
1147
  i4.CommonModule,
1124
1148
  i5.FsSkeletonModule,
1125
1149
  i2.FsLabelModule,
1150
+ FsHtmlRendererModule,
1126
1151
  ]] });
1127
1152
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, decorators: [{
1128
1153
  type: i0.NgModule,
@@ -1131,14 +1156,13 @@
1131
1156
  i4.CommonModule,
1132
1157
  i5.FsSkeletonModule,
1133
1158
  i2.FsLabelModule,
1159
+ FsHtmlRendererModule,
1134
1160
  ],
1135
1161
  exports: [
1136
1162
  FsHtmlEditorComponent,
1137
- FsHtmlRendererComponent,
1138
1163
  ],
1139
1164
  declarations: [
1140
1165
  FsHtmlEditorComponent,
1141
- FsHtmlRendererComponent,
1142
1166
  ],
1143
1167
  }]
1144
1168
  }] });
@@ -1461,6 +1485,22 @@
1461
1485
  return ScreenRecordPlugin;
1462
1486
  }(Plugin));
1463
1487
 
1488
+ var RealtimePlugin = /** @class */ (function (_super) {
1489
+ __extends(RealtimePlugin, _super);
1490
+ function RealtimePlugin(config) {
1491
+ if (config === void 0) { config = { name: 'realtime' }; }
1492
+ var _this = _super.call(this) || this;
1493
+ _this.config = config;
1494
+ _this.config = Object.assign(Object.assign({}, config), { name: 'realtime' });
1495
+ return _this;
1496
+ }
1497
+ RealtimePlugin.prototype.initialize = function () {
1498
+ this.editor.events.on('click', function (e) {
1499
+ }, false);
1500
+ };
1501
+ return RealtimePlugin;
1502
+ }(Plugin));
1503
+
1464
1504
  /**
1465
1505
  * Generated bundle index. Do not edit.
1466
1506
  */
@@ -1471,8 +1511,10 @@
1471
1511
  exports.FsHtmlEditorComponent = FsHtmlEditorComponent;
1472
1512
  exports.FsHtmlEditorModule = FsHtmlEditorModule;
1473
1513
  exports.FsHtmlRendererComponent = FsHtmlRendererComponent;
1514
+ exports.FsHtmlRendererModule = FsHtmlRendererModule;
1474
1515
  exports.MentionPlugin = MentionPlugin;
1475
1516
  exports.ParagraphButtons = ParagraphButtons;
1517
+ exports.RealtimePlugin = RealtimePlugin;
1476
1518
  exports.RichButtons = RichButtons;
1477
1519
  exports.ScreenRecordPlugin = ScreenRecordPlugin;
1478
1520
  exports.TextButtons = TextButtons;