@dotcms/types 26.9.3-1 → 26.9.3-1-next.2649
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/package.json
CHANGED
|
@@ -99,6 +99,12 @@ export interface DotContentletAttributes {
|
|
|
99
99
|
'data-dot-type': string;
|
|
100
100
|
'data-dot-container': string;
|
|
101
101
|
'data-dot-on-number-of-pages': string;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the current user may edit this contentlet instance. Stringified
|
|
104
|
+
* boolean, mirroring what the Velocity container renderer emits on
|
|
105
|
+
* traditional pages so the editor reads one attribute on both surfaces.
|
|
106
|
+
*/
|
|
107
|
+
'data-dot-can-edit': string;
|
|
102
108
|
'data-dot-style-properties'?: string;
|
|
103
109
|
}
|
|
104
110
|
/**
|
package/src/lib/page/public.d.ts
CHANGED
|
@@ -343,6 +343,15 @@ export interface DotCMSBasicContentlet {
|
|
|
343
343
|
binaryContentAsset?: string;
|
|
344
344
|
binaryVersion?: string;
|
|
345
345
|
contentType: string;
|
|
346
|
+
/**
|
|
347
|
+
* Whether the requesting user holds EDIT permission on this contentlet
|
|
348
|
+
* instance. Returned by the Page API and by GraphQL through `_map`.
|
|
349
|
+
*
|
|
350
|
+
* Optional and fail-open: a dotCMS release that predates the field omits
|
|
351
|
+
* it, and `undefined` must be treated as allowed so the editor keeps
|
|
352
|
+
* behaving as it does today rather than locking up.
|
|
353
|
+
*/
|
|
354
|
+
canEdit?: boolean;
|
|
346
355
|
file?: string;
|
|
347
356
|
folder: string;
|
|
348
357
|
hasLiveVersion?: boolean;
|