Skip to content

Commit

Permalink
bump netlify node to v18, update readme + deps
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed May 29, 2022
1 parent 2b0c453 commit 586c724
Show file tree
Hide file tree
Showing 5 changed files with 471 additions and 634 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ command = "yarn build"
publish = "build"

[build.environment]
NODE_VERSION = "17.6.0"
NODE_VERSION = "18.0.0"
YARN_VERSION = "1.22.17"
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@
"test": "vitest"
},
"devDependencies": {
"@sveltejs/adapter-static": "^1.0.0-next.29",
"@sveltejs/kit": "^1.0.0-next.308",
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.41",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"@vitest/ui": "^0.9.0",
"c8": "^7.11.0",
"eslint": "^8.12.0",
"eslint-plugin-svelte3": "^3.4.1",
"@sveltejs/adapter-static": "^1.0.0-next.32",
"@sveltejs/kit": "^1.0.0-next.345",
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.45",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"@vitest/ui": "^0.13.0",
"c8": "^7.11.3",
"eslint": "^8.16.0",
"eslint-plugin-svelte3": "^4.0.0",
"hastscript": "^7.0.2",
"jsdom": "^19.0.0",
"mdsvex": "^0.10.5",
"playwright": "^1.20.2",
"mdsvex": "^0.10.6",
"playwright": "^1.22.2",
"prettier": "^2.6.2",
"prettier-plugin-svelte": "^2.6.0",
"prettier-plugin-svelte": "^2.7.0",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",
"svelte": "^3.46.6",
"svelte-check": "^2.4.6",
"svelte": "^3.48.0",
"svelte-check": "^2.7.1",
"svelte-github-corner": "^0.1.0",
"svelte-preprocess": "^4.10.5",
"svelte-preprocess": "^4.10.6",
"svelte-toc": "^0.2.9",
"svelte2tsx": "^0.5.6",
"tslib": "^2.3.1",
"typescript": "^4.6.3",
"vite": "^2.9.1",
"vitest": "^0.9.0"
"svelte2tsx": "^0.5.10",
"tslib": "^2.4.0",
"typescript": "^4.7.2",
"vite": "^2.9.9",
"vitest": "^0.13.0"
},
"keywords": [
"svelte",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ Full list of props/bindable variables for this component:
| `searchText` | `` | Text the user-entered to filter down on the list of options. Binds both ways, i.e. can also be used to set the input text. |
| `activeOption` | `null` | Currently active option, i.e. the one the user currently hovers or navigated to with arrow keys. |
| `maxSelect` | `null` | Positive integer to limit the number of options users can pick. `null` means no limit. |
| `selected` | `[]` | Array of currently/pre-selected options when binding/passing as props respectively. |
| `selected` | `[]` | Array of currently selected options. Can be bound to `bind:selected={[1, 2, 3]}` to control component state externally or passed as prop to set pre-selected options that will already be populated when component mounts before any user interaction. |
| `selectedLabels` | `[]` | Labels of currently selected options. Exposed just for convenience, equivalent to `selected.map(op => op.label)` when options are objects. If options are simple strings, `selected === selectedLabels`. Supports binding but is read-only, i.e. since this value is reactive to `selected`, you cannot control `selected` by changing `bind:selectedLabels`. |
| `selectedValues` | `[]` | Values of currently selected options. Exposed just for convenience, equivalent to `selected.map(op => op.value)` when options are objects. If options are simple strings, `selected === selectedValues`. Supports binding but is read-only, i.e. since this value is reactive to `selected`, you cannot control `selected` by changing `bind:selectedValues`. |
| `sortSelected` | `boolean \| ((op1, op2) => number)` | Default behavior is to render selected items in the order they were chosen. `sortSelected={true}` uses default JS array sorting. A compare function enables custom logic for sorting selected options. See the [`/sort-selected`](https://svelte-multiselect.netlify.app/sort-selected) example. |
| `noOptionsMsg` | `'No matching options'` | What message to show if no options match the user-entered search string. |
| `disabled` | `false` | Disable the component. It will still be rendered but users won't be able to interact with it. |
| `disabledTitle` | `This field is disabled` | Tooltip text to display on hover when the component is in `disabled` state. |
| `disabledTitle` | `'This field is disabled'` | Tooltip text to display on hover when the component is in `disabled` state. |
| `placeholder` | `undefined` | String shown in the text input when no option is selected. |
| `input` | `null` | Handle to the `<input>` DOM node. Only available after component mounts (`null` before then). |
| `outerDiv` | `null` | Handle to outer `<div class="multiselect">` that wraps the whole component. Only available after component mounts (`null` before then). |
Expand Down
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<link rel="icon" href="/favicon.svg" />
<link rel="stylesheet" href="/prism-vsc-dark-plus.css" />

%svelte.head%
%sveltekit.head%
</head>

<body>
Expand All @@ -32,6 +32,6 @@
</symbol>
</svg>

<div>%svelte.body%</div>
<div>%sveltekit.body%</div>
</body>
</html>
Loading

0 comments on commit 586c724

Please sign in to comment.