@sveltia/ui 0.15.10 → 0.15.11

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.
Files changed (84) hide show
  1. package/package/components/alert/alert.svelte.d.ts +2 -0
  2. package/package/components/button/button-group.svelte.d.ts +2 -0
  3. package/package/components/button/button.svelte.d.ts +28 -26
  4. package/package/components/button/select-button-group.svelte.d.ts +2 -0
  5. package/package/components/button/select-button.svelte.d.ts +4 -2
  6. package/package/components/button/split-button.svelte.d.ts +4 -2
  7. package/package/components/calendar/calendar.svelte.d.ts +2 -0
  8. package/package/components/checkbox/checkbox-group.svelte.d.ts +2 -0
  9. package/package/components/checkbox/checkbox.svelte.d.ts +2 -0
  10. package/package/components/dialog/alert-dialog.svelte.d.ts +2 -0
  11. package/package/components/dialog/confirmation-dialog.svelte.d.ts +2 -0
  12. package/package/components/dialog/dialog.svelte.d.ts +2 -0
  13. package/package/components/dialog/prompt-dialog.svelte.d.ts +2 -0
  14. package/package/components/disclosure/disclosure.svelte.d.ts +7 -5
  15. package/package/components/divider/divider.svelte.d.ts +2 -0
  16. package/package/components/divider/spacer.svelte.d.ts +2 -0
  17. package/package/components/drawer/drawer.svelte.d.ts +2 -0
  18. package/package/components/grid/grid-body.svelte.d.ts +2 -0
  19. package/package/components/grid/grid-cell.svelte.d.ts +2 -0
  20. package/package/components/grid/grid-col-header.svelte.d.ts +2 -0
  21. package/package/components/grid/grid-foot.svelte.d.ts +2 -0
  22. package/package/components/grid/grid-head.svelte.d.ts +2 -0
  23. package/package/components/grid/grid-row-header.svelte.d.ts +2 -0
  24. package/package/components/grid/grid-row.svelte.d.ts +2 -0
  25. package/package/components/grid/grid.svelte.d.ts +2 -0
  26. package/package/components/icon/icon.svelte.d.ts +2 -0
  27. package/package/components/listbox/listbox.svelte.d.ts +4 -2
  28. package/package/components/listbox/option-group.svelte.d.ts +2 -0
  29. package/package/components/listbox/option.svelte.d.ts +2 -0
  30. package/package/components/menu/menu-button.svelte.d.ts +4 -2
  31. package/package/components/menu/menu-item-checkbox.svelte.d.ts +2 -0
  32. package/package/components/menu/menu-item-group.svelte.d.ts +2 -0
  33. package/package/components/menu/menu-item-radio.svelte.d.ts +2 -0
  34. package/package/components/menu/menu-item.svelte.d.ts +2 -0
  35. package/package/components/menu/menu.svelte.d.ts +2 -0
  36. package/package/components/radio/radio-group.svelte.d.ts +2 -0
  37. package/package/components/radio/radio.svelte.d.ts +2 -0
  38. package/package/components/select/combobox.svelte.d.ts +3 -1
  39. package/package/components/select/select-tags.svelte.d.ts +3 -1
  40. package/package/components/select/select.svelte.d.ts +3 -1
  41. package/package/components/slider/slider.svelte.d.ts +2 -0
  42. package/package/components/switch/switch.svelte.d.ts +2 -0
  43. package/package/components/table/table-body.svelte.d.ts +2 -0
  44. package/package/components/table/table-cell.svelte.d.ts +2 -0
  45. package/package/components/table/table-col-header.svelte.d.ts +2 -0
  46. package/package/components/table/table-foot.svelte.d.ts +2 -0
  47. package/package/components/table/table-head.svelte.d.ts +2 -0
  48. package/package/components/table/table-row-header.svelte.d.ts +2 -0
  49. package/package/components/table/table-row.svelte.d.ts +2 -0
  50. package/package/components/table/table.svelte.d.ts +2 -0
  51. package/package/components/tabs/tab-box.svelte.d.ts +2 -0
  52. package/package/components/tabs/tab-list.svelte.d.ts +2 -0
  53. package/package/components/tabs/tab-panel.svelte.d.ts +2 -0
  54. package/package/components/tabs/tab-panels.svelte.d.ts +2 -0
  55. package/package/components/tabs/tab.svelte.d.ts +2 -0
  56. package/package/components/text-editor/core.d.ts +2 -2
  57. package/package/components/text-editor/core.js +2 -0
  58. package/package/components/text-editor/lexical-root.svelte.d.ts +2 -0
  59. package/package/components/text-editor/text-editor.svelte.d.ts +2 -0
  60. package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +2 -0
  61. package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +2 -0
  62. package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +2 -0
  63. package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +2 -0
  64. package/package/components/text-field/number-input.svelte.d.ts +2 -0
  65. package/package/components/text-field/password-input.svelte.d.ts +2 -0
  66. package/package/components/text-field/search-bar.svelte.d.ts +10 -8
  67. package/package/components/text-field/text-area.svelte.d.ts +2 -0
  68. package/package/components/text-field/text-input.svelte.d.ts +19 -17
  69. package/package/components/toast/toast.svelte.d.ts +2 -0
  70. package/package/components/toolbar/toolbar.svelte.d.ts +3 -1
  71. package/package/components/util/app-shell.svelte +2 -489
  72. package/package/components/util/app-shell.svelte.d.ts +4 -2
  73. package/package/components/util/group.svelte.d.ts +2 -0
  74. package/package/components/util/modal.svelte.d.ts +10 -8
  75. package/package/components/util/popup.svelte.d.ts +10 -8
  76. package/package/components/util/portal.svelte.d.ts +2 -0
  77. package/package/locales/en.d.ts +48 -48
  78. package/package/locales/ja.d.ts +48 -48
  79. package/package/services/events.d.ts +1 -1
  80. package/package/services/group.d.ts +1 -1
  81. package/package/services/group.js +1 -1
  82. package/package/services/popup.d.ts +1 -2
  83. package/package/typedef.d.ts +12 -12
  84. package/package.json +36 -34
@@ -1,63 +1,63 @@
1
1
  export namespace strings {
2
- const ok: string;
3
- const cancel: string;
4
- const close: string;
5
- const clear: string;
6
- const insert: string;
7
- const update: string;
8
- const remove: string;
9
- const collapse: string;
10
- const expand: string;
2
+ let ok: string;
3
+ let cancel: string;
4
+ let close: string;
5
+ let clear: string;
6
+ let insert: string;
7
+ let update: string;
8
+ let remove: string;
9
+ let collapse: string;
10
+ let expand: string;
11
11
  namespace calendar {
12
- const year: string;
13
- const previous_decade: string;
14
- const next_decade: string;
15
- const month: string;
16
- const previous_month: string;
17
- const next_month: string;
18
- const today: string;
12
+ let year: string;
13
+ let previous_decade: string;
14
+ let next_decade: string;
15
+ let month: string;
16
+ let previous_month: string;
17
+ let next_month: string;
18
+ let today: string;
19
19
  }
20
20
  namespace split_button {
21
- const x_options: string;
22
- const more_options: string;
21
+ let x_options: string;
22
+ let more_options: string;
23
23
  }
24
24
  namespace combobox {
25
- const select_an_option: string;
26
- const filter_options: string;
27
- const no_matching_options: string;
25
+ let select_an_option: string;
26
+ let filter_options: string;
27
+ let no_matching_options: string;
28
28
  }
29
29
  namespace number_input {
30
- const decrease: string;
31
- const increase: string;
30
+ let decrease: string;
31
+ let increase: string;
32
32
  }
33
33
  namespace password_input {
34
- const show_password: string;
35
- const hide_password: string;
34
+ let show_password: string;
35
+ let hide_password: string;
36
36
  }
37
37
  namespace text_editor {
38
- const text_editor_1: string;
38
+ let text_editor_1: string;
39
39
  export { text_editor_1 as text_editor };
40
- export const text_style_options: string;
41
- export const show_text_style_options: string;
42
- export const paragraph: string;
43
- export const heading_1: string;
44
- export const heading_2: string;
45
- export const heading_3: string;
46
- export const heading_4: string;
47
- export const heading_5: string;
48
- export const heading_6: string;
49
- export const bulleted_list: string;
50
- export const numbered_list: string;
51
- export const blockquote: string;
52
- export const bold: string;
53
- export const italic: string;
54
- export const code: string;
55
- export const link: string;
56
- export const insert_link: string;
57
- export const update_link: string;
58
- export const text: string;
59
- export const url: string;
60
- export const edit_in_markdown: string;
61
- export const converter_error: string;
40
+ export let text_style_options: string;
41
+ export let show_text_style_options: string;
42
+ export let paragraph: string;
43
+ export let heading_1: string;
44
+ export let heading_2: string;
45
+ export let heading_3: string;
46
+ export let heading_4: string;
47
+ export let heading_5: string;
48
+ export let heading_6: string;
49
+ export let bulleted_list: string;
50
+ export let numbered_list: string;
51
+ export let blockquote: string;
52
+ export let bold: string;
53
+ export let italic: string;
54
+ export let code: string;
55
+ export let link: string;
56
+ export let insert_link: string;
57
+ export let update_link: string;
58
+ export let text: string;
59
+ export let url: string;
60
+ export let edit_in_markdown: string;
61
+ export let converter_error: string;
62
62
  }
63
63
  }
@@ -1,63 +1,63 @@
1
1
  export namespace strings {
2
- const ok: string;
3
- const cancel: string;
4
- const close: string;
5
- const clear: string;
6
- const insert: string;
7
- const update: string;
8
- const remove: string;
9
- const collapse: string;
10
- const expand: string;
2
+ let ok: string;
3
+ let cancel: string;
4
+ let close: string;
5
+ let clear: string;
6
+ let insert: string;
7
+ let update: string;
8
+ let remove: string;
9
+ let collapse: string;
10
+ let expand: string;
11
11
  namespace calendar {
12
- const year: string;
13
- const previous_decade: string;
14
- const next_decade: string;
15
- const month: string;
16
- const previous_month: string;
17
- const next_month: string;
18
- const today: string;
12
+ let year: string;
13
+ let previous_decade: string;
14
+ let next_decade: string;
15
+ let month: string;
16
+ let previous_month: string;
17
+ let next_month: string;
18
+ let today: string;
19
19
  }
20
20
  namespace split_button {
21
- const x_options: string;
22
- const more_options: string;
21
+ let x_options: string;
22
+ let more_options: string;
23
23
  }
24
24
  namespace combobox {
25
- const select_an_option: string;
26
- const filter_options: string;
27
- const no_matching_options: string;
25
+ let select_an_option: string;
26
+ let filter_options: string;
27
+ let no_matching_options: string;
28
28
  }
29
29
  namespace number_input {
30
- const decrease: string;
31
- const increase: string;
30
+ let decrease: string;
31
+ let increase: string;
32
32
  }
33
33
  namespace password_input {
34
- const show_password: string;
35
- const hide_password: string;
34
+ let show_password: string;
35
+ let hide_password: string;
36
36
  }
37
37
  namespace text_editor {
38
- const text_editor_1: string;
38
+ let text_editor_1: string;
39
39
  export { text_editor_1 as text_editor };
40
- export const text_style_options: string;
41
- export const show_text_style_options: string;
42
- export const paragraph: string;
43
- export const heading_1: string;
44
- export const heading_2: string;
45
- export const heading_3: string;
46
- export const heading_4: string;
47
- export const heading_5: string;
48
- export const heading_6: string;
49
- export const bulleted_list: string;
50
- export const numbered_list: string;
51
- export const blockquote: string;
52
- export const bold: string;
53
- export const italic: string;
54
- export const code: string;
55
- export const link: string;
56
- export const insert_link: string;
57
- export const update_link: string;
58
- export const text: string;
59
- export const url: string;
60
- export const edit_in_markdown: string;
61
- export const converter_error: string;
40
+ export let text_style_options: string;
41
+ export let show_text_style_options: string;
42
+ export let paragraph: string;
43
+ export let heading_1: string;
44
+ export let heading_2: string;
45
+ export let heading_3: string;
46
+ export let heading_4: string;
47
+ export let heading_5: string;
48
+ export let heading_6: string;
49
+ export let bulleted_list: string;
50
+ export let numbered_list: string;
51
+ export let blockquote: string;
52
+ export let bold: string;
53
+ export let italic: string;
54
+ export let code: string;
55
+ export let link: string;
56
+ export let insert_link: string;
57
+ export let update_link: string;
58
+ export let text: string;
59
+ export let url: string;
60
+ export let edit_in_markdown: string;
61
+ export let converter_error: string;
62
62
  }
63
63
  }
@@ -1,3 +1,3 @@
1
1
  export function isMac(): boolean;
2
2
  export function matchShortcuts(event: KeyboardEvent, shortcuts: string): boolean;
3
- export function activateKeyShortcuts(element: (HTMLInputElement | HTMLButtonElement), shortcuts?: string | undefined): import('svelte/action').ActionReturn;
3
+ export function activateKeyShortcuts(element: (HTMLInputElement | HTMLButtonElement), shortcuts?: string | undefined): import("svelte/action").ActionReturn;
@@ -1 +1 @@
1
- export function activateGroup(parent: HTMLElement, params?: object | undefined): import('svelte/action').ActionReturn;
1
+ export function activateGroup(parent: HTMLElement, params?: object | undefined): import("svelte/action").ActionReturn;
@@ -81,7 +81,7 @@ class Group {
81
81
 
82
82
  this.orientation = this.grid
83
83
  ? 'horizontal'
84
- : this.parent.getAttribute('aria-orientation') ?? orientation;
84
+ : (this.parent.getAttribute('aria-orientation') ?? orientation);
85
85
  this.childRoles = childRoles;
86
86
  this.childSelectedAttr = childSelectedAttr;
87
87
  this.childSelectedProp = childSelectedAttr.replace('aria-', '');
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  export function activatePopup(...args: any[]): Popup;
3
2
  /**
4
3
  * Implement the popup handler.
@@ -23,7 +22,7 @@ declare class Popup {
23
22
  * height: string | undefined,
24
23
  * }>}
25
24
  */
26
- style: import('svelte/store').Writable<{
25
+ style: import("svelte/store").Writable<{
27
26
  inset: string | undefined;
28
27
  zIndex: number | undefined;
29
28
  minWidth: string | undefined;
@@ -1,29 +1,29 @@
1
- type PopupPosition = ('top-left' | 'top-right' | 'right-top' | 'right-bottom' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom');
2
- type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
3
- type TextEditorBlockType = 'paragraph' | 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'bulleted-list' | 'numbered-list' | 'blockquote';
4
- type TextEditorFormatType = 'bold' | 'italic' | 'code';
5
- type TextEditorInlineType = TextEditorFormatType | 'link';
6
- type TextEditorMode = 'rich-text' | 'plain-text';
1
+ type PopupPosition = ("top-left" | "top-right" | "right-top" | "right-bottom" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom");
2
+ type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
3
+ type TextEditorBlockType = "paragraph" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "bulleted-list" | "numbered-list" | "blockquote";
4
+ type TextEditorFormatType = "bold" | "italic" | "code";
5
+ type TextEditorInlineType = TextEditorFormatType | "link";
6
+ type TextEditorMode = "rich-text" | "plain-text";
7
7
  type TextEditorState = {
8
8
  /**
9
9
  * - Lexical
10
10
  * editor instance.
11
11
  */
12
- editor: import('svelte/store').Writable<import('lexical').LexicalEditor>;
12
+ editor: import("svelte/store").Writable<import("lexical").LexicalEditor>;
13
13
  /**
14
14
  * - Random ID assigned to the editor.
15
15
  */
16
- editorId: import('svelte/store').Writable<string>;
16
+ editorId: import("svelte/store").Writable<string>;
17
17
  /**
18
18
  * - Block level
19
19
  * type of the current selection.
20
20
  */
21
- selectionBlockType: import('svelte/store').Writable<TextEditorBlockType>;
21
+ selectionBlockType: import("svelte/store").Writable<TextEditorBlockType>;
22
22
  /**
23
23
  * - Inline
24
24
  * level types of the current selection.
25
25
  */
26
- selectionInlineTypes: import('svelte/store').Writable<TextEditorInlineType[]>;
26
+ selectionInlineTypes: import("svelte/store").Writable<TextEditorInlineType[]>;
27
27
  /**
28
28
  * - Enabled modes.
29
29
  */
@@ -32,12 +32,12 @@ type TextEditorState = {
32
32
  * - Whether to use rich text mode.
33
33
  * If `false`, the editor shows the plain text editor.
34
34
  */
35
- useRichText: import('svelte/store').Writable<boolean>;
35
+ useRichText: import("svelte/store").Writable<boolean>;
36
36
  /**
37
37
  * - `true` if there was an
38
38
  * error while converting Markdown to Lexical nodes.
39
39
  */
40
- hasConverterError: import('svelte/store').Writable<boolean>;
40
+ hasConverterError: import("svelte/store").Writable<boolean>;
41
41
  /**
42
42
  * - Enabled buttons for
43
43
  * the editor.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.15.10",
3
+ "version": "0.15.11",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -12,61 +12,63 @@
12
12
  "build:watch": "svelte-kit sync && svelte-package -o package --watch",
13
13
  "preview": "vite preview",
14
14
  "prepublishOnly": "npm run build",
15
- "format": "prettier --plugin prettier-plugin-svelte --write .",
16
- "lint": "npm-run-all lint:*",
17
- "lint:cspell": "cspell --no-progress",
18
- "lint:svelte": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
19
- "lint:prettier": "prettier --check --plugin prettier-plugin-svelte .",
20
- "lint:eslint": "eslint .",
21
- "lint:stylelint": "stylelint '**/*.{css,scss,svelte}'",
15
+ "format": "prettier --write .",
16
+ "check": "npm-run-all check:*",
17
+ "check:audit": "pnpm audit",
18
+ "check:cspell": "cspell --no-progress",
19
+ "check:svelte": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
20
+ "check:prettier": "prettier --check .",
21
+ "check:eslint": "eslint .",
22
+ "check:stylelint": "stylelint '**/*.{css,scss,svelte}'",
22
23
  "test": "playwright test",
23
24
  "test:unit": "vitest"
24
25
  },
25
26
  "dependencies": {
26
- "@lexical/code": "^0.16.1",
27
- "@lexical/history": "^0.16.1",
28
- "@lexical/link": "^0.16.1",
29
- "@lexical/list": "^0.16.1",
30
- "@lexical/markdown": "^0.16.1",
31
- "@lexical/rich-text": "^0.16.1",
32
- "@lexical/selection": "^0.16.1",
33
- "@lexical/table": "^0.16.1",
34
- "@lexical/utils": "^0.16.1",
27
+ "@lexical/code": "^0.17.0",
28
+ "@lexical/dragon": "^0.17.0",
29
+ "@lexical/history": "^0.17.0",
30
+ "@lexical/link": "^0.17.0",
31
+ "@lexical/list": "^0.17.0",
32
+ "@lexical/markdown": "^0.17.0",
33
+ "@lexical/rich-text": "^0.17.0",
34
+ "@lexical/selection": "^0.17.0",
35
+ "@lexical/table": "^0.17.0",
36
+ "@lexical/utils": "^0.17.0",
35
37
  "@sveltia/utils": "^0.4.0",
36
- "lexical": "^0.16.1"
38
+ "lexical": "^0.17.0"
37
39
  },
38
40
  "peerDependencies": {
39
41
  "svelte": "^4.0.0"
40
42
  },
41
43
  "devDependencies": {
42
- "@playwright/test": "^1.45.1",
44
+ "@playwright/test": "^1.45.3",
43
45
  "@sveltejs/adapter-auto": "^3.2.2",
44
- "@sveltejs/kit": "^2.5.18",
46
+ "@sveltejs/kit": "^2.5.20",
45
47
  "@sveltejs/package": "^2.3.2",
46
48
  "@sveltejs/vite-plugin-svelte": "^3.1.1",
47
- "cspell": "^8.10.0",
49
+ "cspell": "^8.13.1",
48
50
  "eslint": "^8.57.0",
49
51
  "eslint-config-airbnb-base": "^15.0.0",
50
52
  "eslint-config-prettier": "^9.1.0",
51
53
  "eslint-plugin-import": "^2.29.1",
52
- "eslint-plugin-jsdoc": "^48.5.0",
53
- "eslint-plugin-svelte": "^2.41.0",
54
+ "eslint-plugin-jsdoc": "^48.11.0",
55
+ "eslint-plugin-svelte": "^2.43.0",
54
56
  "npm-run-all": "^4.1.5",
55
- "postcss": "^8.4.39",
57
+ "postcss": "^8.4.40",
56
58
  "postcss-html": "^1.7.0",
57
- "prettier": "^3.3.2",
58
- "prettier-plugin-svelte": "^3.2.5",
59
- "sass": "^1.77.6",
60
- "stylelint": "^16.6.1",
61
- "stylelint-config-recommended-scss": "^14.0.0",
62
- "stylelint-scss": "^6.3.2",
59
+ "prettier": "^3.3.3",
60
+ "prettier-plugin-svelte": "^3.2.6",
61
+ "sass": "^1.77.8",
62
+ "stylelint": "^16.8.1",
63
+ "stylelint-config-recommended-scss": "^14.1.0",
64
+ "stylelint-scss": "^6.4.1",
63
65
  "svelte": "^4.2.18",
64
- "svelte-check": "^3.8.4",
66
+ "svelte-check": "^3.8.5",
65
67
  "svelte-i18n": "^4.0.0",
66
- "svelte-preprocess": "^6.0.1",
68
+ "svelte-preprocess": "^6.0.2",
67
69
  "tslib": "^2.6.3",
68
- "vite": "^5.3.3",
69
- "vitest": "^1.6.0"
70
+ "vite": "^5.3.5",
71
+ "vitest": "^2.0.5"
70
72
  },
71
73
  "exports": {
72
74
  "./package.json": "./package.json",