@uniformdev/canvas-react 19.54.3-alpha.3 → 19.54.3-alpha.5

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
@@ -243,8 +243,10 @@ declare function useUniformCurrentComposition(): UniformCompositionContextValue;
243
243
  */
244
244
  declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
245
245
 
246
- type UniformPlaygroundDecorator = (options: {
246
+ type UniformPlaygroundDecorator = (props: {
247
+ /** The rendered component instance, needs to wrapped and rendered by the decorator */
247
248
  children: React$1.ReactNode;
249
+ /** The component instance data */
248
250
  data: ComponentInstance | RootComponentInstance;
249
251
  }) => React$1.ReactElement;
250
252
  type UniformPlaygroundProps = {
package/dist/index.d.ts CHANGED
@@ -243,8 +243,10 @@ declare function useUniformCurrentComposition(): UniformCompositionContextValue;
243
243
  */
244
244
  declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
245
245
 
246
- type UniformPlaygroundDecorator = (options: {
246
+ type UniformPlaygroundDecorator = (props: {
247
+ /** The rendered component instance, needs to wrapped and rendered by the decorator */
247
248
  children: React$1.ReactNode;
249
+ /** The component instance data */
248
250
  data: ComponentInstance | RootComponentInstance;
249
251
  }) => React$1.ReactElement;
250
252
  type UniformPlaygroundProps = {
package/dist/index.esm.js CHANGED
@@ -577,7 +577,7 @@ var UniformPlayground = ({
577
577
  if (!composition) {
578
578
  return null;
579
579
  }
580
- let component = /* @__PURE__ */ React7.createElement(
580
+ let component = /* @__PURE__ */ React7.createElement(ContextualEditingComponentWrapper, { component: composition }, /* @__PURE__ */ React7.createElement(
581
581
  UniformComponent,
582
582
  {
583
583
  data: composition,
@@ -586,7 +586,7 @@ var UniformPlayground = ({
586
586
  contextualEditingDefaultPlaceholder
587
587
  },
588
588
  children
589
- );
589
+ ));
590
590
  decorators.forEach((Decorator) => {
591
591
  component = /* @__PURE__ */ React7.createElement(Decorator, { data: composition }, component);
592
592
  });
@@ -604,7 +604,7 @@ var UniformPlayground = ({
604
604
  {
605
605
  value: { data: composition, behaviorTracking, resolveRenderer, isContextualEditing }
606
606
  },
607
- /* @__PURE__ */ React7.createElement(ContextualEditingComponentWrapper, { component: composition }, renderedComponent)
607
+ renderedComponent
608
608
  );
609
609
  };
610
610
 
package/dist/index.js CHANGED
@@ -611,7 +611,7 @@ var UniformPlayground = ({
611
611
  if (!composition) {
612
612
  return null;
613
613
  }
614
- let component = /* @__PURE__ */ import_react7.default.createElement(
614
+ let component = /* @__PURE__ */ import_react7.default.createElement(ContextualEditingComponentWrapper, { component: composition }, /* @__PURE__ */ import_react7.default.createElement(
615
615
  UniformComponent,
616
616
  {
617
617
  data: composition,
@@ -620,7 +620,7 @@ var UniformPlayground = ({
620
620
  contextualEditingDefaultPlaceholder
621
621
  },
622
622
  children
623
- );
623
+ ));
624
624
  decorators.forEach((Decorator) => {
625
625
  component = /* @__PURE__ */ import_react7.default.createElement(Decorator, { data: composition }, component);
626
626
  });
@@ -638,7 +638,7 @@ var UniformPlayground = ({
638
638
  {
639
639
  value: { data: composition, behaviorTracking, resolveRenderer, isContextualEditing }
640
640
  },
641
- /* @__PURE__ */ import_react7.default.createElement(ContextualEditingComponentWrapper, { component: composition }, renderedComponent)
641
+ renderedComponent
642
642
  );
643
643
  };
644
644
 
package/dist/index.mjs CHANGED
@@ -577,7 +577,7 @@ var UniformPlayground = ({
577
577
  if (!composition) {
578
578
  return null;
579
579
  }
580
- let component = /* @__PURE__ */ React7.createElement(
580
+ let component = /* @__PURE__ */ React7.createElement(ContextualEditingComponentWrapper, { component: composition }, /* @__PURE__ */ React7.createElement(
581
581
  UniformComponent,
582
582
  {
583
583
  data: composition,
@@ -586,7 +586,7 @@ var UniformPlayground = ({
586
586
  contextualEditingDefaultPlaceholder
587
587
  },
588
588
  children
589
- );
589
+ ));
590
590
  decorators.forEach((Decorator) => {
591
591
  component = /* @__PURE__ */ React7.createElement(Decorator, { data: composition }, component);
592
592
  });
@@ -604,7 +604,7 @@ var UniformPlayground = ({
604
604
  {
605
605
  value: { data: composition, behaviorTracking, resolveRenderer, isContextualEditing }
606
606
  },
607
- /* @__PURE__ */ React7.createElement(ContextualEditingComponentWrapper, { component: composition }, renderedComponent)
607
+ renderedComponent
608
608
  );
609
609
  };
610
610
 
package/package.json CHANGED
@@ -1,24 +1,14 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "19.54.3-alpha.3+c24f64403",
3
+ "version": "19.54.3-alpha.5+014bd6280",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.esm.js",
8
6
  "exports": {
9
7
  ".": {
10
- "import": {
11
- "types": "./dist/index.d.mts",
12
- "node": "./dist/index.mjs",
13
- "default": "./dist/index.esm.js"
14
- },
15
- "require": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.js"
18
- }
8
+ "import": "./dist/index.mjs",
9
+ "require": "./dist/index.js"
19
10
  },
20
11
  "./core": {
21
- "types": "./dist/core.d.ts",
22
12
  "import": "./dist/core.mjs",
23
13
  "require": "./dist/core.js"
24
14
  }
@@ -26,7 +16,7 @@
26
16
  "types": "./dist/index.d.ts",
27
17
  "typesVersions": {
28
18
  "*": {
29
- "*": [
19
+ ".": [
30
20
  "./dist/index.d.ts"
31
21
  ],
32
22
  "core": [
@@ -45,10 +35,10 @@
45
35
  "document": "api-extractor run --local"
46
36
  },
47
37
  "dependencies": {
48
- "@uniformdev/canvas": "19.54.3-alpha.3+c24f64403",
49
- "@uniformdev/context": "19.54.3-alpha.3+c24f64403",
50
- "@uniformdev/context-react": "19.54.3-alpha.3+c24f64403",
51
- "@uniformdev/richtext": "19.54.3-alpha.3+c24f64403"
38
+ "@uniformdev/canvas": "19.54.3-alpha.5+014bd6280",
39
+ "@uniformdev/context": "19.54.3-alpha.5+014bd6280",
40
+ "@uniformdev/context-react": "19.54.3-alpha.5+014bd6280",
41
+ "@uniformdev/richtext": "19.54.3-alpha.5+014bd6280"
52
42
  },
53
43
  "peerDependencies": {
54
44
  "react": ">= 16 || 17 || 18",
@@ -65,5 +55,5 @@
65
55
  "publishConfig": {
66
56
  "access": "public"
67
57
  },
68
- "gitHead": "c24f64403ca47e28674e94da9ab1566671f398fc"
58
+ "gitHead": "014bd628043639e39e853dfdc2a7f1d2da340854"
69
59
  }