@remkoj/optimizely-graph-functions 6.0.0-pre11 → 6.0.0-pre12
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/preset.js +82 -61
- package/dist/preset.js.map +1 -1
- package/package.json +5 -5
package/dist/preset.js
CHANGED
|
@@ -51,16 +51,18 @@ exports.preset = {
|
|
|
51
51
|
*/
|
|
52
52
|
prepareDocuments: async (outputFilePath, outputSpecificDocuments) => {
|
|
53
53
|
// Get the configured documents
|
|
54
|
-
const optiDocs = outputSpecificDocuments.filter((x => typeof
|
|
55
|
-
const normalDocs = outputSpecificDocuments.filter(x => !(typeof
|
|
54
|
+
const optiDocs = outputSpecificDocuments.filter(((x) => typeof x == 'string' && x.startsWith('opti-cms:')));
|
|
55
|
+
const normalDocs = outputSpecificDocuments.filter((x) => !(typeof x == 'string' && x.startsWith('opti-cms:')));
|
|
56
56
|
// Get the base documents
|
|
57
|
-
const documents = client_preset_1.preset.prepareDocuments
|
|
58
|
-
await client_preset_1.preset.prepareDocuments(outputFilePath, normalDocs)
|
|
59
|
-
[...normalDocs, `!${outputFilePath}`];
|
|
57
|
+
const documents = client_preset_1.preset.prepareDocuments
|
|
58
|
+
? await client_preset_1.preset.prepareDocuments(outputFilePath, normalDocs)
|
|
59
|
+
: [...normalDocs, `!${outputFilePath}`];
|
|
60
60
|
// Transform / inject the Opti-CMS documents
|
|
61
|
-
const CmsDocLoaders = (optiDocs.length == 0
|
|
61
|
+
const CmsDocLoaders = (optiDocs.length == 0
|
|
62
|
+
? ['opti-cms:/fragments/13', 'opti-cms:/queries/13']
|
|
63
|
+
: optiDocs).map((optiDoc) => {
|
|
62
64
|
const loader = {};
|
|
63
|
-
loader[optiDoc] = { loader:
|
|
65
|
+
loader[optiDoc] = { loader: '@remkoj/optimizely-graph-functions/loader' };
|
|
64
66
|
return loader;
|
|
65
67
|
});
|
|
66
68
|
// Create a new, extended, array
|
|
@@ -75,9 +77,9 @@ exports.preset = {
|
|
|
75
77
|
// Provided options
|
|
76
78
|
...options.config,
|
|
77
79
|
// Enforced settings
|
|
78
|
-
namingConvention:
|
|
80
|
+
namingConvention: 'keep', // Keep casing "as-is" from Optimizely Graph
|
|
79
81
|
};
|
|
80
|
-
// Change the default for fragment masking from 'useFragment' to
|
|
82
|
+
// Change the default for fragment masking from 'useFragment' to
|
|
81
83
|
// 'getFragmentData', in order to prevent issues with code checks for
|
|
82
84
|
// React hooks
|
|
83
85
|
if (options.presetConfig.fragmentMasking !== false) {
|
|
@@ -85,62 +87,72 @@ exports.preset = {
|
|
|
85
87
|
...options.presetConfig,
|
|
86
88
|
fragmentMasking: {
|
|
87
89
|
unmaskFunctionName: 'getFragmentData',
|
|
88
|
-
...(typeof
|
|
89
|
-
|
|
90
|
+
...(typeof options.presetConfig?.fragmentMasking == 'object'
|
|
91
|
+
? options.presetConfig?.fragmentMasking
|
|
92
|
+
: {}),
|
|
93
|
+
},
|
|
90
94
|
};
|
|
91
95
|
}
|
|
96
|
+
function injectOptimizelyTransforms(currentTransforms) {
|
|
97
|
+
const dt = currentTransforms ?? [];
|
|
98
|
+
dt.unshift({
|
|
99
|
+
name: 'Optimizely.CMS',
|
|
100
|
+
transformObject: {
|
|
101
|
+
transform: (tOpts) => (0, transform_1.executeDocumentTransforms)(tOpts.documents, [
|
|
102
|
+
transform_1.cleanFragments, // Remove fragments that target non-existing types
|
|
103
|
+
transform_1.normalizeFragmentNames, // Allow overriding of built-in fragments
|
|
104
|
+
transform_1.normalizeQueryNames, // Allow overriding of built-in queries
|
|
105
|
+
transform_1.injectComponentDocuments, // Inject fragments to fetch component data
|
|
106
|
+
transform_1.injectPageQueries, // Inject queries to fetch page/experience data
|
|
107
|
+
transform_1.injectSectionQueries, // Inject queries to fetch section data
|
|
108
|
+
transform_1.performInjections, // Run injections of component fragments adjacent to placeholder fragments
|
|
109
|
+
transform_1.cleanFragmentSpreads, // Remove all fragment spreads that target a fragment that does not exist in the documents
|
|
110
|
+
transform_1.handleDependDirective, // Remove the "item" field in queries and fragments from the "ContentReference" type if it's not in the schema
|
|
111
|
+
], options),
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
return dt;
|
|
115
|
+
}
|
|
116
|
+
function hasOptimizelyTransform(currentTransforms) {
|
|
117
|
+
if (!Array.isArray(currentTransforms))
|
|
118
|
+
return false;
|
|
119
|
+
return currentTransforms.some(x => x.name === 'Optimizely.CMS');
|
|
120
|
+
}
|
|
92
121
|
// Apply all changes to the document set, prior to validating it. They're executed in the order of the array
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
transform_1.cleanFragmentSpreads, // Remove all fragment spreads that target a fragment that does not exist in the documents
|
|
106
|
-
transform_1.handleDependDirective // Remove the "item" field in queries and fragments from the "ContentReference" type if it's not in the schema
|
|
107
|
-
], options)
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
options.documentTransforms = dt;
|
|
111
|
-
/*options.documents = await executeDocumentTransforms(options.documents, [
|
|
112
|
-
cleanFragments, // Remove fragments that target non-existing types
|
|
113
|
-
normalizeFragmentNames, // Allow overriding of built-in fragments
|
|
114
|
-
normalizeQueryNames, // Allow overriding of built-in queries
|
|
115
|
-
injectComponentDocuments, // Inject fragments to fetch component data
|
|
116
|
-
injectPageQueries, // Inject queries to fetch page/experience data
|
|
117
|
-
injectSectionQueries, // Inject queries to fetch section data
|
|
118
|
-
performInjections, // Run injections of component fragments adjacent to placeholder fragments
|
|
119
|
-
cleanFragmentSpreads, // Remove all fragment spreads that target a fragment that does not exist in the documents
|
|
120
|
-
handleDependDirective // Remove the "item" field in queries and fragments from the "ContentReference" type if it's not in the schema
|
|
121
|
-
], options);*/
|
|
122
|
+
options.documentTransforms = injectOptimizelyTransforms(options.documentTransforms);
|
|
123
|
+
options.documents = await (0, transform_1.executeDocumentTransforms)(options.documents, [
|
|
124
|
+
transform_1.cleanFragments, // Remove fragments that target non-existing types
|
|
125
|
+
transform_1.normalizeFragmentNames, // Allow overriding of built-in fragments
|
|
126
|
+
transform_1.normalizeQueryNames, // Allow overriding of built-in queries
|
|
127
|
+
transform_1.injectComponentDocuments, // Inject fragments to fetch component data
|
|
128
|
+
transform_1.injectPageQueries, // Inject queries to fetch page/experience data
|
|
129
|
+
transform_1.injectSectionQueries, // Inject queries to fetch section data
|
|
130
|
+
transform_1.performInjections, // Run injections of component fragments adjacent to placeholder fragments
|
|
131
|
+
transform_1.cleanFragmentSpreads, // Remove all fragment spreads that target a fragment that does not exist in the documents
|
|
132
|
+
transform_1.handleDependDirective // Remove the "item" field in queries and fragments from the "ContentReference" type if it's not in the schema
|
|
133
|
+
], options);
|
|
122
134
|
// Build the preset files
|
|
123
135
|
const section = await client_preset_1.preset.buildGeneratesSection(options);
|
|
124
|
-
// Add GraphQL Request Client.
|
|
136
|
+
// Add GraphQL Request Client.
|
|
125
137
|
section.push({
|
|
126
138
|
filename: `${options.baseOutputDir}client.ts`,
|
|
127
139
|
pluginMap: {
|
|
128
|
-
|
|
129
|
-
|
|
140
|
+
add: AddPlugin,
|
|
141
|
+
'typescript-graphql-request': GraphQLRequestPlugin,
|
|
130
142
|
},
|
|
131
143
|
plugins: [
|
|
132
144
|
{
|
|
133
145
|
add: {
|
|
134
|
-
content: [
|
|
146
|
+
content: ['import type * as Schema from "./graphql";'],
|
|
135
147
|
},
|
|
136
148
|
},
|
|
137
149
|
{
|
|
138
150
|
'typescript-graphql-request': {
|
|
139
151
|
...options.config,
|
|
140
152
|
useTypeImports: true,
|
|
141
|
-
importOperationTypesFrom:
|
|
142
|
-
}
|
|
143
|
-
}
|
|
153
|
+
importOperationTypesFrom: 'Schema',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
144
156
|
],
|
|
145
157
|
schema: options.schema,
|
|
146
158
|
schemaAst: options.schemaAst,
|
|
@@ -149,19 +161,19 @@ exports.preset = {
|
|
|
149
161
|
},
|
|
150
162
|
profiler: options.profiler,
|
|
151
163
|
documents: options.documents,
|
|
152
|
-
documentTransforms: options.documentTransforms
|
|
164
|
+
documentTransforms: options.documentTransforms,
|
|
153
165
|
});
|
|
154
|
-
// Add the functions file, which will materialize the defined
|
|
155
|
-
// functions.
|
|
166
|
+
// Add the functions file, which will materialize the defined
|
|
167
|
+
// functions.
|
|
156
168
|
section.push({
|
|
157
169
|
filename: `${options.baseOutputDir}functions.ts`,
|
|
158
170
|
pluginMap: {
|
|
159
|
-
['optly-functions']: index_1.default
|
|
171
|
+
['optly-functions']: index_1.default,
|
|
160
172
|
},
|
|
161
173
|
plugins: [
|
|
162
174
|
{
|
|
163
|
-
['optly-functions']: {}
|
|
164
|
-
}
|
|
175
|
+
['optly-functions']: {},
|
|
176
|
+
},
|
|
165
177
|
],
|
|
166
178
|
schema: options.schema,
|
|
167
179
|
schemaAst: options.schemaAst,
|
|
@@ -171,36 +183,45 @@ exports.preset = {
|
|
|
171
183
|
...(0, index_1.pickPluginOptions)(options.presetConfig),
|
|
172
184
|
},
|
|
173
185
|
documents: options.documents,
|
|
174
|
-
documentTransforms: options.documentTransforms
|
|
186
|
+
documentTransforms: options.documentTransforms,
|
|
175
187
|
});
|
|
176
188
|
// Update file generation configs
|
|
177
189
|
section.forEach((fileConfig, idx) => {
|
|
178
190
|
// Modify index.ts with additional exports
|
|
179
|
-
if (fileConfig.filename.endsWith(
|
|
191
|
+
if (fileConfig.filename.endsWith('index.ts')) {
|
|
180
192
|
section[idx].plugins.unshift({
|
|
181
193
|
add: {
|
|
182
194
|
content: [
|
|
183
195
|
'export * as Schema from "./graphql";',
|
|
184
196
|
'export * from "./functions";',
|
|
185
197
|
'export { getSdk, type Sdk } from "./client";',
|
|
186
|
-
]
|
|
187
|
-
}
|
|
198
|
+
],
|
|
199
|
+
},
|
|
188
200
|
});
|
|
189
201
|
section[idx].plugins.push({
|
|
190
202
|
add: {
|
|
191
|
-
content: [
|
|
192
|
-
|
|
203
|
+
content: [
|
|
204
|
+
'',
|
|
205
|
+
`export const WITH_RECURSIVE_SUPPORT = ${options.presetConfig.recursion === true ? 'true' : 'false'};`,
|
|
206
|
+
],
|
|
207
|
+
},
|
|
193
208
|
});
|
|
194
209
|
}
|
|
210
|
+
if (!hasOptimizelyTransform(fileConfig.documentTransforms))
|
|
211
|
+
fileConfig.documentTransforms = injectOptimizelyTransforms(fileConfig.documentTransforms);
|
|
195
212
|
// Optimizely Graph supports recursive queries to allow fetching
|
|
196
213
|
// data as created in the CMS. This can cause issues when using
|
|
197
214
|
// multiple GraphQL sources, hence the ability to enable/disalbe
|
|
198
215
|
// the support for recursive queries.
|
|
199
|
-
if (fileConfig.skipDocumentsValidation != true &&
|
|
216
|
+
if (fileConfig.skipDocumentsValidation != true &&
|
|
217
|
+
options.presetConfig.recursion === true) {
|
|
200
218
|
const currentOptions = fileConfig.skipDocumentsValidation || {};
|
|
201
219
|
section[idx].skipDocumentsValidation = {
|
|
202
220
|
...currentOptions,
|
|
203
|
-
ignoreRules: [
|
|
221
|
+
ignoreRules: [
|
|
222
|
+
...(currentOptions.ignoreRules ?? []),
|
|
223
|
+
'NoFragmentCyclesRule',
|
|
224
|
+
],
|
|
204
225
|
};
|
|
205
226
|
}
|
|
206
227
|
});
|
package/dist/preset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qBAAqB;AACrB,kEAAuE;AACvE,kGAAmF;AACnF,gEAAiD;AAEjD,wBAAwB;AACxB,iDAAmD;AACnD,2CAWoB;AAKP,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qBAAqB;AACrB,k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,IAAI,CAAC;oBACxB,GAAG,EAAE;wBACH,OAAO,EAAE;4BACP,EAAE;4BACF,yCAAyC,OAAO,CAAC,YAAY,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,GAAG;yBACvG;qBACF;iBACF,CAAC,CAAA;YACJ,CAAC;YAED,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,kBAAkB,CAAC;gBACxD,UAAU,CAAC,kBAAkB,GAAG,0BAA0B,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAA;YAE3F,gEAAgE;YAChE,+DAA+D;YAC/D,gEAAgE;YAChE,qCAAqC;YACrC,IACE,UAAU,CAAC,uBAAuB,IAAI,IAAI;gBAC1C,OAAO,CAAC,YAAY,CAAC,SAAS,KAAK,IAAI,EACvC,CAAC;gBACD,MAAM,cAAc,GAAG,UAAU,CAAC,uBAAuB,IAAI,EAAE,CAAA;gBAC/D,OAAO,CAAC,GAAG,CAAC,CAAC,uBAAuB,GAAG;oBACrC,GAAG,cAAc;oBACjB,WAAW,EAAE;wBACX,GAAG,CAAC,cAAc,CAAC,WAAW,IAAI,EAAE,CAAC;wBACrC,sBAAsB;qBACvB;iBACF,CAAA;YACH,CAAC;QACH,CAAC,CAAC,CAAA;QAEF,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAA;AAED,kBAAe,cAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
|
|
4
4
|
"author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
|
|
5
5
|
"homepage": "https://github.com/remkoj/optimizely-dxp-clients",
|
|
6
|
-
"version": "6.0.0-
|
|
6
|
+
"version": "6.0.0-pre12",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"description": "GraphQL Codegen preset for Optimizely Graph",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
50
|
-
"@remkoj/optimizely-cms-api": "6.0.0-
|
|
51
|
-
"@remkoj/optimizely-graph-client": "6.0.0-
|
|
50
|
+
"@remkoj/optimizely-cms-api": "6.0.0-pre12",
|
|
51
|
+
"@remkoj/optimizely-graph-client": "6.0.0-pre12",
|
|
52
52
|
"@types/node": "^22.18.13",
|
|
53
53
|
"typescript": "^5.9.3"
|
|
54
54
|
},
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@graphql-codegen/typescript": "^5.0.2",
|
|
60
60
|
"@graphql-codegen/typescript-graphql-request": "^6.3.0",
|
|
61
61
|
"@graphql-codegen/typescript-operations": "^5.0.2",
|
|
62
|
-
"@remkoj/optimizely-cms-api": "6.0.0-
|
|
63
|
-
"@remkoj/optimizely-graph-client": "6.0.0-
|
|
62
|
+
"@remkoj/optimizely-cms-api": "6.0.0-pre12",
|
|
63
|
+
"@remkoj/optimizely-graph-client": "6.0.0-pre12",
|
|
64
64
|
"graphql": "^16.11.0",
|
|
65
65
|
"graphql-request": "^7.3.1",
|
|
66
66
|
"graphql-sock": "^1.0.1",
|