fuma 1.0.14 → 1.0.15

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.
@@ -55,7 +55,7 @@
55
55
  <FormControl {...$$restProps} let:key>
56
56
  <div class="bordered relative rounded-lg border">
57
57
  {#if editor}
58
- <ToolsBar {editor} class={classToolbar} />
58
+ <ToolsBar {editor} class={classToolbar} on:insertMedia />
59
59
  {/if}
60
60
  <div bind:this={element} class="min-h-[20rem] p-4 pb-10" />
61
61
  </div>
@@ -19,6 +19,7 @@ declare const __propDef: {
19
19
  classToolbar?: string | undefined;
20
20
  };
21
21
  events: {
22
+ insertMedia: CustomEvent<void>;
22
23
  change: CustomEvent<void>;
23
24
  } & {
24
25
  [evt: string]: CustomEvent<any>;
@@ -56,9 +56,6 @@
56
56
 
57
57
  <div class="mx-1 my-auto h-6 border border-y-0 border-l-0" />
58
58
 
59
- <ToolMenuInsert
60
- {editor}
61
- on:insertMedia={() => toast.warning('TODO: import SelectMedia like benev.io')}
62
- />
59
+ <ToolMenuInsert {editor} on:insertMedia />
63
60
  </div>
64
61
  </div>
@@ -6,6 +6,8 @@ declare const __propDef: {
6
6
  class?: string | undefined;
7
7
  };
8
8
  events: {
9
+ insertMedia: CustomEvent<void>;
10
+ } & {
9
11
  [evt: string]: CustomEvent<any>;
10
12
  };
11
13
  slots: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",