@tridion-sites/extensions 0.5.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.
- package/CHANGELOG.md +95 -0
- package/LICENSE.md +322 -0
- package/dist/index.d.ts +3214 -0
- package/dist/index.js +1451 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +62 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1451 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
|
|
4
|
+
const findItemIndex = ({ list, itemId, getItemId }) => {
|
|
5
|
+
const itemIndex = list.findIndex(item => getItemId(item) === itemId);
|
|
6
|
+
if (itemIndex < 0)
|
|
7
|
+
return undefined;
|
|
8
|
+
return itemIndex;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const addItem = ({ list, newItem, beforeItemId, getItemId }) => {
|
|
12
|
+
if (!beforeItemId) {
|
|
13
|
+
list.push(newItem);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
const destinationIndex = findItemIndex({
|
|
17
|
+
list,
|
|
18
|
+
itemId: beforeItemId,
|
|
19
|
+
getItemId,
|
|
20
|
+
});
|
|
21
|
+
if (destinationIndex !== undefined) {
|
|
22
|
+
list.splice(destinationIndex, 0, newItem);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const removeItem = ({ list, itemId, getItemId }) => {
|
|
28
|
+
const itemIndex = findItemIndex({
|
|
29
|
+
list,
|
|
30
|
+
itemId,
|
|
31
|
+
getItemId,
|
|
32
|
+
});
|
|
33
|
+
if (itemIndex !== undefined) {
|
|
34
|
+
return list.splice(itemIndex, 1)[0];
|
|
35
|
+
}
|
|
36
|
+
return undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const moveItem = ({ list, itemId, beforeItemId, getItemId }) => {
|
|
40
|
+
const itemIndex = findItemIndex({
|
|
41
|
+
list,
|
|
42
|
+
itemId,
|
|
43
|
+
getItemId,
|
|
44
|
+
});
|
|
45
|
+
if (itemIndex === undefined)
|
|
46
|
+
return;
|
|
47
|
+
if (beforeItemId && !findItemIndex({ list, itemId: beforeItemId, getItemId }))
|
|
48
|
+
return;
|
|
49
|
+
const removedItem = removeItem({
|
|
50
|
+
list,
|
|
51
|
+
itemId,
|
|
52
|
+
getItemId,
|
|
53
|
+
});
|
|
54
|
+
if (removedItem !== undefined) {
|
|
55
|
+
addItem({
|
|
56
|
+
list,
|
|
57
|
+
newItem: removedItem,
|
|
58
|
+
beforeItemId,
|
|
59
|
+
getItemId,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const replaceItem = ({ list, itemId, newItem, getItemId }) => {
|
|
65
|
+
const existingItemIndex = findItemIndex({
|
|
66
|
+
list,
|
|
67
|
+
itemId,
|
|
68
|
+
getItemId,
|
|
69
|
+
});
|
|
70
|
+
if (existingItemIndex === undefined)
|
|
71
|
+
return;
|
|
72
|
+
list[existingItemIndex] = newItem;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
class ListBuilder {
|
|
76
|
+
constructor(getItemId) {
|
|
77
|
+
Object.defineProperty(this, "_itemsConfiguration", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
configurable: true,
|
|
80
|
+
writable: true,
|
|
81
|
+
value: []
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(this, "_getItemId", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
configurable: true,
|
|
86
|
+
writable: true,
|
|
87
|
+
value: void 0
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(this, "customize", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
value: (configuration) => {
|
|
94
|
+
this._itemsConfiguration.push(configuration);
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(this, "add", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
configurable: true,
|
|
101
|
+
writable: true,
|
|
102
|
+
value: (newItem, beforeItemId) => {
|
|
103
|
+
this.customize(currentList => addItem({
|
|
104
|
+
list: currentList,
|
|
105
|
+
newItem,
|
|
106
|
+
beforeItemId,
|
|
107
|
+
getItemId: this._getItemId,
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(this, "move", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
configurable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
value: (itemId, beforeItemId) => {
|
|
116
|
+
this.customize(currentList => moveItem({
|
|
117
|
+
list: currentList,
|
|
118
|
+
itemId,
|
|
119
|
+
beforeItemId,
|
|
120
|
+
getItemId: this._getItemId,
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(this, "replace", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
configurable: true,
|
|
127
|
+
writable: true,
|
|
128
|
+
value: (itemId, newItem) => {
|
|
129
|
+
this.customize(currentList => replaceItem({
|
|
130
|
+
list: currentList,
|
|
131
|
+
itemId,
|
|
132
|
+
newItem,
|
|
133
|
+
getItemId: this._getItemId,
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(this, "remove", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
configurable: true,
|
|
140
|
+
writable: true,
|
|
141
|
+
value: (itemId) => {
|
|
142
|
+
this.customize(currentList => removeItem({
|
|
143
|
+
list: currentList,
|
|
144
|
+
itemId,
|
|
145
|
+
getItemId: this._getItemId,
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(this, "build", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
configurable: true,
|
|
152
|
+
writable: true,
|
|
153
|
+
value: () => {
|
|
154
|
+
return this._itemsConfiguration;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
this._getItemId = getItemId;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
class ActionsConfigurationExtensionsBuilder extends ListBuilder {
|
|
165
|
+
constructor() {
|
|
166
|
+
super(item => item.id);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
class ActivitiesExplorerTableExtensionsBuilder {
|
|
174
|
+
constructor() {
|
|
175
|
+
Object.defineProperty(this, "_actions", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
configurable: true,
|
|
178
|
+
writable: true,
|
|
179
|
+
value: []
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(this, "_columns", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
configurable: true,
|
|
184
|
+
writable: true,
|
|
185
|
+
value: []
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(this, "toolbar", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
configurable: true,
|
|
190
|
+
writable: true,
|
|
191
|
+
value: new ActionsConfigurationExtensionsBuilder()
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(this, "contextMenu", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
configurable: true,
|
|
196
|
+
writable: true,
|
|
197
|
+
value: new ActionsConfigurationExtensionsBuilder()
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(this, "addColumn", {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
configurable: true,
|
|
202
|
+
writable: true,
|
|
203
|
+
value: (column) => {
|
|
204
|
+
this._columns.push(column);
|
|
205
|
+
return this;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
Object.defineProperty(this, "addAction", {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
configurable: true,
|
|
211
|
+
writable: true,
|
|
212
|
+
value: (action) => {
|
|
213
|
+
this._actions.push(action);
|
|
214
|
+
return this;
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(this, "build", {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
configurable: true,
|
|
220
|
+
writable: true,
|
|
221
|
+
value: () => {
|
|
222
|
+
return {
|
|
223
|
+
actions: this._actions,
|
|
224
|
+
columns: this._columns,
|
|
225
|
+
contextMenu: this.contextMenu.build(),
|
|
226
|
+
toolbar: this.toolbar.build(),
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const createEnumObject = (values) => {
|
|
234
|
+
return values.reduce((acc, currentVal) => {
|
|
235
|
+
acc[currentVal] = currentVal;
|
|
236
|
+
return acc;
|
|
237
|
+
}, {});
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @internal
|
|
242
|
+
*/
|
|
243
|
+
const activitiesExplorerActionIds = [
|
|
244
|
+
'export',
|
|
245
|
+
'refresh',
|
|
246
|
+
'startActivity',
|
|
247
|
+
'finishActivity',
|
|
248
|
+
'restartActivity',
|
|
249
|
+
'assignActivity',
|
|
250
|
+
];
|
|
251
|
+
/**
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
const activitiesExplorerActionId = createEnumObject(activitiesExplorerActionIds);
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
const activitiesExplorerActionGroupIds = ['exporting', 'refreshing', 'workflow'];
|
|
259
|
+
/**
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
const activitiesExplorerActionGroupId = createEnumObject(activitiesExplorerActionGroupIds);
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
class ActivitiesExplorerExtensionsBuilder {
|
|
268
|
+
constructor() {
|
|
269
|
+
Object.defineProperty(this, "_actions", {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
configurable: true,
|
|
272
|
+
writable: true,
|
|
273
|
+
value: []
|
|
274
|
+
});
|
|
275
|
+
Object.defineProperty(this, "table", {
|
|
276
|
+
enumerable: true,
|
|
277
|
+
configurable: true,
|
|
278
|
+
writable: true,
|
|
279
|
+
value: new ActivitiesExplorerTableExtensionsBuilder()
|
|
280
|
+
});
|
|
281
|
+
Object.defineProperty(this, "addAction", {
|
|
282
|
+
enumerable: true,
|
|
283
|
+
configurable: true,
|
|
284
|
+
writable: true,
|
|
285
|
+
value: (action) => {
|
|
286
|
+
this._actions.push(action);
|
|
287
|
+
return this;
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
Object.defineProperty(this, "build", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
configurable: true,
|
|
293
|
+
writable: true,
|
|
294
|
+
value: () => {
|
|
295
|
+
return {
|
|
296
|
+
actions: this._actions,
|
|
297
|
+
table: this.table.build(),
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
307
|
+
class RichTextFieldExtensionsBuilder {
|
|
308
|
+
constructor() {
|
|
309
|
+
Object.defineProperty(this, "_customizations", {
|
|
310
|
+
enumerable: true,
|
|
311
|
+
configurable: true,
|
|
312
|
+
writable: true,
|
|
313
|
+
value: []
|
|
314
|
+
});
|
|
315
|
+
Object.defineProperty(this, "_plugins", {
|
|
316
|
+
enumerable: true,
|
|
317
|
+
configurable: true,
|
|
318
|
+
writable: true,
|
|
319
|
+
value: []
|
|
320
|
+
});
|
|
321
|
+
Object.defineProperty(this, "customize", {
|
|
322
|
+
enumerable: true,
|
|
323
|
+
configurable: true,
|
|
324
|
+
writable: true,
|
|
325
|
+
value: (customization) => {
|
|
326
|
+
this._customizations.push(customization);
|
|
327
|
+
return this;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(this, "registerPlugin", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
configurable: true,
|
|
333
|
+
writable: true,
|
|
334
|
+
value: (plugin) => {
|
|
335
|
+
this._plugins.push(plugin);
|
|
336
|
+
return this;
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
Object.defineProperty(this, "build", {
|
|
340
|
+
enumerable: true,
|
|
341
|
+
configurable: true,
|
|
342
|
+
writable: true,
|
|
343
|
+
value: () => ({
|
|
344
|
+
customizations: this._customizations,
|
|
345
|
+
plugins: this._plugins,
|
|
346
|
+
})
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @internal
|
|
353
|
+
*/
|
|
354
|
+
class ContentEditorExtensionsBuilder {
|
|
355
|
+
constructor() {
|
|
356
|
+
Object.defineProperty(this, "_formFields", {
|
|
357
|
+
enumerable: true,
|
|
358
|
+
configurable: true,
|
|
359
|
+
writable: true,
|
|
360
|
+
value: []
|
|
361
|
+
});
|
|
362
|
+
Object.defineProperty(this, "richTextField", {
|
|
363
|
+
enumerable: true,
|
|
364
|
+
configurable: true,
|
|
365
|
+
writable: true,
|
|
366
|
+
value: new RichTextFieldExtensionsBuilder()
|
|
367
|
+
});
|
|
368
|
+
Object.defineProperty(this, "addFormField", {
|
|
369
|
+
enumerable: true,
|
|
370
|
+
configurable: true,
|
|
371
|
+
writable: true,
|
|
372
|
+
value: (item) => {
|
|
373
|
+
this._formFields.push(item);
|
|
374
|
+
return this;
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
Object.defineProperty(this, "build", {
|
|
378
|
+
enumerable: true,
|
|
379
|
+
configurable: true,
|
|
380
|
+
writable: true,
|
|
381
|
+
value: () => {
|
|
382
|
+
return {
|
|
383
|
+
richTextField: this.richTextField.build(),
|
|
384
|
+
formFields: this._formFields,
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @internal
|
|
393
|
+
*/
|
|
394
|
+
const contentExplorerActionIds = [
|
|
395
|
+
'openEditor',
|
|
396
|
+
'openEditorInNewTab',
|
|
397
|
+
'addSelectedItemsToBundle',
|
|
398
|
+
'addToBundle',
|
|
399
|
+
'removeFromBundle',
|
|
400
|
+
'autoClassify',
|
|
401
|
+
'copy',
|
|
402
|
+
'cut',
|
|
403
|
+
'paste',
|
|
404
|
+
'newBundle',
|
|
405
|
+
'newCategory',
|
|
406
|
+
'newComponent',
|
|
407
|
+
'newFolder',
|
|
408
|
+
'newKeyword',
|
|
409
|
+
'newMultimediaComponent',
|
|
410
|
+
'newPage',
|
|
411
|
+
'newStructureGroup',
|
|
412
|
+
'uploadMultimediaComponent',
|
|
413
|
+
'delete',
|
|
414
|
+
'finishEditing',
|
|
415
|
+
'revert',
|
|
416
|
+
'export',
|
|
417
|
+
'localize',
|
|
418
|
+
'unlocalize',
|
|
419
|
+
'publish',
|
|
420
|
+
'unpublish',
|
|
421
|
+
'openPublishingQueue',
|
|
422
|
+
'refresh',
|
|
423
|
+
'openTranslationQueue',
|
|
424
|
+
'translate',
|
|
425
|
+
'translateTarget',
|
|
426
|
+
'startWorkflow',
|
|
427
|
+
];
|
|
428
|
+
/**
|
|
429
|
+
* @internal
|
|
430
|
+
*/
|
|
431
|
+
const contentExplorerActionId = createEnumObject(contentExplorerActionIds);
|
|
432
|
+
/**
|
|
433
|
+
* @internal
|
|
434
|
+
*/
|
|
435
|
+
const contentExplorerActionGroupIds = [
|
|
436
|
+
'browsing',
|
|
437
|
+
'bundle',
|
|
438
|
+
'classification',
|
|
439
|
+
'clipboard',
|
|
440
|
+
'creation',
|
|
441
|
+
'deletion',
|
|
442
|
+
'editing',
|
|
443
|
+
'exporting',
|
|
444
|
+
'blueprinting',
|
|
445
|
+
'publishing',
|
|
446
|
+
'refreshing',
|
|
447
|
+
'translation',
|
|
448
|
+
'workflow',
|
|
449
|
+
];
|
|
450
|
+
/**
|
|
451
|
+
* @internal
|
|
452
|
+
*/
|
|
453
|
+
const contentExplorerActionGroupId = createEnumObject(contentExplorerActionGroupIds);
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* @internal
|
|
457
|
+
*/
|
|
458
|
+
const contentExplorerTableActionIds = [...contentExplorerActionIds, 'open'];
|
|
459
|
+
/**
|
|
460
|
+
* @internal
|
|
461
|
+
*/
|
|
462
|
+
const contentExplorerTableActionId = createEnumObject(contentExplorerTableActionIds);
|
|
463
|
+
/**
|
|
464
|
+
* @internal
|
|
465
|
+
*/
|
|
466
|
+
const contentExplorerTableActionGroupIds = contentExplorerActionGroupIds;
|
|
467
|
+
/**
|
|
468
|
+
* @internal
|
|
469
|
+
*/
|
|
470
|
+
const contentExplorerTableActionGroupId = createEnumObject(contentExplorerTableActionGroupIds);
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @internal
|
|
474
|
+
*/
|
|
475
|
+
class ContentExplorerTableExtensionsBuilder {
|
|
476
|
+
constructor() {
|
|
477
|
+
Object.defineProperty(this, "_actions", {
|
|
478
|
+
enumerable: true,
|
|
479
|
+
configurable: true,
|
|
480
|
+
writable: true,
|
|
481
|
+
value: []
|
|
482
|
+
});
|
|
483
|
+
Object.defineProperty(this, "_columns", {
|
|
484
|
+
enumerable: true,
|
|
485
|
+
configurable: true,
|
|
486
|
+
writable: true,
|
|
487
|
+
value: []
|
|
488
|
+
});
|
|
489
|
+
Object.defineProperty(this, "toolbar", {
|
|
490
|
+
enumerable: true,
|
|
491
|
+
configurable: true,
|
|
492
|
+
writable: true,
|
|
493
|
+
value: new ActionsConfigurationExtensionsBuilder()
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(this, "contextMenu", {
|
|
496
|
+
enumerable: true,
|
|
497
|
+
configurable: true,
|
|
498
|
+
writable: true,
|
|
499
|
+
value: new ActionsConfigurationExtensionsBuilder()
|
|
500
|
+
});
|
|
501
|
+
Object.defineProperty(this, "addColumn", {
|
|
502
|
+
enumerable: true,
|
|
503
|
+
configurable: true,
|
|
504
|
+
writable: true,
|
|
505
|
+
value: (column) => {
|
|
506
|
+
this._columns.push(column);
|
|
507
|
+
return this;
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
Object.defineProperty(this, "addAction", {
|
|
511
|
+
enumerable: true,
|
|
512
|
+
configurable: true,
|
|
513
|
+
writable: true,
|
|
514
|
+
value: (action) => {
|
|
515
|
+
this._actions.push(action);
|
|
516
|
+
return this;
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
Object.defineProperty(this, "build", {
|
|
520
|
+
enumerable: true,
|
|
521
|
+
configurable: true,
|
|
522
|
+
writable: true,
|
|
523
|
+
value: () => {
|
|
524
|
+
return {
|
|
525
|
+
actions: this._actions,
|
|
526
|
+
columns: this._columns,
|
|
527
|
+
contextMenu: this.contextMenu.build(),
|
|
528
|
+
toolbar: this.toolbar.build(),
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
*/
|
|
538
|
+
const contentExplorerTreeActionIds = contentExplorerActionIds;
|
|
539
|
+
/**
|
|
540
|
+
* @internal
|
|
541
|
+
*/
|
|
542
|
+
const contentExplorerTreeActionId = createEnumObject(contentExplorerTreeActionIds);
|
|
543
|
+
/**
|
|
544
|
+
* @internal
|
|
545
|
+
*/
|
|
546
|
+
const contentExplorerTreeActionGroupIds = contentExplorerActionGroupIds;
|
|
547
|
+
/**
|
|
548
|
+
* @internal
|
|
549
|
+
*/
|
|
550
|
+
const contentExplorerTreeActionGroupId = createEnumObject(contentExplorerTreeActionGroupIds);
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* @internal
|
|
554
|
+
*/
|
|
555
|
+
class ContentExplorerTreeExtensionsBuilder {
|
|
556
|
+
constructor() {
|
|
557
|
+
Object.defineProperty(this, "_actions", {
|
|
558
|
+
enumerable: true,
|
|
559
|
+
configurable: true,
|
|
560
|
+
writable: true,
|
|
561
|
+
value: []
|
|
562
|
+
});
|
|
563
|
+
Object.defineProperty(this, "contextMenu", {
|
|
564
|
+
enumerable: true,
|
|
565
|
+
configurable: true,
|
|
566
|
+
writable: true,
|
|
567
|
+
value: new ActionsConfigurationExtensionsBuilder()
|
|
568
|
+
});
|
|
569
|
+
Object.defineProperty(this, "addAction", {
|
|
570
|
+
enumerable: true,
|
|
571
|
+
configurable: true,
|
|
572
|
+
writable: true,
|
|
573
|
+
value: (action) => {
|
|
574
|
+
this._actions.push(action);
|
|
575
|
+
return this;
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
Object.defineProperty(this, "build", {
|
|
579
|
+
enumerable: true,
|
|
580
|
+
configurable: true,
|
|
581
|
+
writable: true,
|
|
582
|
+
value: () => {
|
|
583
|
+
return {
|
|
584
|
+
actions: this._actions,
|
|
585
|
+
contextMenu: this.contextMenu.build(),
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @internal
|
|
594
|
+
*/
|
|
595
|
+
class ContentExplorerExtensionsBuilder {
|
|
596
|
+
constructor() {
|
|
597
|
+
Object.defineProperty(this, "table", {
|
|
598
|
+
enumerable: true,
|
|
599
|
+
configurable: true,
|
|
600
|
+
writable: true,
|
|
601
|
+
value: new ContentExplorerTableExtensionsBuilder()
|
|
602
|
+
});
|
|
603
|
+
Object.defineProperty(this, "tree", {
|
|
604
|
+
enumerable: true,
|
|
605
|
+
configurable: true,
|
|
606
|
+
writable: true,
|
|
607
|
+
value: new ContentExplorerTreeExtensionsBuilder()
|
|
608
|
+
});
|
|
609
|
+
Object.defineProperty(this, "build", {
|
|
610
|
+
enumerable: true,
|
|
611
|
+
configurable: true,
|
|
612
|
+
writable: true,
|
|
613
|
+
value: () => {
|
|
614
|
+
return {
|
|
615
|
+
table: this.table.build(),
|
|
616
|
+
tree: this.tree.build(),
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @internal
|
|
625
|
+
*/
|
|
626
|
+
class NavigationExtensionsBuilder {
|
|
627
|
+
constructor() {
|
|
628
|
+
Object.defineProperty(this, "_navigationItemExtensions", {
|
|
629
|
+
enumerable: true,
|
|
630
|
+
configurable: true,
|
|
631
|
+
writable: true,
|
|
632
|
+
value: []
|
|
633
|
+
});
|
|
634
|
+
Object.defineProperty(this, "config", {
|
|
635
|
+
enumerable: true,
|
|
636
|
+
configurable: true,
|
|
637
|
+
writable: true,
|
|
638
|
+
value: new ListBuilder(itemId => itemId)
|
|
639
|
+
});
|
|
640
|
+
Object.defineProperty(this, "register", {
|
|
641
|
+
enumerable: true,
|
|
642
|
+
configurable: true,
|
|
643
|
+
writable: true,
|
|
644
|
+
value: (item) => {
|
|
645
|
+
this._navigationItemExtensions.push(item);
|
|
646
|
+
return this;
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
Object.defineProperty(this, "build", {
|
|
650
|
+
enumerable: true,
|
|
651
|
+
configurable: true,
|
|
652
|
+
writable: true,
|
|
653
|
+
value: () => {
|
|
654
|
+
return {
|
|
655
|
+
items: this._navigationItemExtensions,
|
|
656
|
+
config: this.config.build(),
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* @internal
|
|
665
|
+
*/
|
|
666
|
+
const navigationItemIds = ['activitiesExplorer', 'contentExplorer'];
|
|
667
|
+
/**
|
|
668
|
+
* @internal
|
|
669
|
+
*/
|
|
670
|
+
const navigationItemId = createEnumObject(navigationItemIds);
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* @internal
|
|
674
|
+
*/
|
|
675
|
+
class HeaderExtensionsBuilder {
|
|
676
|
+
constructor() {
|
|
677
|
+
Object.defineProperty(this, "navigation", {
|
|
678
|
+
enumerable: true,
|
|
679
|
+
configurable: true,
|
|
680
|
+
writable: true,
|
|
681
|
+
value: new NavigationExtensionsBuilder()
|
|
682
|
+
});
|
|
683
|
+
Object.defineProperty(this, "build", {
|
|
684
|
+
enumerable: true,
|
|
685
|
+
configurable: true,
|
|
686
|
+
writable: true,
|
|
687
|
+
value: () => {
|
|
688
|
+
return {
|
|
689
|
+
navigation: this.navigation.build(),
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* @internal
|
|
698
|
+
*/
|
|
699
|
+
class TranslationExtensionsBuilder {
|
|
700
|
+
constructor() {
|
|
701
|
+
Object.defineProperty(this, "_translations", {
|
|
702
|
+
enumerable: true,
|
|
703
|
+
configurable: true,
|
|
704
|
+
writable: true,
|
|
705
|
+
value: []
|
|
706
|
+
});
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @param code - Language code.
|
|
710
|
+
* @param records - Key-value pairs of string translated to `code` language.
|
|
711
|
+
* @returns instance of `TranslationsExtensionsBuilder`
|
|
712
|
+
*/
|
|
713
|
+
Object.defineProperty(this, "addTranslation", {
|
|
714
|
+
enumerable: true,
|
|
715
|
+
configurable: true,
|
|
716
|
+
writable: true,
|
|
717
|
+
value: (code, records) => {
|
|
718
|
+
this._translations.push(() => ({ code, records }));
|
|
719
|
+
return this;
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
Object.defineProperty(this, "build", {
|
|
723
|
+
enumerable: true,
|
|
724
|
+
configurable: true,
|
|
725
|
+
writable: true,
|
|
726
|
+
value: () => {
|
|
727
|
+
return {
|
|
728
|
+
translations: this._translations,
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* @internal
|
|
737
|
+
*/
|
|
738
|
+
class ExtensionBuilder {
|
|
739
|
+
constructor() {
|
|
740
|
+
Object.defineProperty(this, "header", {
|
|
741
|
+
enumerable: true,
|
|
742
|
+
configurable: true,
|
|
743
|
+
writable: true,
|
|
744
|
+
value: new HeaderExtensionsBuilder()
|
|
745
|
+
});
|
|
746
|
+
Object.defineProperty(this, "contentEditor", {
|
|
747
|
+
enumerable: true,
|
|
748
|
+
configurable: true,
|
|
749
|
+
writable: true,
|
|
750
|
+
value: new ContentEditorExtensionsBuilder()
|
|
751
|
+
});
|
|
752
|
+
Object.defineProperty(this, "contentExplorer", {
|
|
753
|
+
enumerable: true,
|
|
754
|
+
configurable: true,
|
|
755
|
+
writable: true,
|
|
756
|
+
value: new ContentExplorerExtensionsBuilder()
|
|
757
|
+
});
|
|
758
|
+
Object.defineProperty(this, "translations", {
|
|
759
|
+
enumerable: true,
|
|
760
|
+
configurable: true,
|
|
761
|
+
writable: true,
|
|
762
|
+
value: new TranslationExtensionsBuilder()
|
|
763
|
+
});
|
|
764
|
+
Object.defineProperty(this, "activitiesExplorer", {
|
|
765
|
+
enumerable: true,
|
|
766
|
+
configurable: true,
|
|
767
|
+
writable: true,
|
|
768
|
+
value: new ActivitiesExplorerExtensionsBuilder()
|
|
769
|
+
});
|
|
770
|
+
Object.defineProperty(this, "build", {
|
|
771
|
+
enumerable: true,
|
|
772
|
+
configurable: true,
|
|
773
|
+
writable: true,
|
|
774
|
+
value: () => {
|
|
775
|
+
return {
|
|
776
|
+
header: this.header.build(),
|
|
777
|
+
contentExplorer: this.contentExplorer.build(),
|
|
778
|
+
contentEditor: this.contentEditor.build(),
|
|
779
|
+
translations: this.translations.build(),
|
|
780
|
+
activitiesExplorer: this.activitiesExplorer.build(),
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
let implementationStorage;
|
|
788
|
+
/**
|
|
789
|
+
* @internal
|
|
790
|
+
*/
|
|
791
|
+
const extensionApiBridge = {
|
|
792
|
+
initialize: (implementation) => {
|
|
793
|
+
if (implementationStorage)
|
|
794
|
+
throw new Error('Extension API bridge is already initialized!');
|
|
795
|
+
implementationStorage = implementation;
|
|
796
|
+
},
|
|
797
|
+
get: () => implementationStorage,
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* @internal
|
|
802
|
+
*/
|
|
803
|
+
const useActivitiesExplorerTable = () => {
|
|
804
|
+
const useActivitiesExplorerTable = extensionApiBridge.get().activitiesExplorer.hooks.useActivitiesExplorerTable;
|
|
805
|
+
return useActivitiesExplorerTable();
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* @internal
|
|
810
|
+
*/
|
|
811
|
+
const useContentExplorer = () => {
|
|
812
|
+
const useContentExplorer = extensionApiBridge.get().contentExplorer.hooks.useContentExplorer;
|
|
813
|
+
return useContentExplorer();
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* @internal
|
|
817
|
+
*/
|
|
818
|
+
const useContentExplorerTable = () => {
|
|
819
|
+
const useContentExplorerTable = extensionApiBridge.get().contentExplorer.hooks.useContentExplorerTable;
|
|
820
|
+
return useContentExplorerTable();
|
|
821
|
+
};
|
|
822
|
+
/**
|
|
823
|
+
* @internal
|
|
824
|
+
*/
|
|
825
|
+
const useContentExplorerTree = () => {
|
|
826
|
+
const useContentExplorerTree = extensionApiBridge.get().contentExplorer.hooks.useContentExplorerTree;
|
|
827
|
+
return useContentExplorerTree();
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* @internal
|
|
832
|
+
*/
|
|
833
|
+
const isItemNode = (node) => extensionApiBridge.get().contentExplorer.utils.hierarchy.isItemNode(node);
|
|
834
|
+
/**
|
|
835
|
+
* @internal
|
|
836
|
+
*/
|
|
837
|
+
const isFavoritesNodeId = (nodeId) => extensionApiBridge.get().contentExplorer.utils.hierarchy.isFavoritesNodeId(nodeId);
|
|
838
|
+
/**
|
|
839
|
+
* @internal
|
|
840
|
+
*/
|
|
841
|
+
const isItemInProgressNodeId = (nodeId) => extensionApiBridge.get().contentExplorer.utils.hierarchy.isItemInProgressNodeId(nodeId);
|
|
842
|
+
/**
|
|
843
|
+
* @internal
|
|
844
|
+
*/
|
|
845
|
+
const isPublicationsNodeId = (nodeId) => extensionApiBridge.get().contentExplorer.utils.hierarchy.isPublicationsNodeId(nodeId);
|
|
846
|
+
/**
|
|
847
|
+
* @internal
|
|
848
|
+
*/
|
|
849
|
+
const isRootNodeId = (nodeId) => extensionApiBridge.get().contentExplorer.utils.hierarchy.isRootNodeId(nodeId);
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* @internal
|
|
853
|
+
*/
|
|
854
|
+
const useBundleEditor = () => {
|
|
855
|
+
const useBundleEditor = extensionApiBridge.get().editors.bundleEditor.hooks.useBundleEditor;
|
|
856
|
+
return useBundleEditor();
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* @internal
|
|
860
|
+
*/
|
|
861
|
+
const useComponentEditor = () => {
|
|
862
|
+
const useComponentEditor = extensionApiBridge.get().editors.componentEditor.hooks.useComponentEditor;
|
|
863
|
+
return useComponentEditor();
|
|
864
|
+
};
|
|
865
|
+
/**
|
|
866
|
+
* @internal
|
|
867
|
+
*/
|
|
868
|
+
const useCategoryEditor = () => {
|
|
869
|
+
const useCategoryEditor = extensionApiBridge.get().editors.categoryEditor.hooks.useCategoryEditor;
|
|
870
|
+
return useCategoryEditor();
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* @internal
|
|
874
|
+
*/
|
|
875
|
+
const useFolderEditor = () => {
|
|
876
|
+
const useFolderEditor = extensionApiBridge.get().editors.folderEditor.hooks.useFolderEditor;
|
|
877
|
+
return useFolderEditor();
|
|
878
|
+
};
|
|
879
|
+
/**
|
|
880
|
+
* @internal
|
|
881
|
+
*/
|
|
882
|
+
const useKeywordEditor = () => {
|
|
883
|
+
const useKeywordEditor = extensionApiBridge.get().editors.keywordEditor.hooks.useKeywordEditor;
|
|
884
|
+
return useKeywordEditor();
|
|
885
|
+
};
|
|
886
|
+
/**
|
|
887
|
+
* @internal
|
|
888
|
+
*/
|
|
889
|
+
const usePageEditor = () => {
|
|
890
|
+
const usePageEditor = extensionApiBridge.get().editors.pageEditor.hooks.usePageEditor;
|
|
891
|
+
return usePageEditor();
|
|
892
|
+
};
|
|
893
|
+
/**
|
|
894
|
+
* @internal
|
|
895
|
+
*/
|
|
896
|
+
const useStructureGroupEditor = () => {
|
|
897
|
+
const useStructureGroupEditor = extensionApiBridge.get().editors.structureGroupEditor.hooks.useStructureGroupEditor;
|
|
898
|
+
return useStructureGroupEditor();
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* A component that has standard button functionality.
|
|
903
|
+
* @internal
|
|
904
|
+
*/
|
|
905
|
+
const Button = memo(props => {
|
|
906
|
+
const Button = extensionApiBridge.get().general.components.Button;
|
|
907
|
+
return jsx(Button, Object.assign({}, props));
|
|
908
|
+
});
|
|
909
|
+
Button.displayName = 'Button';
|
|
910
|
+
/**
|
|
911
|
+
* A component used for rendering SVG icons.
|
|
912
|
+
* @internal
|
|
913
|
+
*/
|
|
914
|
+
const Icon = memo(props => {
|
|
915
|
+
const Icon = extensionApiBridge.get().general.components.Icon;
|
|
916
|
+
return jsx(Icon, Object.assign({}, props));
|
|
917
|
+
});
|
|
918
|
+
Icon.displayName = 'Icon';
|
|
919
|
+
/**
|
|
920
|
+
* @internal
|
|
921
|
+
*/
|
|
922
|
+
const Text = memo(props => {
|
|
923
|
+
const Text = extensionApiBridge.get().general.components.Text;
|
|
924
|
+
return jsx(Text, Object.assign({}, props));
|
|
925
|
+
});
|
|
926
|
+
Text.displayName = 'Text';
|
|
927
|
+
/**
|
|
928
|
+
* A component to wrap any custom view with Link for navigation
|
|
929
|
+
* @internal
|
|
930
|
+
*/
|
|
931
|
+
const Link = memo(props => {
|
|
932
|
+
const Link = extensionApiBridge.get().general.components.Link;
|
|
933
|
+
return jsx(Link, Object.assign({}, props));
|
|
934
|
+
});
|
|
935
|
+
Link.displayName = 'Link';
|
|
936
|
+
/**
|
|
937
|
+
* A component to render Text Link for navigation
|
|
938
|
+
* @internal
|
|
939
|
+
*/
|
|
940
|
+
const TextLink = memo(props => {
|
|
941
|
+
const TextLink = extensionApiBridge.get().general.components.TextLink;
|
|
942
|
+
return jsx(TextLink, Object.assign({}, props));
|
|
943
|
+
});
|
|
944
|
+
TextLink.displayName = 'TextLink';
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* @internal
|
|
948
|
+
*/
|
|
949
|
+
const useNotifications = () => {
|
|
950
|
+
const useNotifications = extensionApiBridge.get().general.hooks.useNotifications;
|
|
951
|
+
return useNotifications();
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* @internal
|
|
955
|
+
*/
|
|
956
|
+
const useUserProfile = () => {
|
|
957
|
+
const useUserProfile = extensionApiBridge.get().general.hooks.useUserProfile;
|
|
958
|
+
return useUserProfile();
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* @internal
|
|
962
|
+
*/
|
|
963
|
+
const useConfirmation = (args) => {
|
|
964
|
+
const useConfirmation = extensionApiBridge.get().general.hooks.useConfirmation;
|
|
965
|
+
return useConfirmation(args);
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* @internal
|
|
970
|
+
*/
|
|
971
|
+
const useUploadMultimediaMutation = options => {
|
|
972
|
+
const useUploadMultimediaMutation = extensionApiBridge.get().general.mutations.useUploadMultimediaMutation;
|
|
973
|
+
return useUploadMultimediaMutation(options);
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* @internal
|
|
977
|
+
*/
|
|
978
|
+
const useAddToBundleMutation = options => {
|
|
979
|
+
const useAddToBundleMutation = extensionApiBridge.get().general.mutations.useAddToBundleMutation;
|
|
980
|
+
return useAddToBundleMutation(options);
|
|
981
|
+
};
|
|
982
|
+
/**
|
|
983
|
+
* @internal
|
|
984
|
+
*/
|
|
985
|
+
const useChangeUserLanguageMutation = options => {
|
|
986
|
+
const useChangeUserLanguageMutation = extensionApiBridge.get().general.mutations.useChangeUserLanguageMutation;
|
|
987
|
+
return useChangeUserLanguageMutation(options);
|
|
988
|
+
};
|
|
989
|
+
/**
|
|
990
|
+
* @internal
|
|
991
|
+
*/
|
|
992
|
+
const useChangeUserLocaleMutation = options => {
|
|
993
|
+
const useChangeUserLocaleMutation = extensionApiBridge.get().general.mutations.useChangeUserLocaleMutation;
|
|
994
|
+
return useChangeUserLocaleMutation(options);
|
|
995
|
+
};
|
|
996
|
+
/**
|
|
997
|
+
* @internal
|
|
998
|
+
*/
|
|
999
|
+
const useRemoveFromBundleMutation = options => {
|
|
1000
|
+
const useRemoveFromBundleMutation = extensionApiBridge.get().general.mutations.useRemoveFromBundleMutation;
|
|
1001
|
+
return useRemoveFromBundleMutation(options);
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* @internal
|
|
1006
|
+
*/
|
|
1007
|
+
const useAutoClassifyItemMutation = options => {
|
|
1008
|
+
const useAutoClassifyItemMutation = extensionApiBridge.get().general.mutations.item.useAutoClassifyItemMutation;
|
|
1009
|
+
return useAutoClassifyItemMutation(options);
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* @internal
|
|
1013
|
+
*/
|
|
1014
|
+
const useAutoClassifyItemsMutation = options => {
|
|
1015
|
+
const useAutoClassifyItemsMutation = extensionApiBridge.get().general.mutations.item.useAutoClassifyItemsMutation;
|
|
1016
|
+
return useAutoClassifyItemsMutation(options);
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
* @internal
|
|
1020
|
+
*/
|
|
1021
|
+
const useCopyItemMutation = options => {
|
|
1022
|
+
const useCopyItemMutation = extensionApiBridge.get().general.mutations.item.useCopyItemMutation;
|
|
1023
|
+
return useCopyItemMutation(options);
|
|
1024
|
+
};
|
|
1025
|
+
/**
|
|
1026
|
+
* @internal
|
|
1027
|
+
*/
|
|
1028
|
+
const useCopyItemsMutation = options => {
|
|
1029
|
+
const useCopyItemsMutation = extensionApiBridge.get().general.mutations.item.useCopyItemsMutation;
|
|
1030
|
+
return useCopyItemsMutation(options);
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* @internal
|
|
1034
|
+
*/
|
|
1035
|
+
const useDeleteItemMutation = options => {
|
|
1036
|
+
const useDeleteItemMutation = extensionApiBridge.get().general.mutations.item.useDeleteItemMutation;
|
|
1037
|
+
return useDeleteItemMutation(options);
|
|
1038
|
+
};
|
|
1039
|
+
/**
|
|
1040
|
+
* @internal
|
|
1041
|
+
*/
|
|
1042
|
+
const useDeleteItemsMutation = options => {
|
|
1043
|
+
const useDeleteItemsMutation = extensionApiBridge.get().general.mutations.item.useDeleteItemsMutation;
|
|
1044
|
+
return useDeleteItemsMutation(options);
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* @internal
|
|
1048
|
+
*/
|
|
1049
|
+
const useFinishEditingItemMutation = options => {
|
|
1050
|
+
const useFinishEditingItemMutation = extensionApiBridge.get().general.mutations.item.useFinishEditingItemMutation;
|
|
1051
|
+
return useFinishEditingItemMutation(options);
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* @internal
|
|
1055
|
+
*/
|
|
1056
|
+
const useFinishEditingItemsMutation = options => {
|
|
1057
|
+
const useFinishEditingItemsMutation = extensionApiBridge.get().general.mutations.item.useFinishEditingItemsMutation;
|
|
1058
|
+
return useFinishEditingItemsMutation(options);
|
|
1059
|
+
};
|
|
1060
|
+
/**
|
|
1061
|
+
* @internal
|
|
1062
|
+
*/
|
|
1063
|
+
const useLocalizeItemMutation = options => {
|
|
1064
|
+
const useLocalizeItemMutation = extensionApiBridge.get().general.mutations.item.useLocalizeItemMutation;
|
|
1065
|
+
return useLocalizeItemMutation(options);
|
|
1066
|
+
};
|
|
1067
|
+
/**
|
|
1068
|
+
* @internal
|
|
1069
|
+
*/
|
|
1070
|
+
const useLocalizeItemsMutation = options => {
|
|
1071
|
+
const useLocalizeItemsMutation = extensionApiBridge.get().general.mutations.item.useLocalizeItemsMutation;
|
|
1072
|
+
return useLocalizeItemsMutation(options);
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* @internal
|
|
1076
|
+
*/
|
|
1077
|
+
const useMoveItemMutation = options => {
|
|
1078
|
+
const useMoveItemMutation = extensionApiBridge.get().general.mutations.item.useMoveItemMutation;
|
|
1079
|
+
return useMoveItemMutation(options);
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* @internal
|
|
1083
|
+
*/
|
|
1084
|
+
const useMoveItemsMutation = options => {
|
|
1085
|
+
const useMoveItemsMutation = extensionApiBridge.get().general.mutations.item.useMoveItemsMutation;
|
|
1086
|
+
return useMoveItemsMutation(options);
|
|
1087
|
+
};
|
|
1088
|
+
/**
|
|
1089
|
+
* @internal
|
|
1090
|
+
*/
|
|
1091
|
+
const usePublishItemsMutation = options => {
|
|
1092
|
+
const usePublishItemsMutation = extensionApiBridge.get().general.mutations.item.usePublishItemsMutation;
|
|
1093
|
+
return usePublishItemsMutation(options);
|
|
1094
|
+
};
|
|
1095
|
+
/**
|
|
1096
|
+
* @internal
|
|
1097
|
+
*/
|
|
1098
|
+
const useRevertItemMutation = options => {
|
|
1099
|
+
const useRevertItemMutation = extensionApiBridge.get().general.mutations.item.useRevertItemMutation;
|
|
1100
|
+
return useRevertItemMutation(options);
|
|
1101
|
+
};
|
|
1102
|
+
/**
|
|
1103
|
+
* @internal
|
|
1104
|
+
*/
|
|
1105
|
+
const useRevertItemsMutation = options => {
|
|
1106
|
+
const useRevertItemsMutation = extensionApiBridge.get().general.mutations.item.useRevertItemsMutation;
|
|
1107
|
+
return useRevertItemsMutation(options);
|
|
1108
|
+
};
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
*/
|
|
1112
|
+
const useRollbackItemMutation = options => {
|
|
1113
|
+
const useRollbackItemMutation = extensionApiBridge.get().general.mutations.item.useRollbackItemMutation;
|
|
1114
|
+
return useRollbackItemMutation(options);
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* @internal
|
|
1118
|
+
*/
|
|
1119
|
+
const useUnlocalizeItemMutation = options => {
|
|
1120
|
+
const useUnlocalizeItemMutation = extensionApiBridge.get().general.mutations.item.useUnlocalizeItemMutation;
|
|
1121
|
+
return useUnlocalizeItemMutation(options);
|
|
1122
|
+
};
|
|
1123
|
+
/**
|
|
1124
|
+
* @internal
|
|
1125
|
+
*/
|
|
1126
|
+
const useUnlocalizeItemsMutation = options => {
|
|
1127
|
+
const useUnlocalizeItemsMutation = extensionApiBridge.get().general.mutations.item.useUnlocalizeItemsMutation;
|
|
1128
|
+
return useUnlocalizeItemsMutation(options);
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* @internal
|
|
1132
|
+
*/
|
|
1133
|
+
const useUnpublishItemsMutation = options => {
|
|
1134
|
+
const useUnpublishItemsMutation = extensionApiBridge.get().general.mutations.item.useUnpublishItemsMutation;
|
|
1135
|
+
return useUnpublishItemsMutation(options);
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
* @internal
|
|
1139
|
+
*/
|
|
1140
|
+
const useUpdateItemMutation = options => {
|
|
1141
|
+
const useUpdateItemMutation = extensionApiBridge.get().general.mutations.item.useUpdateItemMutation;
|
|
1142
|
+
return useUpdateItemMutation(options);
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* @internal
|
|
1147
|
+
*/
|
|
1148
|
+
const useCreateTranslationJobMutation = options => {
|
|
1149
|
+
const useCreateTranslationJobMutation = extensionApiBridge.get().general.mutations.translations.useCreateTranslationJobMutation;
|
|
1150
|
+
return useCreateTranslationJobMutation(options);
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* @internal
|
|
1155
|
+
*/
|
|
1156
|
+
const useAssignActivitiesMutation = options => {
|
|
1157
|
+
const useAssignActivitiesMutation = extensionApiBridge.get().general.mutations.workflow.useAssignActivitiesMutation;
|
|
1158
|
+
return useAssignActivitiesMutation(options);
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* @internal
|
|
1162
|
+
*/
|
|
1163
|
+
const useAssignActivityMutation = options => {
|
|
1164
|
+
const useAssignActivityMutation = extensionApiBridge.get().general.mutations.workflow.useAssignActivityMutation;
|
|
1165
|
+
return useAssignActivityMutation(options);
|
|
1166
|
+
};
|
|
1167
|
+
/**
|
|
1168
|
+
* @internal
|
|
1169
|
+
*/
|
|
1170
|
+
const useFinishActivityMutation = options => {
|
|
1171
|
+
const useFinishActivityMutation = extensionApiBridge.get().general.mutations.workflow.useFinishActivityMutation;
|
|
1172
|
+
return useFinishActivityMutation(options);
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* @internal
|
|
1176
|
+
*/
|
|
1177
|
+
const useFinishActivitiesMutation = options => {
|
|
1178
|
+
const useFinishActivitiesMutation = extensionApiBridge.get().general.mutations.workflow.useFinishActivitiesMutation;
|
|
1179
|
+
return useFinishActivitiesMutation(options);
|
|
1180
|
+
};
|
|
1181
|
+
/**
|
|
1182
|
+
* @internal
|
|
1183
|
+
*/
|
|
1184
|
+
const useRestartActivitiesMutation = options => {
|
|
1185
|
+
const useRestartActivitiesMutation = extensionApiBridge.get().general.mutations.workflow.useRestartActivitiesMutation;
|
|
1186
|
+
return useRestartActivitiesMutation(options);
|
|
1187
|
+
};
|
|
1188
|
+
/**
|
|
1189
|
+
* @internal
|
|
1190
|
+
*/
|
|
1191
|
+
const useRestartActivityMutation = options => {
|
|
1192
|
+
const useRestartActivityMutation = extensionApiBridge.get().general.mutations.workflow.useRestartActivityMutation;
|
|
1193
|
+
return useRestartActivityMutation(options);
|
|
1194
|
+
};
|
|
1195
|
+
/**
|
|
1196
|
+
* @internal
|
|
1197
|
+
*/
|
|
1198
|
+
const useStartActivitiesMutation = options => {
|
|
1199
|
+
const useStartActivitiesMutation = extensionApiBridge.get().general.mutations.workflow.useStartActivitiesMutation;
|
|
1200
|
+
return useStartActivitiesMutation(options);
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* @internal
|
|
1204
|
+
*/
|
|
1205
|
+
const useStartActivityMutation = options => {
|
|
1206
|
+
const useStartActivityMutation = extensionApiBridge.get().general.mutations.workflow.useStartActivityMutation;
|
|
1207
|
+
return useStartActivityMutation(options);
|
|
1208
|
+
};
|
|
1209
|
+
/**
|
|
1210
|
+
* @internal
|
|
1211
|
+
*/
|
|
1212
|
+
const useStartWorkflowMutation = options => {
|
|
1213
|
+
const useStartWorkflowMutation = extensionApiBridge.get().general.mutations.workflow.useStartWorkflowMutation;
|
|
1214
|
+
return useStartWorkflowMutation(options);
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* @internal
|
|
1219
|
+
*/
|
|
1220
|
+
const useUserProfileQuery = options => {
|
|
1221
|
+
const useUserProfileQuery = extensionApiBridge.get().general.queries.useUserProfileQuery;
|
|
1222
|
+
return useUserProfileQuery(options);
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* @internal
|
|
1227
|
+
*/
|
|
1228
|
+
const useItemBlueprintHierarchyQuery = (props, options) => {
|
|
1229
|
+
const useItemBlueprintHierarchyQuery = extensionApiBridge.get().general.queries.item.useItemBlueprintHierarchyQuery;
|
|
1230
|
+
return useItemBlueprintHierarchyQuery(props, options);
|
|
1231
|
+
};
|
|
1232
|
+
/**
|
|
1233
|
+
* @internal
|
|
1234
|
+
*/
|
|
1235
|
+
const useItemChildrenQuery = (props, options) => {
|
|
1236
|
+
const useItemChildrenQuery = extensionApiBridge.get().general.queries.item.useItemChildrenQuery;
|
|
1237
|
+
return useItemChildrenQuery(props, options);
|
|
1238
|
+
};
|
|
1239
|
+
/**
|
|
1240
|
+
* @internal
|
|
1241
|
+
*/
|
|
1242
|
+
const useItemClassifiedItemsQuery = (props, options) => {
|
|
1243
|
+
const useItemClassifiedItemsQuery = extensionApiBridge.get().general.queries.item.useItemClassifiedItemsQuery;
|
|
1244
|
+
return useItemClassifiedItemsQuery(props, options);
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* @internal
|
|
1248
|
+
*/
|
|
1249
|
+
const useItemDefaultDataQuery = (props, options) => {
|
|
1250
|
+
const useItemDefaultDataQuery = extensionApiBridge.get().general.queries.item.useItemDefaultDataQuery;
|
|
1251
|
+
return useItemDefaultDataQuery(props, options);
|
|
1252
|
+
};
|
|
1253
|
+
/**
|
|
1254
|
+
* @internal
|
|
1255
|
+
*/
|
|
1256
|
+
const useItemHistoryQuery = (props, options) => {
|
|
1257
|
+
const useItemHistoryQuery = extensionApiBridge.get().general.queries.item.useItemHistoryQuery;
|
|
1258
|
+
return useItemHistoryQuery(props, options);
|
|
1259
|
+
};
|
|
1260
|
+
/**
|
|
1261
|
+
* @internal
|
|
1262
|
+
*/
|
|
1263
|
+
const useItemPublishedPagesQuery = (props, options) => {
|
|
1264
|
+
const useItemPublishedPagesQuery = extensionApiBridge.get().general.queries.item.useItemPublishedPagesQuery;
|
|
1265
|
+
return useItemPublishedPagesQuery(props, options);
|
|
1266
|
+
};
|
|
1267
|
+
/**
|
|
1268
|
+
* @internal
|
|
1269
|
+
*/
|
|
1270
|
+
const useItemPublishedToQuery = (props, options) => {
|
|
1271
|
+
const useItemPublishedToQuery = extensionApiBridge.get().general.queries.item.useItemPublishedToQuery;
|
|
1272
|
+
return useItemPublishedToQuery(props, options);
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* @internal
|
|
1276
|
+
*/
|
|
1277
|
+
const useItemPublishUrlsQuery = (props, options) => {
|
|
1278
|
+
const useItemPublishUrlsQuery = extensionApiBridge.get().general.queries.item.useItemPublishUrlsQuery;
|
|
1279
|
+
return useItemPublishUrlsQuery(props, options);
|
|
1280
|
+
};
|
|
1281
|
+
/**
|
|
1282
|
+
* @internal
|
|
1283
|
+
*/
|
|
1284
|
+
const useItemQuery = (props, options) => {
|
|
1285
|
+
const useItemQuery = extensionApiBridge.get().general.queries.item.useItemQuery;
|
|
1286
|
+
return useItemQuery(props, options);
|
|
1287
|
+
};
|
|
1288
|
+
/**
|
|
1289
|
+
* @internal
|
|
1290
|
+
*/
|
|
1291
|
+
const useItemsQuery = (props, options) => {
|
|
1292
|
+
const useItemsQuery = extensionApiBridge.get().general.queries.item.useItemsQuery;
|
|
1293
|
+
return useItemsQuery(props, options);
|
|
1294
|
+
};
|
|
1295
|
+
/**
|
|
1296
|
+
* @internal
|
|
1297
|
+
*/
|
|
1298
|
+
const useItemTranslationInfoQuery = (props, options) => {
|
|
1299
|
+
const useItemTranslationInfoQuery = extensionApiBridge.get().general.queries.item.useItemTranslationInfoQuery;
|
|
1300
|
+
return useItemTranslationInfoQuery(props, options);
|
|
1301
|
+
};
|
|
1302
|
+
/**
|
|
1303
|
+
* @internal
|
|
1304
|
+
*/
|
|
1305
|
+
const useItemUsedByQuery = (props, options) => {
|
|
1306
|
+
const useItemUsedByQuery = extensionApiBridge.get().general.queries.item.useItemUsedByQuery;
|
|
1307
|
+
return useItemUsedByQuery(props, options);
|
|
1308
|
+
};
|
|
1309
|
+
/**
|
|
1310
|
+
* @internal
|
|
1311
|
+
*/
|
|
1312
|
+
const useItemUsesQuery = (props, options) => {
|
|
1313
|
+
const useItemUsesQuery = extensionApiBridge.get().general.queries.item.useItemUsesQuery;
|
|
1314
|
+
return useItemUsesQuery(props, options);
|
|
1315
|
+
};
|
|
1316
|
+
/**
|
|
1317
|
+
* @internal
|
|
1318
|
+
*/
|
|
1319
|
+
const usePublicationBlueprintHierarchyQuery = (props, options) => {
|
|
1320
|
+
const usePublicationBlueprintHierarchyQuery = extensionApiBridge.get().general.queries.item.usePublicationBlueprintHierarchyQuery;
|
|
1321
|
+
return usePublicationBlueprintHierarchyQuery(props, options);
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* @internal
|
|
1326
|
+
*/
|
|
1327
|
+
const useFavoritesQuery = options => {
|
|
1328
|
+
const useFavoritesQuery = extensionApiBridge.get().general.queries.lists.useFavoritesQuery;
|
|
1329
|
+
return useFavoritesQuery(options);
|
|
1330
|
+
};
|
|
1331
|
+
/**
|
|
1332
|
+
* @internal
|
|
1333
|
+
*/
|
|
1334
|
+
const useItemsInProgressQuery = (props, options) => {
|
|
1335
|
+
const useItemsInProgressQuery = extensionApiBridge.get().general.queries.lists.useItemsInProgressQuery;
|
|
1336
|
+
return useItemsInProgressQuery(props, options);
|
|
1337
|
+
};
|
|
1338
|
+
/**
|
|
1339
|
+
* @internal
|
|
1340
|
+
*/
|
|
1341
|
+
const usePublicationsQuery = options => {
|
|
1342
|
+
const usePublicationsQuery = extensionApiBridge.get().general.queries.lists.usePublicationsQuery;
|
|
1343
|
+
return usePublicationsQuery(options);
|
|
1344
|
+
};
|
|
1345
|
+
/**
|
|
1346
|
+
* @internal
|
|
1347
|
+
*/
|
|
1348
|
+
const useUserGroupsQuery = (props, options) => {
|
|
1349
|
+
const useUserGroupsQuery = extensionApiBridge.get().general.queries.lists.useUserGroupsQuery;
|
|
1350
|
+
return useUserGroupsQuery(props, options);
|
|
1351
|
+
};
|
|
1352
|
+
/**
|
|
1353
|
+
* @internal
|
|
1354
|
+
*/
|
|
1355
|
+
const useUsersQuery = (props, options) => {
|
|
1356
|
+
const useUsersQuery = extensionApiBridge.get().general.queries.lists.useUsersQuery;
|
|
1357
|
+
return useUsersQuery(props, options);
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* @internal
|
|
1362
|
+
*/
|
|
1363
|
+
const useItemsToPublishQuery = (props, options) => {
|
|
1364
|
+
const useItemsToPublishQuery = extensionApiBridge.get().general.queries.publishing.useItemsToPublishQuery;
|
|
1365
|
+
return useItemsToPublishQuery(props, options);
|
|
1366
|
+
};
|
|
1367
|
+
/**
|
|
1368
|
+
* @internal
|
|
1369
|
+
*/
|
|
1370
|
+
const useItemsToUnpublishQuery = (props, options) => {
|
|
1371
|
+
const useItemsToUnpublishQuery = extensionApiBridge.get().general.queries.publishing.useItemsToUnpublishQuery;
|
|
1372
|
+
return useItemsToUnpublishQuery(props, options);
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* @internal
|
|
1376
|
+
*/
|
|
1377
|
+
const usePublishableTargetTypesQuery = (props, options) => {
|
|
1378
|
+
const usePublishableTargetTypesQuery = extensionApiBridge.get().general.queries.publishing.usePublishableTargetTypesQuery;
|
|
1379
|
+
return usePublishableTargetTypesQuery(props, options);
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* @internal
|
|
1384
|
+
*/
|
|
1385
|
+
const useSearchInContainerQuery = (props, options) => {
|
|
1386
|
+
const useSearchInContainerQuery = extensionApiBridge.get().general.queries.search.useSearchInContainerQuery;
|
|
1387
|
+
return useSearchInContainerQuery(props, options);
|
|
1388
|
+
};
|
|
1389
|
+
/**
|
|
1390
|
+
* @internal
|
|
1391
|
+
*/
|
|
1392
|
+
const useSystemSearchQuery = (props, options) => {
|
|
1393
|
+
const useSystemSearchQuery = extensionApiBridge.get().general.queries.search.useSystemSearchQuery;
|
|
1394
|
+
return useSystemSearchQuery(props, options);
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* @internal
|
|
1399
|
+
*/
|
|
1400
|
+
const useDefaultTranslationJobQuery = (props, options) => {
|
|
1401
|
+
const useDefaultTranslationJobQuery = extensionApiBridge.get().general.queries.translation.useDefaultTranslationJobQuery;
|
|
1402
|
+
return useDefaultTranslationJobQuery(props, options);
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* @internal
|
|
1407
|
+
*/
|
|
1408
|
+
const useActivityInstancesQuery = (props, options) => {
|
|
1409
|
+
const useActivityInstancesQuery = extensionApiBridge.get().general.queries.workflow.useActivityInstancesQuery;
|
|
1410
|
+
return useActivityInstancesQuery(props, options);
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* @internal
|
|
1415
|
+
*/
|
|
1416
|
+
const createExtensionGlobals = () => {
|
|
1417
|
+
let extensionGlobals;
|
|
1418
|
+
const initialize = (globals) => {
|
|
1419
|
+
if (extensionGlobals) {
|
|
1420
|
+
throw new Error('Extension globals are already initialized!');
|
|
1421
|
+
}
|
|
1422
|
+
extensionGlobals = globals;
|
|
1423
|
+
};
|
|
1424
|
+
return {
|
|
1425
|
+
initialize,
|
|
1426
|
+
t: (key, options) => extensionGlobals === null || extensionGlobals === void 0 ? void 0 : extensionGlobals.t(key, options),
|
|
1427
|
+
getConfiguration: () => extensionGlobals === null || extensionGlobals === void 0 ? void 0 : extensionGlobals.getConfiguration(),
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
const version = "0.5.0";
|
|
1432
|
+
const peerDependencies = {
|
|
1433
|
+
"@tridion-sites/models": "workspace:*",
|
|
1434
|
+
"@tridion-sites/open-api-client": "workspace:*",
|
|
1435
|
+
react: "18.2.0",
|
|
1436
|
+
"react-dom": "18.2.0",
|
|
1437
|
+
"react-is": "18.2.0",
|
|
1438
|
+
"react-query": "3.39.3",
|
|
1439
|
+
"styled-components": "5.3.6",
|
|
1440
|
+
tinymce: "6.3.1"
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* @internal
|
|
1445
|
+
*/
|
|
1446
|
+
const frameworkInfo = {
|
|
1447
|
+
version,
|
|
1448
|
+
peerDependencies,
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
export { ActionsConfigurationExtensionsBuilder, ActivitiesExplorerExtensionsBuilder, ActivitiesExplorerTableExtensionsBuilder, Button, ContentEditorExtensionsBuilder, ContentExplorerExtensionsBuilder, ContentExplorerTableExtensionsBuilder, ContentExplorerTreeExtensionsBuilder, ExtensionBuilder, HeaderExtensionsBuilder, Icon, Link, NavigationExtensionsBuilder, RichTextFieldExtensionsBuilder, Text, TextLink, TranslationExtensionsBuilder, activitiesExplorerActionGroupId, activitiesExplorerActionGroupIds, activitiesExplorerActionId, activitiesExplorerActionIds, contentExplorerActionGroupId, contentExplorerActionGroupIds, contentExplorerActionId, contentExplorerActionIds, contentExplorerTableActionGroupId, contentExplorerTableActionGroupIds, contentExplorerTableActionId, contentExplorerTableActionIds, contentExplorerTreeActionGroupId, contentExplorerTreeActionGroupIds, contentExplorerTreeActionId, contentExplorerTreeActionIds, createExtensionGlobals, extensionApiBridge, frameworkInfo, isFavoritesNodeId, isItemInProgressNodeId, isItemNode, isPublicationsNodeId, isRootNodeId, navigationItemId, navigationItemIds, useActivitiesExplorerTable, useActivityInstancesQuery, useAddToBundleMutation, useAssignActivitiesMutation, useAssignActivityMutation, useAutoClassifyItemMutation, useAutoClassifyItemsMutation, useBundleEditor, useCategoryEditor, useChangeUserLanguageMutation, useChangeUserLocaleMutation, useComponentEditor, useConfirmation, useContentExplorer, useContentExplorerTable, useContentExplorerTree, useCopyItemMutation, useCopyItemsMutation, useCreateTranslationJobMutation, useDefaultTranslationJobQuery, useDeleteItemMutation, useDeleteItemsMutation, useFavoritesQuery, useFinishActivitiesMutation, useFinishActivityMutation, useFinishEditingItemMutation, useFinishEditingItemsMutation, useFolderEditor, useItemBlueprintHierarchyQuery, useItemChildrenQuery, useItemClassifiedItemsQuery, useItemDefaultDataQuery, useItemHistoryQuery, useItemPublishUrlsQuery, useItemPublishedPagesQuery, useItemPublishedToQuery, useItemQuery, useItemTranslationInfoQuery, useItemUsedByQuery, useItemUsesQuery, useItemsInProgressQuery, useItemsQuery, useItemsToPublishQuery, useItemsToUnpublishQuery, useKeywordEditor, useLocalizeItemMutation, useLocalizeItemsMutation, useMoveItemMutation, useMoveItemsMutation, useNotifications, usePageEditor, usePublicationBlueprintHierarchyQuery, usePublicationsQuery, usePublishItemsMutation, usePublishableTargetTypesQuery, useRemoveFromBundleMutation, useRestartActivitiesMutation, useRestartActivityMutation, useRevertItemMutation, useRevertItemsMutation, useRollbackItemMutation, useSearchInContainerQuery, useStartActivitiesMutation, useStartActivityMutation, useStartWorkflowMutation, useStructureGroupEditor, useSystemSearchQuery, useUnlocalizeItemMutation, useUnlocalizeItemsMutation, useUnpublishItemsMutation, useUpdateItemMutation, useUploadMultimediaMutation, useUserGroupsQuery, useUserProfile, useUserProfileQuery, useUsersQuery };
|