@pimcore/studio-ui-bundle 0.12.9 → 0.13.20

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 (139) hide show
  1. package/dist/build/types/src/core/app/config/services/service-ids.d.ts +7 -0
  2. package/dist/build/types/src/core/bootstrap.d.ts +2 -0
  3. package/dist/build/types/src/core/components/content/content-config-provider.d.ts +21 -0
  4. package/dist/build/types/src/core/components/content/content.d.ts +3 -2
  5. package/dist/build/types/src/core/components/content/content.styles.d.ts +6 -1
  6. package/dist/build/types/src/core/components/content-layout/content-layout.d.ts +1 -0
  7. package/dist/build/types/src/core/components/dropdown/dropdown.stories.d.ts +9 -9
  8. package/dist/build/types/src/core/components/element-tree/element-tree-slice.d.ts +1 -1
  9. package/dist/build/types/src/core/components/element-tree/provider/tree-permission-provider/use-tree-permission.d.ts +1 -1
  10. package/dist/build/types/src/core/components/grid/grid.d.ts +1 -0
  11. package/dist/build/types/src/core/components/hotspot-image/hotspot-image.d.ts +9 -3
  12. package/dist/build/types/src/core/components/hotspot-image/marker-icon.d.ts +10 -0
  13. package/dist/build/types/src/core/components/icon/default-icon-color-groups.d.ts +12 -0
  14. package/dist/build/types/src/core/components/icon/icon-color-groups-registry.d.ts +32 -0
  15. package/dist/build/types/src/core/components/icon/icon.d.ts +3 -1
  16. package/dist/build/types/src/core/components/iframe/iframe.d.ts +1 -2
  17. package/dist/build/types/src/core/components/iframe-content/iframe-content.d.ts +21 -0
  18. package/dist/build/types/src/core/components/many-to-one-relation/path-target.d.ts +2 -1
  19. package/dist/build/types/src/core/components/menu/menu.styles.d.ts +13 -0
  20. package/dist/build/types/src/core/components/modal/factory/modal-factory.d.ts +32 -0
  21. package/dist/build/types/src/core/components/modal-upload/hooks/use-upload-conflict-handler.d.ts +1 -0
  22. package/dist/build/types/src/core/components/operational-grid/operational-grid.stories.d.ts +2 -0
  23. package/dist/build/types/src/core/components/pimcore-video/video-provider.d.ts +22 -0
  24. package/dist/build/types/src/core/components/search-input/search-input.d.ts +2 -1
  25. package/dist/build/types/src/core/components/toolstrip/tool-strip.styles.d.ts +1 -0
  26. package/dist/build/types/src/core/components/tree-element/tree-element-item.d.ts +2 -4
  27. package/dist/build/types/src/core/components/tree-element/tree-element.d.ts +24 -9
  28. package/dist/build/types/src/core/modules/about/components/about-dialog/about-dialog-wrapper.d.ts +15 -0
  29. package/dist/build/types/src/core/modules/about/components/about-dialog/context/about-dialog-data-context.d.ts +18 -0
  30. package/dist/build/types/src/core/modules/app/base-layout/main-nav/services/main-nav-registry.d.ts +13 -3
  31. package/dist/build/types/src/core/modules/app/context-menu-registry/context-menu-config.d.ts +1 -0
  32. package/dist/build/types/src/core/modules/app/error-handler/types.d.ts +3 -1
  33. package/dist/build/types/src/core/modules/app/theme/dynamic-types/definitions/studio-default-light/dynamic-type-theme-studio-default-light.d.ts +40 -0
  34. package/dist/build/types/src/core/modules/app/utils/auto-hide-empty-content/auto-hide-empty-content.d.ts +16 -0
  35. package/dist/build/types/src/core/modules/app/utils/auto-hide-empty-content/auto-hide-empty-content.styles.d.ts +14 -0
  36. package/dist/build/types/src/core/modules/app/utils/auto-hide-empty-content/hooks/use-hide-parent-when-hidden.d.ts +17 -0
  37. package/dist/build/types/src/core/modules/asset/actions/upload-new-version/upload-new-version.d.ts +1 -1
  38. package/dist/build/types/src/core/modules/asset/asset-api-slice-enhanced.d.ts +2 -0
  39. package/dist/build/types/src/core/modules/asset/asset-api-slice.gen.d.ts +413 -17
  40. package/dist/build/types/src/core/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice-enhanced.d.ts +2 -2
  41. package/dist/build/types/src/core/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice.gen.d.ts +2 -2
  42. package/dist/build/types/src/core/modules/asset/editor/types/video/tab-manager/tabs/preview/preview-container.d.ts +0 -7
  43. package/dist/build/types/src/core/modules/asset/hooks/use-global-asset-context.d.ts +1 -1
  44. package/dist/build/types/src/core/modules/asset/listing/listing-container.d.ts +1 -1
  45. package/dist/build/types/src/core/modules/auth/user/user-api-slice-enhanced.d.ts +1 -1
  46. package/dist/build/types/src/core/modules/auth/user/user-api-slice.gen.d.ts +148 -124
  47. package/dist/build/types/src/core/modules/auth/util/user-helper.d.ts +11 -0
  48. package/dist/build/types/src/core/modules/class-definition/class-definition-slice-enhanced.d.ts +1231 -1
  49. package/dist/build/types/src/core/modules/class-definition/class-definition-slice.gen.d.ts +2879 -206
  50. package/dist/build/types/src/core/modules/class-definition/class-definition-widget.d.ts +11 -0
  51. package/dist/build/types/src/core/modules/class-definition/components/class-editor/add-modal.d.ts +11 -0
  52. package/dist/build/types/src/core/modules/class-definition/components/class-editor/use-class-definition-update.d.ts +11 -0
  53. package/dist/build/types/src/core/modules/class-definition/index.d.ts +10 -0
  54. package/dist/build/types/src/core/modules/data-object/hooks/use-global-data-object-context.d.ts +1 -1
  55. package/dist/build/types/src/core/modules/document/actions/add-page/use-add-document.d.ts +2 -0
  56. package/dist/build/types/src/core/modules/document/document-api-slice-enhanced.d.ts +1 -0
  57. package/dist/build/types/src/core/modules/document/document-api-slice.gen.d.ts +198 -0
  58. package/dist/build/types/src/core/modules/document/document-draft-slice.d.ts +10 -10
  59. package/dist/build/types/src/core/modules/document/document-editor-slice.d.ts +5 -5
  60. package/dist/build/types/src/core/modules/document/hooks/use-global-document-context.d.ts +1 -1
  61. package/dist/build/types/src/core/modules/element/dynamic-types/definitions/document/editable/types/dynamic-type-document-editable-wysiwyg.d.ts +0 -1
  62. package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/components/calculated-value/components/label/label.d.ts +1 -1
  63. package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/helpers/relations/components/label/label.d.ts +1 -1
  64. package/dist/build/types/src/core/modules/element/dynamic-types/defintinitions/objects/data-related/components/localized-fields/versions/version-object-localized-fields.d.ts +16 -0
  65. package/dist/build/types/src/core/modules/element/editor/detached-tab/missing-context.styles.d.ts +16 -0
  66. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/properties/properties-api-slice-enhanced.d.ts +2 -2
  67. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/properties/properties-api-slice.gen.d.ts +2 -2
  68. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/schedule/schedule-api-slice-enhanced.d.ts +1 -1
  69. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/schedule/schedule-api-slice.gen.d.ts +1 -1
  70. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice-enhanced.d.ts +2 -2
  71. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice.gen.d.ts +3 -3
  72. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice.gen.d.ts +1 -1
  73. package/dist/build/types/src/core/modules/element/element-api-slice.gen.d.ts +3 -151
  74. package/dist/build/types/src/core/modules/element/element-helper.d.ts +1 -0
  75. package/dist/build/types/src/core/modules/execution-engine/execution-engine-api-slice-enhanced.d.ts +1 -1
  76. package/dist/build/types/src/core/modules/execution-engine/execution-engine-api-slice.gen.d.ts +6 -4
  77. package/dist/build/types/src/core/modules/field-definitions/components/editor/area-provider.d.ts +20 -0
  78. package/dist/build/types/src/core/modules/field-definitions/components/editor/custom-layout/custom-layout-modal-provider.d.ts +21 -0
  79. package/dist/build/types/src/core/modules/field-definitions/components/editor/custom-layout/custom-layout-modal-trigger.d.ts +11 -0
  80. package/dist/build/types/src/core/modules/{about/components/about-dialog/about-dialog-container.d.ts → field-definitions/components/editor/custom-layout/custom-layout-modal.d.ts} +1 -1
  81. package/dist/build/types/src/core/modules/field-definitions/components/editor/custom-layout/custom-layout.d.ts +11 -0
  82. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/content/layout-form.d.ts +11 -0
  83. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/content.d.ts +11 -0
  84. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/general-settings-provider.d.ts +22 -0
  85. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/layout-provider.d.ts +42 -0
  86. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/save.d.ts +11 -0
  87. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/sidebar.d.ts +15 -0
  88. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail.d.ts +15 -0
  89. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/provider.d.ts +33 -0
  90. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/sidebar/add-modal.d.ts +10 -0
  91. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/sidebar/modal-holder.d.ts +11 -0
  92. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/sidebar.d.ts +11 -0
  93. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/tabs.d.ts +11 -0
  94. package/dist/build/types/src/core/modules/field-definitions/components/editor/settings-provider.d.ts +26 -0
  95. package/dist/build/types/src/core/modules/field-definitions/components/editor.d.ts +22 -0
  96. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/dynamic-type-field-definition-abstract.d.ts +39 -0
  97. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/dynamic-type-field-definition-registry.d.ts +14 -0
  98. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/data/dynamic-type-field-defintion-data-abstract.d.ts +23 -0
  99. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/data/field-defintion-data-form-fields.d.ts +12 -0
  100. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/layout/dynamic-type-field-defintion-layout-abstract.d.ts +23 -0
  101. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/layout/field-defintion-layout-form-fields.d.ts +12 -0
  102. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/block/dynamic-type-field-definition-block.d.ts +19 -0
  103. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/input/dynamic-type-field-definition-input.d.ts +19 -0
  104. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/input/field-defintion-input-form-fields.d.ts +12 -0
  105. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/panel/dynamic-type-field-definition-panel.d.ts +18 -0
  106. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/panel/field-definition-panel-form-fields.d.ts +12 -0
  107. package/dist/build/types/src/core/modules/field-definitions/index.d.ts +10 -0
  108. package/dist/build/types/src/core/modules/field-definitions/utils/context-helpers.d.ts +13 -0
  109. package/dist/build/types/src/core/modules/notifications/notifications-slice-enhanced.d.ts +2 -2
  110. package/dist/build/types/src/core/modules/notifications/notifications-slice.gen.d.ts +2 -2
  111. package/dist/build/types/src/core/modules/open-element/{open-element.d.ts → constants.d.ts} +0 -7
  112. package/dist/build/types/src/core/modules/open-element/context/open-element-data-context.d.ts +19 -0
  113. package/dist/build/types/src/core/modules/open-element/open-element-wrapper.d.ts +15 -0
  114. package/dist/build/types/src/core/modules/perspectives/enums/tree-permission.d.ts +5 -7
  115. package/dist/build/types/src/core/modules/perspectives/perspectives-slice.gen.d.ts +1 -151
  116. package/dist/build/types/src/core/modules/reports/dynamic-types/definitions/custom-report-definition-adapters/dynamic-type-custom-report-definition-abstract.d.ts +1 -0
  117. package/dist/build/types/src/core/modules/reports/dynamic-types/definitions/custom-report-definition-adapters/types/dynamic-type-custom-report-definition-sql-adapter.d.ts +1 -0
  118. package/dist/build/types/src/core/modules/reports/reports-editor/components/report-configuration/report-configuration.styles.d.ts +1 -0
  119. package/dist/build/types/src/core/modules/reports/reports-view/components/report-toolbar/report-toolbar.d.ts +2 -1
  120. package/dist/build/types/src/core/modules/user/management/detail/tabs/settings/components/login-token-modal/login-token-modal-container.d.ts +15 -0
  121. package/dist/build/types/src/core/modules/user/management/detail/tabs/settings/components/login-token-modal/login-token-modal.d.ts +17 -0
  122. package/dist/build/types/src/core/modules/user/user-api-slice-enhanced.d.ts +369 -2
  123. package/dist/build/types/src/core/modules/widget-editor/services/widget-context-menu-item-registry.d.ts +23 -0
  124. package/dist/build/types/src/core/modules/widget-manager/hooks/use-widget-manager.d.ts +1 -0
  125. package/dist/build/types/src/core/modules/widget-manager/title/border-title-view.d.ts +3 -1
  126. package/dist/build/types/src/core/modules/widget-manager/title/tab-title-view.d.ts +3 -1
  127. package/dist/build/types/src/core/modules/widget-manager/widget/title/title-view.d.ts +2 -0
  128. package/dist/build/types/src/core/modules/widget-manager/widget/widget-content-title-container.d.ts +4 -1
  129. package/dist/build/types/src/core/modules/widget-manager/widget/widget-view.d.ts +2 -0
  130. package/dist/build/types/src/core/modules/widget-manager/widget-manager-slice.d.ts +2 -0
  131. package/dist/build/types/src/core/modules/wysiwyg/wysiwyg.styles.d.ts +1 -0
  132. package/dist/build/types/src/core/utils/sizing.d.ts +1 -0
  133. package/dist/build/types/src/core/utils/use-element-overflow.d.ts +1 -1
  134. package/dist/build/types/src/sdk/components/index.d.ts +5 -0
  135. package/dist/build/types/src/sdk/main.d.ts +2 -0
  136. package/dist/build/types/src/sdk/modules/auth/index.d.ts +2 -0
  137. package/dist/build/types/src/sdk/modules/data-object/index.d.ts +1 -0
  138. package/dist/build/types/src/sdk/modules/perspectives/index.d.ts +2 -0
  139. package/package.json +1 -1
@@ -38,7 +38,9 @@ export type ElementFolderCreateApiArg = {
38
38
  elementType: "asset" | "document" | "data-object";
39
39
  folderData: FolderData;
40
40
  };
41
- export type ElementGetContextPermissionsApiResponse = AssetContextPermissions | DataObjectContextPermissions | DocumentContextPermissions;
41
+ export type ElementGetContextPermissionsApiResponse = {
42
+ [key: string]: boolean;
43
+ };
42
44
  export type ElementGetContextPermissionsApiArg = {
43
45
  /** Filter elements by matching element type. */
44
46
  elementType: "asset" | "document" | "data-object";
@@ -133,156 +135,6 @@ export type FolderData = {
133
135
  /** Folder Name */
134
136
  folderName: string;
135
137
  };
136
- export type SaveAssetContextPermissions = {
137
- /** Hide Add Menu */
138
- hideAdd: boolean;
139
- /** Add Upload */
140
- addUpload: boolean;
141
- /** Upload New Version */
142
- uploadNewVersion: boolean;
143
- /** Add Upload Zip */
144
- addUploadZip: boolean;
145
- /** Download */
146
- download: boolean;
147
- /** Download Zip */
148
- downloadZip: boolean;
149
- /** Add Folder */
150
- addFolder: boolean;
151
- /** Copy */
152
- copy: boolean;
153
- /** Cut */
154
- cut: boolean;
155
- /** Delete */
156
- delete: boolean;
157
- /** Lock */
158
- lock: boolean;
159
- /** Lock And Propagate */
160
- lockAndPropagate: boolean;
161
- /** Paste */
162
- paste: boolean;
163
- /** Paste Cut */
164
- pasteCut: boolean;
165
- /** Refresh */
166
- refresh: boolean;
167
- /** Rename */
168
- rename: boolean;
169
- /** SearchAndMove */
170
- searchAndMove: boolean;
171
- /** Unlock */
172
- unlock: boolean;
173
- /** Unlock And Propagate */
174
- unlockAndPropagate: boolean;
175
- };
176
- export type AssetContextPermissions = SaveAssetContextPermissions & {
177
- /** AdditionalAttributes */
178
- additionalAttributes?: {
179
- [key: string]: string | number | boolean | object;
180
- };
181
- };
182
- export type SaveDataObjectContextPermissions = {
183
- /** Add */
184
- add: boolean;
185
- /** Add Folder */
186
- addFolder: boolean;
187
- /** Change Children SortBy */
188
- changeChildrenSortBy: boolean;
189
- /** Copy */
190
- copy: boolean;
191
- /** Cut */
192
- cut: boolean;
193
- /** Delete */
194
- delete: boolean;
195
- /** Lock */
196
- lock: boolean;
197
- /** Lock and Propagate */
198
- lockAndPropagate: boolean;
199
- /** Paste */
200
- paste: boolean;
201
- /** Publish */
202
- publish: boolean;
203
- /** Refresh */
204
- refresh: boolean;
205
- /** Rename */
206
- rename: boolean;
207
- /** Search and Move */
208
- searchAndMove: boolean;
209
- /** Unlock */
210
- unlock: boolean;
211
- /** Unlock and Propagate */
212
- unlockAndPropagate: boolean;
213
- /** Unpublish */
214
- unpublish: boolean;
215
- };
216
- export type DataObjectContextPermissions = SaveDataObjectContextPermissions & {
217
- /** AdditionalAttributes */
218
- additionalAttributes?: {
219
- [key: string]: string | number | boolean | object;
220
- };
221
- };
222
- export type SaveDocumentContextPermissions = {
223
- /** Add */
224
- add: boolean;
225
- /** Add E-Mail */
226
- addEmail: boolean;
227
- /** Add Folder */
228
- addFolder: boolean;
229
- /** Add Hardlink */
230
- addHardlink: boolean;
231
- /** Add Headless Document */
232
- addHeadlessDocument: boolean;
233
- /** Add Link */
234
- addLink: boolean;
235
- /** Add Newsletter */
236
- addNewsletter: boolean;
237
- /** Add Print Page */
238
- addPrintPage: boolean;
239
- /** Add Snippet */
240
- addSnippet: boolean;
241
- /** Convert */
242
- convert: boolean;
243
- /** Copy */
244
- copy: boolean;
245
- /** Cut */
246
- cut: boolean;
247
- /** Delete */
248
- delete: boolean;
249
- /** Edit Site */
250
- editSite: boolean;
251
- /** Lock */
252
- lock: boolean;
253
- /** Lock and Propagate */
254
- lockAndPropagate: boolean;
255
- /** Open */
256
- open: boolean;
257
- /** Paste */
258
- paste: boolean;
259
- /** Paste Cut */
260
- pasteCut: boolean;
261
- /** Publish */
262
- publish: boolean;
263
- /** Refresh */
264
- refresh: boolean;
265
- /** Remove Site */
266
- removeSite: boolean;
267
- /** Rename */
268
- rename: boolean;
269
- /** Search and Move */
270
- searchAndMove: boolean;
271
- /** Unlock */
272
- unlock: boolean;
273
- /** Unlock and Propagate */
274
- unlockAndPropagate: boolean;
275
- /** Unpublish */
276
- unpublish: boolean;
277
- /** Use As Site */
278
- useAsSite: boolean;
279
- };
280
- export type DocumentContextPermissions = SaveDocumentContextPermissions & {
281
- /** AdditionalAttributes */
282
- additionalAttributes?: {
283
- [key: string]: string | number | boolean | object;
284
- };
285
- };
286
138
  export type TreeLevelData = {
287
139
  /** Parent ID */
288
140
  parentId?: number;
@@ -24,5 +24,6 @@ export interface ElementReference {
24
24
  isPublished?: boolean | null;
25
25
  subtype?: string;
26
26
  }
27
+ export declare const isElementReference: (data: any) => data is ElementReference;
27
28
  export declare const convertDragAndDropInfoToElementReference: (info: DragAndDropInfo, showPublishedState?: boolean) => ElementReference;
28
29
  export declare const getElementDeeplink: (elementType: ElementType, id: Element["id"]) => string;
@@ -416,7 +416,7 @@ export declare const useExecutionEngineAbortJobRunByIdMutation: <R extends Recor
416
416
  isError: false;
417
417
  }, "error">>)> & {
418
418
  status: import("@reduxjs/toolkit/query").QueryStatus;
419
- }>(arg: import("./execution-engine-api-slice.gen").ExecutionEngineListJobsApiArg | typeof import("@reduxjs/toolkit/query").skipToken, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
419
+ }>(arg: typeof import("@reduxjs/toolkit/query").skipToken | import("./execution-engine-api-slice.gen").ExecutionEngineListJobsApiArg, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
420
420
  skip?: boolean;
421
421
  refetchOnMountOrArgChange?: boolean | number;
422
422
  } & {
@@ -56,11 +56,13 @@ export type JobRun = {
56
56
  /** Total elements */
57
57
  totalElements: number;
58
58
  /** Current Message og the last Event */
59
- currentMessage?: string;
59
+ currentMessage: string;
60
+ /** Id of the child Job run */
61
+ jobRunChildId: number | null;
60
62
  /** Current Step of a running Job */
61
- currentStep?: number | null;
63
+ currentStep: number | null;
62
64
  /** Number of total Steps of a running Job */
63
- totalSteps?: number | null;
65
+ totalSteps: number | null;
64
66
  /** Creation date */
65
67
  creationDate: number | null;
66
68
  /** Modification date */
@@ -474,7 +476,7 @@ export declare const useExecutionEngineAbortJobRunByIdMutation: <R extends Recor
474
476
  isError: false;
475
477
  }, "error">>)> & {
476
478
  status: import("@reduxjs/toolkit/query").QueryStatus;
477
- }>(arg: ExecutionEngineListJobsApiArg | typeof import("@reduxjs/toolkit/query").skipToken, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
479
+ }>(arg: typeof import("@reduxjs/toolkit/query").skipToken | ExecutionEngineListJobsApiArg, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
478
480
  skip?: boolean;
479
481
  refetchOnMountOrArgChange?: boolean | number;
480
482
  } & {
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export interface IAreaContext {
12
+ area: string[];
13
+ }
14
+ export declare const AreaContext: React.Context<IAreaContext | undefined>;
15
+ export interface AreaProviderProps {
16
+ area: string[];
17
+ children: React.ReactNode;
18
+ }
19
+ export declare const AreaProvider: (props: AreaProviderProps) => React.JSX.Element;
20
+ export declare const useArea: () => IAreaContext;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export interface ICustomLayoutModalContext {
12
+ isOpen: boolean;
13
+ openModal: () => void;
14
+ closeModal: () => void;
15
+ }
16
+ export declare const CustomLayoutModalContext: React.Context<ICustomLayoutModalContext>;
17
+ export interface CustomLayoutModalProviderProps {
18
+ children: React.ReactNode;
19
+ }
20
+ export declare const CustomLayoutModalProvider: (props: CustomLayoutModalProviderProps) => React.JSX.Element;
21
+ export declare const useCustomLayoutModal: () => ICustomLayoutModalContext;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const CustomLayoutModalTrigger: () => React.JSX.Element;
@@ -8,4 +8,4 @@
8
8
  * @license Pimcore Open Core License (POCL)
9
9
  */
10
10
  import React from 'react';
11
- export declare const AboutDialogContainer: () => React.JSX.Element;
11
+ export declare const CustomLayoutModal: () => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const CustomLayout: () => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const LayoutForm: () => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const DetailContent: () => React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { type CustomLayouts, type ClassDefinition } from '../../../../../../../sdk/api/class-definition';
11
+ import React from 'react';
12
+ export type GeneralSettings = ClassDefinition | CustomLayouts;
13
+ export interface IGeneralSettingsContext {
14
+ generalSettings: GeneralSettings | undefined;
15
+ }
16
+ export declare const GeneralSettingsContext: React.Context<IGeneralSettingsContext | undefined>;
17
+ export interface IGeneralSettingsProviderProps {
18
+ generalSettings: GeneralSettings | undefined;
19
+ children: React.ReactNode;
20
+ }
21
+ export declare const GeneralSettingsProvider: (props: IGeneralSettingsProviderProps) => React.JSX.Element;
22
+ export declare const useGeneralSettings: () => IGeneralSettingsContext;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { type Layout as LayoutType } from '../../../../../../../sdk/api/class-definition';
11
+ import React from 'react';
12
+ export type Layout = LayoutType;
13
+ export interface StructureNode {
14
+ id: string;
15
+ children: StructureNode[];
16
+ }
17
+ export interface FieldDefinition extends Record<string, any> {
18
+ fieldtype: string;
19
+ }
20
+ export interface ILayoutContext {
21
+ structure: StructureNode | undefined;
22
+ fieldDefinitions: Record<string, FieldDefinition>;
23
+ currentFieldDefinitionId: StructureNode['id'] | null;
24
+ currentFieldDefinitionIdPath: string[] | null;
25
+ invalidFieldDefinitionIds: string[];
26
+ setInvalidFieldDefinitionIds: (ids: string[]) => void;
27
+ setCurrentFieldDefinitionId: (id: StructureNode['id'] | null) => void;
28
+ setCurrentFieldDefinitionIdPath: (path: string[] | null) => void;
29
+ updateFieldDefinition: (structureNodeId: StructureNode['id'], updatedFieldDefinition: FieldDefinition) => void;
30
+ addFieldDefinition: (structureNodeId: StructureNode['id'], newFieldDefinition: FieldDefinition) => StructureNode['id'];
31
+ removeFieldDefinition: (structureNodeId: StructureNode['id']) => void;
32
+ cloneFieldDefinition: (structureNodeId: StructureNode['id']) => StructureNode['id'];
33
+ moveFieldDefinition: (structureNodeId: StructureNode['id'], newParentId: StructureNode['id'], newIndex: number) => void;
34
+ getLayout: () => Layout;
35
+ }
36
+ export declare const LayoutContext: React.Context<ILayoutContext | undefined>;
37
+ export interface LayoutProviderProps {
38
+ layout: Layout | undefined;
39
+ children: React.ReactNode;
40
+ }
41
+ export declare const LayoutProvider: (props: LayoutProviderProps) => React.JSX.Element;
42
+ export declare const useLayout: () => ILayoutContext;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const DetailSave: () => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export interface DetailSidebarProps {
12
+ allowExternalDrag?: boolean;
13
+ allowExternalDrop?: boolean;
14
+ }
15
+ export declare const DetailSidebar: (props: DetailSidebarProps) => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { type ConfigurationPartial } from '../../../../../modules/field-definitions/components/editor/items/provider';
11
+ import React from 'react';
12
+ export interface ItemDetailProps {
13
+ configuration: ConfigurationPartial;
14
+ }
15
+ export declare const ItemDetail: (props: ItemDetailProps) => React.JSX.Element;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export interface ConfigurationPartial {
12
+ id: string;
13
+ name: string;
14
+ group?: string;
15
+ icon?: {
16
+ value: string;
17
+ color?: string;
18
+ };
19
+ }
20
+ export interface IItemsContext {
21
+ configurations: ConfigurationPartial[];
22
+ activeConfiguration: ConfigurationPartial | undefined;
23
+ closeConfiguration: (config: ConfigurationPartial) => void;
24
+ openConfiguration: (config: ConfigurationPartial) => void;
25
+ setActiveConfiguration: (config: ConfigurationPartial) => void;
26
+ closeActiveConfiguration: () => void;
27
+ }
28
+ export declare const ItemsContext: React.Context<IItemsContext | undefined>;
29
+ export interface ItemsProviderProps {
30
+ children: React.ReactNode;
31
+ }
32
+ export declare const ItemsProvider: (props: ItemsProviderProps) => React.JSX.Element;
33
+ export declare const useItems: () => IItemsContext;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ export declare const AddModal: (props: import("../../../../../../components/modal/factory/modal-factory").OptionalModalProps) => React.JSX.Element, AddModalProvider: import("react").ComponentType<import("../../../../../../components/modal/factory/modal-factory").ModalProviderProps>, AddModalContext: import("react").Context<import("../../../../../../components/modal/factory/modal-factory").IModalContext | undefined>, useAddModal: () => import("../../../../../../components/modal/factory/modal-factory").IModalContext;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const SidebarModalHolder: () => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const ItemsSidebar: () => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import React from 'react';
11
+ export declare const ItemsTabs: () => React.JSX.Element;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { type OptionalModalProps } from '../../../../components/modal/factory/modal-factory';
11
+ import React, { type ComponentType } from 'react';
12
+ import { type AnyMutationHook, type AnyQueryHook } from 'types/react-query';
13
+ export interface ISettingsContext {
14
+ AddModal: ComponentType<OptionalModalProps>;
15
+ useItemsQuery: AnyQueryHook;
16
+ useItemsDeleteMutation: AnyMutationHook;
17
+ useDetailLayoutQuery: AnyQueryHook;
18
+ useDetailGeneralSettingsQuery: AnyQueryHook;
19
+ useDetailUpdateMutation: AnyMutationHook;
20
+ }
21
+ export declare const SettingsContext: React.Context<ISettingsContext | undefined>;
22
+ export interface SettingsProviderProps extends ISettingsContext {
23
+ children: React.ReactNode;
24
+ }
25
+ export declare const SettingsProvider: (props: SettingsProviderProps) => React.JSX.Element;
26
+ export declare const useSettings: () => ISettingsContext;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { type AreaProviderProps } from '../../../modules/field-definitions/components/editor/area-provider';
11
+ import { type SettingsProviderProps } from '../../../modules/field-definitions/components/editor/settings-provider';
12
+ import React from 'react';
13
+ export interface EditorProps {
14
+ area: AreaProviderProps['area'];
15
+ AddModal: SettingsProviderProps['AddModal'];
16
+ useItemsQuery: SettingsProviderProps['useItemsQuery'];
17
+ useItemsDeleteMutation: SettingsProviderProps['useItemsDeleteMutation'];
18
+ useDetailGeneralSettingsQuery: SettingsProviderProps['useDetailGeneralSettingsQuery'];
19
+ useDetailLayoutQuery: SettingsProviderProps['useDetailLayoutQuery'];
20
+ useDetailUpdateMutation: SettingsProviderProps['useDetailUpdateMutation'];
21
+ }
22
+ export declare const Editor: (props: EditorProps) => React.JSX.Element;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import type React from 'react';
11
+ import { type ILayoutContext } from '../../../modules/field-definitions/components/editor/items/detail/layout-provider';
12
+ import { DynamicTypeAbstract } from '../../../../sdk/modules/element';
13
+ import { type ElementIcon } from '../../../../sdk/modules/widget-manager';
14
+ export interface FieldDefinitionDataAbstract extends Record<string, any> {
15
+ fieldtype: string;
16
+ }
17
+ export interface FieldDefinitionContext extends Record<string, any> {
18
+ area: string[];
19
+ path: string[];
20
+ fieldDefinitions: ILayoutContext['fieldDefinitions'];
21
+ }
22
+ export interface FieldDefinitionAbstractFormFieldsProps {
23
+ context: FieldDefinitionContext;
24
+ }
25
+ export declare abstract class DynamicTypeFieldDefinitionAbstract extends DynamicTypeAbstract {
26
+ abstract getGroup(): string[];
27
+ getIcon(): ElementIcon;
28
+ getTags(props: FieldDefinitionContext): string[];
29
+ protected getAllowedChildTags(props: FieldDefinitionContext): string[];
30
+ protected getDisallowedRecursiveChildTags(props: FieldDefinitionContext): string[];
31
+ getConvertibleTags(props: FieldDefinitionContext): string[];
32
+ getValidChildTags(props: FieldDefinitionContext): string[];
33
+ getValidConvertibleTags(props: FieldDefinitionContext): string[];
34
+ isValid(data: FieldDefinitionDataAbstract, context: FieldDefinitionContext): boolean;
35
+ abstract getDefaultData(context: FieldDefinitionContext): FieldDefinitionDataAbstract;
36
+ abstract getFormFields(context: FieldDefinitionContext): React.JSX.Element;
37
+ getAdditionalFormFields(context: FieldDefinitionContext): React.JSX.Element | null;
38
+ protected computeValidTags(tags: string[], context: FieldDefinitionContext): string[];
39
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { type DynamicTypeFieldDefinitionAbstract, type FieldDefinitionContext } from '../../../modules/field-definitions/dynamic-types/dynamic-type-field-definition-abstract';
11
+ import { DynamicTypeRegistryAbstract } from '../../../../sdk/modules/element';
12
+ export declare class DynamicTypeFieldDefinitionRegistry extends DynamicTypeRegistryAbstract<DynamicTypeFieldDefinitionAbstract> {
13
+ getTypesByTags(tags: string[], context: FieldDefinitionContext): DynamicTypeFieldDefinitionAbstract[];
14
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { DynamicTypeFieldDefinitionAbstract, type FieldDefinitionDataAbstract, type FieldDefinitionContext } from '../../../../../../modules/field-definitions/dynamic-types/dynamic-type-field-definition-abstract';
11
+ import React from 'react';
12
+ export interface FieldDefinitionData extends FieldDefinitionDataAbstract {
13
+ name: string;
14
+ title: string;
15
+ tooltip: string;
16
+ }
17
+ export declare abstract class DynamicTypeFieldDefinitionDataAbstract extends DynamicTypeFieldDefinitionAbstract {
18
+ getTags(props: FieldDefinitionContext): string[];
19
+ getGroup(): string[];
20
+ getDefaultData(): FieldDefinitionData;
21
+ isValid(data: FieldDefinitionData): boolean;
22
+ getFormFields(context: FieldDefinitionContext): React.JSX.Element;
23
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This source file is available under the terms of the
3
+ * Pimcore Open Core License (POCL)
4
+ * Full copyright and license information is available in
5
+ * LICENSE.md which is distributed with this source code.
6
+ *
7
+ * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
+ * @license Pimcore Open Core License (POCL)
9
+ */
10
+ import { type FieldDefinitionAbstractFormFieldsProps } from '../../../../../../modules/field-definitions/dynamic-types/dynamic-type-field-definition-abstract';
11
+ import React from 'react';
12
+ export declare const FieldDefinitionDataFormFields: (props: FieldDefinitionAbstractFormFieldsProps) => React.JSX.Element;