@dotcms/client 1.5.1-next.1972 → 1.5.1-next.1996
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 +3 -3
- package/index.cjs.js +4 -7
- package/index.esm.js +4 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1365,8 +1365,8 @@ import { DotRequestOptions } from '@dotcms/types';
|
|
|
1365
1365
|
|
|
1366
1366
|
## Licensing
|
|
1367
1367
|
|
|
1368
|
-
dotCMS
|
|
1368
|
+
dotCMS is available under either the [Business Source License 1.1 (BSL)](https://www.dotcms.com/bsl) or a commercial license.
|
|
1369
1369
|
|
|
1370
|
-
|
|
1370
|
+
Under the BSL, dotCMS can be used at no cost by individual developers, small businesses or agencies under $5M in total finances, and by larger organizations in non-production environments. Every BSL release automatically converts to GPL v3 four years after its release date. For full terms and FAQs, visit [dotcms.com/bsl](https://www.dotcms.com/bsl) and [dotcms.com/bsl-faq](https://www.dotcms.com/bsl-faq).
|
|
1371
1371
|
|
|
1372
|
-
|
|
1372
|
+
Production use in larger organizations, along with access to managed cloud, SLAs, support, and enterprise capabilities, is available under a commercial license from dotCMS. For details on commercial plans, features, and support options, see [dotcms.com/pricing](https://www.dotcms.com/pricing).
|
package/index.cjs.js
CHANGED
|
@@ -2109,7 +2109,7 @@ const DEFAULT_PAGE_CONTENTLETS_CONTENT = `
|
|
|
2109
2109
|
*/
|
|
2110
2110
|
const buildPageQuery = ({ page, fragments, additionalQueries, verbose = false }) => {
|
|
2111
2111
|
if (!page && verbose) {
|
|
2112
|
-
|
|
2112
|
+
console.warn("[DotCMS Client]: No page query was found, so we're loading all content using _map. This might slow things down. For better performance, we recommend adding a specific query in the page attribute.");
|
|
2113
2113
|
}
|
|
2114
2114
|
return `
|
|
2115
2115
|
fragment DotCMSPage on DotPage {
|
|
@@ -2316,11 +2316,8 @@ function mapContentResponse(responseData, keys) {
|
|
|
2316
2316
|
* @internal
|
|
2317
2317
|
*/
|
|
2318
2318
|
async function fetchStyleEditorSchemas(pageId, config, requestOptions, httpClient) {
|
|
2319
|
-
if (typeof window === 'undefined') {
|
|
2320
|
-
return [];
|
|
2321
|
-
}
|
|
2322
2319
|
if (!pageId) {
|
|
2323
|
-
|
|
2320
|
+
console.warn('[DotCMS PageClient]: fetchStyleEditorSchemas called without a pageId — ' +
|
|
2324
2321
|
'make sure "identifier" is included in your GraphQL page fragment.');
|
|
2325
2322
|
return [];
|
|
2326
2323
|
}
|
|
@@ -2343,11 +2340,11 @@ async function fetchStyleEditorSchemas(pageId, config, requestOptions, httpClien
|
|
|
2343
2340
|
}
|
|
2344
2341
|
catch (error) {
|
|
2345
2342
|
if (error instanceof types.DotHttpError && (error.status === 401 || error.status === 403)) {
|
|
2346
|
-
|
|
2343
|
+
console.warn(`[DotCMS PageClient]: Style editor schemas request failed with ${error.status} — ` +
|
|
2347
2344
|
'make sure your DotCMS client is configured with a valid authToken that has READ access to the page.');
|
|
2348
2345
|
}
|
|
2349
2346
|
else {
|
|
2350
|
-
|
|
2347
|
+
console.warn('[DotCMS PageClient]: Skipping style editor schemas:', error);
|
|
2351
2348
|
}
|
|
2352
2349
|
return [];
|
|
2353
2350
|
}
|
package/index.esm.js
CHANGED
|
@@ -2107,7 +2107,7 @@ const DEFAULT_PAGE_CONTENTLETS_CONTENT = `
|
|
|
2107
2107
|
*/
|
|
2108
2108
|
const buildPageQuery = ({ page, fragments, additionalQueries, verbose = false }) => {
|
|
2109
2109
|
if (!page && verbose) {
|
|
2110
|
-
|
|
2110
|
+
console.warn("[DotCMS Client]: No page query was found, so we're loading all content using _map. This might slow things down. For better performance, we recommend adding a specific query in the page attribute.");
|
|
2111
2111
|
}
|
|
2112
2112
|
return `
|
|
2113
2113
|
fragment DotCMSPage on DotPage {
|
|
@@ -2314,11 +2314,8 @@ function mapContentResponse(responseData, keys) {
|
|
|
2314
2314
|
* @internal
|
|
2315
2315
|
*/
|
|
2316
2316
|
async function fetchStyleEditorSchemas(pageId, config, requestOptions, httpClient) {
|
|
2317
|
-
if (typeof window === 'undefined') {
|
|
2318
|
-
return [];
|
|
2319
|
-
}
|
|
2320
2317
|
if (!pageId) {
|
|
2321
|
-
|
|
2318
|
+
console.warn('[DotCMS PageClient]: fetchStyleEditorSchemas called without a pageId — ' +
|
|
2322
2319
|
'make sure "identifier" is included in your GraphQL page fragment.');
|
|
2323
2320
|
return [];
|
|
2324
2321
|
}
|
|
@@ -2341,11 +2338,11 @@ async function fetchStyleEditorSchemas(pageId, config, requestOptions, httpClien
|
|
|
2341
2338
|
}
|
|
2342
2339
|
catch (error) {
|
|
2343
2340
|
if (error instanceof DotHttpError && (error.status === 401 || error.status === 403)) {
|
|
2344
|
-
|
|
2341
|
+
console.warn(`[DotCMS PageClient]: Style editor schemas request failed with ${error.status} — ` +
|
|
2345
2342
|
'make sure your DotCMS client is configured with a valid authToken that has READ access to the page.');
|
|
2346
2343
|
}
|
|
2347
2344
|
else {
|
|
2348
|
-
|
|
2345
|
+
console.warn('[DotCMS PageClient]: Skipping style editor schemas:', error);
|
|
2349
2346
|
}
|
|
2350
2347
|
return [];
|
|
2351
2348
|
}
|