@dotcms/client 1.5.1-next.1972 → 1.5.1-next.1977

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/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
- consola.consola.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.");
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
- consola.consola.warn('[DotCMS PageClient]: fetchStyleEditorSchemas called without a pageId — ' +
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
- consola.consola.warn(`[DotCMS PageClient]: Style editor schemas request failed with ${error.status} — ` +
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
- consola.consola.debug('[DotCMS PageClient]: Skipping style editor schemas:', error);
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
- consola.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.");
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
- consola.warn('[DotCMS PageClient]: fetchStyleEditorSchemas called without a pageId — ' +
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
- consola.warn(`[DotCMS PageClient]: Style editor schemas request failed with ${error.status} — ` +
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
- consola.debug('[DotCMS PageClient]: Skipping style editor schemas:', error);
2345
+ console.warn('[DotCMS PageClient]: Skipping style editor schemas:', error);
2349
2346
  }
2350
2347
  return [];
2351
2348
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/client",
3
- "version": "1.5.1-next.1972",
3
+ "version": "1.5.1-next.1977",
4
4
  "description": "Official JavaScript library for interacting with DotCMS REST APIs.",
5
5
  "repository": {
6
6
  "type": "git",