@csedl/hotwire-svelte-helpers 2.2.1 → 2.2.2
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.
- package/README.md +1 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Dropdown with stimulus, based on floating-UI.
|
|
|
6
6
|
|
|
7
7
|
**Links:**
|
|
8
8
|
- [Online Demo App](https://hotwire-svelte-helpers.sedlmair.ch/)
|
|
9
|
-
- [Ruby Gem:
|
|
9
|
+
- [Ruby Gem: stimulus-overlay-helpers](https://gitlab.com/sedl/stimulus-overlay-helpers)
|
|
10
10
|
- [How we are building a Rails App](https://dev.to/chmich/setup-vite-svelte-inertia-stimulus-bootstrap-foundation-on-rails-7-overview-1bk1)
|
|
11
11
|
|
|
12
12
|
## Setup
|
|
@@ -124,11 +124,6 @@ This behaviour can be stopped on:
|
|
|
124
124
|
|
|
125
125
|
The functions of this package are intended to give flexibility on various ways building a dropdownSvelte.
|
|
126
126
|
|
|
127
|
-
- Stimulus Controller with Rails Helper
|
|
128
|
-
- Example: [Stimulus controller within this package](https://gitlab.com/sedl/csedl-stimulus-dropdown-js/-/blob/main/src/dropdown-controller.js?ref_type=heads)
|
|
129
|
-
- Stimulus with Svelte component
|
|
130
|
-
- Example: [Stimulus controller on example app](https://gitlab.com/sedl/stimulusfloatingdropdown/-/blob/main/app/frontend/javascript/svelte-dropdown-controller.js?ref_type=heads)
|
|
131
|
-
|
|
132
127
|
**Important:** When creating or initializing the dropdownSvelte,
|
|
133
128
|
always call the initialize function before attaching a listener to the panel's close event.
|
|
134
129
|
The initialize function adds a `close` event listener to the panel that executes the `onPanelClose` function.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csedl/hotwire-svelte-helpers",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Hotwire + Svelte helpers for Rails: Stimulus floating dropdowns/toolips + Svelte global panels/modals + RTurbo-friendly utilities. Build together with the rubygem svelte-on-rails and its npm-package.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|