@tiny-mce-umbraco/backoffice 17.3.4 → 18.0.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 (72) hide show
  1. package/dist-cms/api/client/client.gen.d.ts.map +1 -1
  2. package/dist-cms/api/client/client.gen.js +114 -102
  3. package/dist-cms/api/client/index.d.ts +1 -1
  4. package/dist-cms/api/client/index.d.ts.map +1 -1
  5. package/dist-cms/api/client/types.gen.d.ts +9 -13
  6. package/dist-cms/api/client/types.gen.d.ts.map +1 -1
  7. package/dist-cms/api/client/utils.gen.d.ts +8 -4
  8. package/dist-cms/api/client/utils.gen.d.ts.map +1 -1
  9. package/dist-cms/api/client/utils.gen.js +13 -15
  10. package/dist-cms/api/client.gen.d.ts.map +1 -1
  11. package/dist-cms/api/client.gen.js +1 -3
  12. package/dist-cms/api/core/auth.gen.d.ts.map +1 -1
  13. package/dist-cms/api/core/bodySerializer.gen.d.ts +16 -8
  14. package/dist-cms/api/core/bodySerializer.gen.d.ts.map +1 -1
  15. package/dist-cms/api/core/bodySerializer.gen.js +1 -1
  16. package/dist-cms/api/core/params.gen.d.ts +10 -0
  17. package/dist-cms/api/core/params.gen.d.ts.map +1 -1
  18. package/dist-cms/api/core/params.gen.js +22 -10
  19. package/dist-cms/api/core/pathSerializer.gen.d.ts.map +1 -1
  20. package/dist-cms/api/core/pathSerializer.gen.js +3 -11
  21. package/dist-cms/api/core/queryKeySerializer.gen.d.ts.map +1 -1
  22. package/dist-cms/api/core/queryKeySerializer.gen.js +4 -11
  23. package/dist-cms/api/core/serverSentEvents.gen.d.ts +1 -1
  24. package/dist-cms/api/core/serverSentEvents.gen.d.ts.map +1 -1
  25. package/dist-cms/api/core/serverSentEvents.gen.js +6 -9
  26. package/dist-cms/api/core/types.gen.d.ts +1 -1
  27. package/dist-cms/api/core/types.gen.d.ts.map +1 -1
  28. package/dist-cms/api/core/utils.gen.d.ts.map +1 -1
  29. package/dist-cms/api/core/utils.gen.js +1 -1
  30. package/dist-cms/api/index.d.ts +2 -2
  31. package/dist-cms/api/index.d.ts.map +1 -1
  32. package/dist-cms/api/index.js +1 -2
  33. package/dist-cms/api/sdk.gen.d.ts +1 -1
  34. package/dist-cms/api/sdk.gen.d.ts.map +1 -1
  35. package/dist-cms/api/sdk.gen.js +1 -6
  36. package/dist-cms/api/types.gen.d.ts +13 -18
  37. package/dist-cms/api/types.gen.d.ts.map +1 -1
  38. package/dist-cms/api/types.gen.js +1 -6
  39. package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.d.ts.map +1 -1
  40. package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.js +73 -6
  41. package/dist-cms/components/input-tiny-mce/input-tiny-mce.element.d.ts +1 -1
  42. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-input.element.d.ts +1 -1
  43. package/dist-cms/localizations/ar.d.ts.map +1 -1
  44. package/dist-cms/localizations/ar.js +3 -0
  45. package/dist-cms/localizations/bs.d.ts.map +1 -1
  46. package/dist-cms/localizations/bs.js +3 -0
  47. package/dist-cms/localizations/cy.d.ts.map +1 -1
  48. package/dist-cms/localizations/cy.js +3 -0
  49. package/dist-cms/localizations/da.d.ts.map +1 -1
  50. package/dist-cms/localizations/da.js +4 -0
  51. package/dist-cms/localizations/en.d.ts.map +1 -1
  52. package/dist-cms/localizations/en.js +4 -0
  53. package/dist-cms/localizations/hr.d.ts.map +1 -1
  54. package/dist-cms/localizations/hr.js +3 -0
  55. package/dist-cms/localizations/it.d.ts.map +1 -1
  56. package/dist-cms/localizations/it.js +3 -0
  57. package/dist-cms/localizations/manifests.d.ts.map +1 -1
  58. package/dist-cms/localizations/manifests.js +24 -24
  59. package/dist-cms/localizations/nl.d.ts.map +1 -1
  60. package/dist-cms/localizations/nl.js +3 -0
  61. package/dist-cms/localizations/tr.d.ts.map +1 -1
  62. package/dist-cms/localizations/tr.js +3 -0
  63. package/dist-cms/plugins/core/ai-request-factory.js +2 -2
  64. package/dist-cms/plugins/tiny-mce-block-picker.plugin.d.ts.map +1 -1
  65. package/dist-cms/plugins/tiny-mce-block-picker.plugin.js +20 -2
  66. package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.d.ts.map +1 -1
  67. package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.js +1 -0
  68. package/dist-cms/plugins/tiny-mce-mediapicker.plugin.d.ts.map +1 -1
  69. package/dist-cms/plugins/tiny-mce-mediapicker.plugin.js +7 -3
  70. package/dist-cms/property-editors/tiny-mce/manifests.d.ts.map +1 -1
  71. package/dist-cms/property-editors/tiny-mce/manifests.js +1 -0
  72. package/package.json +12 -8
@@ -19,6 +19,11 @@ const buildKeyMap = (fields, map) => {
19
19
  });
20
20
  }
21
21
  }
22
+ else if ('key' in config) {
23
+ map.set(config.key, {
24
+ map: config.map,
25
+ });
26
+ }
22
27
  else if (config.args) {
23
28
  buildKeyMap(config.args, map);
24
29
  }
@@ -27,17 +32,17 @@ const buildKeyMap = (fields, map) => {
27
32
  };
28
33
  const stripEmptySlots = (params) => {
29
34
  for (const [slot, value] of Object.entries(params)) {
30
- if (value && typeof value === 'object' && !Object.keys(value).length) {
35
+ if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) {
31
36
  delete params[slot];
32
37
  }
33
38
  }
34
39
  };
35
40
  export const buildClientParams = (args, fields) => {
36
41
  const params = {
37
- body: {},
38
- headers: {},
39
- path: {},
40
- query: {},
42
+ body: Object.create(null),
43
+ headers: Object.create(null),
44
+ path: Object.create(null),
45
+ query: Object.create(null),
41
46
  };
42
47
  const map = buildKeyMap(fields);
43
48
  let config;
@@ -52,7 +57,9 @@ export const buildClientParams = (args, fields) => {
52
57
  if (config.key) {
53
58
  const field = map.get(config.key);
54
59
  const name = field.map || config.key;
55
- params[field.in][name] = arg;
60
+ if (field.in) {
61
+ params[field.in][name] = arg;
62
+ }
56
63
  }
57
64
  else {
58
65
  params.body = arg;
@@ -62,8 +69,13 @@ export const buildClientParams = (args, fields) => {
62
69
  for (const [key, value] of Object.entries(arg ?? {})) {
63
70
  const field = map.get(key);
64
71
  if (field) {
65
- const name = field.map || key;
66
- params[field.in][name] = value;
72
+ if (field.in) {
73
+ const name = field.map || key;
74
+ params[field.in][name] = value;
75
+ }
76
+ else {
77
+ params[field.map] = value;
78
+ }
67
79
  }
68
80
  else {
69
81
  const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix));
@@ -71,8 +83,8 @@ export const buildClientParams = (args, fields) => {
71
83
  const [prefix, slot] = extra;
72
84
  params[slot][key.slice(prefix.length)] = value;
73
85
  }
74
- else {
75
- for (const [slot, allowed] of Object.entries(config.allowExtra ?? {})) {
86
+ else if ('allowExtra' in config && config.allowExtra) {
87
+ for (const [slot, allowed] of Object.entries(config.allowExtra)) {
76
88
  if (allowed) {
77
89
  params[slot][key] = value;
78
90
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"pathSerializer.gen.d.ts","sourceRoot":"","sources":["../../../src/api/core/pathSerializer.gen.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB,CAAC,CAAC,CAC1B,SAAQ,yBAAyB,EAC/B,iBAAiB,CAAC,CAAC,CAAC;CAAG;AAE3B,UAAU,yBAAyB;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,GAAG,eAAe,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,WAAW,CAAC;AAC3D,KAAK,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,YAAY,CAAC;AAChD,KAAK,oBAAoB,GAAG,WAAW,GAAG,WAAW,CAAC;AAEtD,UA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AM,MAAM,WAAW,GAAG,MAAM,GAAG,YAAY,CAAC;AAChD,KAAK,oBAAoB,GAAG,WAAW,GAAG,WAAW,CAAC;AAEtD,UAAU,uBAAwB,SAAQ,yBAAyB;IACjE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,mBAAmB,0BAW/D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,mBAAmB,sBAWjE,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,oBAAoB,0BAWjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,iDAMjC,gBAAgB,CAAC,mBAAmB,CAAC,GAAG;IACzC,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB,WAgCA,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,iCAIrC,uBAAuB,WAYzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,4DAOlC,gBAAgB,CAAC,oBAAoB,CAAC,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,WAkCA,CAAC"}
@@ -62,9 +62,7 @@ export const serializeArrayParam = ({ allowReserved, explode, name, style, value
62
62
  });
63
63
  })
64
64
  .join(separator);
65
- return style === 'label' || style === 'matrix'
66
- ? separator + joinedValues
67
- : joinedValues;
65
+ return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;
68
66
  };
69
67
  export const serializePrimitiveParam = ({ allowReserved, name, value, }) => {
70
68
  if (value === undefined || value === null) {
@@ -82,11 +80,7 @@ export const serializeObjectParam = ({ allowReserved, explode, name, style, valu
82
80
  if (style !== 'deepObject' && !explode) {
83
81
  let values = [];
84
82
  Object.entries(value).forEach(([key, v]) => {
85
- values = [
86
- ...values,
87
- key,
88
- allowReserved ? v : encodeURIComponent(v),
89
- ];
83
+ values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
90
84
  });
91
85
  const joinedValues = values.join(',');
92
86
  switch (style) {
@@ -108,7 +102,5 @@ export const serializeObjectParam = ({ allowReserved, explode, name, style, valu
108
102
  value: v,
109
103
  }))
110
104
  .join(separator);
111
- return style === 'label' || style === 'matrix'
112
- ? separator + joinedValues
113
- : joinedValues;
105
+ return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;
114
106
  };
@@ -1 +1 @@
1
- {"version":3,"file":"queryKeySerializer.gen.d.ts","sourceRoot":"","sources":["../../../src/api/core/queryKeySerializer.gen.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,EAAE,OAAO,OAAO,0BAehE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,KAAG,SAAS,GAAG,SAUjE,CAAC;AAuCF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,OAAO,KACb,SAAS,GAAG,SA6Cd,CAAC"}
1
+ {"version":3,"file":"queryKeySerializer.gen.d.ts","sourceRoot":"","sources":["../../../src/api/core/queryKeySerializer.gen.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,EAAE,OAAO,OAAO,0BAWhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,KAAG,SAAS,GAAG,SAUjE,CAAC;AAqCF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,KAAG,SAAS,GAAG,SAkCnE,CAAC"}
@@ -3,9 +3,7 @@
3
3
  * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
4
4
  */
5
5
  export const queryKeyJsonReplacer = (_key, value) => {
6
- if (value === undefined ||
7
- typeof value === 'function' ||
8
- typeof value === 'symbol') {
6
+ if (value === undefined || typeof value === 'function' || typeof value === 'symbol') {
9
7
  return undefined;
10
8
  }
11
9
  if (typeof value === 'bigint') {
@@ -69,14 +67,10 @@ export const serializeQueryKeyValue = (value) => {
69
67
  if (value === null) {
70
68
  return null;
71
69
  }
72
- if (typeof value === 'string' ||
73
- typeof value === 'number' ||
74
- typeof value === 'boolean') {
70
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
75
71
  return value;
76
72
  }
77
- if (value === undefined ||
78
- typeof value === 'function' ||
79
- typeof value === 'symbol') {
73
+ if (value === undefined || typeof value === 'function' || typeof value === 'symbol') {
80
74
  return undefined;
81
75
  }
82
76
  if (typeof value === 'bigint') {
@@ -88,8 +82,7 @@ export const serializeQueryKeyValue = (value) => {
88
82
  if (Array.isArray(value)) {
89
83
  return stringifyToJsonValue(value);
90
84
  }
91
- if (typeof URLSearchParams !== 'undefined' &&
92
- value instanceof URLSearchParams) {
85
+ if (typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams) {
93
86
  return serializeSearchParams(value);
94
87
  }
95
88
  if (isPlainObject(value)) {
@@ -68,5 +68,5 @@ export interface StreamEvent<TData = unknown> {
68
68
  export type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
69
69
  stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
70
70
  };
71
- export declare const createSseClient: <TData = unknown>({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }: ServerSentEventsOptions) => ServerSentEventsResult<TData>;
71
+ export declare function createSseClient<TData = unknown>({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }: ServerSentEventsOptions): ServerSentEventsResult<TData>;
72
72
  //# sourceMappingURL=serverSentEvents.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverSentEvents.gen.d.ts","sourceRoot":"","sources":["../../../src/api/core/serverSentEvents.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,MAAM,uBAAuB,CAAC,KAAK,GAAG,OAAO,IAAI,IAAI,CACzD,WAAW,EACX,QAAQ,CACT,GACC,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,qBAAqB,GAAG,mBAAmB,CAAC,GAAG;IACrE;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACjE;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACjD,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OA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/openapi-ts
2
- export const createSseClient = ({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) => {
2
+ export function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
3
3
  let lastEventId;
4
- const sleep = sseSleepFn ??
5
- ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
4
+ const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
6
5
  const createStream = async function* () {
7
6
  let retryDelay = sseDefaultRetryDelay ?? 3000;
8
7
  let attempt = 0;
@@ -37,9 +36,7 @@ export const createSseClient = ({ onRequest, onSseError, onSseEvent, responseTra
37
36
  throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
38
37
  if (!response.body)
39
38
  throw new Error('No body in SSE response');
40
- const reader = response.body
41
- .pipeThrough(new TextDecoderStream())
42
- .getReader();
39
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
43
40
  let buffer = '';
44
41
  const abortHandler = () => {
45
42
  try {
@@ -56,6 +53,7 @@ export const createSseClient = ({ onRequest, onSseError, onSseEvent, responseTra
56
53
  if (done)
57
54
  break;
58
55
  buffer += value;
56
+ buffer = buffer.replace(/\r\n?/g, '\n'); // normalize line endings
59
57
  const chunks = buffer.split('\n\n');
60
58
  buffer = chunks.pop() ?? '';
61
59
  for (const chunk of chunks) {
@@ -120,8 +118,7 @@ export const createSseClient = ({ onRequest, onSseError, onSseEvent, responseTra
120
118
  catch (error) {
121
119
  // connection failed or aborted; retry after delay
122
120
  onSseError?.(error);
123
- if (sseMaxRetryAttempts !== undefined &&
124
- attempt >= sseMaxRetryAttempts) {
121
+ if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) {
125
122
  break; // stop after firing error
126
123
  }
127
124
  // exponential backoff: double retry each attempt, cap at 30s
@@ -132,4 +129,4 @@ export const createSseClient = ({ onRequest, onSseError, onSseEvent, responseTra
132
129
  };
133
130
  const stream = createStream();
134
131
  return { stream };
135
- };
132
+ }
@@ -61,7 +61,7 @@ export interface Config {
61
61
  requestValidator?: (data: unknown) => Promise<unknown>;
62
62
  /**
63
63
  * A function transforming response data before it's returned. This is useful
64
- * for post-processing data, e.g. converting ISO strings into Date objects.
64
+ * for post-processing data, e.g., converting ISO strings into Date objects.
65
65
  */
66
66
  responseTransformer?: (data: unknown) => Promise<unknown>;
67
67
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/api/core/types.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,QAAQ,GACR,KAAK,GACL,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,KAAK,GACL,OAAO,CAAC;AAEZ,MAAM,MAAM,MAAM,CAChB,SAAS,GAAG,KAAK,EACjB,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,KAAK,EAChB,UAAU,GAAG,KAAK,EAClB,KAAK,GAAG,KAAK,IACX;IACF;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CACvC,GAAG;KACD,CAAC,IAAI,UAAU,GAAG,QAAQ;CAC5B,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GACtB;IAAE,GAAG,CAAC,EAAE,KAAK,CAAA;CAAE,GACf;IAAE,GAAG,EAAE;SAAG,CAAC,IA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,CAAC,CAAC,CAAC,CAAC;CACtF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../../src/api/core/utils.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQ5E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,aAAa,QAAgB,CAAC;AAE3C,eAAO,MAAM,qBAAqB,GAAI,qBAAqB,cAAc,WAoExE,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,uDAMpB;IACD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,eAAe,EAAE,eAAe,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;CACb,WAcA,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,WAuBA"}
1
+ {"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../../src/api/core/utils.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQ5E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,aAAa,QAAgB,CAAC;AAE3C,eAAO,MAAM,qBAAqB,GAAI,qBAAqB,cAAc,WAiExE,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,uDAMpB;IACD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,eAAe,EAAE,eAAe,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;CACb,WAcA,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,WAuBA"}
@@ -75,7 +75,7 @@ export function getValidRequestBody(options) {
75
75
  const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
76
76
  return hasSerializedBody ? options.serializedBody : null;
77
77
  }
78
- // not all clients implement a serializedBody property (i.e. client-axios)
78
+ // not all clients implement a serializedBody property (i.e., client-axios)
79
79
  return options.body !== '' ? options.body : null;
80
80
  }
81
81
  // plain/text body
@@ -1,3 +1,3 @@
1
- export * from './types.gen';
2
- export * from './sdk.gen';
1
+ export { type Options, TinyMceService } from './sdk.gen';
2
+ export type { ClientOptions, GetConfigData, GetConfigError, GetConfigErrors, GetConfigResponse, GetConfigResponses, OpenAiApiConfig, ProblemDetails, RichTextEditorCommand, RichTextEditorCommandModeModel, RichTextEditorSettings, TinyMceConfig, TinyMceConfigResponseModel } from './types.gen';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC"}
@@ -1,3 +1,2 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export * from './types.gen';
3
- export * from './sdk.gen';
2
+ export { TinyMceService } from './sdk.gen';
@@ -1,6 +1,6 @@
1
1
  import type { Client, Options as Options2, TDataShape } from './client';
2
2
  import type { GetConfigData, GetConfigErrors, GetConfigResponses } from './types.gen';
3
- export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
6
6
  * individual options. This might be also useful if you want to implement a
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../src/api/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,IAAI,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtF,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,YAAY,SAAS,OAAO,GAAG,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG;IACjI;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,qBAAa,cAAc;WACT,SAAS,CAAC,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC;CAY/G"}
1
+ {"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../src/api/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,IAAI,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtF,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,YAAY,SAAS,OAAO,GAAG,OAAO,EAAE,SAAS,GAAG,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,CAAC,GAAG;IACjK;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,qBAAa,cAAc;WACT,SAAS,CAAC,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC;CAO/G"}
@@ -3,12 +3,7 @@ import { client } from './client.gen';
3
3
  export class TinyMceService {
4
4
  static getConfig(options) {
5
5
  return (options?.client ?? client).get({
6
- security: [
7
- {
8
- scheme: 'bearer',
9
- type: 'http'
10
- }
11
- ],
6
+ security: [{ scheme: 'bearer', type: 'http' }],
12
7
  url: '/umbraco/management/api/v1/tiny-mce/config',
13
8
  ...options
14
9
  });
@@ -1,39 +1,34 @@
1
1
  export type ClientOptions = {
2
- baseUrl: 'https://localhost:44308' | (string & {});
2
+ baseUrl: 'https://localhost:44308/' | (string & {});
3
3
  };
4
4
  export type OpenAiApiConfig = {
5
5
  model: string;
6
6
  developerMessage: string;
7
- temperature: number;
8
- maxCompletionTokens: number;
7
+ temperature: number | string;
8
+ maxCompletionTokens: number | string;
9
9
  };
10
10
  export type ProblemDetails = {
11
- type?: string | null;
12
- title?: string | null;
13
- status?: number | null;
14
- detail?: string | null;
15
- instance?: string | null;
16
- [key: string]: unknown | string | null | string | null | number | null | string | null | string | null | undefined;
11
+ type?: null | string;
12
+ title?: null | string;
13
+ status?: null | number | string;
14
+ detail?: null | string;
15
+ instance?: null | string;
17
16
  };
18
17
  export type RichTextEditorCommand = {
19
18
  alias: string;
20
19
  name: string;
21
20
  mode: RichTextEditorCommandModeModel;
22
21
  };
23
- export declare enum RichTextEditorCommandModeModel {
24
- INSERT = "Insert",
25
- SELECTION = "Selection",
26
- ALL = "All"
27
- }
22
+ export type RichTextEditorCommandModeModel = number;
28
23
  export type RichTextEditorSettings = {
29
24
  commands: Array<RichTextEditorCommand>;
30
25
  plugins: Array<string>;
31
26
  customConfig: {
32
- [key: string]: string;
27
+ [key: string]: unknown;
33
28
  };
34
29
  validElements: string;
35
30
  invalidElements: string;
36
- cloudApiKey?: string | null;
31
+ cloudApiKey?: null | string;
37
32
  };
38
33
  export type TinyMceConfig = {
39
34
  apikey: string;
@@ -48,8 +43,8 @@ export type TinyMceConfig = {
48
43
  };
49
44
  };
50
45
  export type TinyMceConfigResponseModel = {
51
- richTextEditor?: RichTextEditorSettings | null;
52
- config?: TinyMceConfig | null;
46
+ richTextEditor?: null | RichTextEditorSettings;
47
+ config?: null | TinyMceConfig;
53
48
  };
54
49
  export type GetConfigData = {
55
50
  body?: never;
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../src/api/types.gen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,yBAAyB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACtD,CAAC;A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;IACzB,YAAY,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,cAAc,CAAC,EAAE,IAAI,GAAG,sBAAsB,CAAC;IAC/C,MAAM,CAAC,EAAE,IAAI,GAAG,aAAa,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,EAAE,4CAA4C,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,eAAe,CAAC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,GAAG,EAAE,0BAA0B,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,MAAM,kBAAkB,CAAC,CAAC"}
@@ -1,7 +1,2 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export var RichTextEditorCommandModeModel;
3
- (function (RichTextEditorCommandModeModel) {
4
- RichTextEditorCommandModeModel["INSERT"] = "Insert";
5
- RichTextEditorCommandModeModel["SELECTION"] = "Selection";
6
- RichTextEditorCommandModeModel["ALL"] = "All";
7
- })(RichTextEditorCommandModeModel || (RichTextEditorCommandModeModel = {}));
2
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"input-tiny-mce.defaults.d.ts","sourceRoot":"","sources":["../../../src/components/input-tiny-mce/input-tiny-mce.defaults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAGjF,eAAO,MAAM,4CAA4C,sCAAsC,CAAC;AAEhG,eAAO,MAAM,yBAAyB,uQAmB5B,CAAC;AAMX,eAAO,MAAM,qBAAqB,EAAE,gBAiKnC,CAAC"}
1
+ {"version":3,"file":"input-tiny-mce.defaults.d.ts","sourceRoot":"","sources":["../../../src/components/input-tiny-mce/input-tiny-mce.defaults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAKjF,eAAO,MAAM,4CAA4C,sCAAsC,CAAC;AAEhG,eAAO,MAAM,yBAAyB,uQAmB5B,CAAC;AAMX,eAAO,MAAM,qBAAqB,EAAE,gBAmOnC,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { UMB_CONTEXT_REQUEST_EVENT_TYPE } from '@umbraco-cms/backoffice/context-api';
2
+ import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
2
3
  import { UUIIconRequestEvent } from '@umbraco-cms/backoffice/external/uui';
4
+ import { umbLocalizationManager } from '@umbraco-cms/backoffice/localization-api';
3
5
  export const UMB_BLOCK_ENTRY_WEB_COMPONENTS_ABSOLUTE_PATH = '@umbraco-cms/backoffice/block-rte';
4
6
  export const defaultPremiumPluginsList = [
5
7
  'a11ychecker',
@@ -27,9 +29,9 @@ export const defaultPremiumPluginsList = [
27
29
  //if a user removes an element from ValidElements config it would still be allowed via this list.
28
30
  export const defaultFallbackConfig = {
29
31
  plugins: ['anchor', 'charmap', 'table', 'lists', 'advlist', 'autolink', 'directionality', 'searchreplace'],
30
- valid_elements: '+a[id|style|rel|data-id|data-udi|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],-strong/-b[class|style],-em/-i[class|style],-strike[class|style],-s[class|style],-u[class|style],#p[id|style|dir|class|align],-ol[class|reversed|start|style|type],-ul[class|style],-li[class|style],br[class],img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align|umbracoorgwidth|umbracoorgheight|onresize|onresizestart|onresizeend|rel|data-id],-sub[style|class],-sup[style|class],-blockquote[dir|style|class],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor],-tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],tbody[id|class],thead[id|class],tfoot[id|class],#td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope],-th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style],-span[class|align|style|lang],-pre[class|align|style],address[class|align|style],-h1[id|dir|class|align|style],-h2[id|dir|class|align|style],-h3[id|dir|class|align|style],-h4[id|dir|class|align|style],-h5[id|dir|class|align|style],-h6[id|style|dir|class|align|style],hr[class|style],small[class|style],dd[id|class|title|style|dir|lang],dl[id|class|title|style|dir|lang],dt[id|class|title|style|dir|lang],object[class|id|width|height|codebase|*],param[name|value|_value|class],embed[type|width|height|src|class|*],map[name|class],area[shape|coords|href|alt|target|class],bdo[class],button[class],iframe[*],figure,figcaption,cite,video[*],audio[*],picture[*],source[*],canvas[*],details[*],summary[*],-code',
32
+ valid_elements: '+a[id|style|rel|data-id|data-udi|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],-strong/-b[class|style],-em/-i[class|style],-strike[class|style],-s[class|style],-u[class|style],#p[id|style|dir|class|align],-ol[class|reversed|start|style|type],-ul[class|style],-li[class|style],br[class],img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align|umbracoorgwidth|umbracoorgheight|onresize|onresizestart|onresizeend|rel|data-id],-sub[style|class],-sup[style|class],-blockquote[dir|style|class],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor],-tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],tbody[id|class],thead[id|class],tfoot[id|class],#td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope],-th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style|contenteditable|data-embed-url|data-embed-height|data-embed-width|data-embed-constrain],-span[class|align|style|lang],-pre[class|align|style],address[class|align|style],-h1[id|dir|class|align|style],-h2[id|dir|class|align|style],-h3[id|dir|class|align|style],-h4[id|dir|class|align|style],-h5[id|dir|class|align|style],-h6[id|style|dir|class|align|style],hr[class|style],small[class|style],dd[id|class|title|style|dir|lang],dl[id|class|title|style|dir|lang],dt[id|class|title|style|dir|lang],object[class|id|width|height|codebase|*],param[name|value|_value|class],embed[type|width|height|src|class|*],map[name|class],area[shape|coords|href|alt|target|class],bdo[class],button[class],iframe[*],figure,figcaption,cite,video[*],audio[*],picture[*],source[*],canvas[*],details[*],summary[*],-code',
31
33
  invalid_elements: 'font',
32
- extended_valid_elements: '@[id|class|style],+umb-rte-block[!data-content-key],+umb-rte-block-inline[!data-content-key],ins[datetime|cite],figure,figcaption',
34
+ extended_valid_elements: '@[id|class|style],+umb-rte-block[!data-content-key],+umb-rte-block-inline[!data-content-key],ins[datetime|cite],figure,figcaption,iframe[*]',
33
35
  custom_elements: 'umb-rte-block,~umb-rte-block-inline',
34
36
  toolbar: [
35
37
  'styles',
@@ -124,12 +126,77 @@ export const defaultFallbackConfig = {
124
126
  // Change the history!
125
127
  window.history.pushState(null, '', path);
126
128
  });
127
- // Load backoffice JS so we can get the umb-rte-block component registered inside the iframe [NL]
129
+ // Sync block editor localization keys into the iframe's module-scope umbLocalizationManager.
130
+ // The iframe has a completely separate module scope (and thus a separate umbLocalizationManager
131
+ // instance) from the outer document. Without this, requestDelete() in UmbBlockEntryContext
132
+ // falls back to returning raw keys because the iframe's manager has no registered translations.
133
+ const locSetsToSync = [];
134
+ const BLOCK_LOC_KEYS = ['blockEditor_confirmDeleteBlockTitle', 'blockEditor_confirmDeleteBlockMessage'];
135
+ umbLocalizationManager.localizations.forEach((locSet, code) => {
136
+ const locSetAny = locSet;
137
+ const entry = {
138
+ $code: code,
139
+ $dir: locSetAny['$dir'] ?? 'ltr',
140
+ };
141
+ let hasKey = false;
142
+ for (const key of BLOCK_LOC_KEYS) {
143
+ const val = locSetAny[key];
144
+ if (typeof val === 'string') {
145
+ entry[key] = val;
146
+ hasKey = true;
147
+ }
148
+ }
149
+ if (hasKey)
150
+ locSetsToSync.push(entry);
151
+ });
152
+ if (locSetsToSync.length > 0) {
153
+ const locScript = document.createElement('script');
154
+ locScript.setAttribute('type', 'module');
155
+ locScript.text = `
156
+ import { umbLocalizationManager } from "@umbraco-cms/backoffice/localization-api";
157
+ ${JSON.stringify(locSetsToSync)}.forEach(s => umbLocalizationManager.registerLocalization(s));
158
+ `;
159
+ editor.dom.doc.head.appendChild(locScript);
160
+ }
161
+ // Expose the outer extension registry on the outer window so the injected module
162
+ // script below can sync blockAction manifests into the iframe's per-realm instance.
163
+ // umb-block-action-list reads umbExtensionsRegistry as a module-level singleton
164
+ // (not via context), so the context proxy alone cannot bridge it across realms.
165
+ window._umbOuterExtReg = umbExtensionsRegistry;
166
+ // Load backoffice JS so we can get the umb-rte-block component registered inside the iframe.
167
+ // Also:
168
+ // 1. Import @umbraco-cms/backoffice/block to register the blockAction kind definition
169
+ // and the <umb-block-action> custom element in the iframe's realm. These are NOT
170
+ // transitively imported by block-rte, but umb-block-action-list needs them to
171
+ // instantiate block action extensions (kind: 'default').
172
+ // 2. Sync blockAction manifests from the outer registry into the iframe's registry.
173
+ // Umbraco registers manifests via umbraco-package.json (not module imports), so they
174
+ // only exist in the outer registry — we must copy them into the iframe's per-realm
175
+ // umbExtensionsRegistry so umb-block-action-list can discover them.
128
176
  const script = document.createElement('script');
129
- script.type = 'text/javascript';
130
177
  script.setAttribute('type', 'module');
131
- script.text = `import "@umbraco-cms/backoffice/extension-registry";`;
132
- script.text = `import "${UMB_BLOCK_ENTRY_WEB_COMPONENTS_ABSOLUTE_PATH}";`;
178
+ script.text = `
179
+ import { umbExtensionsRegistry } from "@umbraco-cms/backoffice/extension-registry";
180
+ import { UMB_BLOCK_ACTION_DEFAULT_KIND_MANIFEST } from "@umbraco-cms/backoffice/block";
181
+ import "${UMB_BLOCK_ENTRY_WEB_COMPONENTS_ABSOLUTE_PATH}";
182
+
183
+ // Register the blockAction default kind definition in the inner realm's registry.
184
+ // UMB_BLOCK_ACTION_DEFAULT_KIND_MANIFEST is imported here (inner realm), so its
185
+ // element factory — element: () => import('./block-action.element.js') — captures
186
+ // the inner realm's module URL. When the extension system later calls that factory,
187
+ // block-action.element.js is loaded in the inner realm, registering <umb-block-action>
188
+ // in the inner customElements registry.
189
+ umbExtensionsRegistry.registerMany([UMB_BLOCK_ACTION_DEFAULT_KIND_MANIFEST]);
190
+
191
+ // Sync blockAction manifests from the outer registry into the inner realm's registry.
192
+ // Umbraco registers these via umbraco-package.json at backoffice startup; they only
193
+ // exist in the outer registry and must be copied so umb-block-action-list can discover them.
194
+ const outerReg = window.parent?._umbOuterExtReg;
195
+ if (outerReg) {
196
+ const blockActions = outerReg.getByType('blockAction') ?? [];
197
+ if (blockActions.length) umbExtensionsRegistry.registerMany(blockActions);
198
+ }
199
+ `;
133
200
  editor.dom.doc.head.appendChild(script);
134
201
  },
135
202
  style_formats: [
@@ -1,7 +1,7 @@
1
1
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
2
  import type { Editor } from '@tiny-mce-umbraco/backoffice/external/tinymce';
3
3
  import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
4
- declare const UmbInputTinyMceElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base").UUIFormControlMixinElement<FormDataEntryValue | FormData>) & typeof UmbLitElement;
4
+ declare const UmbInputTinyMceElement_base: (new (...args: any[]) => import("@umbraco-ui/uui").UUIFormControlMixinElement<FormDataEntryValue | FormData>) & typeof UmbLitElement;
5
5
  export declare class UmbInputTinyMceElement extends UmbInputTinyMceElement_base {
6
6
  #private;
7
7
  configuration?: UmbPropertyEditorConfigCollection;
@@ -1,6 +1,6 @@
1
1
  import type { UmbStylesheetRule } from '../../types.js';
2
2
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
3
- declare const UmbStylesheetRuleInputElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base").UUIFormControlMixinElement<FormDataEntryValue | FormData>) & typeof UmbLitElement;
3
+ declare const UmbStylesheetRuleInputElement_base: (new (...args: any[]) => import("@umbraco-ui/uui").UUIFormControlMixinElement<FormDataEntryValue | FormData>) & typeof UmbLitElement;
4
4
  export declare class UmbStylesheetRuleInputElement extends UmbStylesheetRuleInputElement_base {
5
5
  #private;
6
6
  rules: UmbStylesheetRule[];
@@ -1 +1 @@
1
- {"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../src/localizations/ar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAMrF,yBAAyB;AAJ9B,wBAI+B"}
1
+ {"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../src/localizations/ar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBASrF,yBAAyB;AAP9B,wBAO+B"}
@@ -1,4 +1,7 @@
1
1
  export default {
2
+ blockEditor: {
3
+ confirmDeleteBlockMessage: 'هل أنت متأكد أنك تريد حذف المحتوى <strong>%0%</strong>؟',
4
+ },
2
5
  create: {
3
6
  newRteStyleSheetFile: 'ملف ورقة أنماط محرر النصوص الغني الجديد',
4
7
  },
@@ -1 +1 @@
1
- {"version":3,"file":"bs.d.ts","sourceRoot":"","sources":["../../src/localizations/bs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAMrF,yBAAyB;AAJ9B,wBAI+B"}
1
+ {"version":3,"file":"bs.d.ts","sourceRoot":"","sources":["../../src/localizations/bs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBASrF,yBAAyB;AAP9B,wBAO+B"}
@@ -1,4 +1,7 @@
1
1
  export default {
2
+ blockEditor: {
3
+ confirmDeleteBlockMessage: 'Jeste li sigurni da želite izbrisati sadržaj <strong>%0%</strong>?',
4
+ },
2
5
  create: {
3
6
  newRteStyleSheetFile: 'Novi Rich Text Editor CSS fajl',
4
7
  },
@@ -1 +1 @@
1
- {"version":3,"file":"cy.d.ts","sourceRoot":"","sources":["../../src/localizations/cy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAMrF,yBAAyB;AAJ9B,wBAI+B"}
1
+ {"version":3,"file":"cy.d.ts","sourceRoot":"","sources":["../../src/localizations/cy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBASrF,yBAAyB;AAP9B,wBAO+B"}
@@ -1,4 +1,7 @@
1
1
  export default {
2
+ blockEditor: {
3
+ confirmDeleteBlockMessage: "Ydych chi'n siŵr eich bod chi am ddileu'r cynnwys o <strong>%0%</strong>.",
4
+ },
2
5
  create: {
3
6
  newRteStyleSheetFile: 'Ffeil ddalen arddull Golygydd Testun Cyfoethog newydd',
4
7
  },
@@ -1 +1 @@
1
- {"version":3,"file":"da.d.ts","sourceRoot":"","sources":["../../src/localizations/da.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAMrF,yBAAyB;AAJ9B,wBAI+B"}
1
+ {"version":3,"file":"da.d.ts","sourceRoot":"","sources":["../../src/localizations/da.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAUrF,yBAAyB;AAR9B,wBAQ+B"}
@@ -1,4 +1,8 @@
1
1
  export default {
2
+ blockEditor: {
3
+ confirmDeleteBlockTitle: 'Slet %0',
4
+ confirmDeleteBlockMessage: 'Er du sikker på at du vil slette indholdet <strong>%0%</strong>?',
5
+ },
2
6
  create: {
3
7
  newRteStyleSheetFile: 'Ny Rich Text Editor stylesheet-fil',
4
8
  },
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/localizations/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAMrF,yBAAyB;AAJ9B,wBAI+B"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/localizations/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAUrF,yBAAyB;AAR9B,wBAQ+B"}
@@ -1,4 +1,8 @@
1
1
  export default {
2
+ blockEditor: {
3
+ confirmDeleteBlockTitle: 'Delete %0%?',
4
+ confirmDeleteBlockMessage: 'Are you sure you want to delete this %0%?',
5
+ },
2
6
  create: {
3
7
  newRteStyleSheetFile: 'New Rich Text Editor Stylesheet',
4
8
  },
@@ -1 +1 @@
1
- {"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../src/localizations/hr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBAMrF,yBAAyB;AAJ9B,wBAI+B"}
1
+ {"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../src/localizations/hr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;wBASrF,yBAAyB;AAP9B,wBAO+B"}