@pixerate/editor-svelte 0.83.0 → 0.84.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.
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { ImageEditorController, Intent } from '@pixerate/editor/image-editor';
3
- import { INTENT_OPTIONS, PROOF_PROFILE_OPTIONS, WORKING_SPACE_OPTIONS, colorPanelView } from '@pixerate/editor/image-editor';
3
+ import { COLOR_MODE_OPTIONS, INTENT_OPTIONS, PROOF_PROFILE_OPTIONS, WORKING_SPACE_OPTIONS, colorPanelView } from '@pixerate/editor/image-editor';
4
4
  import { untrack } from 'svelte';
5
5
 
6
6
  interface Props {
@@ -56,6 +56,17 @@
56
56
  <span class="text-slate-400">Profile</span>
57
57
  <span data-testid="color-profile-name">{view.profileName}</span>
58
58
  </div>
59
+ <div class="flex flex-wrap items-center gap-1" role="group" aria-label="Colour mode">
60
+ <span class="text-slate-400">Mode</span>
61
+ <select aria-label="Colour mode" class={select} value={view.mode} onchange={(e) => attempt(() => controller.setColorMode((e.target as HTMLSelectElement).value as 'rgb' | 'cmyk' | 'lab'))}>
62
+ {#each COLOR_MODE_OPTIONS as o (o.id)}
63
+ <option value={o.id} title={o.title}>{o.label}</option>
64
+ {/each}
65
+ </select>
66
+ {#if view.cmykProfileName}
67
+ <span class="text-slate-400">{view.cmykProfileName}</span>
68
+ {/if}
69
+ </div>
59
70
  <div class="flex flex-wrap items-center gap-1" role="group" aria-label="Assign or convert">
60
71
  <select aria-label="Target profile" class={select} value={target} onchange={(e) => (target = (e.target as HTMLSelectElement).value)}>
61
72
  {#each WORKING_SPACE_OPTIONS as o (o.id)}
@@ -1 +1 @@
1
- {"version":3,"file":"ColorProfilePanel.svelte.d.ts","sourceRoot":"","sources":["../../src/image-editor/ColorProfilePanel.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAU,MAAM,+BAA+B,CAAC;AAKjF,UAAU,KAAK;IACb,UAAU,EAAE,qBAAqB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA4GH,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"ColorProfilePanel.svelte.d.ts","sourceRoot":"","sources":["../../src/image-editor/ColorProfilePanel.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAU,MAAM,+BAA+B,CAAC;AAKjF,UAAU,KAAK;IACb,UAAU,EAAE,qBAAqB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAuHH,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-svelte",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
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.114.0"
142
+ "@pixerate/editor": "0.115.0"
143
143
  },
144
144
  "peerDependencies": {
145
145
  "@dagrejs/dagre": "^1.1.4",