@emailmaker/extensions-app 0.9.0-dev.4 → 0.9.0-dev.6

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 CHANGED
@@ -901,71 +901,89 @@ settingsPanel.showSettingsPanel({
901
901
 
902
902
  # 🧰 CLI
903
903
 
904
- `@emailmaker/cli` — публичный генератор проектов для внешних плагинов и demo-стендов.
904
+ `@emailmaker/cli` — публичный генератор проектов: внешние плагины и демо-стенды. Работает в интерактивном режиме и с полным набором аргументов командной строки.
905
905
 
906
- ## Что умеет CLI
906
+ ## Флаги командной строки
907
907
 
908
- - интерактивный wizard
909
- - неинтерактивный запуск через аргументы командной строки
910
- - генерация plugin-проекта
911
- - генерация stand / stand-closed сценариев
912
- - шаблоны под `vite` и `webpack`
913
- - выбор target-а для внешнего плагина: `npm-пакет`, `встраиваемый bundle`, `advanced`
908
+ Ниже — опции, которые отражены в справке CLI (`--help`). Скрытые или служебные поля (монорепозиторий, отладка шаблонов) здесь не перечисляются.
914
909
 
915
- ## Основные режимы
910
+ ### `--dev` / `--dev-packages`
916
911
 
917
- ### `plugin`
912
+ **Самый частый флаг для разработки:** подставляет **dev**-версии внутренних npm-пакетов (`@emailmaker/*`), которые в шаблонах задаются с dist-tag `dev` вместо `latest`. Используйте, когда нужны свежие предрелизные сборки экосистемы.
913
+
914
+ ```bash
915
+ npx @emailmaker/cli my-plugin --kind plugin --preset advanced --bundler vite --target npm-package --dev --output-dir ./my-plugin
916
+ ```
917
+
918
+ Короткая форма: `--dev` (эквивалент `--dev-packages`).
919
+
920
+ ### Остальные опции
921
+
922
+ | Флаг | Назначение |
923
+ |------|------------|
924
+ | `--interactive` | Запустить интерактивный мастер (шаги вместо обязательных аргументов). |
925
+ | `--package-name` | Явное имя npm-пакета для генерируемого плагина. |
926
+ | `--kind` | Режим: `plugin` или `demo-stand`. |
927
+ | `--stand-mode` | Сценарий стенда: `oauth`, `closed-loop`, `react-adapter`, `advanced` (и связанные варианты). |
928
+ | `--advanced-profile` | Для `--stand-mode advanced`: `subpath`, `shadow-dom`, `umd`. |
929
+ | `--preset` | Шаблон плагина: `minimal` или `advanced`. |
930
+ | `--bundler` | `vite` или `webpack` — сборщик в шаблоне. |
931
+ | `--target` | Поставка плагина: `npm-package`, `browser`, `advanced`. |
932
+ | `--advanced-target` | Доп. цель для режима `advanced` (только webpack), см. справку CLI. |
933
+ | `--app` | Идентификатор приложения (`REACT_APP_NAME`), как в монорепозитории; в опубликованном CLI может быть скрыт. |
934
+ | `--output-dir` | Каталог, куда положить сгенерированный проект. |
935
+ | `--output-base` | Базовый каталог: внутри него будет создана папка проекта. |
936
+ | `--force` | Разрешить запись в уже существующую директорию. |
918
937
 
919
- Генерирует внешний плагин с:
938
+ Полный список и актуальные значения перечислены в выводе:
920
939
 
921
- - app-частью
922
- - sandbox-частью
923
- - local debug host
924
- - базовой сборкой и scripts
940
+ ```bash
941
+ npx @emailmaker/cli --help
942
+ ```
925
943
 
926
- ### `stand`
944
+ ## Что умеет CLI
927
945
 
928
- Генерирует тестовый стенд с API и OAuth.
946
+ - интерактивный wizard и неинтерактивный запуск;
947
+ - генерация проекта плагина и демо-стендов;
948
+ - шаблоны под **vite** и **webpack**;
949
+ - выбор способа поставки плагина: npm-модуль, браузерный бандл, режим **advanced**.
929
950
 
930
- ### `stand-closed`
951
+ ## Основные режимы
931
952
 
932
- Генерирует стенд для замкнутого контура (`standaloneKey`).
953
+ ### `plugin`
933
954
 
934
- ## Preset-ы для plugin
955
+ Внешний плагин: app-часть, sandbox, локальный debug host, базовые скрипты сборки.
935
956
 
936
- ### `minimal`
957
+ ### `demo-stand` (в т.ч. `stand`, `stand-closed` в документации)
937
958
 
938
- Минимальный каркас:
959
+ Отдельный стенд для интеграции: варианты с OAuth, закрытым контуром, react-adapter, advanced-профили.
939
960
 
940
- - `pluginRegistry`
941
- - базовая app/sandbox связка
942
- - без React UI примера
961
+ ## Preset-ы для `plugin`
943
962
 
944
- ### `advanced`
963
+ - **`minimal`** — каркас без React-примера.
964
+ - **`advanced`** — React UI, `ComponentRegistry`, примеры панелей и API.
945
965
 
946
- Расширенный пример:
966
+ ## Примеры
947
967
 
948
- - React UI
949
- - `ComponentRegistry` из `@emailmaker/extensions-react`
950
- - пример регистрации panel/icon
951
- - пример `SettingsPanelApi` и `MessageService`
968
+ С **dev**-пакетами:
952
969
 
953
- ## Пример запуска
970
+ ```bash
971
+ npx @emailmaker/cli my-plugin --kind plugin --preset advanced --bundler vite --target npm-package --dev --output-dir ./my-plugin
972
+ ```
973
+
974
+ Без dev (стабильные версии из реестра):
954
975
 
955
976
  ```bash
956
- npx @emailmaker/cli my-plugin --preset advanced --bundler vite --target npm-package --output-dir ./my-plugin
977
+ npx @emailmaker/cli my-plugin --kind plugin --preset advanced --bundler vite --target npm-package --output-dir ./my-plugin
957
978
  ```
958
979
 
959
- После глобальной установки команда будет называться `emailmaker-cli`.
980
+ После глобальной установки команда может называться `emailmaker-cli`.
960
981
 
961
982
  ## Когда использовать CLI
962
983
 
963
- CLI нужен, если вы хотите:
964
-
965
- - быстро стартовать новый внешний плагин
966
- - не собирать вручную `vite`/`webpack` конфиг
967
- - сразу получить готовую структуру проекта
968
- - получить рабочий пример app, sandbox и локальной отладки
984
+ - быстро создать новый внешний плагин;
985
+ - не собирать вручную конфиг **vite** / **webpack**;
986
+ - получить согласованную структуру app, sandbox и локальной отладки.
969
987
 
970
988
 
971
989
  ---
package/externals.json CHANGED
@@ -3,338 +3,58 @@
3
3
  "promise __emailmaker__.modules",
4
4
  "React"
5
5
  ],
6
- "@emailmaker/emailmaker/runtime/react": [
7
- "promise __emailmaker__.modules",
8
- "React"
9
- ],
10
- "@emailmaker/emailmaker/runtime/react/index": [
11
- "promise __emailmaker__.modules",
12
- "React"
13
- ],
14
- "@emailmaker/emailmaker/runtime/react/index.js": [
15
- "promise __emailmaker__.modules",
16
- "React"
17
- ],
18
- "@emailmaker/emailmaker/runtime/react/index.mjs": [
19
- "promise __emailmaker__.modules",
20
- "React"
21
- ],
22
- "@emailmaker/emailmaker/runtime/react/index.cjs": [
23
- "promise __emailmaker__.modules",
24
- "React"
25
- ],
26
6
  "react-dom": [
27
7
  "promise __emailmaker__.modules",
28
8
  "ReactDom"
29
9
  ],
30
- "@emailmaker/emailmaker/runtime/react-dom": [
31
- "promise __emailmaker__.modules",
32
- "ReactDom"
33
- ],
34
- "@emailmaker/emailmaker/runtime/react-dom/index": [
35
- "promise __emailmaker__.modules",
36
- "ReactDom"
37
- ],
38
- "@emailmaker/emailmaker/runtime/react-dom/index.js": [
39
- "promise __emailmaker__.modules",
40
- "ReactDom"
41
- ],
42
- "@emailmaker/emailmaker/runtime/react-dom/index.mjs": [
43
- "promise __emailmaker__.modules",
44
- "ReactDom"
45
- ],
46
- "@emailmaker/emailmaker/runtime/react-dom/index.cjs": [
47
- "promise __emailmaker__.modules",
48
- "ReactDom"
49
- ],
50
10
  "react-dom/client": [
51
11
  "promise __emailmaker__.modules",
52
12
  "ReactDomClient"
53
13
  ],
54
- "@emailmaker/emailmaker/runtime/react-dom/client": [
55
- "promise __emailmaker__.modules",
56
- "ReactDomClient"
57
- ],
58
- "@emailmaker/emailmaker/runtime/react-dom/client/index": [
59
- "promise __emailmaker__.modules",
60
- "ReactDomClient"
61
- ],
62
- "@emailmaker/emailmaker/runtime/react-dom/client/index.js": [
63
- "promise __emailmaker__.modules",
64
- "ReactDomClient"
65
- ],
66
- "@emailmaker/emailmaker/runtime/react-dom/client/index.mjs": [
67
- "promise __emailmaker__.modules",
68
- "ReactDomClient"
69
- ],
70
- "@emailmaker/emailmaker/runtime/react-dom/client/index.cjs": [
71
- "promise __emailmaker__.modules",
72
- "ReactDomClient"
73
- ],
74
14
  "react/jsx-runtime": [
75
15
  "promise __emailmaker__.modules",
76
16
  "ReactJsxRuntime"
77
17
  ],
78
- "@emailmaker/emailmaker/runtime/react/jsx-runtime": [
79
- "promise __emailmaker__.modules",
80
- "ReactJsxRuntime"
81
- ],
82
- "@emailmaker/emailmaker/runtime/react/jsx-runtime/index": [
83
- "promise __emailmaker__.modules",
84
- "ReactJsxRuntime"
85
- ],
86
- "@emailmaker/emailmaker/runtime/react/jsx-runtime/index.js": [
87
- "promise __emailmaker__.modules",
88
- "ReactJsxRuntime"
89
- ],
90
- "@emailmaker/emailmaker/runtime/react/jsx-runtime/index.mjs": [
91
- "promise __emailmaker__.modules",
92
- "ReactJsxRuntime"
93
- ],
94
- "@emailmaker/emailmaker/runtime/react/jsx-runtime/index.cjs": [
95
- "promise __emailmaker__.modules",
96
- "ReactJsxRuntime"
97
- ],
98
18
  "react/jsx-dev-runtime": [
99
19
  "promise __emailmaker__.modules",
100
20
  "ReactJsxDevRuntime"
101
21
  ],
102
- "@emailmaker/emailmaker/runtime/react/jsx-dev-runtime": [
103
- "promise __emailmaker__.modules",
104
- "ReactJsxDevRuntime"
105
- ],
106
- "@emailmaker/emailmaker/runtime/react/jsx-dev-runtime/index": [
107
- "promise __emailmaker__.modules",
108
- "ReactJsxDevRuntime"
109
- ],
110
- "@emailmaker/emailmaker/runtime/react/jsx-dev-runtime/index.js": [
111
- "promise __emailmaker__.modules",
112
- "ReactJsxDevRuntime"
113
- ],
114
- "@emailmaker/emailmaker/runtime/react/jsx-dev-runtime/index.mjs": [
115
- "promise __emailmaker__.modules",
116
- "ReactJsxDevRuntime"
117
- ],
118
- "@emailmaker/emailmaker/runtime/react/jsx-dev-runtime/index.cjs": [
119
- "promise __emailmaker__.modules",
120
- "ReactJsxDevRuntime"
121
- ],
122
22
  "prop-types": [
123
23
  "promise __emailmaker__.modules",
124
24
  "PropTypes"
125
25
  ],
126
- "@emailmaker/emailmaker/runtime/prop-types": [
127
- "promise __emailmaker__.modules",
128
- "PropTypes"
129
- ],
130
- "@emailmaker/emailmaker/runtime/prop-types/index": [
131
- "promise __emailmaker__.modules",
132
- "PropTypes"
133
- ],
134
- "@emailmaker/emailmaker/runtime/prop-types/index.js": [
135
- "promise __emailmaker__.modules",
136
- "PropTypes"
137
- ],
138
- "@emailmaker/emailmaker/runtime/prop-types/index.mjs": [
139
- "promise __emailmaker__.modules",
140
- "PropTypes"
141
- ],
142
- "@emailmaker/emailmaker/runtime/prop-types/index.cjs": [
143
- "promise __emailmaker__.modules",
144
- "PropTypes"
145
- ],
146
26
  "react-router-dom": [
147
27
  "promise __emailmaker__.modules",
148
28
  "ReactRouterDom"
149
29
  ],
150
- "@emailmaker/emailmaker/runtime/react-router-dom": [
151
- "promise __emailmaker__.modules",
152
- "ReactRouterDom"
153
- ],
154
- "@emailmaker/emailmaker/runtime/react-router-dom/index": [
155
- "promise __emailmaker__.modules",
156
- "ReactRouterDom"
157
- ],
158
- "@emailmaker/emailmaker/runtime/react-router-dom/index.js": [
159
- "promise __emailmaker__.modules",
160
- "ReactRouterDom"
161
- ],
162
- "@emailmaker/emailmaker/runtime/react-router-dom/index.mjs": [
163
- "promise __emailmaker__.modules",
164
- "ReactRouterDom"
165
- ],
166
- "@emailmaker/emailmaker/runtime/react-router-dom/index.cjs": [
167
- "promise __emailmaker__.modules",
168
- "ReactRouterDom"
169
- ],
170
30
  "antd": [
171
31
  "promise __emailmaker__.modules",
172
32
  "Antd"
173
33
  ],
174
- "@emailmaker/emailmaker/runtime/antd": [
175
- "promise __emailmaker__.modules",
176
- "Antd"
177
- ],
178
- "@emailmaker/emailmaker/runtime/antd/index": [
179
- "promise __emailmaker__.modules",
180
- "Antd"
181
- ],
182
- "@emailmaker/emailmaker/runtime/antd/index.js": [
183
- "promise __emailmaker__.modules",
184
- "Antd"
185
- ],
186
- "@emailmaker/emailmaker/runtime/antd/index.mjs": [
187
- "promise __emailmaker__.modules",
188
- "Antd"
189
- ],
190
- "@emailmaker/emailmaker/runtime/antd/index.cjs": [
191
- "promise __emailmaker__.modules",
192
- "Antd"
193
- ],
194
34
  "@ant-design/icons": [
195
35
  "promise __emailmaker__.modules",
196
36
  "AntDesignIcons"
197
37
  ],
198
- "@emailmaker/emailmaker/runtime/@ant-design/icons": [
199
- "promise __emailmaker__.modules",
200
- "AntDesignIcons"
201
- ],
202
- "@emailmaker/emailmaker/runtime/@ant-design/icons/index": [
203
- "promise __emailmaker__.modules",
204
- "AntDesignIcons"
205
- ],
206
- "@emailmaker/emailmaker/runtime/@ant-design/icons/index.js": [
207
- "promise __emailmaker__.modules",
208
- "AntDesignIcons"
209
- ],
210
- "@emailmaker/emailmaker/runtime/@ant-design/icons/index.mjs": [
211
- "promise __emailmaker__.modules",
212
- "AntDesignIcons"
213
- ],
214
- "@emailmaker/emailmaker/runtime/@ant-design/icons/index.cjs": [
215
- "promise __emailmaker__.modules",
216
- "AntDesignIcons"
217
- ],
218
38
  "@ant-design/cssinjs": [
219
39
  "promise __emailmaker__.modules",
220
40
  "AntDesignCssinjs"
221
41
  ],
222
- "@emailmaker/emailmaker/runtime/@ant-design/cssinjs": [
223
- "promise __emailmaker__.modules",
224
- "AntDesignCssinjs"
225
- ],
226
- "@emailmaker/emailmaker/runtime/@ant-design/cssinjs/index": [
227
- "promise __emailmaker__.modules",
228
- "AntDesignCssinjs"
229
- ],
230
- "@emailmaker/emailmaker/runtime/@ant-design/cssinjs/index.js": [
231
- "promise __emailmaker__.modules",
232
- "AntDesignCssinjs"
233
- ],
234
- "@emailmaker/emailmaker/runtime/@ant-design/cssinjs/index.mjs": [
235
- "promise __emailmaker__.modules",
236
- "AntDesignCssinjs"
237
- ],
238
- "@emailmaker/emailmaker/runtime/@ant-design/cssinjs/index.cjs": [
239
- "promise __emailmaker__.modules",
240
- "AntDesignCssinjs"
241
- ],
242
42
  "@ant-design/pro-layout": [
243
43
  "promise __emailmaker__.modules",
244
44
  "AntDesignProLayout"
245
45
  ],
246
- "@emailmaker/emailmaker/runtime/@ant-design/pro-layout": [
247
- "promise __emailmaker__.modules",
248
- "AntDesignProLayout"
249
- ],
250
- "@emailmaker/emailmaker/runtime/@ant-design/pro-layout/index": [
251
- "promise __emailmaker__.modules",
252
- "AntDesignProLayout"
253
- ],
254
- "@emailmaker/emailmaker/runtime/@ant-design/pro-layout/index.js": [
255
- "promise __emailmaker__.modules",
256
- "AntDesignProLayout"
257
- ],
258
- "@emailmaker/emailmaker/runtime/@ant-design/pro-layout/index.mjs": [
259
- "promise __emailmaker__.modules",
260
- "AntDesignProLayout"
261
- ],
262
- "@emailmaker/emailmaker/runtime/@ant-design/pro-layout/index.cjs": [
263
- "promise __emailmaker__.modules",
264
- "AntDesignProLayout"
265
- ],
266
46
  "classnames": [
267
47
  "promise __emailmaker__.modules",
268
48
  "Classnames"
269
49
  ],
270
- "@emailmaker/emailmaker/runtime/classnames": [
271
- "promise __emailmaker__.modules",
272
- "Classnames"
273
- ],
274
- "@emailmaker/emailmaker/runtime/classnames/index": [
275
- "promise __emailmaker__.modules",
276
- "Classnames"
277
- ],
278
- "@emailmaker/emailmaker/runtime/classnames/index.js": [
279
- "promise __emailmaker__.modules",
280
- "Classnames"
281
- ],
282
- "@emailmaker/emailmaker/runtime/classnames/index.mjs": [
283
- "promise __emailmaker__.modules",
284
- "Classnames"
285
- ],
286
- "@emailmaker/emailmaker/runtime/classnames/index.cjs": [
287
- "promise __emailmaker__.modules",
288
- "Classnames"
289
- ],
290
50
  "dayjs": [
291
51
  "promise __emailmaker__.modules",
292
52
  "Dayjs"
293
53
  ],
294
- "@emailmaker/emailmaker/runtime/dayjs": [
295
- "promise __emailmaker__.modules",
296
- "Dayjs"
297
- ],
298
- "@emailmaker/emailmaker/runtime/dayjs/index": [
299
- "promise __emailmaker__.modules",
300
- "Dayjs"
301
- ],
302
- "@emailmaker/emailmaker/runtime/dayjs/index.js": [
303
- "promise __emailmaker__.modules",
304
- "Dayjs"
305
- ],
306
- "@emailmaker/emailmaker/runtime/dayjs/index.mjs": [
307
- "promise __emailmaker__.modules",
308
- "Dayjs"
309
- ],
310
- "@emailmaker/emailmaker/runtime/dayjs/index.cjs": [
311
- "promise __emailmaker__.modules",
312
- "Dayjs"
313
- ],
314
54
  "uuid": [
315
55
  "promise __emailmaker__.modules",
316
56
  "Uuid"
317
57
  ],
318
- "@emailmaker/emailmaker/runtime/uuid": [
319
- "promise __emailmaker__.modules",
320
- "Uuid"
321
- ],
322
- "@emailmaker/emailmaker/runtime/uuid/index": [
323
- "promise __emailmaker__.modules",
324
- "Uuid"
325
- ],
326
- "@emailmaker/emailmaker/runtime/uuid/index.js": [
327
- "promise __emailmaker__.modules",
328
- "Uuid"
329
- ],
330
- "@emailmaker/emailmaker/runtime/uuid/index.mjs": [
331
- "promise __emailmaker__.modules",
332
- "Uuid"
333
- ],
334
- "@emailmaker/emailmaker/runtime/uuid/index.cjs": [
335
- "promise __emailmaker__.modules",
336
- "Uuid"
337
- ],
338
58
  "@emailmaker/emailmaker/runtime/core": [
339
59
  "promise __emailmaker__.modules",
340
60
  "Core"
@@ -355,27 +75,11 @@
355
75
  "promise __emailmaker__.modules",
356
76
  "Core"
357
77
  ],
358
- "di": [
78
+ "@emailmaker/emailmaker/runtime-core": [
359
79
  "promise __emailmaker__.modules",
360
80
  "Core"
361
81
  ],
362
- "@emailmaker/emailmaker/runtime/di": [
363
- "promise __emailmaker__.modules",
364
- "Core"
365
- ],
366
- "@emailmaker/emailmaker/runtime/di/index": [
367
- "promise __emailmaker__.modules",
368
- "Core"
369
- ],
370
- "@emailmaker/emailmaker/runtime/di/index.js": [
371
- "promise __emailmaker__.modules",
372
- "Core"
373
- ],
374
- "@emailmaker/emailmaker/runtime/di/index.mjs": [
375
- "promise __emailmaker__.modules",
376
- "Core"
377
- ],
378
- "@emailmaker/emailmaker/runtime/di/index.cjs": [
82
+ "di": [
379
83
  "promise __emailmaker__.modules",
380
84
  "Core"
381
85
  ],
@@ -383,96 +87,12 @@
383
87
  "promise __emailmaker__.modules",
384
88
  "Core"
385
89
  ],
386
- "@emailmaker/emailmaker/runtime/disposable": [
387
- "promise __emailmaker__.modules",
388
- "Core"
389
- ],
390
- "@emailmaker/emailmaker/runtime/disposable/index": [
391
- "promise __emailmaker__.modules",
392
- "Core"
393
- ],
394
- "@emailmaker/emailmaker/runtime/disposable/index.js": [
395
- "promise __emailmaker__.modules",
396
- "Core"
397
- ],
398
- "@emailmaker/emailmaker/runtime/disposable/index.mjs": [
399
- "promise __emailmaker__.modules",
400
- "Core"
401
- ],
402
- "@emailmaker/emailmaker/runtime/disposable/index.cjs": [
403
- "promise __emailmaker__.modules",
404
- "Core"
405
- ],
406
90
  "guid": [
407
91
  "promise __emailmaker__.modules",
408
92
  "Core"
409
93
  ],
410
- "@emailmaker/emailmaker/runtime/guid": [
411
- "promise __emailmaker__.modules",
412
- "Core"
413
- ],
414
- "@emailmaker/emailmaker/runtime/guid/index": [
415
- "promise __emailmaker__.modules",
416
- "Core"
417
- ],
418
- "@emailmaker/emailmaker/runtime/guid/index.js": [
419
- "promise __emailmaker__.modules",
420
- "Core"
421
- ],
422
- "@emailmaker/emailmaker/runtime/guid/index.mjs": [
423
- "promise __emailmaker__.modules",
424
- "Core"
425
- ],
426
- "@emailmaker/emailmaker/runtime/guid/index.cjs": [
427
- "promise __emailmaker__.modules",
428
- "Core"
429
- ],
430
- "app-core": [
431
- "promise __emailmaker__.modules",
432
- "Core"
433
- ],
434
- "@emailmaker/emailmaker/runtime/app-core": [
435
- "promise __emailmaker__.modules",
436
- "Core"
437
- ],
438
- "@emailmaker/emailmaker/runtime/app-core/index": [
439
- "promise __emailmaker__.modules",
440
- "Core"
441
- ],
442
- "@emailmaker/emailmaker/runtime/app-core/index.js": [
443
- "promise __emailmaker__.modules",
444
- "Core"
445
- ],
446
- "@emailmaker/emailmaker/runtime/app-core/index.mjs": [
447
- "promise __emailmaker__.modules",
448
- "Core"
449
- ],
450
- "@emailmaker/emailmaker/runtime/app-core/index.cjs": [
451
- "promise __emailmaker__.modules",
452
- "Core"
453
- ],
454
94
  "errors-runtime": [
455
95
  "promise __emailmaker__.modules",
456
96
  "Core"
457
- ],
458
- "@emailmaker/emailmaker/runtime/errors-runtime": [
459
- "promise __emailmaker__.modules",
460
- "Core"
461
- ],
462
- "@emailmaker/emailmaker/runtime/errors-runtime/index": [
463
- "promise __emailmaker__.modules",
464
- "Core"
465
- ],
466
- "@emailmaker/emailmaker/runtime/errors-runtime/index.js": [
467
- "promise __emailmaker__.modules",
468
- "Core"
469
- ],
470
- "@emailmaker/emailmaker/runtime/errors-runtime/index.mjs": [
471
- "promise __emailmaker__.modules",
472
- "Core"
473
- ],
474
- "@emailmaker/emailmaker/runtime/errors-runtime/index.cjs": [
475
- "promise __emailmaker__.modules",
476
- "Core"
477
97
  ]
478
98
  }
package/index.js CHANGED
@@ -13,7 +13,7 @@ var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.g
13
13
  });
14
14
  return i;
15
15
  }, o = (e, t, n) => (a(e, t, "default"), n && a(n, t, "default")), s = /* @__PURE__ */ i({});
16
- import * as c from "@emailmaker/emailmaker/runtime/di/index.js";
16
+ import * as c from "@emailmaker/emailmaker/runtime-core";
17
17
  o(s, c);
18
18
  //#endregion
19
19
  //#region packages/extensions-core/components/DomComponentRegistry.ts
@@ -107,7 +107,7 @@ var _ = g();
107
107
  n.packages[e.id] = e, n.validateAll();
108
108
  }, t.__compat.registerPackage({
109
109
  id: "extensions-api",
110
- version: "0.9.0-dev.4",
110
+ version: "0.9.0-dev.6",
111
111
  requires: { host: "^1.0.105" }
112
112
  });
113
113
  }
@@ -180,6 +180,6 @@ var x = class {
180
180
  function D(e = b()) {
181
181
  return e;
182
182
  }
183
- var O = d(s.DependencyResolver), k = "1.0.107-dev.6";
183
+ var O = d(s.DependencyResolver), k = "1.0.111-dev.1";
184
184
  //#endregion
185
185
  export { O as DomComponentRegistry, S as ElementsApi, E as EmailSettingsApi, C as MessageService, T as ModalApi, x as SandboxScriptApi, w as SettingsPanelApi, D as createComponentIdentifier, _ as pluginRegistry, k as version };
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  "main": "index.js",
6
6
  "types": "types.d.ts",
7
7
  "name": "@emailmaker/extensions-app",
8
- "version": "0.9.0-dev.4",
8
+ "version": "0.9.0-dev.6",
9
9
  "dependencies": {
10
- "@emailmaker/emailmaker": "1.0.107-dev.6"
10
+ "@emailmaker/emailmaker": "1.0.111-dev.1"
11
11
  }
12
12
  }
package/types.d.ts CHANGED
@@ -46,6 +46,9 @@ type Identifier$1<Type0 = any, Type1 = any, Type2 = any> = {
46
46
  * Type that can be a Promise or a value.
47
47
  */
48
48
  type MayBePromise$1<Value> = Promise<Value> | Value;
49
+ interface IDisposable$1 {
50
+ dispose(): void;
51
+ }
49
52
  /**
50
53
  * Information about an element.
51
54
  */
@@ -75,7 +78,7 @@ interface IElementsApi {
75
78
  /**
76
79
  * Updates an existing element.
77
80
  */
78
- update(name: string, element: Element): IDisposable;
81
+ update(name: string, element: Element): IDisposable$1;
79
82
  /**
80
83
  * Deletes an element by its name.
81
84
  */
@@ -83,7 +86,7 @@ interface IElementsApi {
83
86
  /**
84
87
  * Inserts a new element at a specified position.
85
88
  */
86
- insert(element: Element, position?: number): IDisposable;
89
+ insert(element: Element, position?: number): IDisposable$1;
87
90
  /**
88
91
  * Fires when elements are injected to HTML.
89
92
  */
@@ -91,7 +94,7 @@ interface IElementsApi {
91
94
  name: string;
92
95
  className: string;
93
96
  html: string;
94
- }) => void, priority?: number, thisArg?: any): IDisposable;
97
+ }) => void, priority?: number, thisArg?: any): IDisposable$1;
95
98
  }
96
99
  /**
97
100
  * API for interacting with the MessageService.
@@ -110,19 +113,19 @@ interface IMessageServiceApi {
110
113
  /**
111
114
  * Adds a global event listener for message events.
112
115
  */
113
- addListener(listener: (e: MessageEvent) => void): IDisposable;
116
+ addListener(listener: (e: MessageEvent) => void): IDisposable$1;
114
117
  /**
115
118
  * Adds a listener for a specific message type.
116
119
  */
117
- addListener<Type = any>(messageTypeId: Identifier$1<Type>, listener: (value: Type) => void, priority?: number): IDisposable;
120
+ addListener<Type = any>(messageTypeId: Identifier$1<Type>, listener: (value: Type) => void, priority?: number): IDisposable$1;
118
121
  /**
119
122
  * Adds an asynchronous listener for a specific message type.
120
123
  */
121
- addListenerAsync<Type = any, Result = any>(messageTypeId: Identifier$1<Type, Result>, listener: (value: Type) => MayBePromise$1<Result>, priority?: number): IDisposable;
124
+ addListenerAsync<Type = any, Result = any>(messageTypeId: Identifier$1<Type, Result>, listener: (value: Type) => MayBePromise$1<Result>, priority?: number): IDisposable$1;
122
125
  /**
123
126
  * Adds a listener for the initialization event.
124
127
  */
125
- onInit(listener: (target: Window) => void, immediately?: boolean, priority?: number): IDisposable;
128
+ onInit(listener: (target: Window) => void, immediately?: boolean, priority?: number): IDisposable$1;
126
129
  /**
127
130
  * Checks whether initialization has been completed.
128
131
  */
@@ -213,19 +216,19 @@ interface ISandboxScriptApi {
213
216
  /**
214
217
  * Registers an external CSS file inside the sandboxed environment.
215
218
  */
216
- registerSandboxCSS(url: string): IDisposable;
219
+ registerSandboxCSS(url: string): IDisposable$1;
217
220
  /**
218
221
  * Registers a block of CSS code inside the sandboxed environment.
219
222
  */
220
- registerSandboxCSSCode(key: string, code: string): IDisposable;
223
+ registerSandboxCSSCode(key: string, code: string): IDisposable$1;
221
224
  /**
222
225
  * Registers an external JavaScript file inside the sandboxed environment.
223
226
  */
224
- registerSandboxScript(url: string): IDisposable;
227
+ registerSandboxScript(url: string): IDisposable$1;
225
228
  /**
226
229
  * Registers a block of JavaScript code inside the sandboxed environment.
227
230
  */
228
- registerSandboxScriptCode(key: string, code: string): IDisposable;
231
+ registerSandboxScriptCode(key: string, code: string): IDisposable$1;
229
232
  }
230
233
  /**
231
234
  * Options for adding extra tabs in the interface.