@jahia/data-helper 1.1.13 → 1.1.14

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 CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.1.14 (Wed Sep 11 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - QA-15174 Make view prop nullable in preview query [#272](https://github.com/Jahia/javascript-components/pull/272) ([@r3dm1ke](https://github.com/r3dm1ke))
6
+
7
+ #### Authors: 1
8
+
9
+ - Michael Krasnov ([@r3dm1ke](https://github.com/r3dm1ke))
10
+
11
+ ---
12
+
1
13
  # (Tue Jul 30 2024)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import gql from 'graphql-tag';
4
4
  import { mimeTypes, nodeCacheRequiredFields } from "../../fragments";
5
- export var CONTENT_PREVIEW_QUERY = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String!, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}", "", ""])), nodeCacheRequiredFields.gql, mimeTypes.gql);
5
+ export var CONTENT_PREVIEW_QUERY = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}", "", ""])), nodeCacheRequiredFields.gql, mimeTypes.gql);
6
6
  //# sourceMappingURL=useContentPreview.gql-queries.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["gql","mimeTypes","nodeCacheRequiredFields","CONTENT_PREVIEW_QUERY","_templateObject","_taggedTemplateLiteral"],"sources":["useContentPreview.gql-queries.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {mimeTypes, nodeCacheRequiredFields} from '../../fragments';\n\nexport const CONTENT_PREVIEW_QUERY = gql`query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String!, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}${nodeCacheRequiredFields.gql}${mimeTypes.gql}`;\n"],"mappings":";;AAAA,OAAOA,GAAG,MAAM,aAAa;AAC7B,SAAQC,SAAS,EAAEC,uBAAuB;AAE1C,OAAO,IAAMC,qBAAqB,GAAGH,GAAG,CAAAI,eAAA,KAAAA,eAAA,GAAAC,sBAAA,26BAmBrCH,uBAAuB,CAACF,GAAG,EAAGC,SAAS,CAACD,GAAG,CAAE"}
1
+ {"version":3,"names":["gql","mimeTypes","nodeCacheRequiredFields","CONTENT_PREVIEW_QUERY","_templateObject","_taggedTemplateLiteral"],"sources":["useContentPreview.gql-queries.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {mimeTypes, nodeCacheRequiredFields} from '../../fragments';\n\nexport const CONTENT_PREVIEW_QUERY = gql`query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}${nodeCacheRequiredFields.gql}${mimeTypes.gql}`;\n"],"mappings":";;AAAA,OAAOA,GAAG,MAAM,aAAa;AAC7B,SAAQC,SAAS,EAAEC,uBAAuB;AAE1C,OAAO,IAAMC,qBAAqB,GAAGH,GAAG,CAAAI,eAAA,KAAAA,eAAA,GAAAC,sBAAA,06BAmBrCH,uBAAuB,CAACF,GAAG,EAAGC,SAAS,CAACD,GAAG,CAAE"}
@@ -9,6 +9,6 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _graphqlTag = _interopRequireDefault(require("graphql-tag"));
10
10
  var _fragments = require("../../fragments");
11
11
  var _templateObject;
12
- var CONTENT_PREVIEW_QUERY = (0, _graphqlTag["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String!, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}", "", ""])), _fragments.nodeCacheRequiredFields.gql, _fragments.mimeTypes.gql);
12
+ var CONTENT_PREVIEW_QUERY = (0, _graphqlTag["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}", "", ""])), _fragments.nodeCacheRequiredFields.gql, _fragments.mimeTypes.gql);
13
13
  exports.CONTENT_PREVIEW_QUERY = CONTENT_PREVIEW_QUERY;
14
14
  //# sourceMappingURL=useContentPreview.gql-queries.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_graphqlTag","_interopRequireDefault","require","_fragments","_templateObject","CONTENT_PREVIEW_QUERY","gql","_taggedTemplateLiteral2","nodeCacheRequiredFields","mimeTypes","exports"],"sources":["useContentPreview.gql-queries.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {mimeTypes, nodeCacheRequiredFields} from '../../fragments';\n\nexport const CONTENT_PREVIEW_QUERY = gql`query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String!, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}${nodeCacheRequiredFields.gql}${mimeTypes.gql}`;\n"],"mappings":";;;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAmE,IAAAE,eAAA;AAE5D,IAAMC,qBAAqB,OAAGC,sBAAG,EAAAF,eAAA,KAAAA,eAAA,OAAAG,uBAAA,u7BAmBrCC,kCAAuB,CAACF,GAAG,EAAGG,oBAAS,CAACH,GAAG,CAAE;AAACI,OAAA,CAAAL,qBAAA,GAAAA,qBAAA"}
1
+ {"version":3,"names":["_graphqlTag","_interopRequireDefault","require","_fragments","_templateObject","CONTENT_PREVIEW_QUERY","gql","_taggedTemplateLiteral2","nodeCacheRequiredFields","mimeTypes","exports"],"sources":["useContentPreview.gql-queries.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {mimeTypes, nodeCacheRequiredFields} from '../../fragments';\n\nexport const CONTENT_PREVIEW_QUERY = gql`query previewQueryByWorkspace($path: String!, $templateType: String!, $view: String, $contextConfiguration: String!, $language: String!, $workspace: Workspace!, $requestAttributes: [InputRenderRequestAttributeInput]) {\n jcr(workspace: $workspace) {\n nodeByPath(path: $path) {\n id: uuid\n isFile: isNodeType(type: {types: [\"jnt:file\"]})\n path\n lastModified: property(name: \"jcr:lastModified\", language: $language) {\n value\n }\n renderedContent(templateType: $templateType, view: $view, contextConfiguration: $contextConfiguration, language: $language, requestAttributes: $requestAttributes) {\n output\n staticAssets(type: \"css\") {\n key\n }\n }\n ...NodeInfoResourceNode\n ...NodeCacheRequiredFields\n }\n }\n}${nodeCacheRequiredFields.gql}${mimeTypes.gql}`;\n"],"mappings":";;;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAmE,IAAAE,eAAA;AAE5D,IAAMC,qBAAqB,OAAGC,sBAAG,EAAAF,eAAA,KAAAA,eAAA,OAAAG,uBAAA,s7BAmBrCC,kCAAuB,CAACF,GAAG,EAAGG,oBAAS,CAACH,GAAG,CAAE;AAACI,OAAA,CAAAL,qBAAA,GAAAA,qBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/data-helper",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "scripts": {
5
5
  "compile:js": "node ./build.mjs",
6
6
  "build": "yarn tsc && yarn compile:js",
@@ -1,27 +0,0 @@
1
- {
2
- "name": "@jahia/data-helper",
3
- "version": "1.1.3",
4
- "scripts": {
5
- "compile:js": "node ./build.mjs",
6
- "build": "yarn tsc && yarn compile:js",
7
- "lint": "eslint --ext js,jsx,ts,tsx src",
8
- "lint:fix": "yarn lint --fix",
9
- "publish-script": "jahia-publish",
10
- "test": "jest --coverage"
11
- },
12
- "main": "dist/js/index.js",
13
- "module": "dist/esm/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "browser": "lib/react-apollo.umd.min.js",
16
- "sideEffects": false,
17
- "license": "SEE LICENSE IN ../../LICENSE.txt FILE",
18
- "dependencies": {
19
- "@apollo/client": "^3.7.14",
20
- "@apollo/react-components": "^4.0.0",
21
- "fast-deep-equal": "^3.1.1",
22
- "graphql": "^15.4.0",
23
- "graphql-tag": "^2.11.0",
24
- "react": "^16.12.0",
25
- "rfdc": "^1.3.0"
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "name": "@jahia/data-helper",
3
- "version": "1.1.4",
4
- "scripts": {
5
- "compile:js": "node ./build.mjs",
6
- "build": "yarn tsc && yarn compile:js",
7
- "lint": "eslint --ext js,jsx,ts,tsx src",
8
- "lint:fix": "yarn lint --fix",
9
- "publish-script": "jahia-publish",
10
- "test": "jest --coverage"
11
- },
12
- "main": "dist/js/index.js",
13
- "module": "dist/esm/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "browser": "lib/react-apollo.umd.min.js",
16
- "sideEffects": false,
17
- "license": "SEE LICENSE IN ../../LICENSE.txt FILE",
18
- "dependencies": {
19
- "@apollo/client": "^3.7.14",
20
- "@apollo/react-components": "^4.0.0",
21
- "fast-deep-equal": "^3.1.1",
22
- "graphql": "^15.4.0",
23
- "graphql-tag": "^2.11.0",
24
- "react": "^16.12.0",
25
- "rfdc": "^1.3.0"
26
- }
27
- }