@csedl/hotwire-svelte-helpers 1.0.0 → 1.1.0

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 CHANGED
@@ -12,12 +12,12 @@ Dropdown with stimulus, based on floating-UI.
12
12
  ## Import and config
13
13
 
14
14
  ```javascript
15
- import {HotwireSvelteHelpers} from "@csedl/hotwire-svelte-helpers"
15
+ import {HotwireSvelteHelpers} from "@csedl/hotwire-svelte-helpers/init"
16
16
  HotwireSvelteHelpers.debug = true
17
17
  HotwireSvelteHelpers.initializeOverlays()
18
18
  ```
19
19
 
20
- All configurations and their defaults are as follows:
20
+ Options are:
21
21
 
22
22
  ```javascript
23
23
  HotwireSvelteHelpers.initializeOverlays({
package/index.js CHANGED
@@ -1,12 +1,8 @@
1
1
 
2
- import HotwireSvelteHelpers from "./src/lib/config.js";
3
2
  import { cleanMount, unmountAllDetached } from './src/svelte/cleanMount';
4
3
  import {initializeDropdown, openDropdownPanel, getOrSetPanelId, debugLog} from './src/lib/utils.js'
5
4
 
6
-
7
-
8
5
  export {
9
- HotwireSvelteHelpers,
10
6
  cleanMount, unmountAllDetached,
11
7
  initializeDropdown, openDropdownPanel, getOrSetPanelId, debugLog
12
8
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@csedl/hotwire-svelte-helpers",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
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": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "exports": {
10
- ".": "./index.js"
10
+ ".": "./index.js",
11
+ "./init": "./src/lib/config.js"
11
12
  },
12
13
  "repository": {
13
14
  "type": "git",
package/src/lib/config.js CHANGED
@@ -82,4 +82,4 @@ const HotwireSvelteHelpers = {
82
82
 
83
83
  window.HotwireSvelteHelpers = HotwireSvelteHelpers;
84
84
 
85
- export default HotwireSvelteHelpers;
85
+ export {HotwireSvelteHelpers};