@uniformdev/canvas-next-rsc-client 20.6.2-alpha.10 → 20.6.2-alpha.11

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.d.mts CHANGED
@@ -52,11 +52,11 @@ declare const ContextUpdateTransferClient: ({ update, ts, }: {
52
52
 
53
53
  declare const DefaultUniformClientContext: ClientContextComponent;
54
54
 
55
- type PersonalizeClientProps = PersonalizeProps & {
55
+ interface PersonalizeClientProps extends PersonalizeProps {
56
56
  indexes: number[];
57
57
  slots: ComponentProps['slots'];
58
58
  component: ComponentProps['component'];
59
- };
59
+ }
60
60
  declare const PersonalizeClient: (props: PersonalizeClientProps) => react.FunctionComponentElement<{
61
61
  children?: react.ReactNode | undefined;
62
62
  }>;
package/dist/index.d.ts CHANGED
@@ -52,11 +52,11 @@ declare const ContextUpdateTransferClient: ({ update, ts, }: {
52
52
 
53
53
  declare const DefaultUniformClientContext: ClientContextComponent;
54
54
 
55
- type PersonalizeClientProps = PersonalizeProps & {
55
+ interface PersonalizeClientProps extends PersonalizeProps {
56
56
  indexes: number[];
57
57
  slots: ComponentProps['slots'];
58
58
  component: ComponentProps['component'];
59
- };
59
+ }
60
60
  declare const PersonalizeClient: (props: PersonalizeClientProps) => react.FunctionComponentElement<{
61
61
  children?: react.ReactNode | undefined;
62
62
  }>;
package/dist/index.esm.js CHANGED
@@ -945,7 +945,6 @@ import { CANVAS_PERSONALIZE_SLOT } from "@uniformdev/canvas";
945
945
  import { runPersonalization } from "@uniformdev/canvas-next-rsc-shared";
946
946
  import { createElement, Fragment as Fragment3, useEffect as useEffect7, useState as useState6 } from "react";
947
947
  var PersonalizeClient = (props) => {
948
- const { slots } = props;
949
948
  const { context } = useUniformContext();
950
949
  const [indexesToShow, setIndexesToShow] = useState6(props.indexes);
951
950
  useEffect7(() => {
@@ -969,7 +968,7 @@ var PersonalizeClient = (props) => {
969
968
  }, [props, context]);
970
969
  const slotsToShow = indexesToShow.map((key) => {
971
970
  var _a;
972
- return (_a = slots[CANVAS_PERSONALIZE_SLOT]) == null ? void 0 : _a.items[key];
971
+ return (_a = props.slots[CANVAS_PERSONALIZE_SLOT]) == null ? void 0 : _a.items[key];
973
972
  });
974
973
  return createElement(Fragment3, void 0, slotsToShow);
975
974
  };
package/dist/index.js CHANGED
@@ -971,7 +971,6 @@ var import_canvas2 = require("@uniformdev/canvas");
971
971
  var import_canvas_next_rsc_shared2 = require("@uniformdev/canvas-next-rsc-shared");
972
972
  var import_react8 = require("react");
973
973
  var PersonalizeClient = (props) => {
974
- const { slots } = props;
975
974
  const { context } = useUniformContext();
976
975
  const [indexesToShow, setIndexesToShow] = (0, import_react8.useState)(props.indexes);
977
976
  (0, import_react8.useEffect)(() => {
@@ -995,7 +994,7 @@ var PersonalizeClient = (props) => {
995
994
  }, [props, context]);
996
995
  const slotsToShow = indexesToShow.map((key) => {
997
996
  var _a;
998
- return (_a = slots[import_canvas2.CANVAS_PERSONALIZE_SLOT]) == null ? void 0 : _a.items[key];
997
+ return (_a = props.slots[import_canvas2.CANVAS_PERSONALIZE_SLOT]) == null ? void 0 : _a.items[key];
999
998
  });
1000
999
  return (0, import_react8.createElement)(import_react8.Fragment, void 0, slotsToShow);
1001
1000
  };
package/dist/index.mjs CHANGED
@@ -945,7 +945,6 @@ import { CANVAS_PERSONALIZE_SLOT } from "@uniformdev/canvas";
945
945
  import { runPersonalization } from "@uniformdev/canvas-next-rsc-shared";
946
946
  import { createElement, Fragment as Fragment3, useEffect as useEffect7, useState as useState6 } from "react";
947
947
  var PersonalizeClient = (props) => {
948
- const { slots } = props;
949
948
  const { context } = useUniformContext();
950
949
  const [indexesToShow, setIndexesToShow] = useState6(props.indexes);
951
950
  useEffect7(() => {
@@ -969,7 +968,7 @@ var PersonalizeClient = (props) => {
969
968
  }, [props, context]);
970
969
  const slotsToShow = indexesToShow.map((key) => {
971
970
  var _a;
972
- return (_a = slots[CANVAS_PERSONALIZE_SLOT]) == null ? void 0 : _a.items[key];
971
+ return (_a = props.slots[CANVAS_PERSONALIZE_SLOT]) == null ? void 0 : _a.items[key];
973
972
  });
974
973
  return createElement(Fragment3, void 0, slotsToShow);
975
974
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc-client",
3
- "version": "20.6.2-alpha.10+ff8a28da1a",
3
+ "version": "20.6.2-alpha.11+af78064791",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -33,9 +33,9 @@
33
33
  "typescript": "5.7.2"
34
34
  },
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "20.6.2-alpha.10+ff8a28da1a",
37
- "@uniformdev/canvas-next-rsc-shared": "^20.6.2-alpha.10+ff8a28da1a",
38
- "@uniformdev/canvas-react": "^20.6.2-alpha.10+ff8a28da1a"
36
+ "@uniformdev/canvas": "20.6.2-alpha.11+af78064791",
37
+ "@uniformdev/canvas-next-rsc-shared": "^20.6.2-alpha.11+af78064791",
38
+ "@uniformdev/canvas-react": "^20.6.2-alpha.11+af78064791"
39
39
  },
40
40
  "engines": {
41
41
  "node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "ff8a28da1a7c11416e5585bc4cb66032bcb6ab53"
51
+ "gitHead": "af78064791c47044f8ba447bbe1221f672f6de3e"
52
52
  }