wx-svelte-comments 2.4.0 → 2.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wx-svelte-comments",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Simple Svelte component for adding a comments section on a page",
5
5
  "productTag": "comments",
6
6
  "productTrial": false,
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "homepage": "https://svar.dev/svelte/core/",
35
35
  "dependencies": {
36
- "@svar-ui/comments-locales": "2.4.0",
37
- "@svar-ui/core-locales": "2.4.0",
36
+ "@svar-ui/comments-locales": "2.4.1",
37
+ "@svar-ui/core-locales": "2.4.1",
38
38
  "@svar-ui/lib-data-provider": "1.7.1",
39
- "@svar-ui/lib-dom": "0.11.1",
39
+ "@svar-ui/lib-dom": "0.12.0",
40
40
  "@svar-ui/lib-state": "1.9.6",
41
- "@svar-ui/svelte-core": "2.4.0",
42
- "@svar-ui/svelte-menu": "2.4.0"
41
+ "@svar-ui/svelte-core": "2.4.1",
42
+ "@svar-ui/svelte-menu": "2.4.2"
43
43
  },
44
44
  "files": [
45
45
  "src",
@@ -1,14 +1,9 @@
1
1
  <script>
2
2
  import { getContext } from "svelte";
3
+ import { setID } from "@svar-ui/lib-dom";
3
4
  import UserIcon from "./UserIcon.svelte";
4
5
 
5
- const {
6
- owned,
7
- author,
8
- date,
9
- edit,
10
- children,
11
- } = $props();
6
+ const { owned, author, date, edit, children } = $props();
12
7
 
13
8
  const dateFormatter = getContext("wx-comments-format").dateStr;
14
9
  </script>
@@ -28,7 +23,10 @@
28
23
  {dateFormatter(date)}
29
24
  </div>{/if}
30
25
  </div>
31
- <div class="wx-menu-icon" data-comment-menu-id={owned}>
26
+ <div
27
+ class="wx-menu-icon"
28
+ data-comment-menu-id={setID(owned)}
29
+ >
32
30
  <i class="wx-icon wxi-dots-v"></i>
33
31
  </div>
34
32
  </div>
@@ -1,5 +1,6 @@
1
1
  <script>
2
2
  import { getContext } from "svelte";
3
+ import { setID } from "@svar-ui/lib-dom";
3
4
  import UserIcon from "./UserIcon.svelte";
4
5
 
5
6
  const { owned, author, date, edit, children } = $props();
@@ -12,7 +13,7 @@
12
13
  <UserIcon data={author} />
13
14
  <span class="wx-author-name">{author.name}</span>
14
15
  {#if owned && owned !== edit}
15
- <div class="wx-menu-icon" data-comment-menu-id={owned}>
16
+ <div class="wx-menu-icon" data-comment-menu-id={setID(owned)}>
16
17
  <i class="wx-icon wxi-dots-v"></i>
17
18
  </div>
18
19
  {/if}
package/whatsnew.md CHANGED
@@ -1,6 +1,10 @@
1
+ ## 2.4.1
2
+
3
+ - Using Svelte Core v2.4.1
4
+
1
5
  ## 2.4.0
2
6
 
3
- - Using core@2.4.0
7
+ - Using Svelte Core v2.4.0
4
8
 
5
9
  ## 2.3.0
6
10