eddev 0.3.29 → 0.3.30

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.
@@ -62,17 +62,20 @@ function useBlockAppender() {
62
62
  }
63
63
  exports.useBlockAppender = useBlockAppender;
64
64
  function useInnerBlocks() {
65
+ var _a;
65
66
  var ctx = (0, react_1.useContext)(InlineEditingContext);
66
- return (ctx === null || ctx === void 0 ? void 0 : ctx.innerBlocks) || [];
67
+ return (_a = ctx === null || ctx === void 0 ? void 0 : ctx.innerBlocks) !== null && _a !== void 0 ? _a : [];
67
68
  }
68
69
  exports.useInnerBlocks = useInnerBlocks;
69
70
  function useBlockParents() {
71
+ var _a;
70
72
  var ctx = (0, react_1.useContext)(InlineEditingContext);
71
- return (ctx === null || ctx === void 0 ? void 0 : ctx.parents) || [];
73
+ return (_a = ctx === null || ctx === void 0 ? void 0 : ctx.parents) !== null && _a !== void 0 ? _a : [];
72
74
  }
73
75
  exports.useBlockParents = useBlockParents;
74
76
  function useBlockIndex() {
77
+ var _a;
75
78
  var ctx = (0, react_1.useContext)(InlineEditingContext);
76
- return (ctx === null || ctx === void 0 ? void 0 : ctx.index) || -1;
79
+ return (_a = ctx === null || ctx === void 0 ? void 0 : ctx.index) !== null && _a !== void 0 ? _a : -1;
77
80
  }
78
81
  exports.useBlockIndex = useBlockIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.3.29",
3
+ "version": "0.3.30",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {