wx-svelte-comments 2.2.0 → 2.2.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/license.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 XB Software Sp. z o.o.
3
+ Copyright (c) 2025 XB Software Sp. z o.o.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wx-svelte-comments",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Simple Svelte component for adding a comments section on a page",
5
5
  "productTag": "comments",
6
6
  "productTrial": false,
@@ -32,12 +32,13 @@
32
32
  },
33
33
  "homepage": "https://svar.dev/svelte/core/",
34
34
  "dependencies": {
35
- "wx-comments-locales": "2.2.0",
35
+ "wx-comments-locales": "2.2.1",
36
+ "wx-core-locales": "2.2.1",
36
37
  "wx-lib-data-provider": "1.6.0",
37
38
  "wx-lib-dom": "0.9.1",
38
39
  "wx-lib-state": "1.9.3",
39
- "wx-svelte-core": "2.2.0",
40
- "wx-svelte-menu": "2.2.0"
40
+ "wx-svelte-core": "2.2.1",
41
+ "wx-svelte-menu": "2.2.1"
41
42
  },
42
43
  "files": [
43
44
  "src",
@@ -2,6 +2,7 @@
2
2
  import Layout from "./Layout.svelte";
3
3
  import { Locale } from "wx-svelte-core";
4
4
  import { en } from "wx-comments-locales";
5
+ import { en as coreEn } from "wx-core-locales";
5
6
 
6
7
  const { ondata, onchange, value, ...props } = $props();
7
8
  const finalData = $derived(ondata && value ? ondata(value) : value);
@@ -12,7 +13,7 @@
12
13
  };
13
14
  </script>
14
15
 
15
- <Locale words={en} optional={true}>
16
+ <Locale words={{ ...coreEn, ...en }} optional={true}>
16
17
  {#await finalData}
17
18
  <Layout data={[]} {...props} onchange={handleOnchange} />
18
19
  {:then data}
@@ -174,7 +174,8 @@
174
174
  },
175
175
  ];
176
176
 
177
- let menu = $state(null);
177
+ let menu = null;
178
+ const showMenu = ev => menu.show(ev);
178
179
  </script>
179
180
 
180
181
  <!-- svelte-ignore a11y_click_events_have_key_events -->
@@ -188,7 +189,7 @@
188
189
  dataKey="commentMenuId"
189
190
  onclick={handleActionMenu}
190
191
  />
191
- <div class="wx-list" onclick={menu.show}>
192
+ <div class="wx-list" onclick={showMenu}>
192
193
  <Messages
193
194
  {author}
194
195
  {render}
package/whatsnew.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 2.2.1
2
+
3
+ ### Fixes
4
+
5
+ - Using in Salesforce environment
6
+ - Applying default base locale
7
+
1
8
  ## 2.2.0
2
9
 
3
10
  ### New features