@uniformdev/canvas-next 20.70.0 → 20.71.0

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/index.js CHANGED
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  NextLinkRichTextNode: () => NextLinkRichTextNode,
34
34
  UniformRichText: () => UniformRichText,
35
35
  UniformRichTextNode: () => UniformRichTextNode,
@@ -39,7 +39,7 @@ __export(src_exports, {
39
39
  resolveSlugFromParams: () => resolveSlugFromParams,
40
40
  useResolveNextRichTextRenderer: () => useResolveNextRichTextRenderer
41
41
  });
42
- module.exports = __toCommonJS(src_exports);
42
+ module.exports = __toCommonJS(index_exports);
43
43
 
44
44
  // src/components/UniformRichText.tsx
45
45
  var import_canvas_react = require("@uniformdev/canvas-react");
@@ -1,9 +1,9 @@
1
1
  import * as next from 'next';
2
2
  import { GetServerSidePropsContext, PreviewData, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
3
3
  import { a as UniformGetServerSideProps, c as UniformPreviewData, b as UniformGetStaticProps } from '../models-BGg_qtcM.mjs';
4
- import * as querystring from 'querystring';
5
- import { ParsedUrlQuery } from 'querystring';
4
+ import * as node_querystring from 'node:querystring';
6
5
  import { CanvasClient, CompositionGetByNodePathParameters, DataResolutionOption } from '@uniformdev/canvas';
6
+ import { ParsedUrlQuery } from 'querystring';
7
7
  import { ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapClient } from '@uniformdev/project-map';
8
8
  import '@uniformdev/canvas-react';
9
9
 
@@ -72,11 +72,11 @@ declare const withUniformGetStaticProps: <TProps extends {
72
72
 
73
73
  declare const getServerSideProps: next.GetServerSideProps<{
74
74
  [key: string]: any;
75
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
75
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
76
76
  /** Ready to go getStaticProps for dynamic route with 'path' param for [[...path]].jsx */
77
77
  declare const getStaticProps: next.GetStaticProps<{
78
78
  [key: string]: any;
79
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
79
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
80
80
  declare const getStaticPaths: () => Promise<{
81
81
  paths: string[] | undefined;
82
82
  fallback: boolean;
@@ -1,9 +1,9 @@
1
1
  import * as next from 'next';
2
2
  import { GetServerSidePropsContext, PreviewData, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
3
3
  import { a as UniformGetServerSideProps, c as UniformPreviewData, b as UniformGetStaticProps } from '../models-BGg_qtcM.js';
4
- import * as querystring from 'querystring';
5
- import { ParsedUrlQuery } from 'querystring';
4
+ import * as node_querystring from 'node:querystring';
6
5
  import { CanvasClient, CompositionGetByNodePathParameters, DataResolutionOption } from '@uniformdev/canvas';
6
+ import { ParsedUrlQuery } from 'querystring';
7
7
  import { ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapClient } from '@uniformdev/project-map';
8
8
  import '@uniformdev/canvas-react';
9
9
 
@@ -72,11 +72,11 @@ declare const withUniformGetStaticProps: <TProps extends {
72
72
 
73
73
  declare const getServerSideProps: next.GetServerSideProps<{
74
74
  [key: string]: any;
75
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
75
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
76
76
  /** Ready to go getStaticProps for dynamic route with 'path' param for [[...path]].jsx */
77
77
  declare const getStaticProps: next.GetStaticProps<{
78
78
  [key: string]: any;
79
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
79
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
80
80
  declare const getStaticPaths: () => Promise<{
81
81
  paths: string[] | undefined;
82
82
  fallback: boolean;
@@ -1,12 +1,12 @@
1
1
  import * as next from 'next';
2
2
  import { GetServerSidePropsContext, GetServerSidePropsResult, GetServerSideProps, GetStaticPropsContext, GetStaticPropsResult, GetStaticProps } from 'next';
3
3
  import { c as UniformPreviewData } from '../models-BGg_qtcM.mjs';
4
- import * as querystring from 'querystring';
5
- import { ParsedUrlQuery } from 'querystring';
6
- import * as _uniformdev_context__ from '@uniformdev/context/*';
4
+ import * as node_querystring from 'node:querystring';
5
+ import * as _uniformdev_context from '@uniformdev/context';
6
+ import { CompositionMetadata } from '@uniformdev/context';
7
7
  import * as _uniformdev_canvas from '@uniformdev/canvas';
8
8
  import { RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, RootComponentInstance, RouteClient, RouteGetParameters } from '@uniformdev/canvas';
9
- import { CompositionMetadata } from '@uniformdev/context';
9
+ import { ParsedUrlQuery } from 'querystring';
10
10
  import { ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapClient } from '@uniformdev/project-map';
11
11
  import { RedirectClient } from '@uniformdev/redirect';
12
12
  import { GetStaticPropsContext as GetStaticPropsContext$1, GetServerSidePropsContext as GetServerSidePropsContext$1 } from 'next/types';
@@ -112,7 +112,7 @@ declare const prependLocale: (path: string, { locale, defaultLocale, locales }:
112
112
  */
113
113
  declare const getServerSideProps: next.GetServerSideProps<{
114
114
  data: _uniformdev_canvas.RootComponentInstance;
115
- } & Omit<_uniformdev_context__.CompositionMetadata, "compositionId">, querystring.ParsedUrlQuery, UniformPreviewData>;
115
+ } & Omit<_uniformdev_context.CompositionMetadata, "compositionId">, node_querystring.ParsedUrlQuery, UniformPreviewData>;
116
116
  /**
117
117
  * Default implementation of getStaticProps with routes
118
118
  * To configure custom behavior, use:
@@ -120,7 +120,7 @@ declare const getServerSideProps: next.GetServerSideProps<{
120
120
  */
121
121
  declare const getStaticProps: next.GetStaticProps<{
122
122
  data: _uniformdev_canvas.RootComponentInstance;
123
- } & Omit<_uniformdev_context__.CompositionMetadata, "compositionId">, querystring.ParsedUrlQuery, UniformPreviewData>;
123
+ } & Omit<_uniformdev_context.CompositionMetadata, "compositionId">, node_querystring.ParsedUrlQuery, UniformPreviewData>;
124
124
  /**
125
125
  * Default implementation of getStaticPaths with routes
126
126
  * To configure custom behavior, use:
@@ -1,12 +1,12 @@
1
1
  import * as next from 'next';
2
2
  import { GetServerSidePropsContext, GetServerSidePropsResult, GetServerSideProps, GetStaticPropsContext, GetStaticPropsResult, GetStaticProps } from 'next';
3
3
  import { c as UniformPreviewData } from '../models-BGg_qtcM.js';
4
- import * as querystring from 'querystring';
5
- import { ParsedUrlQuery } from 'querystring';
6
- import * as _uniformdev_context__ from '@uniformdev/context/*';
4
+ import * as node_querystring from 'node:querystring';
5
+ import * as _uniformdev_context from '@uniformdev/context';
6
+ import { CompositionMetadata } from '@uniformdev/context';
7
7
  import * as _uniformdev_canvas from '@uniformdev/canvas';
8
8
  import { RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, RootComponentInstance, RouteClient, RouteGetParameters } from '@uniformdev/canvas';
9
- import { CompositionMetadata } from '@uniformdev/context';
9
+ import { ParsedUrlQuery } from 'querystring';
10
10
  import { ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapClient } from '@uniformdev/project-map';
11
11
  import { RedirectClient } from '@uniformdev/redirect';
12
12
  import { GetStaticPropsContext as GetStaticPropsContext$1, GetServerSidePropsContext as GetServerSidePropsContext$1 } from 'next/types';
@@ -112,7 +112,7 @@ declare const prependLocale: (path: string, { locale, defaultLocale, locales }:
112
112
  */
113
113
  declare const getServerSideProps: next.GetServerSideProps<{
114
114
  data: _uniformdev_canvas.RootComponentInstance;
115
- } & Omit<_uniformdev_context__.CompositionMetadata, "compositionId">, querystring.ParsedUrlQuery, UniformPreviewData>;
115
+ } & Omit<_uniformdev_context.CompositionMetadata, "compositionId">, node_querystring.ParsedUrlQuery, UniformPreviewData>;
116
116
  /**
117
117
  * Default implementation of getStaticProps with routes
118
118
  * To configure custom behavior, use:
@@ -120,7 +120,7 @@ declare const getServerSideProps: next.GetServerSideProps<{
120
120
  */
121
121
  declare const getStaticProps: next.GetStaticProps<{
122
122
  data: _uniformdev_canvas.RootComponentInstance;
123
- } & Omit<_uniformdev_context__.CompositionMetadata, "compositionId">, querystring.ParsedUrlQuery, UniformPreviewData>;
123
+ } & Omit<_uniformdev_context.CompositionMetadata, "compositionId">, node_querystring.ParsedUrlQuery, UniformPreviewData>;
124
124
  /**
125
125
  * Default implementation of getStaticPaths with routes
126
126
  * To configure custom behavior, use:
@@ -226,7 +226,7 @@ function createRouteFetcher(options) {
226
226
  projectId: process.env.UNIFORM_PROJECT_ID,
227
227
  edgeApiHost: process.env.UNIFORM_CLI_BASE_EDGE_URL
228
228
  });
229
- const handleModifyPath = modifyPath != null ? modifyPath : (path) => decodeURI(path);
229
+ const handleModifyPath = modifyPath != null ? modifyPath : ((path) => decodeURI(path));
230
230
  return async function fetcher(context) {
231
231
  var _a, _b;
232
232
  const {
@@ -90,7 +90,7 @@ function createRouteFetcher(options) {
90
90
  projectId: process.env.UNIFORM_PROJECT_ID,
91
91
  edgeApiHost: process.env.UNIFORM_CLI_BASE_EDGE_URL
92
92
  });
93
- const handleModifyPath = modifyPath != null ? modifyPath : (path) => decodeURI(path);
93
+ const handleModifyPath = modifyPath != null ? modifyPath : ((path) => decodeURI(path));
94
94
  return async function fetcher(context) {
95
95
  var _a, _b;
96
96
  const {
@@ -1,9 +1,9 @@
1
1
  import * as next from 'next';
2
2
  import { GetServerSidePropsContext, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
3
3
  import { c as UniformPreviewData, a as UniformGetServerSideProps, b as UniformGetStaticProps } from '../models-BGg_qtcM.mjs';
4
- import * as querystring from 'querystring';
5
- import { ParsedUrlQuery } from 'querystring';
4
+ import * as node_querystring from 'node:querystring';
6
5
  import { CanvasClient, CompositionGetBySlugParameters, DataResolutionOption, CompositionGetParameters, CompositionGetResponse } from '@uniformdev/canvas';
6
+ import { ParsedUrlQuery } from 'querystring';
7
7
  import '@uniformdev/canvas-react';
8
8
 
9
9
  declare const withUniformGetServerSideProps: <TProps extends {
@@ -65,11 +65,11 @@ declare const withUniformGetStaticProps: <TProps extends {
65
65
 
66
66
  declare const getServerSideProps: next.GetServerSideProps<{
67
67
  [key: string]: any;
68
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
68
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
69
69
  /** Ready to go getStaticProps for dynamic route with 'slug' param for [[...slug]].jsx */
70
70
  declare const getStaticProps: next.GetStaticProps<{
71
71
  [key: string]: any;
72
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
72
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
73
73
  declare const getStaticPaths: () => Promise<{
74
74
  paths: string[];
75
75
  fallback: boolean;
@@ -1,9 +1,9 @@
1
1
  import * as next from 'next';
2
2
  import { GetServerSidePropsContext, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
3
3
  import { c as UniformPreviewData, a as UniformGetServerSideProps, b as UniformGetStaticProps } from '../models-BGg_qtcM.js';
4
- import * as querystring from 'querystring';
5
- import { ParsedUrlQuery } from 'querystring';
4
+ import * as node_querystring from 'node:querystring';
6
5
  import { CanvasClient, CompositionGetBySlugParameters, DataResolutionOption, CompositionGetParameters, CompositionGetResponse } from '@uniformdev/canvas';
6
+ import { ParsedUrlQuery } from 'querystring';
7
7
  import '@uniformdev/canvas-react';
8
8
 
9
9
  declare const withUniformGetServerSideProps: <TProps extends {
@@ -65,11 +65,11 @@ declare const withUniformGetStaticProps: <TProps extends {
65
65
 
66
66
  declare const getServerSideProps: next.GetServerSideProps<{
67
67
  [key: string]: any;
68
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
68
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
69
69
  /** Ready to go getStaticProps for dynamic route with 'slug' param for [[...slug]].jsx */
70
70
  declare const getStaticProps: next.GetStaticProps<{
71
71
  [key: string]: any;
72
- }, querystring.ParsedUrlQuery, UniformPreviewData>;
72
+ }, node_querystring.ParsedUrlQuery, UniformPreviewData>;
73
73
  declare const getStaticPaths: () => Promise<{
74
74
  paths: string[];
75
75
  fallback: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next",
3
- "version": "20.70.0",
3
+ "version": "20.71.0",
4
4
  "description": "Next.js SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -66,12 +66,12 @@
66
66
  "apidocs-extract": "api-extractor run --local"
67
67
  },
68
68
  "dependencies": {
69
- "@uniformdev/canvas": "20.70.0",
70
- "@uniformdev/canvas-react": "20.70.0",
71
- "@uniformdev/context": "20.70.0",
72
- "@uniformdev/project-map": "20.70.0",
73
- "@uniformdev/redirect": "20.70.0",
74
- "@uniformdev/richtext": "20.70.0",
69
+ "@uniformdev/canvas": "20.71.0",
70
+ "@uniformdev/canvas-react": "20.71.0",
71
+ "@uniformdev/context": "20.71.0",
72
+ "@uniformdev/project-map": "20.71.0",
73
+ "@uniformdev/redirect": "20.71.0",
74
+ "@uniformdev/richtext": "20.71.0",
75
75
  "colorette": "2.0.20"
76
76
  },
77
77
  "peerDependencies": {
@@ -80,8 +80,8 @@
80
80
  "react-dom": ">=16"
81
81
  },
82
82
  "devDependencies": {
83
- "@types/react": "19.2.2",
84
- "next": "16.2.3",
83
+ "@types/react": "19.2.17",
84
+ "next": "16.2.9",
85
85
  "react": "19.2.1",
86
86
  "react-dom": "19.2.1"
87
87
  },
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "3f8f572b37fc7ea5d2f37b1425451973556f3392"
94
+ "gitHead": "9b3f5e3fa27b275c00cc252da7ed72913464cce6"
95
95
  }