@dotcms/types 1.5.6 → 1.6.0-next.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/src/lib/editor/internal.d.ts +12 -0
- package/src/lib/page/public.d.ts +6 -1
package/README.md
CHANGED
|
@@ -246,7 +246,7 @@ We offer multiple channels to get help with the dotCMS Types library:
|
|
|
246
246
|
- **GitHub Issues**: For bug reports and feature requests, please [open an issue](https://github.com/dotCMS/core/issues/new/choose) in the GitHub repository
|
|
247
247
|
- **Community Forum**: Join our [community discussions](https://community.dotcms.com/) to ask questions and share solutions
|
|
248
248
|
- **Stack Overflow**: Use the tag `dotcms-types` when posting questions
|
|
249
|
-
- **Enterprise Support**: Enterprise customers can access premium support through the [dotCMS Support Portal](https://
|
|
249
|
+
- **Enterprise Support**: Enterprise customers can access premium support through the [dotCMS Support Portal](https://www.dotcms.com/support)
|
|
250
250
|
|
|
251
251
|
When reporting issues, please include:
|
|
252
252
|
|
package/package.json
CHANGED
|
@@ -101,4 +101,16 @@ export interface DotContentletAttributes {
|
|
|
101
101
|
'data-dot-on-number-of-pages': string;
|
|
102
102
|
'data-dot-style-properties'?: string;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* Minimal subset of contentlet data attributes required by DotCMS Analytics
|
|
107
|
+
* (impression & click tracking) to identify contentlets in live mode.
|
|
108
|
+
*
|
|
109
|
+
* In live mode the SDKs strip editor-only metadata, but Analytics still needs
|
|
110
|
+
* these attributes to resolve the contentlet behind an impression/click.
|
|
111
|
+
*
|
|
112
|
+
* @see DotContentletAttributes
|
|
113
|
+
* @interface DotAnalyticsContentletAttributes
|
|
114
|
+
*/
|
|
115
|
+
export type DotAnalyticsContentletAttributes = Pick<DotContentletAttributes, 'data-dot-identifier' | 'data-dot-inode' | 'data-dot-title' | 'data-dot-type' | 'data-dot-basetype'>;
|
|
104
116
|
export {};
|
package/src/lib/page/public.d.ts
CHANGED
|
@@ -1190,7 +1190,12 @@ export interface DotCMSPageResponse {
|
|
|
1190
1190
|
* @deprecated Use `errors` instead. Will be removed in August 2026. Kept for backward compatibility — represents the first GraphQL error when present.
|
|
1191
1191
|
*/
|
|
1192
1192
|
error?: DotCMSGraphQLError;
|
|
1193
|
-
|
|
1193
|
+
/**
|
|
1194
|
+
* GraphQL errors surfaced by the request. Always an array — empty when there are none — so the
|
|
1195
|
+
* response stays JSON-serializable (Next.js Pages Router rejects `undefined` props). Check
|
|
1196
|
+
* `errors.length`, not `errors != null`.
|
|
1197
|
+
*/
|
|
1198
|
+
errors: DotCMSGraphQLError[];
|
|
1194
1199
|
graphql: {
|
|
1195
1200
|
query: string;
|
|
1196
1201
|
variables: Record<string, unknown>;
|