@pixerate/editor-svelte 0.78.0 → 0.78.1

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.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { BLEND_MODES, type BlendMode, type PaintEditorController, type PaintLayerInfo } from '@pixerate/editor/paint-editor';
2
+ import { BLEND_MENU_GROUPS, type BlendMode, type PaintEditorController, type PaintLayerInfo } from '@pixerate/editor/paint-editor';
3
3
  import { untrack } from 'svelte';
4
4
  import { attempt, button, chip, paintEditorState, panel } from './paintEditorRune.svelte.js';
5
5
 
@@ -91,8 +91,12 @@
91
91
  <span class="w-14 text-slate-400">Blend</span>
92
92
  <select aria-label="Layer blend" value={active.blend} onchange={(e) => run(() => controller.updateLayer(active.id, { blend: e.currentTarget.value as BlendMode }))} class="flex-1 rounded bg-slate-800 px-1 py-0.5">
93
93
  {#if active.type === 'group'}<option value="pass-through">Pass through</option>{/if}
94
- {#each BLEND_MODES as m (m.id)}
95
- <option value={m.id}>{m.label}</option>
94
+ {#each BLEND_MENU_GROUPS as g (g.label)}
95
+ <optgroup label={g.label}>
96
+ {#each g.modes as m (m.id)}
97
+ <option value={m.id} title={m.description}>{m.label}</option>
98
+ {/each}
99
+ </optgroup>
96
100
  {/each}
97
101
  </select>
98
102
  </label>
@@ -1 +1 @@
1
- {"version":3,"file":"PaintLayersPanel.svelte.d.ts","sourceRoot":"","sources":["../../src/paint-editor/PaintLayersPanel.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+B,KAAK,qBAAqB,EAAuB,MAAM,+BAA+B,CAAC;AAK3H,UAAU,KAAK;IACb,UAAU,EAAE,qBAAqB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAwFH,QAAA,MAAM,gBAAgB,2CAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"PaintLayersPanel.svelte.d.ts","sourceRoot":"","sources":["../../src/paint-editor/PaintLayersPanel.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqC,KAAK,qBAAqB,EAAuB,MAAM,+BAA+B,CAAC;AAKjI,UAAU,KAAK;IACb,UAAU,EAAE,qBAAqB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA4FH,QAAA,MAAM,gBAAgB,2CAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-svelte",
3
- "version": "0.78.0",
3
+ "version": "0.78.1",
4
4
  "description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -139,7 +139,7 @@
139
139
  "@tiptap/extension-bubble-menu": "^2.11.5",
140
140
  "@tiptap/extension-placeholder": "^2.11.5",
141
141
  "@tiptap/starter-kit": "^2.11.5",
142
- "@pixerate/editor": "0.106.0"
142
+ "@pixerate/editor": "0.107.0"
143
143
  },
144
144
  "peerDependencies": {
145
145
  "@dagrejs/dagre": "^1.1.4",