@strapi/plugin-graphql 5.50.2 → 5.51.1
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/dist/server/services/builders/input.js +1 -2
- package/dist/server/services/builders/input.js.map +1 -1
- package/dist/server/services/builders/input.mjs +1 -2
- package/dist/server/services/builders/input.mjs.map +1 -1
- package/dist/server/src/services/builders/input.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -19,8 +19,7 @@ var inputs = (({ strapi })=>{
|
|
|
19
19
|
const isFieldEnabled = (fieldName)=>{
|
|
20
20
|
return extension.shadowCRUD(contentType.uid).field(fieldName).hasInputEnabled();
|
|
21
21
|
};
|
|
22
|
-
const validAttributes = Object.entries(attributes)// Remove
|
|
23
|
-
.filter(([attributeName])=>!utils.contentTypes.isPrivateAttribute(contentType, attributeName))// Remove non-writable attributes
|
|
22
|
+
const validAttributes = Object.entries(attributes)// Remove non-writable attributes
|
|
24
23
|
.filter(([attributeName])=>isWritableAttribute(contentType, attributeName))// Remove filters that have been disabled using the shadow CRUD extension API
|
|
25
24
|
.filter(([attributeName])=>isFieldEnabled(attributeName));
|
|
26
25
|
// Add the ID for the component to enable inplace updates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../../../../server/src/services/builders/input.ts"],"sourcesContent":["import { inputObjectType, nonNull } from 'nexus';\nimport { contentTypes } from '@strapi/utils';\nimport type { Struct } from '@strapi/types';\nimport type { Context } from '../types';\n\nconst { isWritableAttribute } = contentTypes;\n\nexport default ({ strapi }: Context) => {\n const { naming, mappers, attributes } = strapi.plugin('graphql').service('utils');\n const extension = strapi.plugin('graphql').service('extension');\n\n const { getComponentInputName, getContentTypeInputName, getEnumName, getDynamicZoneInputName } =\n naming;\n\n const {\n isStrapiScalar,\n isRelation,\n isMorphRelation,\n isMedia,\n isEnumeration,\n isComponent,\n isDynamicZone,\n } = attributes;\n\n return {\n buildInputType(contentType: Struct.Schema) {\n const { attributes, modelType } = contentType;\n\n const name = (\n modelType === 'component' ? getComponentInputName : getContentTypeInputName\n ).call(null, contentType);\n\n return inputObjectType({\n name,\n\n definition(t) {\n const isFieldEnabled = (fieldName: string) => {\n return extension.shadowCRUD(contentType.uid).field(fieldName).hasInputEnabled();\n };\n\n const validAttributes = Object.entries(attributes)\n // Remove
|
|
1
|
+
{"version":3,"file":"input.js","sources":["../../../../server/src/services/builders/input.ts"],"sourcesContent":["import { inputObjectType, nonNull } from 'nexus';\nimport { contentTypes } from '@strapi/utils';\nimport type { Struct } from '@strapi/types';\nimport type { Context } from '../types';\n\nconst { isWritableAttribute } = contentTypes;\n\nexport default ({ strapi }: Context) => {\n const { naming, mappers, attributes } = strapi.plugin('graphql').service('utils');\n const extension = strapi.plugin('graphql').service('extension');\n\n const { getComponentInputName, getContentTypeInputName, getEnumName, getDynamicZoneInputName } =\n naming;\n\n const {\n isStrapiScalar,\n isRelation,\n isMorphRelation,\n isMedia,\n isEnumeration,\n isComponent,\n isDynamicZone,\n } = attributes;\n\n return {\n buildInputType(contentType: Struct.Schema) {\n const { attributes, modelType } = contentType;\n\n const name = (\n modelType === 'component' ? getComponentInputName : getContentTypeInputName\n ).call(null, contentType);\n\n return inputObjectType({\n name,\n\n definition(t) {\n const isFieldEnabled = (fieldName: string) => {\n return extension.shadowCRUD(contentType.uid).field(fieldName).hasInputEnabled();\n };\n\n const validAttributes = Object.entries(attributes)\n // Remove non-writable attributes\n .filter(([attributeName]) => isWritableAttribute(contentType, attributeName))\n // Remove filters that have been disabled using the shadow CRUD extension API\n .filter(([attributeName]) => isFieldEnabled(attributeName));\n\n // Add the ID for the component to enable inplace updates\n if (modelType === 'component' && isFieldEnabled('id')) {\n t.id('id');\n }\n\n validAttributes.forEach(([attributeName, attribute]: [string, any]) => {\n // Enums\n if (isEnumeration(attribute)) {\n const enumTypeName = getEnumName(contentType, attributeName);\n\n t.field(attributeName, { type: enumTypeName });\n }\n\n // Scalars\n else if (isStrapiScalar(attribute)) {\n const gqlScalar = mappers.strapiScalarToGraphQLScalar(attribute.type);\n\n t.field(attributeName, { type: gqlScalar });\n }\n\n // Media\n else if (isMedia(attribute)) {\n const isMultiple = attribute.multiple === true;\n\n if (extension.shadowCRUD('plugin::upload.file').isDisabled()) {\n return;\n }\n\n if (isMultiple) {\n t.list.id(attributeName);\n } else {\n t.id(attributeName);\n }\n }\n\n // Regular Relations (ignore polymorphic relations)\n else if (isRelation(attribute) && !isMorphRelation(attribute)) {\n if (extension.shadowCRUD(attribute.target).isDisabled()) {\n return;\n }\n\n const isToManyRelation = attribute.relation.endsWith('Many');\n\n if (isToManyRelation) {\n t.list.id(attributeName);\n } else {\n t.id(attributeName);\n }\n }\n\n // Components\n else if (isComponent(attribute)) {\n const isRepeatable = attribute.repeatable === true;\n const component = strapi.components[attribute.component];\n const componentInputType = getComponentInputName(component);\n\n if (isRepeatable) {\n t.list.field(attributeName, { type: componentInputType });\n } else {\n t.field(attributeName, { type: componentInputType });\n }\n }\n\n // Dynamic Zones\n else if (isDynamicZone(attribute)) {\n const dzInputName = getDynamicZoneInputName(contentType, attributeName);\n\n t.list.field(attributeName, { type: nonNull(dzInputName) });\n }\n });\n },\n });\n },\n };\n};\n"],"names":["isWritableAttribute","contentTypes","strapi","naming","mappers","attributes","plugin","service","extension","getComponentInputName","getContentTypeInputName","getEnumName","getDynamicZoneInputName","isStrapiScalar","isRelation","isMorphRelation","isMedia","isEnumeration","isComponent","isDynamicZone","buildInputType","contentType","modelType","name","call","inputObjectType","definition","t","isFieldEnabled","fieldName","shadowCRUD","uid","field","hasInputEnabled","validAttributes","Object","entries","filter","attributeName","id","forEach","attribute","enumTypeName","type","gqlScalar","strapiScalarToGraphQLScalar","isMultiple","multiple","isDisabled","list","target","isToManyRelation","relation","endsWith","isRepeatable","repeatable","component","components","componentInputType","dzInputName","nonNull"],"mappings":";;;;;AAKA,MAAM,EAAEA,mBAAmB,EAAE,GAAGC,kBAAAA;AAEhC,aAAe,CAAA,CAAC,EAA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3D,wBAAA;AACF,oBAAA,CAAA,CAAA;AACF,gBAAA;AACF,aAAA,CAAA;AACF,QAAA;AACF,KAAA;AACF,CAAA;;;;"}
|
|
@@ -17,8 +17,7 @@ var inputs = (({ strapi })=>{
|
|
|
17
17
|
const isFieldEnabled = (fieldName)=>{
|
|
18
18
|
return extension.shadowCRUD(contentType.uid).field(fieldName).hasInputEnabled();
|
|
19
19
|
};
|
|
20
|
-
const validAttributes = Object.entries(attributes)// Remove
|
|
21
|
-
.filter(([attributeName])=>!contentTypes.isPrivateAttribute(contentType, attributeName))// Remove non-writable attributes
|
|
20
|
+
const validAttributes = Object.entries(attributes)// Remove non-writable attributes
|
|
22
21
|
.filter(([attributeName])=>isWritableAttribute(contentType, attributeName))// Remove filters that have been disabled using the shadow CRUD extension API
|
|
23
22
|
.filter(([attributeName])=>isFieldEnabled(attributeName));
|
|
24
23
|
// Add the ID for the component to enable inplace updates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.mjs","sources":["../../../../server/src/services/builders/input.ts"],"sourcesContent":["import { inputObjectType, nonNull } from 'nexus';\nimport { contentTypes } from '@strapi/utils';\nimport type { Struct } from '@strapi/types';\nimport type { Context } from '../types';\n\nconst { isWritableAttribute } = contentTypes;\n\nexport default ({ strapi }: Context) => {\n const { naming, mappers, attributes } = strapi.plugin('graphql').service('utils');\n const extension = strapi.plugin('graphql').service('extension');\n\n const { getComponentInputName, getContentTypeInputName, getEnumName, getDynamicZoneInputName } =\n naming;\n\n const {\n isStrapiScalar,\n isRelation,\n isMorphRelation,\n isMedia,\n isEnumeration,\n isComponent,\n isDynamicZone,\n } = attributes;\n\n return {\n buildInputType(contentType: Struct.Schema) {\n const { attributes, modelType } = contentType;\n\n const name = (\n modelType === 'component' ? getComponentInputName : getContentTypeInputName\n ).call(null, contentType);\n\n return inputObjectType({\n name,\n\n definition(t) {\n const isFieldEnabled = (fieldName: string) => {\n return extension.shadowCRUD(contentType.uid).field(fieldName).hasInputEnabled();\n };\n\n const validAttributes = Object.entries(attributes)\n // Remove
|
|
1
|
+
{"version":3,"file":"input.mjs","sources":["../../../../server/src/services/builders/input.ts"],"sourcesContent":["import { inputObjectType, nonNull } from 'nexus';\nimport { contentTypes } from '@strapi/utils';\nimport type { Struct } from '@strapi/types';\nimport type { Context } from '../types';\n\nconst { isWritableAttribute } = contentTypes;\n\nexport default ({ strapi }: Context) => {\n const { naming, mappers, attributes } = strapi.plugin('graphql').service('utils');\n const extension = strapi.plugin('graphql').service('extension');\n\n const { getComponentInputName, getContentTypeInputName, getEnumName, getDynamicZoneInputName } =\n naming;\n\n const {\n isStrapiScalar,\n isRelation,\n isMorphRelation,\n isMedia,\n isEnumeration,\n isComponent,\n isDynamicZone,\n } = attributes;\n\n return {\n buildInputType(contentType: Struct.Schema) {\n const { attributes, modelType } = contentType;\n\n const name = (\n modelType === 'component' ? getComponentInputName : getContentTypeInputName\n ).call(null, contentType);\n\n return inputObjectType({\n name,\n\n definition(t) {\n const isFieldEnabled = (fieldName: string) => {\n return extension.shadowCRUD(contentType.uid).field(fieldName).hasInputEnabled();\n };\n\n const validAttributes = Object.entries(attributes)\n // Remove non-writable attributes\n .filter(([attributeName]) => isWritableAttribute(contentType, attributeName))\n // Remove filters that have been disabled using the shadow CRUD extension API\n .filter(([attributeName]) => isFieldEnabled(attributeName));\n\n // Add the ID for the component to enable inplace updates\n if (modelType === 'component' && isFieldEnabled('id')) {\n t.id('id');\n }\n\n validAttributes.forEach(([attributeName, attribute]: [string, any]) => {\n // Enums\n if (isEnumeration(attribute)) {\n const enumTypeName = getEnumName(contentType, attributeName);\n\n t.field(attributeName, { type: enumTypeName });\n }\n\n // Scalars\n else if (isStrapiScalar(attribute)) {\n const gqlScalar = mappers.strapiScalarToGraphQLScalar(attribute.type);\n\n t.field(attributeName, { type: gqlScalar });\n }\n\n // Media\n else if (isMedia(attribute)) {\n const isMultiple = attribute.multiple === true;\n\n if (extension.shadowCRUD('plugin::upload.file').isDisabled()) {\n return;\n }\n\n if (isMultiple) {\n t.list.id(attributeName);\n } else {\n t.id(attributeName);\n }\n }\n\n // Regular Relations (ignore polymorphic relations)\n else if (isRelation(attribute) && !isMorphRelation(attribute)) {\n if (extension.shadowCRUD(attribute.target).isDisabled()) {\n return;\n }\n\n const isToManyRelation = attribute.relation.endsWith('Many');\n\n if (isToManyRelation) {\n t.list.id(attributeName);\n } else {\n t.id(attributeName);\n }\n }\n\n // Components\n else if (isComponent(attribute)) {\n const isRepeatable = attribute.repeatable === true;\n const component = strapi.components[attribute.component];\n const componentInputType = getComponentInputName(component);\n\n if (isRepeatable) {\n t.list.field(attributeName, { type: componentInputType });\n } else {\n t.field(attributeName, { type: componentInputType });\n }\n }\n\n // Dynamic Zones\n else if (isDynamicZone(attribute)) {\n const dzInputName = getDynamicZoneInputName(contentType, attributeName);\n\n t.list.field(attributeName, { type: nonNull(dzInputName) });\n }\n });\n },\n });\n },\n };\n};\n"],"names":["isWritableAttribute","contentTypes","strapi","naming","mappers","attributes","plugin","service","extension","getComponentInputName","getContentTypeInputName","getEnumName","getDynamicZoneInputName","isStrapiScalar","isRelation","isMorphRelation","isMedia","isEnumeration","isComponent","isDynamicZone","buildInputType","contentType","modelType","name","call","inputObjectType","definition","t","isFieldEnabled","fieldName","shadowCRUD","uid","field","hasInputEnabled","validAttributes","Object","entries","filter","attributeName","id","forEach","attribute","enumTypeName","type","gqlScalar","strapiScalarToGraphQLScalar","isMultiple","multiple","isDisabled","list","target","isToManyRelation","relation","endsWith","isRepeatable","repeatable","component","components","componentInputType","dzInputName","nonNull"],"mappings":";;;AAKA,MAAM,EAAEA,mBAAmB,EAAE,GAAGC,YAAAA;AAEhC,aAAe,CAAA,CAAC,EAAEC,MAAM,EAAW,GAAA;AACjC,IAAA,MAAM,EAAEC,MAAM,EAAEC,OAAO,EAAEC,UAAU,EAAE,GAAGH,MAAAA,CAAOI,MAAM,CAAC,SAAA,CAAA,CAAWC,OAAO,CAAC,OAAA,CAAA;AACzE,IAAA,MA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../server/src/services/builders/input.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;yBAIxB,YAAY,OAAO;gCAkBH,MAAM,CAAC,MAAM;;AAlB7C,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/input.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;yBAIxB,YAAY,OAAO;gCAkBH,MAAM,CAAC,MAAM;;AAlB7C,wBAiHE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-graphql",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.51.1",
|
|
4
4
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
5
5
|
"homepage": "https://strapi.io",
|
|
6
6
|
"bugs": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@koa/cors": "5.0.0",
|
|
68
68
|
"@strapi/design-system": "2.2.3",
|
|
69
69
|
"@strapi/icons": "2.2.3",
|
|
70
|
-
"@strapi/utils": "5.
|
|
70
|
+
"@strapi/utils": "5.51.1",
|
|
71
71
|
"graphql": "^16.8.1",
|
|
72
72
|
"graphql-depth-limit": "^1.1.0",
|
|
73
73
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -79,22 +79,22 @@
|
|
|
79
79
|
"pluralize": "8.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@strapi/strapi": "5.
|
|
83
|
-
"@strapi/types": "5.
|
|
82
|
+
"@strapi/strapi": "5.51.1",
|
|
83
|
+
"@strapi/types": "5.51.1",
|
|
84
84
|
"@types/graphql-depth-limit": "1.1.5",
|
|
85
85
|
"@types/jest": "29.5.2",
|
|
86
86
|
"@types/koa-bodyparser": "4.3.12",
|
|
87
87
|
"@types/koa__cors": "5.0.0",
|
|
88
88
|
"@types/node": "20.19.41",
|
|
89
89
|
"cross-env": "^7.0.3",
|
|
90
|
-
"eslint-config-custom": "5.
|
|
90
|
+
"eslint-config-custom": "5.51.1",
|
|
91
91
|
"jest": "29.6.0",
|
|
92
92
|
"koa": "2.16.4",
|
|
93
93
|
"react": "18.3.1",
|
|
94
94
|
"react-dom": "18.3.1",
|
|
95
95
|
"react-router-dom": "6.30.3",
|
|
96
96
|
"styled-components": "6.4.1",
|
|
97
|
-
"tsconfig": "5.
|
|
97
|
+
"tsconfig": "5.51.1",
|
|
98
98
|
"typescript": "5.9.3"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|