@pixerate/editor-react 0.78.1 → 0.79.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/animation-editor/index.cjs +679 -37
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.d.cts +29 -3
- package/dist/animation-editor/index.d.ts +29 -3
- package/dist/animation-editor/index.js +128 -37
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/{chunk-S5SSL3ZO.js → chunk-BVP43EWA.js} +2 -2
- package/dist/{chunk-7RMNM3KC.js → chunk-WOQ3H7KA.js} +4 -4
- package/dist/chunk-WOQ3H7KA.js.map +1 -0
- package/dist/effects/index.cjs +3 -3
- package/dist/effects/index.cjs.map +1 -1
- package/dist/effects/index.d.cts +4 -2
- package/dist/effects/index.d.ts +4 -2
- package/dist/effects/index.js +1 -1
- package/dist/image-editor/index.cjs +3 -3
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.js +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/vector/index.cjs +649 -9
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +27 -3
- package/dist/vector/index.d.ts +27 -3
- package/dist/vector/index.js +98 -9
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.cjs +3 -3
- package/dist/video-editor/index.cjs.map +1 -1
- package/dist/video-editor/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-7RMNM3KC.js.map +0 -1
- /package/dist/{chunk-S5SSL3ZO.js.map → chunk-BVP43EWA.js.map} +0 -0
|
@@ -1223,7 +1223,7 @@ function EffectThumbnail({ provider, effect, width = 96, height = 54, className
|
|
|
1223
1223
|
var import_react10 = require("react");
|
|
1224
1224
|
var import_effects2 = require("@pixerate/editor/effects");
|
|
1225
1225
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1226
|
-
function EffectsBrowser({ provider, uses, onPick, thumbnails = true, title = "Effects", className = "" }) {
|
|
1226
|
+
function EffectsBrowser({ provider, uses, kinds, onPick, thumbnails = true, title = "Effects", className = "" }) {
|
|
1227
1227
|
const [all, setAll] = (0, import_react10.useState)([]);
|
|
1228
1228
|
const [query, setQuery] = (0, import_react10.useState)("");
|
|
1229
1229
|
const [category, setCategory] = (0, import_react10.useState)("");
|
|
@@ -1249,8 +1249,8 @@ function EffectsBrowser({ provider, uses, onPick, thumbnails = true, title = "Ef
|
|
|
1249
1249
|
live = false;
|
|
1250
1250
|
};
|
|
1251
1251
|
}, [provider, query, category, use]);
|
|
1252
|
-
const allowed = (e) => (uses ? e.kind !== "motion" || uses.includes("motion") : e.kind !== "motion") && (!uses || e.uses.some((u) => uses.includes(u)));
|
|
1253
|
-
const categories = (0, import_react10.useMemo)(() => [...new Set(all.filter(allowed).map((e) => e.category))], [all, uses]);
|
|
1252
|
+
const allowed = (e) => (!kinds || kinds.includes(e.kind)) && (uses ? e.kind !== "motion" || uses.includes("motion") : e.kind !== "motion") && (!uses || e.uses.some((u) => uses.includes(u)));
|
|
1253
|
+
const categories = (0, import_react10.useMemo)(() => [...new Set(all.filter(allowed).map((e) => e.category))], [all, uses, kinds]);
|
|
1254
1254
|
const shown = found.filter(allowed);
|
|
1255
1255
|
if (!provider)
|
|
1256
1256
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `rounded-md border border-dashed border-border p-3 text-xs text-muted-foreground ${className}`, "data-effects-browser": "", "data-effects-unavailable": "", children: "No effects provider is registered, so effects cannot be added. Effects already in the document are kept." });
|