@pixerate/editor-react 0.78.1 → 0.80.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-VKWTKESA.js} +5 -5
- 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 +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/paint-editor/index.cjs +734 -19
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +22 -3
- package/dist/paint-editor/index.d.ts +22 -3
- package/dist/paint-editor/index.js +173 -19
- package/dist/paint-editor/index.js.map +1 -1
- 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-VKWTKESA.js.map} +0 -0
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
useImageEditor,
|
|
19
19
|
useImageEffectsTools,
|
|
20
20
|
useImageHistogram
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-7RMNM3KC.js";
|
|
23
|
-
import "../chunk-ZQZAKUUM.js";
|
|
21
|
+
} from "../chunk-VKWTKESA.js";
|
|
24
22
|
import "../chunk-MO354USR.js";
|
|
23
|
+
import "../chunk-WOQ3H7KA.js";
|
|
24
|
+
import "../chunk-ZQZAKUUM.js";
|
|
25
25
|
export {
|
|
26
26
|
AdjustmentLayersPanel,
|
|
27
27
|
BrushOptionsBar,
|
package/dist/index.cjs
CHANGED
|
@@ -4914,7 +4914,7 @@ function EffectThumbnail({ provider, effect, width = 96, height = 54, className
|
|
|
4914
4914
|
var import_react42 = require("react");
|
|
4915
4915
|
var import_effects2 = require("@pixerate/editor/effects");
|
|
4916
4916
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
4917
|
-
function EffectsBrowser({ provider, uses, onPick, thumbnails = true, title = "Effects", className = "" }) {
|
|
4917
|
+
function EffectsBrowser({ provider, uses, kinds, onPick, thumbnails = true, title = "Effects", className = "" }) {
|
|
4918
4918
|
const [all, setAll] = (0, import_react42.useState)([]);
|
|
4919
4919
|
const [query, setQuery] = (0, import_react42.useState)("");
|
|
4920
4920
|
const [category, setCategory] = (0, import_react42.useState)("");
|
|
@@ -4940,8 +4940,8 @@ function EffectsBrowser({ provider, uses, onPick, thumbnails = true, title = "Ef
|
|
|
4940
4940
|
live = false;
|
|
4941
4941
|
};
|
|
4942
4942
|
}, [provider, query, category, use]);
|
|
4943
|
-
const allowed = (e) => (uses ? e.kind !== "motion" || uses.includes("motion") : e.kind !== "motion") && (!uses || e.uses.some((u) => uses.includes(u)));
|
|
4944
|
-
const categories = (0, import_react42.useMemo)(() => [...new Set(all.filter(allowed).map((e) => e.category))], [all, uses]);
|
|
4943
|
+
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)));
|
|
4944
|
+
const categories = (0, import_react42.useMemo)(() => [...new Set(all.filter(allowed).map((e) => e.category))], [all, uses, kinds]);
|
|
4945
4945
|
const shown = found.filter(allowed);
|
|
4946
4946
|
if (!provider)
|
|
4947
4947
|
return /* @__PURE__ */ (0, import_jsx_runtime24.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." });
|