@csedl/svelte-on-rails 13.0.1 → 13.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 +3 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,22 +9,18 @@ npm i @csedl/svelte-on-rails
|
|
|
9
9
|
Add to your entrypoint file, like `application.js`
|
|
10
10
|
|
|
11
11
|
```javascript
|
|
12
|
-
import {SvelteOnRails} from '@csedl/svelte-on-rails/
|
|
12
|
+
import { SvelteOnRails } from '@csedl/svelte-on-rails/setup';
|
|
13
13
|
SvelteOnRails.start();
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
## Options
|
|
17
|
-
|
|
18
|
-
Run it with intensive logging: `SvelteOnRails.start({debug: true});`
|
|
19
|
-
|
|
20
16
|
## What it does
|
|
21
17
|
|
|
22
18
|
- It includes a stimulus controller that handles the initializing event of the svelte component,
|
|
23
19
|
rendered by the ruby gem. Initializing means that the component is mounted or hydrated, together
|
|
24
20
|
with the properties given by the ruby gem.
|
|
25
21
|
|
|
26
|
-
##
|
|
22
|
+
## Details
|
|
27
23
|
|
|
28
24
|
Please follow [svelte-on-rails docs](https://svelte-on-rails.dev) for more information.
|
|
29
25
|
|
|
30
|
-
The repository is shared with the
|
|
26
|
+
The repository is shared with the [svelte-on-rails](https://gitlab.com/sedl/svelte-on-rails) gem (monorepo).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csedl/svelte-on-rails",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"description": "Client-side runtime for svelte-on-rails: hydration, SSR build support & Turbo Stream actions",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": "./index.js",
|
|
15
|
-
"./
|
|
15
|
+
"./setup": "./src/config.js",
|
|
16
16
|
"./ssr": {
|
|
17
17
|
"types": "./ssr.d.ts",
|
|
18
18
|
"import": "./ssr.js",
|