@uniformdev/canvas-next-rsc 19.170.1-alpha.1 → 19.173.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.esm.js +7 -26
- package/dist/index.js +27 -45
- package/dist/index.mjs +7 -26
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -412,7 +412,6 @@ import {
|
|
|
412
412
|
CANVAS_ENRICHMENT_TAG_PARAM,
|
|
413
413
|
CANVAS_PERSONALIZE_TYPE,
|
|
414
414
|
CANVAS_TEST_TYPE,
|
|
415
|
-
CANVAS_VIZ_CONTROL_PARAM,
|
|
416
415
|
isComponentPlaceholderId,
|
|
417
416
|
walkNodeTree
|
|
418
417
|
} from "@uniformdev/canvas";
|
|
@@ -685,13 +684,6 @@ var TestServer = async (props) => {
|
|
|
685
684
|
return createElement2(Fragment2, void 0, [component, eventElement]);
|
|
686
685
|
};
|
|
687
686
|
|
|
688
|
-
// src/components/VisibilityRulesWrapper.tsx
|
|
689
|
-
import { VisibilityRulesWrapperClient } from "@uniformdev/canvas-next-rsc-client";
|
|
690
|
-
import React6 from "react";
|
|
691
|
-
var VisibilityRulesWrapper = (props) => {
|
|
692
|
-
return /* @__PURE__ */ React6.createElement(VisibilityRulesWrapperClient, { ...props });
|
|
693
|
-
};
|
|
694
|
-
|
|
695
687
|
// src/components/UniformComposition.ts
|
|
696
688
|
var UniformComposition = async ({
|
|
697
689
|
resolveComponent,
|
|
@@ -880,7 +872,7 @@ var resolveComponents = ({
|
|
|
880
872
|
parent = target.parent;
|
|
881
873
|
}
|
|
882
874
|
const resolved = components.map((component, componentIndex) => {
|
|
883
|
-
var _a, _b
|
|
875
|
+
var _a, _b;
|
|
884
876
|
const isServer = isServerComponent({
|
|
885
877
|
component,
|
|
886
878
|
serverContext
|
|
@@ -911,7 +903,6 @@ var resolveComponents = ({
|
|
|
911
903
|
const wrapInSuspense = systemSuspense || componentSuspense;
|
|
912
904
|
const parameters = (_a = component.parameters) != null ? _a : {};
|
|
913
905
|
const enrichmentTags = (_b = parameters[CANVAS_ENRICHMENT_TAG_PARAM]) == null ? void 0 : _b.value;
|
|
914
|
-
const visibilityRules = (_c = parameters[CANVAS_VIZ_CONTROL_PARAM]) == null ? void 0 : _c.value;
|
|
915
906
|
const key = `${slotName}-${componentIndex}-component`;
|
|
916
907
|
const componentProps = {
|
|
917
908
|
...Object.keys(parameters).reduce((acc, cur) => {
|
|
@@ -995,16 +986,6 @@ var resolveComponents = ({
|
|
|
995
986
|
}
|
|
996
987
|
childNode = elements;
|
|
997
988
|
}
|
|
998
|
-
if (visibilityRules) {
|
|
999
|
-
childNode = createElement3(
|
|
1000
|
-
VisibilityRulesWrapper,
|
|
1001
|
-
{
|
|
1002
|
-
key: `${slotName}-${componentIndex}-visibility`,
|
|
1003
|
-
parameter: visibilityRules
|
|
1004
|
-
},
|
|
1005
|
-
childNode
|
|
1006
|
-
);
|
|
1007
|
-
}
|
|
1008
989
|
return createElement3(
|
|
1009
990
|
Fragment3,
|
|
1010
991
|
{
|
|
@@ -1022,7 +1003,7 @@ import {
|
|
|
1022
1003
|
UniformScript
|
|
1023
1004
|
} from "@uniformdev/canvas-next-rsc-client";
|
|
1024
1005
|
import { Suspense as Suspense2 } from "react";
|
|
1025
|
-
import
|
|
1006
|
+
import React6 from "react";
|
|
1026
1007
|
var UniformContext = async ({
|
|
1027
1008
|
clientContextComponent,
|
|
1028
1009
|
children
|
|
@@ -1035,23 +1016,23 @@ var UniformContext = async ({
|
|
|
1035
1016
|
const serverConfig = getServerConfig();
|
|
1036
1017
|
const disableDevTools = ((_a = serverConfig.context) == null ? void 0 : _a.disableDevTools) || false;
|
|
1037
1018
|
const defaultConsent = serverConfig.defaultConsent || false;
|
|
1038
|
-
return /* @__PURE__ */
|
|
1019
|
+
return /* @__PURE__ */ React6.createElement(React6.Fragment, null, children, /* @__PURE__ */ React6.createElement(
|
|
1039
1020
|
ContextComponent,
|
|
1040
1021
|
{
|
|
1041
1022
|
manifest,
|
|
1042
1023
|
disableDevTools,
|
|
1043
1024
|
defaultConsent
|
|
1044
1025
|
}
|
|
1045
|
-
), /* @__PURE__ */
|
|
1026
|
+
), /* @__PURE__ */ React6.createElement(Suspense2, { fallback: /* @__PURE__ */ React6.createElement(React6.Fragment, null) }, /* @__PURE__ */ React6.createElement(UniformScript, null)));
|
|
1046
1027
|
};
|
|
1047
1028
|
|
|
1048
1029
|
// src/components/UniformPlayground.tsx
|
|
1049
1030
|
import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE3, CANVAS_EDITOR_STATE as CANVAS_EDITOR_STATE3 } from "@uniformdev/canvas";
|
|
1050
1031
|
import { notFound as notFound2 } from "next/navigation";
|
|
1051
|
-
import
|
|
1032
|
+
import React7 from "react";
|
|
1052
1033
|
var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
1053
1034
|
if (!isDraftModeEnabled({ searchParams })) {
|
|
1054
|
-
return /* @__PURE__ */
|
|
1035
|
+
return /* @__PURE__ */ React7.createElement("div", null, /* @__PURE__ */ React7.createElement("h1", null, "Playground is only available in draft mode"));
|
|
1055
1036
|
}
|
|
1056
1037
|
const id = searchParams["id"];
|
|
1057
1038
|
if (!id) {
|
|
@@ -1082,7 +1063,7 @@ var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
|
1082
1063
|
if (!composition) {
|
|
1083
1064
|
notFound2();
|
|
1084
1065
|
}
|
|
1085
|
-
return /* @__PURE__ */
|
|
1066
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1086
1067
|
UniformComposition,
|
|
1087
1068
|
{
|
|
1088
1069
|
mode: "server",
|
package/dist/index.js
CHANGED
|
@@ -456,12 +456,12 @@ async function generateStaticParams() {
|
|
|
456
456
|
|
|
457
457
|
// src/components/UniformComposition.ts
|
|
458
458
|
var import_canvas7 = require("@uniformdev/canvas");
|
|
459
|
-
var
|
|
459
|
+
var import_canvas_next_rsc_client6 = require("@uniformdev/canvas-next-rsc-client");
|
|
460
460
|
var import_canvas_next_rsc_shared6 = require("@uniformdev/canvas-next-rsc-shared");
|
|
461
461
|
var import_core = require("@uniformdev/canvas-react/core");
|
|
462
462
|
var import_headers3 = require("next/headers");
|
|
463
463
|
var import_navigation = require("next/navigation");
|
|
464
|
-
var
|
|
464
|
+
var import_react8 = require("react");
|
|
465
465
|
|
|
466
466
|
// src/context/createServerUniformContext.ts
|
|
467
467
|
var import_canvas_next_rsc_shared = require("@uniformdev/canvas-next-rsc-shared");
|
|
@@ -715,13 +715,6 @@ var TestServer = async (props) => {
|
|
|
715
715
|
return (0, import_react7.createElement)(import_react7.Fragment, void 0, [component, eventElement]);
|
|
716
716
|
};
|
|
717
717
|
|
|
718
|
-
// src/components/VisibilityRulesWrapper.tsx
|
|
719
|
-
var import_canvas_next_rsc_client6 = require("@uniformdev/canvas-next-rsc-client");
|
|
720
|
-
var import_react8 = __toESM(require("react"));
|
|
721
|
-
var VisibilityRulesWrapper = (props) => {
|
|
722
|
-
return /* @__PURE__ */ import_react8.default.createElement(import_canvas_next_rsc_client6.VisibilityRulesWrapperClient, { ...props });
|
|
723
|
-
};
|
|
724
|
-
|
|
725
718
|
// src/components/UniformComposition.ts
|
|
726
719
|
var UniformComposition = async ({
|
|
727
720
|
resolveComponent,
|
|
@@ -784,7 +777,7 @@ var UniformComposition = async ({
|
|
|
784
777
|
if (props.mode === "server") {
|
|
785
778
|
const headersValue = (0, import_headers3.headers)();
|
|
786
779
|
const missingQuirkValue = "unknown";
|
|
787
|
-
transfer = (0,
|
|
780
|
+
transfer = (0, import_react8.createElement)(ContextUpdateTransfer, {
|
|
788
781
|
serverContext,
|
|
789
782
|
update: {
|
|
790
783
|
params: props.params,
|
|
@@ -801,11 +794,11 @@ var UniformComposition = async ({
|
|
|
801
794
|
}
|
|
802
795
|
});
|
|
803
796
|
} else if (props.mode === "static") {
|
|
804
|
-
transfer = (0,
|
|
797
|
+
transfer = (0, import_react8.createElement)(ContextUpdateTrigger, {
|
|
805
798
|
path
|
|
806
799
|
});
|
|
807
800
|
}
|
|
808
|
-
return (0,
|
|
801
|
+
return (0, import_react8.createElement)(import_react8.Fragment, void 0, transfer, resolved);
|
|
809
802
|
};
|
|
810
803
|
var isServerComponent = ({
|
|
811
804
|
component,
|
|
@@ -832,7 +825,7 @@ var resolveSystemComponent = ({
|
|
|
832
825
|
suspense = server && ((_a = config.ppr) == null ? void 0 : _a.personalizationSuspense);
|
|
833
826
|
}
|
|
834
827
|
if (component.type === import_canvas7.CANVAS_TEST_TYPE) {
|
|
835
|
-
resolved = server ? TestServer :
|
|
828
|
+
resolved = server ? TestServer : import_canvas_next_rsc_client6.TestClient;
|
|
836
829
|
suspense = server && ((_b = config.ppr) == null ? void 0 : _b.testSuspense);
|
|
837
830
|
}
|
|
838
831
|
return {
|
|
@@ -910,7 +903,7 @@ var resolveComponents = ({
|
|
|
910
903
|
parent = target.parent;
|
|
911
904
|
}
|
|
912
905
|
const resolved = components.map((component, componentIndex) => {
|
|
913
|
-
var _a, _b
|
|
906
|
+
var _a, _b;
|
|
914
907
|
const isServer = isServerComponent({
|
|
915
908
|
component,
|
|
916
909
|
serverContext
|
|
@@ -941,7 +934,6 @@ var resolveComponents = ({
|
|
|
941
934
|
const wrapInSuspense = systemSuspense || componentSuspense;
|
|
942
935
|
const parameters = (_a = component.parameters) != null ? _a : {};
|
|
943
936
|
const enrichmentTags = (_b = parameters[import_canvas7.CANVAS_ENRICHMENT_TAG_PARAM]) == null ? void 0 : _b.value;
|
|
944
|
-
const visibilityRules = (_c = parameters[import_canvas7.CANVAS_VIZ_CONTROL_PARAM]) == null ? void 0 : _c.value;
|
|
945
937
|
const key = `${slotName}-${componentIndex}-component`;
|
|
946
938
|
const componentProps = {
|
|
947
939
|
...Object.keys(parameters).reduce((acc, cur) => {
|
|
@@ -957,20 +949,20 @@ var resolveComponents = ({
|
|
|
957
949
|
};
|
|
958
950
|
let element = null;
|
|
959
951
|
if (wrapInSuspense) {
|
|
960
|
-
element = (0,
|
|
961
|
-
|
|
952
|
+
element = (0, import_react8.createElement)(
|
|
953
|
+
import_react8.Suspense,
|
|
962
954
|
{
|
|
963
955
|
key,
|
|
964
|
-
fallback: typeof wrapInSuspense === "boolean" || typeof (wrapInSuspense == null ? void 0 : wrapInSuspense.fallback) === "undefined" ? void 0 : (0,
|
|
956
|
+
fallback: typeof wrapInSuspense === "boolean" || typeof (wrapInSuspense == null ? void 0 : wrapInSuspense.fallback) === "undefined" ? void 0 : (0, import_react8.createElement)(wrapInSuspense.fallback)
|
|
965
957
|
},
|
|
966
|
-
(0,
|
|
958
|
+
(0, import_react8.createElement)(resolvedComponent, componentProps)
|
|
967
959
|
);
|
|
968
960
|
} else {
|
|
969
|
-
element = (0,
|
|
961
|
+
element = (0, import_react8.createElement)(resolvedComponent, { ...componentProps, key });
|
|
970
962
|
}
|
|
971
963
|
let tagElement = null;
|
|
972
964
|
if (enrichmentTags == null ? void 0 : enrichmentTags.length) {
|
|
973
|
-
tagElement = (0,
|
|
965
|
+
tagElement = (0, import_react8.createElement)(ContextUpdateTransfer, {
|
|
974
966
|
key: `${slotName}-${componentIndex}-tags`,
|
|
975
967
|
update: {
|
|
976
968
|
enrichments: enrichmentTags
|
|
@@ -985,7 +977,7 @@ var resolveComponents = ({
|
|
|
985
977
|
elements.push(tagElement);
|
|
986
978
|
}
|
|
987
979
|
const isPlaceholder = (0, import_canvas7.isComponentPlaceholderId)(component == null ? void 0 : component._id);
|
|
988
|
-
childNode = (0,
|
|
980
|
+
childNode = (0, import_react8.createElement)(
|
|
989
981
|
import_core.PureContextualEditingComponentWrapper,
|
|
990
982
|
{
|
|
991
983
|
key: `${slotName}-${componentIndex}-wrapper`,
|
|
@@ -1004,8 +996,8 @@ var resolveComponents = ({
|
|
|
1004
996
|
if (tagElement) {
|
|
1005
997
|
elements.push(tagElement);
|
|
1006
998
|
}
|
|
1007
|
-
childNode = (0,
|
|
1008
|
-
|
|
999
|
+
childNode = (0, import_react8.createElement)(
|
|
1000
|
+
import_canvas_next_rsc_client6.ClientContextualEditingComponentWrapper,
|
|
1009
1001
|
{
|
|
1010
1002
|
key: `${slotName}-${componentIndex}-wrapper`,
|
|
1011
1003
|
isPlaceholder: false,
|
|
@@ -1025,18 +1017,8 @@ var resolveComponents = ({
|
|
|
1025
1017
|
}
|
|
1026
1018
|
childNode = elements;
|
|
1027
1019
|
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
VisibilityRulesWrapper,
|
|
1031
|
-
{
|
|
1032
|
-
key: `${slotName}-${componentIndex}-visibility`,
|
|
1033
|
-
parameter: visibilityRules
|
|
1034
|
-
},
|
|
1035
|
-
childNode
|
|
1036
|
-
);
|
|
1037
|
-
}
|
|
1038
|
-
return (0, import_react9.createElement)(
|
|
1039
|
-
import_react9.Fragment,
|
|
1020
|
+
return (0, import_react8.createElement)(
|
|
1021
|
+
import_react8.Fragment,
|
|
1040
1022
|
{
|
|
1041
1023
|
key: !isRoot ? `${slotName}-${componentIndex}` : void 0
|
|
1042
1024
|
},
|
|
@@ -1047,9 +1029,9 @@ var resolveComponents = ({
|
|
|
1047
1029
|
};
|
|
1048
1030
|
|
|
1049
1031
|
// src/components/UniformContext.tsx
|
|
1050
|
-
var
|
|
1051
|
-
var
|
|
1052
|
-
var
|
|
1032
|
+
var import_canvas_next_rsc_client7 = require("@uniformdev/canvas-next-rsc-client");
|
|
1033
|
+
var import_react9 = require("react");
|
|
1034
|
+
var import_react10 = __toESM(require("react"));
|
|
1053
1035
|
var UniformContext = async ({
|
|
1054
1036
|
clientContextComponent,
|
|
1055
1037
|
children
|
|
@@ -1058,27 +1040,27 @@ var UniformContext = async ({
|
|
|
1058
1040
|
const manifest = await getManifest({
|
|
1059
1041
|
searchParams: {}
|
|
1060
1042
|
});
|
|
1061
|
-
const ContextComponent = clientContextComponent ||
|
|
1043
|
+
const ContextComponent = clientContextComponent || import_canvas_next_rsc_client7.DefaultUniformClientContext;
|
|
1062
1044
|
const serverConfig = getServerConfig();
|
|
1063
1045
|
const disableDevTools = ((_a = serverConfig.context) == null ? void 0 : _a.disableDevTools) || false;
|
|
1064
1046
|
const defaultConsent = serverConfig.defaultConsent || false;
|
|
1065
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, children, /* @__PURE__ */ import_react10.default.createElement(
|
|
1066
1048
|
ContextComponent,
|
|
1067
1049
|
{
|
|
1068
1050
|
manifest,
|
|
1069
1051
|
disableDevTools,
|
|
1070
1052
|
defaultConsent
|
|
1071
1053
|
}
|
|
1072
|
-
), /* @__PURE__ */
|
|
1054
|
+
), /* @__PURE__ */ import_react10.default.createElement(import_react9.Suspense, { fallback: /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null) }, /* @__PURE__ */ import_react10.default.createElement(import_canvas_next_rsc_client7.UniformScript, null)));
|
|
1073
1055
|
};
|
|
1074
1056
|
|
|
1075
1057
|
// src/components/UniformPlayground.tsx
|
|
1076
1058
|
var import_canvas8 = require("@uniformdev/canvas");
|
|
1077
1059
|
var import_navigation2 = require("next/navigation");
|
|
1078
|
-
var
|
|
1060
|
+
var import_react11 = __toESM(require("react"));
|
|
1079
1061
|
var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
1080
1062
|
if (!isDraftModeEnabled({ searchParams })) {
|
|
1081
|
-
return /* @__PURE__ */
|
|
1063
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", null, /* @__PURE__ */ import_react11.default.createElement("h1", null, "Playground is only available in draft mode"));
|
|
1082
1064
|
}
|
|
1083
1065
|
const id = searchParams["id"];
|
|
1084
1066
|
if (!id) {
|
|
@@ -1109,7 +1091,7 @@ var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
|
1109
1091
|
if (!composition) {
|
|
1110
1092
|
(0, import_navigation2.notFound)();
|
|
1111
1093
|
}
|
|
1112
|
-
return /* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
|
1113
1095
|
UniformComposition,
|
|
1114
1096
|
{
|
|
1115
1097
|
mode: "server",
|
package/dist/index.mjs
CHANGED
|
@@ -412,7 +412,6 @@ import {
|
|
|
412
412
|
CANVAS_ENRICHMENT_TAG_PARAM,
|
|
413
413
|
CANVAS_PERSONALIZE_TYPE,
|
|
414
414
|
CANVAS_TEST_TYPE,
|
|
415
|
-
CANVAS_VIZ_CONTROL_PARAM,
|
|
416
415
|
isComponentPlaceholderId,
|
|
417
416
|
walkNodeTree
|
|
418
417
|
} from "@uniformdev/canvas";
|
|
@@ -685,13 +684,6 @@ var TestServer = async (props) => {
|
|
|
685
684
|
return createElement2(Fragment2, void 0, [component, eventElement]);
|
|
686
685
|
};
|
|
687
686
|
|
|
688
|
-
// src/components/VisibilityRulesWrapper.tsx
|
|
689
|
-
import { VisibilityRulesWrapperClient } from "@uniformdev/canvas-next-rsc-client";
|
|
690
|
-
import React6 from "react";
|
|
691
|
-
var VisibilityRulesWrapper = (props) => {
|
|
692
|
-
return /* @__PURE__ */ React6.createElement(VisibilityRulesWrapperClient, { ...props });
|
|
693
|
-
};
|
|
694
|
-
|
|
695
687
|
// src/components/UniformComposition.ts
|
|
696
688
|
var UniformComposition = async ({
|
|
697
689
|
resolveComponent,
|
|
@@ -880,7 +872,7 @@ var resolveComponents = ({
|
|
|
880
872
|
parent = target.parent;
|
|
881
873
|
}
|
|
882
874
|
const resolved = components.map((component, componentIndex) => {
|
|
883
|
-
var _a, _b
|
|
875
|
+
var _a, _b;
|
|
884
876
|
const isServer = isServerComponent({
|
|
885
877
|
component,
|
|
886
878
|
serverContext
|
|
@@ -911,7 +903,6 @@ var resolveComponents = ({
|
|
|
911
903
|
const wrapInSuspense = systemSuspense || componentSuspense;
|
|
912
904
|
const parameters = (_a = component.parameters) != null ? _a : {};
|
|
913
905
|
const enrichmentTags = (_b = parameters[CANVAS_ENRICHMENT_TAG_PARAM]) == null ? void 0 : _b.value;
|
|
914
|
-
const visibilityRules = (_c = parameters[CANVAS_VIZ_CONTROL_PARAM]) == null ? void 0 : _c.value;
|
|
915
906
|
const key = `${slotName}-${componentIndex}-component`;
|
|
916
907
|
const componentProps = {
|
|
917
908
|
...Object.keys(parameters).reduce((acc, cur) => {
|
|
@@ -995,16 +986,6 @@ var resolveComponents = ({
|
|
|
995
986
|
}
|
|
996
987
|
childNode = elements;
|
|
997
988
|
}
|
|
998
|
-
if (visibilityRules) {
|
|
999
|
-
childNode = createElement3(
|
|
1000
|
-
VisibilityRulesWrapper,
|
|
1001
|
-
{
|
|
1002
|
-
key: `${slotName}-${componentIndex}-visibility`,
|
|
1003
|
-
parameter: visibilityRules
|
|
1004
|
-
},
|
|
1005
|
-
childNode
|
|
1006
|
-
);
|
|
1007
|
-
}
|
|
1008
989
|
return createElement3(
|
|
1009
990
|
Fragment3,
|
|
1010
991
|
{
|
|
@@ -1022,7 +1003,7 @@ import {
|
|
|
1022
1003
|
UniformScript
|
|
1023
1004
|
} from "@uniformdev/canvas-next-rsc-client";
|
|
1024
1005
|
import { Suspense as Suspense2 } from "react";
|
|
1025
|
-
import
|
|
1006
|
+
import React6 from "react";
|
|
1026
1007
|
var UniformContext = async ({
|
|
1027
1008
|
clientContextComponent,
|
|
1028
1009
|
children
|
|
@@ -1035,23 +1016,23 @@ var UniformContext = async ({
|
|
|
1035
1016
|
const serverConfig = getServerConfig();
|
|
1036
1017
|
const disableDevTools = ((_a = serverConfig.context) == null ? void 0 : _a.disableDevTools) || false;
|
|
1037
1018
|
const defaultConsent = serverConfig.defaultConsent || false;
|
|
1038
|
-
return /* @__PURE__ */
|
|
1019
|
+
return /* @__PURE__ */ React6.createElement(React6.Fragment, null, children, /* @__PURE__ */ React6.createElement(
|
|
1039
1020
|
ContextComponent,
|
|
1040
1021
|
{
|
|
1041
1022
|
manifest,
|
|
1042
1023
|
disableDevTools,
|
|
1043
1024
|
defaultConsent
|
|
1044
1025
|
}
|
|
1045
|
-
), /* @__PURE__ */
|
|
1026
|
+
), /* @__PURE__ */ React6.createElement(Suspense2, { fallback: /* @__PURE__ */ React6.createElement(React6.Fragment, null) }, /* @__PURE__ */ React6.createElement(UniformScript, null)));
|
|
1046
1027
|
};
|
|
1047
1028
|
|
|
1048
1029
|
// src/components/UniformPlayground.tsx
|
|
1049
1030
|
import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE3, CANVAS_EDITOR_STATE as CANVAS_EDITOR_STATE3 } from "@uniformdev/canvas";
|
|
1050
1031
|
import { notFound as notFound2 } from "next/navigation";
|
|
1051
|
-
import
|
|
1032
|
+
import React7 from "react";
|
|
1052
1033
|
var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
1053
1034
|
if (!isDraftModeEnabled({ searchParams })) {
|
|
1054
|
-
return /* @__PURE__ */
|
|
1035
|
+
return /* @__PURE__ */ React7.createElement("div", null, /* @__PURE__ */ React7.createElement("h1", null, "Playground is only available in draft mode"));
|
|
1055
1036
|
}
|
|
1056
1037
|
const id = searchParams["id"];
|
|
1057
1038
|
if (!id) {
|
|
@@ -1082,7 +1063,7 @@ var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
|
1082
1063
|
if (!composition) {
|
|
1083
1064
|
notFound2();
|
|
1084
1065
|
}
|
|
1085
|
-
return /* @__PURE__ */
|
|
1066
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1086
1067
|
UniformComposition,
|
|
1087
1068
|
{
|
|
1088
1069
|
mode: "server",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.173.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"react-dom": "18.2.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@uniformdev/canvas": "19.
|
|
65
|
-
"@uniformdev/canvas-next-rsc-client": "^19.
|
|
66
|
-
"@uniformdev/canvas-next-rsc-shared": "^19.
|
|
67
|
-
"@uniformdev/canvas-react": "19.
|
|
68
|
-
"@uniformdev/context": "19.
|
|
69
|
-
"@uniformdev/project-map": "19.
|
|
70
|
-
"@uniformdev/redirect": "19.
|
|
71
|
-
"@uniformdev/richtext": "19.
|
|
72
|
-
"@uniformdev/webhooks": "19.
|
|
64
|
+
"@uniformdev/canvas": "19.173.0",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^19.173.0",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.173.0",
|
|
67
|
+
"@uniformdev/canvas-react": "19.173.0",
|
|
68
|
+
"@uniformdev/context": "19.173.0",
|
|
69
|
+
"@uniformdev/project-map": "19.173.0",
|
|
70
|
+
"@uniformdev/redirect": "19.173.0",
|
|
71
|
+
"@uniformdev/richtext": "19.173.0",
|
|
72
|
+
"@uniformdev/webhooks": "19.173.0",
|
|
73
73
|
"@vercel/edge-config": "^0.4.0",
|
|
74
74
|
"encoding": "^0.1.13",
|
|
75
75
|
"server-only": "^0.0.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "d71596f8829efb4f28ef7213dd9c06421b5cc388"
|
|
90
90
|
}
|