@pixerate/editor-react 0.63.0 → 0.64.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.
@@ -166,16 +166,32 @@ interface LayersPanelProps {
166
166
  psd?: boolean;
167
167
  /** Base name of exported PSD files (default `image`). */
168
168
  psdFileName?: string;
169
+ /** Show the active layer's effects section (default true). */
170
+ effects?: boolean;
169
171
  className?: string;
170
172
  }
171
173
  /**
172
174
  * The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
173
175
  * mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
174
176
  * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
175
- * (right-click a row, or the ⋯ button). Every action is one undo step on the controller.
177
+ * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
178
+ * on or off) and the active layer's effects. Every action is one undo step on the controller.
176
179
  */
177
180
  declare const LayersPanel: React__default.FC<LayersPanelProps>;
178
181
 
182
+ interface LayerEffectsPanelProps {
183
+ controller: ImageEditorController;
184
+ /** The layer whose effects to show (default: the active layer). */
185
+ layerId?: string | null;
186
+ className?: string;
187
+ }
188
+ /**
189
+ * A layer's effects (Photoshop's layer styles): the master switch, Scale Effects, an "Add effect"
190
+ * menu, and each effect with its enabled toggle, remove button and, when expanded, its settings.
191
+ * Every change is one undo step (a slider drag is one step too).
192
+ */
193
+ declare const LayerEffectsPanel: React__default.FC<LayerEffectsPanelProps>;
194
+
179
195
  interface BrushOptionsBarProps {
180
196
  controller: ImageEditorController;
181
197
  className?: string;
@@ -189,4 +205,4 @@ interface BrushOptionsBarProps {
189
205
  */
190
206
  declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
191
207
 
192
- export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
208
+ export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
@@ -166,16 +166,32 @@ interface LayersPanelProps {
166
166
  psd?: boolean;
167
167
  /** Base name of exported PSD files (default `image`). */
168
168
  psdFileName?: string;
169
+ /** Show the active layer's effects section (default true). */
170
+ effects?: boolean;
169
171
  className?: string;
170
172
  }
171
173
  /**
172
174
  * The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
173
175
  * mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
174
176
  * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
175
- * (right-click a row, or the ⋯ button). Every action is one undo step on the controller.
177
+ * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
178
+ * on or off) and the active layer's effects. Every action is one undo step on the controller.
176
179
  */
177
180
  declare const LayersPanel: React__default.FC<LayersPanelProps>;
178
181
 
182
+ interface LayerEffectsPanelProps {
183
+ controller: ImageEditorController;
184
+ /** The layer whose effects to show (default: the active layer). */
185
+ layerId?: string | null;
186
+ className?: string;
187
+ }
188
+ /**
189
+ * A layer's effects (Photoshop's layer styles): the master switch, Scale Effects, an "Add effect"
190
+ * menu, and each effect with its enabled toggle, remove button and, when expanded, its settings.
191
+ * Every change is one undo step (a slider drag is one step too).
192
+ */
193
+ declare const LayerEffectsPanel: React__default.FC<LayerEffectsPanelProps>;
194
+
179
195
  interface BrushOptionsBarProps {
180
196
  controller: ImageEditorController;
181
197
  className?: string;
@@ -189,4 +205,4 @@ interface BrushOptionsBarProps {
189
205
  */
190
206
  declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
191
207
 
192
- export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
208
+ export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
@@ -5,12 +5,13 @@ import {
5
5
  CurvesEditor,
6
6
  Histogram,
7
7
  ImageEditor,
8
+ LayerEffectsPanel,
8
9
  LayersPanel,
9
10
  RefineEdgePanel,
10
11
  SelectionOptionsBar,
11
12
  useImageEditor,
12
13
  useImageHistogram
13
- } from "../chunk-QJSMW4CM.js";
14
+ } from "../chunk-M4WLX3IR.js";
14
15
  export {
15
16
  AdjustmentLayersPanel,
16
17
  BrushOptionsBar,
@@ -18,6 +19,7 @@ export {
18
19
  CurvesEditor,
19
20
  Histogram,
20
21
  ImageEditor,
22
+ LayerEffectsPanel,
21
23
  LayersPanel,
22
24
  RefineEdgePanel,
23
25
  SelectionOptionsBar,