@blaze-cms/nextjs-tools 0.146.0-node18-core-styles-tooltips.27 → 0.146.0-node18-core-styles-tooltips.29
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/CHANGELOG.md +11 -0
- package/lib/application/query/index.js +1 -1
- package/lib/application/query/index.js.map +1 -1
- package/lib-es/application/query/index.js +5 -0
- package/lib-es/application/query/index.js.map +1 -1
- package/package.json +7 -7
- package/src/application/query/index.js +5 -0
- package/tests/unit/src/application/query/__snapshots__/index.test.js.snap +98 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.146.0-node18-core-styles-tooltips.29](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.28...v0.146.0-node18-core-styles-tooltips.29) (2025-11-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* content document head ([#5007](https://github.com/thebyte9/blaze/issues/5007)) ([495545a](https://github.com/thebyte9/blaze/commit/495545a9b49b09a5857ff7e375f75375b15f998d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.146.0-node18-core-styles-tooltips.27](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.26...v0.146.0-node18-core-styles-tooltips.27) (2025-11-13)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
@@ -9,7 +9,7 @@ exports.getPageQuery = exports.checkUrlQuery = exports.GET_ENTITY_SCHEMA = void
|
|
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
10
|
var _client = require("@apollo/client");
|
|
11
11
|
var _templateObject, _templateObject2, _templateObject3;
|
|
12
|
-
var pageDataFields = "\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge";
|
|
12
|
+
var pageDataFields = "\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\ncontentDocumentHead {\n type\n props\n content\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge";
|
|
13
13
|
var checkUrlQuery = exports.checkUrlQuery = (0, _client.gql)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n query checkUrl($url: String!) {\n checkUrl(url: $url) {\n itemId\n itemEntity\n urlTo,\n pageData: record {\n ...on ContentContentInterface {\n ", "\n }\n }\n }\n }\n"])), pageDataFields);
|
|
14
14
|
var getPageQuery = exports.getPageQuery = function getPageQuery(_ref) {
|
|
15
15
|
var _ref$actions = _ref.actions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_client","require","_templateObject","_templateObject2","_templateObject3","pageDataFields","checkUrlQuery","exports","gql","_taggedTemplateLiteral2","getPageQuery","_ref","_ref$actions","actions","_ref$actions2","get","getPublished","isPreview","getMethod","GET_ENTITY_SCHEMA"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst pageDataFields = `\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge`;\n\nconst checkUrlQuery = gql`\n query checkUrl($url: String!) {\n checkUrl(url: $url) {\n itemId\n itemEntity\n urlTo,\n pageData: record {\n ...on ContentContentInterface {\n ${pageDataFields}\n }\n }\n }\n }\n`;\n\nconst getPageQuery = ({ actions: { get, getPublished } = {}, isPreview }) => {\n const getMethod = !isPreview && getPublished ? getPublished : get;\n\n return gql`\n query pageData($id: String!) {\n pageData: ${getMethod}(id: $id) {\n ${pageDataFields}\n url\n }\n }\n `;\n};\n\nconst GET_ENTITY_SCHEMA = gql`\n query getEntitySchema($id: String!) {\n entitySchema: getEntitySchema(id: $id) {\n id\n identifier\n actions\n }\n }\n`;\n\nexport { checkUrlQuery, getPageQuery, GET_ENTITY_SCHEMA };\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAqC,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAErC,IAAMC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_client","require","_templateObject","_templateObject2","_templateObject3","pageDataFields","checkUrlQuery","exports","gql","_taggedTemplateLiteral2","getPageQuery","_ref","_ref$actions","actions","_ref$actions2","get","getPublished","isPreview","getMethod","GET_ENTITY_SCHEMA"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst pageDataFields = `\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\ncontentDocumentHead {\n type\n props\n content\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge`;\n\nconst checkUrlQuery = gql`\n query checkUrl($url: String!) {\n checkUrl(url: $url) {\n itemId\n itemEntity\n urlTo,\n pageData: record {\n ...on ContentContentInterface {\n ${pageDataFields}\n }\n }\n }\n }\n`;\n\nconst getPageQuery = ({ actions: { get, getPublished } = {}, isPreview }) => {\n const getMethod = !isPreview && getPublished ? getPublished : get;\n\n return gql`\n query pageData($id: String!) {\n pageData: ${getMethod}(id: $id) {\n ${pageDataFields}\n url\n }\n }\n `;\n};\n\nconst GET_ENTITY_SCHEMA = gql`\n query getEntitySchema($id: String!) {\n entitySchema: getEntitySchema(id: $id) {\n id\n identifier\n actions\n }\n }\n`;\n\nexport { checkUrlQuery, getPageQuery, GET_ENTITY_SCHEMA };\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAqC,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAErC,IAAMC,cAAc,4RA2BD;AAEnB,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,OAAGE,WAAG,EAAAN,eAAA,KAAAA,eAAA,OAAAO,uBAAA,sPAQbJ,cAAc,CAKzB;AAED,IAAMK,YAAY,GAAAH,OAAA,CAAAG,YAAA,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAA2D;EAAA,IAAAC,YAAA,GAAAD,IAAA,CAArDE,OAAO;IAAAC,aAAA,GAAAF,YAAA,cAA0B,CAAC,CAAC,GAAAA,YAAA;IAAxBG,GAAG,GAAAD,aAAA,CAAHC,GAAG;IAAEC,YAAY,GAAAF,aAAA,CAAZE,YAAY;IAASC,SAAS,GAAAN,IAAA,CAATM,SAAS;EACpE,IAAMC,SAAS,GAAG,CAACD,SAAS,IAAID,YAAY,GAAGA,YAAY,GAAGD,GAAG;EAEjE,WAAOP,WAAG,EAAAL,gBAAA,KAAAA,gBAAA,OAAAM,uBAAA,yIAEMS,SAAS,EACjBb,cAAc;AAKxB,CAAC;AAED,IAAMc,iBAAiB,GAAAZ,OAAA,CAAAY,iBAAA,OAAGX,WAAG,EAAAJ,gBAAA,KAAAA,gBAAA,OAAAK,uBAAA,oKAQ5B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["gql","pageDataFields","checkUrlQuery","getPageQuery","actions","get","getPublished","isPreview","getMethod","GET_ENTITY_SCHEMA"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst pageDataFields = `\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge`;\n\nconst checkUrlQuery = gql`\n query checkUrl($url: String!) {\n checkUrl(url: $url) {\n itemId\n itemEntity\n urlTo,\n pageData: record {\n ...on ContentContentInterface {\n ${pageDataFields}\n }\n }\n }\n }\n`;\n\nconst getPageQuery = ({ actions: { get, getPublished } = {}, isPreview }) => {\n const getMethod = !isPreview && getPublished ? getPublished : get;\n\n return gql`\n query pageData($id: String!) {\n pageData: ${getMethod}(id: $id) {\n ${pageDataFields}\n url\n }\n }\n `;\n};\n\nconst GET_ENTITY_SCHEMA = gql`\n query getEntitySchema($id: String!) {\n entitySchema: getEntitySchema(id: $id) {\n id\n identifier\n actions\n }\n }\n`;\n\nexport { checkUrlQuery, getPageQuery, GET_ENTITY_SCHEMA };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,cAAc,GAAG;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AAEnB,MAAMC,aAAa,GAAGF,GAAG;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAYC,cAAc;AAC1B;AACA;AACA;AACA;AACA,CAAC;AAED,MAAME,YAAY,GAAGA,CAAC;EAAEC,OAAO,EAAE;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAG,CAAC,CAAC;EAAEC;AAAU,CAAC,KAAK;EAC3E,MAAMC,SAAS,GAAG,CAACD,SAAS,IAAID,YAAY,GAAGA,YAAY,GAAGD,GAAG;EAEjE,OAAOL,GAAG;AACZ;AACA,kBAAkBQ,SAAS;AAC3B,UAAUP,cAAc;AACxB;AACA;AACA;AACA,GAAG;AACH,CAAC;AAED,MAAMQ,iBAAiB,GAAGT,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,SAASE,aAAa,EAAEC,YAAY,EAAEM,iBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["gql","pageDataFields","checkUrlQuery","getPageQuery","actions","get","getPublished","isPreview","getMethod","GET_ENTITY_SCHEMA"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst pageDataFields = `\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\ncontentDocumentHead {\n type\n props\n content\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge`;\n\nconst checkUrlQuery = gql`\n query checkUrl($url: String!) {\n checkUrl(url: $url) {\n itemId\n itemEntity\n urlTo,\n pageData: record {\n ...on ContentContentInterface {\n ${pageDataFields}\n }\n }\n }\n }\n`;\n\nconst getPageQuery = ({ actions: { get, getPublished } = {}, isPreview }) => {\n const getMethod = !isPreview && getPublished ? getPublished : get;\n\n return gql`\n query pageData($id: String!) {\n pageData: ${getMethod}(id: $id) {\n ${pageDataFields}\n url\n }\n }\n `;\n};\n\nconst GET_ENTITY_SCHEMA = gql`\n query getEntitySchema($id: String!) {\n entitySchema: getEntitySchema(id: $id) {\n id\n identifier\n actions\n }\n }\n`;\n\nexport { checkUrlQuery, getPageQuery, GET_ENTITY_SCHEMA };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,cAAc,GAAG;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AAEnB,MAAMC,aAAa,GAAGF,GAAG;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAYC,cAAc;AAC1B;AACA;AACA;AACA;AACA,CAAC;AAED,MAAME,YAAY,GAAGA,CAAC;EAAEC,OAAO,EAAE;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAG,CAAC,CAAC;EAAEC;AAAU,CAAC,KAAK;EAC3E,MAAMC,SAAS,GAAG,CAACD,SAAS,IAAID,YAAY,GAAGA,YAAY,GAAGD,GAAG;EAEjE,OAAOL,GAAG;AACZ;AACA,kBAAkBQ,SAAS;AAC3B,UAAUP,cAAc;AACxB;AACA;AACA;AACA,GAAG;AACH,CAAC;AAED,MAAMQ,iBAAiB,GAAGT,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,SAASE,aAAa,EAAEC,YAAY,EAAEM,iBAAiB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/nextjs-tools",
|
|
3
|
-
"version": "0.146.0-node18-core-styles-tooltips.
|
|
3
|
+
"version": "0.146.0-node18-core-styles-tooltips.29",
|
|
4
4
|
"description": "Blaze nextjs tools",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"@blaze-cms/core-errors": "0.146.0-node18-core-styles-tooltips.3",
|
|
33
33
|
"@blaze-cms/core-errors-ui": "0.146.0-node18-core-styles-tooltips.3",
|
|
34
34
|
"@blaze-cms/core-ui": "0.146.0-node18-core-styles-tooltips.26",
|
|
35
|
-
"@blaze-cms/nextjs-components": "0.146.0-node18-core-styles-tooltips.
|
|
35
|
+
"@blaze-cms/nextjs-components": "0.146.0-node18-core-styles-tooltips.29",
|
|
36
36
|
"@blaze-cms/plugin-auth-fe": "0.146.0-node18-core-styles-tooltips.26",
|
|
37
37
|
"@blaze-cms/plugin-auth-local-fe": "0.146.0-node18-core-styles-tooltips.26",
|
|
38
38
|
"@blaze-cms/plugin-chart": "0.146.0-node18-core-styles-tooltips.22",
|
|
39
|
-
"@blaze-cms/plugin-google-maps-fe": "0.146.0-node18-core-styles-tooltips.
|
|
40
|
-
"@blaze-cms/plugin-gtm-fe": "0.146.0-node18-core-styles-tooltips.
|
|
41
|
-
"@blaze-cms/plugin-page-builder-fe": "0.146.0-node18-core-styles-tooltips.
|
|
39
|
+
"@blaze-cms/plugin-google-maps-fe": "0.146.0-node18-core-styles-tooltips.29",
|
|
40
|
+
"@blaze-cms/plugin-gtm-fe": "0.146.0-node18-core-styles-tooltips.29",
|
|
41
|
+
"@blaze-cms/plugin-page-builder-fe": "0.146.0-node18-core-styles-tooltips.29",
|
|
42
42
|
"@blaze-cms/plugin-preview-fe": "0.146.0-node18-core-styles-tooltips.26",
|
|
43
43
|
"@blaze-cms/plugin-search-ui": "0.146.0-node18-core-styles-tooltips.27",
|
|
44
44
|
"@blaze-cms/plugin-structured-data-fe": "0.146.0-node18-core-styles-tooltips.24",
|
|
45
|
-
"@blaze-cms/react-page-builder": "0.146.0-node18-core-styles-tooltips.
|
|
45
|
+
"@blaze-cms/react-page-builder": "0.146.0-node18-core-styles-tooltips.29",
|
|
46
46
|
"@blaze-cms/setup-ui": "0.146.0-node18-core-styles-tooltips.3",
|
|
47
47
|
"@blaze-react/switches": "0.8.0-alpha.112",
|
|
48
48
|
"autoprefixer": "^10.2.3",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"lib/*",
|
|
72
72
|
"lib-es/*"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "61803c4520e809dc3a611c6e3a729ea67d0eb4fa"
|
|
75
75
|
}
|
|
@@ -272,6 +272,54 @@ Object {
|
|
|
272
272
|
],
|
|
273
273
|
},
|
|
274
274
|
},
|
|
275
|
+
Object {
|
|
276
|
+
"alias": undefined,
|
|
277
|
+
"arguments": Array [],
|
|
278
|
+
"directives": Array [],
|
|
279
|
+
"kind": "Field",
|
|
280
|
+
"name": Object {
|
|
281
|
+
"kind": "Name",
|
|
282
|
+
"value": "contentDocumentHead",
|
|
283
|
+
},
|
|
284
|
+
"selectionSet": Object {
|
|
285
|
+
"kind": "SelectionSet",
|
|
286
|
+
"selections": Array [
|
|
287
|
+
Object {
|
|
288
|
+
"alias": undefined,
|
|
289
|
+
"arguments": Array [],
|
|
290
|
+
"directives": Array [],
|
|
291
|
+
"kind": "Field",
|
|
292
|
+
"name": Object {
|
|
293
|
+
"kind": "Name",
|
|
294
|
+
"value": "type",
|
|
295
|
+
},
|
|
296
|
+
"selectionSet": undefined,
|
|
297
|
+
},
|
|
298
|
+
Object {
|
|
299
|
+
"alias": undefined,
|
|
300
|
+
"arguments": Array [],
|
|
301
|
+
"directives": Array [],
|
|
302
|
+
"kind": "Field",
|
|
303
|
+
"name": Object {
|
|
304
|
+
"kind": "Name",
|
|
305
|
+
"value": "props",
|
|
306
|
+
},
|
|
307
|
+
"selectionSet": undefined,
|
|
308
|
+
},
|
|
309
|
+
Object {
|
|
310
|
+
"alias": undefined,
|
|
311
|
+
"arguments": Array [],
|
|
312
|
+
"directives": Array [],
|
|
313
|
+
"kind": "Field",
|
|
314
|
+
"name": Object {
|
|
315
|
+
"kind": "Name",
|
|
316
|
+
"value": "content",
|
|
317
|
+
},
|
|
318
|
+
"selectionSet": undefined,
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
},
|
|
275
323
|
Object {
|
|
276
324
|
"alias": undefined,
|
|
277
325
|
"arguments": Array [],
|
|
@@ -362,7 +410,7 @@ Object {
|
|
|
362
410
|
],
|
|
363
411
|
"kind": "Document",
|
|
364
412
|
"loc": Object {
|
|
365
|
-
"end":
|
|
413
|
+
"end": 460,
|
|
366
414
|
"start": 0,
|
|
367
415
|
},
|
|
368
416
|
}
|
|
@@ -589,6 +637,54 @@ Object {
|
|
|
589
637
|
],
|
|
590
638
|
},
|
|
591
639
|
},
|
|
640
|
+
Object {
|
|
641
|
+
"alias": undefined,
|
|
642
|
+
"arguments": Array [],
|
|
643
|
+
"directives": Array [],
|
|
644
|
+
"kind": "Field",
|
|
645
|
+
"name": Object {
|
|
646
|
+
"kind": "Name",
|
|
647
|
+
"value": "contentDocumentHead",
|
|
648
|
+
},
|
|
649
|
+
"selectionSet": Object {
|
|
650
|
+
"kind": "SelectionSet",
|
|
651
|
+
"selections": Array [
|
|
652
|
+
Object {
|
|
653
|
+
"alias": undefined,
|
|
654
|
+
"arguments": Array [],
|
|
655
|
+
"directives": Array [],
|
|
656
|
+
"kind": "Field",
|
|
657
|
+
"name": Object {
|
|
658
|
+
"kind": "Name",
|
|
659
|
+
"value": "type",
|
|
660
|
+
},
|
|
661
|
+
"selectionSet": undefined,
|
|
662
|
+
},
|
|
663
|
+
Object {
|
|
664
|
+
"alias": undefined,
|
|
665
|
+
"arguments": Array [],
|
|
666
|
+
"directives": Array [],
|
|
667
|
+
"kind": "Field",
|
|
668
|
+
"name": Object {
|
|
669
|
+
"kind": "Name",
|
|
670
|
+
"value": "props",
|
|
671
|
+
},
|
|
672
|
+
"selectionSet": undefined,
|
|
673
|
+
},
|
|
674
|
+
Object {
|
|
675
|
+
"alias": undefined,
|
|
676
|
+
"arguments": Array [],
|
|
677
|
+
"directives": Array [],
|
|
678
|
+
"kind": "Field",
|
|
679
|
+
"name": Object {
|
|
680
|
+
"kind": "Name",
|
|
681
|
+
"value": "content",
|
|
682
|
+
},
|
|
683
|
+
"selectionSet": undefined,
|
|
684
|
+
},
|
|
685
|
+
],
|
|
686
|
+
},
|
|
687
|
+
},
|
|
592
688
|
Object {
|
|
593
689
|
"alias": undefined,
|
|
594
690
|
"arguments": Array [],
|
|
@@ -677,7 +773,7 @@ Object {
|
|
|
677
773
|
],
|
|
678
774
|
"kind": "Document",
|
|
679
775
|
"loc": Object {
|
|
680
|
-
"end":
|
|
776
|
+
"end": 362,
|
|
681
777
|
"start": 0,
|
|
682
778
|
},
|
|
683
779
|
}
|