@livepreso/content-react 0.6.1 → 0.6.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/CHANGELOG.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
3
  "entries": [
4
+ {
5
+ "version": "0.6.2",
6
+ "tag": "@livepreso/content-react_v0.6.2",
7
+ "date": "Tue, 25 Feb 2025 03:34:02 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "setContext(key, value) allows setting of falsy values"
12
+ }
13
+ ]
14
+ }
15
+ },
4
16
  {
5
17
  "version": "0.6.1",
6
18
  "tag": "@livepreso/content-react_v0.6.1",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @livepreso/content-react
2
2
 
3
- This log was last generated on Thu, 20 Feb 2025 01:26:11 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 25 Feb 2025 03:34:02 GMT and should not be manually modified.
4
+
5
+ ## 0.6.2
6
+ Tue, 25 Feb 2025 03:34:02 GMT
7
+
8
+ ### Patches
9
+
10
+ - setContext(key, value) allows setting of falsy values
4
11
 
5
12
  ## 0.6.1
6
13
  Thu, 20 Feb 2025 01:26:11 GMT
@@ -33,7 +33,7 @@ export function useSlideContext(contextPath = null, defaultValue = null) {
33
33
  let setData = data;
34
34
 
35
35
  if (path) {
36
- if (data) {
36
+ if (typeof data !== "undefined") {
37
37
  setPath = `${path}.${key}`;
38
38
  } else {
39
39
  setPath = path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {