@uniformdev/canvas-next-rsc 19.54.2-alpha.10 → 19.54.2-alpha.13
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.
|
@@ -8,8 +8,6 @@ export type CompositionContext = Omit<RouteGetResponseComposition, 'compositionA
|
|
|
8
8
|
[key: string]: string | undefined;
|
|
9
9
|
} | undefined;
|
|
10
10
|
cookieValue: string | undefined;
|
|
11
|
-
isDraftMode: boolean;
|
|
12
|
-
isContextualEditing: boolean;
|
|
13
11
|
};
|
|
14
12
|
export type ComponentProps<TProps = unknown> = TProps & {
|
|
15
13
|
component: ComponentInstance;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense } from 'react';
|
|
3
|
-
import { isDraftModeEnabled, isIncontextEditingEnabled } from '../utils/draft';
|
|
4
3
|
import { resolveComposition } from './retrieveRoute';
|
|
5
4
|
import { UniformComponent } from './UniformComponent';
|
|
6
5
|
import { UniformProvider } from './UniformContext';
|
|
@@ -25,10 +24,6 @@ const UniformCompositionInner = async ({ params, searchParams, update, children,
|
|
|
25
24
|
path,
|
|
26
25
|
searchParams,
|
|
27
26
|
cookieValue,
|
|
28
|
-
isDraftMode: isDraftModeEnabled({ searchParams }),
|
|
29
|
-
isContextualEditing: isIncontextEditingEnabled({
|
|
30
|
-
searchParams,
|
|
31
|
-
}),
|
|
32
27
|
...rest,
|
|
33
28
|
};
|
|
34
29
|
return (_jsxs(UniformProvider, { cookieValue: cookieValue, seenComponents: seenComponents, children: [_jsx(UniformScript, { enabled: isCanvasEditing }), _jsx(UniformComponent, { data: evaluatedComposition, context: context }), Boolean(children) && children] }));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { PureUniformText } from '@uniformdev/canvas-react/core';
|
|
3
|
+
import { isIncontextEditingEnabled } from '../utils/draft';
|
|
3
4
|
export const UniformText = ({ context, ...rest }) => {
|
|
4
|
-
|
|
5
|
+
const isEditing = isIncontextEditingEnabled(context);
|
|
6
|
+
return _jsx(PureUniformText, { ...rest, isContextualEditing: isEditing, skipCustomRendering: isEditing });
|
|
5
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.54.2-alpha.
|
|
3
|
+
"version": "19.54.2-alpha.13+17f499405",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "tsc --watch",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"react-dom": "18.2.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@uniformdev/canvas": "19.54.2-alpha.
|
|
59
|
-
"@uniformdev/canvas-react": "19.54.2-alpha.
|
|
60
|
-
"@uniformdev/context": "19.54.2-alpha.
|
|
61
|
-
"@uniformdev/project-map": "19.54.2-alpha.
|
|
62
|
-
"@uniformdev/redirect": "19.54.2-alpha.
|
|
63
|
-
"@uniformdev/richtext": "19.54.2-alpha.
|
|
64
|
-
"@uniformdev/webhooks": "19.54.2-alpha.
|
|
58
|
+
"@uniformdev/canvas": "19.54.2-alpha.13+17f499405",
|
|
59
|
+
"@uniformdev/canvas-react": "19.54.2-alpha.13+17f499405",
|
|
60
|
+
"@uniformdev/context": "19.54.2-alpha.13+17f499405",
|
|
61
|
+
"@uniformdev/project-map": "19.54.2-alpha.13+17f499405",
|
|
62
|
+
"@uniformdev/redirect": "19.54.2-alpha.13+17f499405",
|
|
63
|
+
"@uniformdev/richtext": "19.54.2-alpha.13+17f499405",
|
|
64
|
+
"@uniformdev/webhooks": "19.54.2-alpha.13+17f499405",
|
|
65
65
|
"@vercel/edge-config": "^0.2.0",
|
|
66
66
|
"dequal": "^2.0.3",
|
|
67
67
|
"js-cookie": "^3.0.5",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "17f4994053421269d934e7b8bee1d24b022c3e3f"
|
|
82
82
|
}
|