@uniformdev/canvas-next 19.80.1-alpha.170 → 19.80.1-alpha.200

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.
@@ -33,6 +33,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
33
33
  withTotalCount?: boolean | undefined;
34
34
  withUIStatus?: boolean | undefined;
35
35
  withContentSourceMap?: boolean | undefined;
36
+ locale?: string | undefined;
36
37
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "projectMapNodePath">> & _uniformdev_canvas.SpecificProjectMap & DataResolutionOption>, "state"> | undefined;
37
38
  /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */
38
39
  callback?: UniformGetServerSideProps<TProps> | undefined;
@@ -101,6 +102,7 @@ declare const withUniformGetStaticProps: <TProps extends {
101
102
  withTotalCount?: boolean | undefined;
102
103
  withUIStatus?: boolean | undefined;
103
104
  withContentSourceMap?: boolean | undefined;
105
+ locale?: string | undefined;
104
106
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "projectMapNodePath">> & _uniformdev_canvas.SpecificProjectMap & DataResolutionOption>, "state"> | undefined;
105
107
  /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */
106
108
  callback?: UniformGetStaticProps<TProps> | undefined;
@@ -33,6 +33,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
33
33
  withTotalCount?: boolean | undefined;
34
34
  withUIStatus?: boolean | undefined;
35
35
  withContentSourceMap?: boolean | undefined;
36
+ locale?: string | undefined;
36
37
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "projectMapNodePath">> & _uniformdev_canvas.SpecificProjectMap & DataResolutionOption>, "state"> | undefined;
37
38
  /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */
38
39
  callback?: UniformGetServerSideProps<TProps> | undefined;
@@ -101,6 +102,7 @@ declare const withUniformGetStaticProps: <TProps extends {
101
102
  withTotalCount?: boolean | undefined;
102
103
  withUIStatus?: boolean | undefined;
103
104
  withContentSourceMap?: boolean | undefined;
105
+ locale?: string | undefined;
104
106
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "projectMapNodePath">> & _uniformdev_canvas.SpecificProjectMap & DataResolutionOption>, "state"> | undefined;
105
107
  /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */
106
108
  callback?: UniformGetStaticProps<TProps> | undefined;
@@ -108,12 +108,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
108
108
  type: string;
109
109
  parameters?: {
110
110
  [key: string]: {
111
- value: unknown;
111
+ value?: unknown;
112
112
  type: string;
113
113
  connectedData?: {
114
114
  pointer: string;
115
115
  syntax: "jptr";
116
116
  } | undefined;
117
+ locales?: {
118
+ [key: string]: unknown;
119
+ } | undefined;
117
120
  };
118
121
  } | undefined;
119
122
  variant?: string | undefined;
@@ -127,12 +130,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
127
130
  type: string;
128
131
  parameters?: {
129
132
  [key: string]: {
130
- value: unknown;
133
+ value?: unknown;
131
134
  type: string;
132
135
  connectedData?: {
133
136
  pointer: string;
134
137
  syntax: "jptr";
135
138
  } | undefined;
139
+ locales?: {
140
+ [key: string]: unknown;
141
+ } | undefined;
136
142
  };
137
143
  } | undefined;
138
144
  variant?: string | undefined;
@@ -166,12 +172,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
166
172
  [key: string]: {
167
173
  parameters?: {
168
174
  [key: string]: {
169
- value: unknown;
175
+ value?: unknown;
170
176
  type: string;
171
177
  connectedData?: {
172
178
  pointer: string;
173
179
  syntax: "jptr";
174
180
  } | undefined;
181
+ locales?: {
182
+ [key: string]: unknown;
183
+ } | undefined;
175
184
  };
176
185
  } | undefined;
177
186
  variant?: string | undefined;
@@ -188,6 +197,17 @@ declare const getServerSideProps: next.GetServerSideProps<{
188
197
  _id: string;
189
198
  _slug?: string | null | undefined;
190
199
  _name: string;
200
+ _pattern?: string | undefined;
201
+ _patternDataResources?: {
202
+ [key: string]: {
203
+ type: string;
204
+ isPatternParameter?: boolean | undefined;
205
+ ignorePatternParameterDefault?: boolean | undefined;
206
+ variables?: {
207
+ [key: string]: string;
208
+ } | undefined;
209
+ };
210
+ } | undefined;
191
211
  _dataResources?: {
192
212
  [key: string]: {
193
213
  type: string;
@@ -202,12 +222,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
202
222
  [key: string]: {
203
223
  parameters?: {
204
224
  [key: string]: {
205
- value: unknown;
225
+ value?: unknown;
206
226
  type: string;
207
227
  connectedData?: {
208
228
  pointer: string;
209
229
  syntax: "jptr";
210
230
  } | undefined;
231
+ locales?: {
232
+ [key: string]: unknown;
233
+ } | undefined;
211
234
  };
212
235
  } | undefined;
213
236
  variant?: string | undefined;
@@ -219,6 +242,7 @@ declare const getServerSideProps: next.GetServerSideProps<{
219
242
  } | undefined;
220
243
  variants?: boolean | undefined;
221
244
  } | undefined;
245
+ _locales?: string[] | undefined;
222
246
  };
223
247
  }, querystring.ParsedUrlQuery, UniformPreviewData>;
224
248
  /**
@@ -231,12 +255,15 @@ declare const getStaticProps: next.GetStaticProps<{
231
255
  type: string;
232
256
  parameters?: {
233
257
  [key: string]: {
234
- value: unknown;
258
+ value?: unknown;
235
259
  type: string;
236
260
  connectedData?: {
237
261
  pointer: string;
238
262
  syntax: "jptr";
239
263
  } | undefined;
264
+ locales?: {
265
+ [key: string]: unknown;
266
+ } | undefined;
240
267
  };
241
268
  } | undefined;
242
269
  variant?: string | undefined;
@@ -250,12 +277,15 @@ declare const getStaticProps: next.GetStaticProps<{
250
277
  type: string;
251
278
  parameters?: {
252
279
  [key: string]: {
253
- value: unknown;
280
+ value?: unknown;
254
281
  type: string;
255
282
  connectedData?: {
256
283
  pointer: string;
257
284
  syntax: "jptr";
258
285
  } | undefined;
286
+ locales?: {
287
+ [key: string]: unknown;
288
+ } | undefined;
259
289
  };
260
290
  } | undefined;
261
291
  variant?: string | undefined;
@@ -289,12 +319,15 @@ declare const getStaticProps: next.GetStaticProps<{
289
319
  [key: string]: {
290
320
  parameters?: {
291
321
  [key: string]: {
292
- value: unknown;
322
+ value?: unknown;
293
323
  type: string;
294
324
  connectedData?: {
295
325
  pointer: string;
296
326
  syntax: "jptr";
297
327
  } | undefined;
328
+ locales?: {
329
+ [key: string]: unknown;
330
+ } | undefined;
298
331
  };
299
332
  } | undefined;
300
333
  variant?: string | undefined;
@@ -311,6 +344,17 @@ declare const getStaticProps: next.GetStaticProps<{
311
344
  _id: string;
312
345
  _slug?: string | null | undefined;
313
346
  _name: string;
347
+ _pattern?: string | undefined;
348
+ _patternDataResources?: {
349
+ [key: string]: {
350
+ type: string;
351
+ isPatternParameter?: boolean | undefined;
352
+ ignorePatternParameterDefault?: boolean | undefined;
353
+ variables?: {
354
+ [key: string]: string;
355
+ } | undefined;
356
+ };
357
+ } | undefined;
314
358
  _dataResources?: {
315
359
  [key: string]: {
316
360
  type: string;
@@ -325,12 +369,15 @@ declare const getStaticProps: next.GetStaticProps<{
325
369
  [key: string]: {
326
370
  parameters?: {
327
371
  [key: string]: {
328
- value: unknown;
372
+ value?: unknown;
329
373
  type: string;
330
374
  connectedData?: {
331
375
  pointer: string;
332
376
  syntax: "jptr";
333
377
  } | undefined;
378
+ locales?: {
379
+ [key: string]: unknown;
380
+ } | undefined;
334
381
  };
335
382
  } | undefined;
336
383
  variant?: string | undefined;
@@ -342,6 +389,7 @@ declare const getStaticProps: next.GetStaticProps<{
342
389
  } | undefined;
343
390
  variants?: boolean | undefined;
344
391
  } | undefined;
392
+ _locales?: string[] | undefined;
345
393
  };
346
394
  }, querystring.ParsedUrlQuery, UniformPreviewData>;
347
395
  /**
@@ -108,12 +108,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
108
108
  type: string;
109
109
  parameters?: {
110
110
  [key: string]: {
111
- value: unknown;
111
+ value?: unknown;
112
112
  type: string;
113
113
  connectedData?: {
114
114
  pointer: string;
115
115
  syntax: "jptr";
116
116
  } | undefined;
117
+ locales?: {
118
+ [key: string]: unknown;
119
+ } | undefined;
117
120
  };
118
121
  } | undefined;
119
122
  variant?: string | undefined;
@@ -127,12 +130,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
127
130
  type: string;
128
131
  parameters?: {
129
132
  [key: string]: {
130
- value: unknown;
133
+ value?: unknown;
131
134
  type: string;
132
135
  connectedData?: {
133
136
  pointer: string;
134
137
  syntax: "jptr";
135
138
  } | undefined;
139
+ locales?: {
140
+ [key: string]: unknown;
141
+ } | undefined;
136
142
  };
137
143
  } | undefined;
138
144
  variant?: string | undefined;
@@ -166,12 +172,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
166
172
  [key: string]: {
167
173
  parameters?: {
168
174
  [key: string]: {
169
- value: unknown;
175
+ value?: unknown;
170
176
  type: string;
171
177
  connectedData?: {
172
178
  pointer: string;
173
179
  syntax: "jptr";
174
180
  } | undefined;
181
+ locales?: {
182
+ [key: string]: unknown;
183
+ } | undefined;
175
184
  };
176
185
  } | undefined;
177
186
  variant?: string | undefined;
@@ -188,6 +197,17 @@ declare const getServerSideProps: next.GetServerSideProps<{
188
197
  _id: string;
189
198
  _slug?: string | null | undefined;
190
199
  _name: string;
200
+ _pattern?: string | undefined;
201
+ _patternDataResources?: {
202
+ [key: string]: {
203
+ type: string;
204
+ isPatternParameter?: boolean | undefined;
205
+ ignorePatternParameterDefault?: boolean | undefined;
206
+ variables?: {
207
+ [key: string]: string;
208
+ } | undefined;
209
+ };
210
+ } | undefined;
191
211
  _dataResources?: {
192
212
  [key: string]: {
193
213
  type: string;
@@ -202,12 +222,15 @@ declare const getServerSideProps: next.GetServerSideProps<{
202
222
  [key: string]: {
203
223
  parameters?: {
204
224
  [key: string]: {
205
- value: unknown;
225
+ value?: unknown;
206
226
  type: string;
207
227
  connectedData?: {
208
228
  pointer: string;
209
229
  syntax: "jptr";
210
230
  } | undefined;
231
+ locales?: {
232
+ [key: string]: unknown;
233
+ } | undefined;
211
234
  };
212
235
  } | undefined;
213
236
  variant?: string | undefined;
@@ -219,6 +242,7 @@ declare const getServerSideProps: next.GetServerSideProps<{
219
242
  } | undefined;
220
243
  variants?: boolean | undefined;
221
244
  } | undefined;
245
+ _locales?: string[] | undefined;
222
246
  };
223
247
  }, querystring.ParsedUrlQuery, UniformPreviewData>;
224
248
  /**
@@ -231,12 +255,15 @@ declare const getStaticProps: next.GetStaticProps<{
231
255
  type: string;
232
256
  parameters?: {
233
257
  [key: string]: {
234
- value: unknown;
258
+ value?: unknown;
235
259
  type: string;
236
260
  connectedData?: {
237
261
  pointer: string;
238
262
  syntax: "jptr";
239
263
  } | undefined;
264
+ locales?: {
265
+ [key: string]: unknown;
266
+ } | undefined;
240
267
  };
241
268
  } | undefined;
242
269
  variant?: string | undefined;
@@ -250,12 +277,15 @@ declare const getStaticProps: next.GetStaticProps<{
250
277
  type: string;
251
278
  parameters?: {
252
279
  [key: string]: {
253
- value: unknown;
280
+ value?: unknown;
254
281
  type: string;
255
282
  connectedData?: {
256
283
  pointer: string;
257
284
  syntax: "jptr";
258
285
  } | undefined;
286
+ locales?: {
287
+ [key: string]: unknown;
288
+ } | undefined;
259
289
  };
260
290
  } | undefined;
261
291
  variant?: string | undefined;
@@ -289,12 +319,15 @@ declare const getStaticProps: next.GetStaticProps<{
289
319
  [key: string]: {
290
320
  parameters?: {
291
321
  [key: string]: {
292
- value: unknown;
322
+ value?: unknown;
293
323
  type: string;
294
324
  connectedData?: {
295
325
  pointer: string;
296
326
  syntax: "jptr";
297
327
  } | undefined;
328
+ locales?: {
329
+ [key: string]: unknown;
330
+ } | undefined;
298
331
  };
299
332
  } | undefined;
300
333
  variant?: string | undefined;
@@ -311,6 +344,17 @@ declare const getStaticProps: next.GetStaticProps<{
311
344
  _id: string;
312
345
  _slug?: string | null | undefined;
313
346
  _name: string;
347
+ _pattern?: string | undefined;
348
+ _patternDataResources?: {
349
+ [key: string]: {
350
+ type: string;
351
+ isPatternParameter?: boolean | undefined;
352
+ ignorePatternParameterDefault?: boolean | undefined;
353
+ variables?: {
354
+ [key: string]: string;
355
+ } | undefined;
356
+ };
357
+ } | undefined;
314
358
  _dataResources?: {
315
359
  [key: string]: {
316
360
  type: string;
@@ -325,12 +369,15 @@ declare const getStaticProps: next.GetStaticProps<{
325
369
  [key: string]: {
326
370
  parameters?: {
327
371
  [key: string]: {
328
- value: unknown;
372
+ value?: unknown;
329
373
  type: string;
330
374
  connectedData?: {
331
375
  pointer: string;
332
376
  syntax: "jptr";
333
377
  } | undefined;
378
+ locales?: {
379
+ [key: string]: unknown;
380
+ } | undefined;
334
381
  };
335
382
  } | undefined;
336
383
  variant?: string | undefined;
@@ -342,6 +389,7 @@ declare const getStaticProps: next.GetStaticProps<{
342
389
  } | undefined;
343
390
  variants?: boolean | undefined;
344
391
  } | undefined;
392
+ _locales?: string[] | undefined;
345
393
  };
346
394
  }, querystring.ParsedUrlQuery, UniformPreviewData>;
347
395
  /**
@@ -30,6 +30,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
30
30
  withTotalCount?: boolean | undefined;
31
31
  withUIStatus?: boolean | undefined;
32
32
  withContentSourceMap?: boolean | undefined;
33
+ locale?: string | undefined;
33
34
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "slug">> & DataResolutionOption>, "state"> | undefined;
34
35
  callback?: UniformGetServerSideProps<TProps> | undefined;
35
36
  /** Disables logging of response information and timings */
@@ -77,6 +78,7 @@ declare const withUniformGetStaticProps: <TProps extends {
77
78
  withTotalCount?: boolean | undefined;
78
79
  withUIStatus?: boolean | undefined;
79
80
  withContentSourceMap?: boolean | undefined;
81
+ locale?: string | undefined;
80
82
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "slug">> & DataResolutionOption>, "state"> | undefined;
81
83
  /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */
82
84
  callback?: UniformGetStaticProps<TProps> | undefined;
@@ -30,6 +30,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
30
30
  withTotalCount?: boolean | undefined;
31
31
  withUIStatus?: boolean | undefined;
32
32
  withContentSourceMap?: boolean | undefined;
33
+ locale?: string | undefined;
33
34
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "slug">> & DataResolutionOption>, "state"> | undefined;
34
35
  callback?: UniformGetServerSideProps<TProps> | undefined;
35
36
  /** Disables logging of response information and timings */
@@ -77,6 +78,7 @@ declare const withUniformGetStaticProps: <TProps extends {
77
78
  withTotalCount?: boolean | undefined;
78
79
  withUIStatus?: boolean | undefined;
79
80
  withContentSourceMap?: boolean | undefined;
81
+ locale?: string | undefined;
80
82
  } & Required<Pick<_uniformdev_canvas.CompositionGetParameters, "slug">> & DataResolutionOption>, "state"> | undefined;
81
83
  /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */
82
84
  callback?: UniformGetStaticProps<TProps> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next",
3
- "version": "19.80.1-alpha.170+07c5014817",
3
+ "version": "19.80.1-alpha.200+85da778e5f",
4
4
  "description": "Next.js SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -67,11 +67,11 @@
67
67
  "document": "api-extractor run --local"
68
68
  },
69
69
  "dependencies": {
70
- "@uniformdev/canvas": "19.80.1-alpha.170+07c5014817",
71
- "@uniformdev/canvas-react": "19.80.1-alpha.170+07c5014817",
72
- "@uniformdev/project-map": "19.80.1-alpha.170+07c5014817",
73
- "@uniformdev/redirect": "19.80.1-alpha.170+07c5014817",
74
- "@uniformdev/richtext": "19.80.1-alpha.170+07c5014817",
70
+ "@uniformdev/canvas": "19.80.1-alpha.200+85da778e5f",
71
+ "@uniformdev/canvas-react": "19.80.1-alpha.200+85da778e5f",
72
+ "@uniformdev/project-map": "19.80.1-alpha.200+85da778e5f",
73
+ "@uniformdev/redirect": "19.80.1-alpha.200+85da778e5f",
74
+ "@uniformdev/richtext": "19.80.1-alpha.200+85da778e5f",
75
75
  "colorette": "2.0.20"
76
76
  },
77
77
  "peerDependencies": {
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "07c5014817c7acefceb653dc48d26a3b53341c1e"
94
+ "gitHead": "85da778e5fc4f47c47c585b9e4ccbe19a6a21563"
95
95
  }