@txstate-mws/svelte-components 1.5.12 → 1.5.13

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.
@@ -302,7 +302,7 @@ $: hasSelected = showSelected && !hideSelectedIndicator && items.some(itm => 'va
302
302
  ><slot {item} label={item.label || item.value} hilited={i === hilited} selected={value === item.value}>{item.label || item.value}</slot></li>
303
303
  {:else if 'divider' in item && item.divider}
304
304
  <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
305
- <li class={`divider ${menuDividerClass}`} on:mousedown|stopPropagation|preventDefault class:group={isNotBlank(item.label)}>{item.label}</li>
305
+ <li class={`divider ${menuDividerClass}`} on:mousedown|stopPropagation|preventDefault={() => {}} class:group={isNotBlank(item.label)}>{item.label}</li>
306
306
  {/if}
307
307
  {/each}
308
308
  {#if !hasMeaningfulItems}
@@ -1,7 +1,7 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import { Store } from '@txstate-mws/svelte-store';
3
3
  import type { GlueAlignOpts, GlueAlignStore } from '../actions';
4
- import type { PopupMenuTypes } from '../types';
4
+ import type { PopupMenuItem, PopupMenuTypes } from '../types';
5
5
  declare const __propDef: {
6
6
  props: {
7
7
  /** The DOM element that will act as the "button" for this menu. The menu will be placed next to the
@@ -46,12 +46,6 @@ declare const __propDef: {
46
46
  hideEmptyText?: boolean | undefined;
47
47
  usemenurole?: boolean | undefined;
48
48
  };
49
- events: {
50
- mousedown: MouseEvent;
51
- change: CustomEvent<any>;
52
- } & {
53
- [evt: string]: CustomEvent<any>;
54
- };
55
49
  slots: {
56
50
  default: {
57
51
  item: PopupMenuTypes;
@@ -61,6 +55,9 @@ declare const __propDef: {
61
55
  };
62
56
  noresults: {};
63
57
  };
58
+ events: {
59
+ change: CustomEvent<PopupMenuItem>;
60
+ };
64
61
  };
65
62
  export type PopupMenuProps = typeof __propDef.props;
66
63
  export type PopupMenuEvents = typeof __propDef.events;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@txstate-mws/svelte-components",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "description": "Svelte components that are generically useful.",
5
5
  "scripts": {
6
6
  "prepublishOnly": "svelte-package",
@@ -21,15 +21,15 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@playwright/test": "^1.18.1",
24
- "@sveltejs/adapter-auto": "^2.0.0",
25
- "@sveltejs/kit": "^1.0.1",
24
+ "@sveltejs/adapter-auto": "^3.0.0",
25
+ "@sveltejs/kit": "^2.0.0",
26
26
  "@sveltejs/package": "^2.0.2",
27
27
  "@types/tabbable": "^3.1.2",
28
- "eslint-config-standard-with-typescript": "^39.0.0",
28
+ "eslint-config-standard-with-typescript": "^43.0.0",
29
29
  "eslint-plugin-svelte": "^2.0.0",
30
30
  "svelte-check": "^3.0.1",
31
31
  "svelte-preprocess": "^5.0.0",
32
- "svelte2tsx": "^0.6.0",
32
+ "svelte2tsx": "^0.7.0",
33
33
  "tslib": "^2.3.1",
34
34
  "typescript": "^5.0.4"
35
35
  },