@uniformdev/canvas-react
Advanced tools
Comparing version 19.199.1-alpha.8 to 19.199.1-alpha.10
@@ -297,2 +297,13 @@ import React$1, { Key, ReactNode, PropsWithChildren } from 'react'; | ||
variant?: string; | ||
dataResources?: { | ||
[key: string]: { | ||
type: string; | ||
isPatternParameter?: boolean; | ||
ignorePatternParameterDefault?: boolean; | ||
optionalPatternParameter?: boolean; | ||
variables?: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
@@ -391,2 +402,13 @@ }; | ||
variant?: string; | ||
dataResources?: { | ||
[key: string]: { | ||
type: string; | ||
isPatternParameter?: boolean; | ||
ignorePatternParameterDefault?: boolean; | ||
optionalPatternParameter?: boolean; | ||
variables?: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
@@ -600,3 +622,2 @@ }; | ||
* Learn more about the preview modes: https://docs.uniform.app/docs/guides/composition/visual-editing#editing-and-preview-mode | ||
* @deprecated this is an experimental property, it might receive breaking changes in minor releases ⚠️ | ||
*/ | ||
@@ -603,0 +624,0 @@ previewMode: UpdateContextualEditingStateInternalMessage['state']['previewMode'] | undefined; |
@@ -713,6 +713,12 @@ 'use client'; | ||
} | ||
if (__asset.type !== "image") { | ||
return null; | ||
if (__asset.type === "image") { | ||
return /* @__PURE__ */ React9.createElement("figure", null, /* @__PURE__ */ React9.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ React9.createElement("figcaption", null, __asset.fields.description.value) : null); | ||
} | ||
return /* @__PURE__ */ React9.createElement("figure", null, /* @__PURE__ */ React9.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ React9.createElement("figcaption", null, __asset.fields.description.value) : null); | ||
if (__asset.type === "video") { | ||
return /* @__PURE__ */ React9.createElement("video", { src: __asset.fields.url.value, controls: true }); | ||
} | ||
if (__asset.type === "audio") { | ||
return /* @__PURE__ */ React9.createElement("audio", { src: __asset.fields.url.value, controls: true }); | ||
} | ||
return null; | ||
}; | ||
@@ -719,0 +725,0 @@ |
@@ -737,6 +737,12 @@ 'use client'; | ||
} | ||
if (__asset.type !== "image") { | ||
return null; | ||
if (__asset.type === "image") { | ||
return /* @__PURE__ */ import_react11.default.createElement("figure", null, /* @__PURE__ */ import_react11.default.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ import_react11.default.createElement("figcaption", null, __asset.fields.description.value) : null); | ||
} | ||
return /* @__PURE__ */ import_react11.default.createElement("figure", null, /* @__PURE__ */ import_react11.default.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ import_react11.default.createElement("figcaption", null, __asset.fields.description.value) : null); | ||
if (__asset.type === "video") { | ||
return /* @__PURE__ */ import_react11.default.createElement("video", { src: __asset.fields.url.value, controls: true }); | ||
} | ||
if (__asset.type === "audio") { | ||
return /* @__PURE__ */ import_react11.default.createElement("audio", { src: __asset.fields.url.value, controls: true }); | ||
} | ||
return null; | ||
}; | ||
@@ -743,0 +749,0 @@ |
{ | ||
"name": "@uniformdev/canvas-react", | ||
"version": "19.199.1-alpha.8+8e9e9ec9d1", | ||
"version": "19.199.1-alpha.10+7f62130189", | ||
"description": "React SDK for Uniform Canvas", | ||
@@ -48,6 +48,6 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"dependencies": { | ||
"@uniformdev/canvas": "19.199.1-alpha.8+8e9e9ec9d1", | ||
"@uniformdev/context": "19.199.1-alpha.8+8e9e9ec9d1", | ||
"@uniformdev/context-react": "19.199.1-alpha.8+8e9e9ec9d1", | ||
"@uniformdev/richtext": "19.199.1-alpha.8+8e9e9ec9d1" | ||
"@uniformdev/canvas": "19.199.1-alpha.10+7f62130189", | ||
"@uniformdev/context": "19.199.1-alpha.10+7f62130189", | ||
"@uniformdev/context-react": "19.199.1-alpha.10+7f62130189", | ||
"@uniformdev/richtext": "19.199.1-alpha.10+7f62130189" | ||
}, | ||
@@ -60,3 +60,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@types/react": "18.3.3", | ||
"@types/react": "18.3.11", | ||
"immer": "10.1.1", | ||
@@ -72,3 +72,3 @@ "react": "18.3.1", | ||
}, | ||
"gitHead": "8e9e9ec9d1fb834f92360e8c80771dd037fbc21a" | ||
"gitHead": "7f62130189d43f7ecaaed0a41c929e5c166860d2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
13
205778
14
4129