eddev 0.3.12 → 0.3.14

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.
@@ -15,6 +15,7 @@ declare type BlocksContext = {
15
15
  prev?: ContentBlock;
16
16
  next?: ContentBlock;
17
17
  current: ContentBlock;
18
+ index: number;
18
19
  };
19
20
  export declare const BlocksContext: import("react").Context<BlocksContext | undefined>;
20
21
  export declare type ContentBlocksSettings = {
@@ -73,7 +73,7 @@ function ContentBlocks(props) {
73
73
  var blocks = (0, react_1.useMemo)(function () {
74
74
  return props.blocks.map(function (block, index) {
75
75
  // Create a context object for the current block
76
- var ctx = __assign(__assign({}, parentContext), { ancestors: __spreadArray(__spreadArray([], ((parentContext === null || parentContext === void 0 ? void 0 : parentContext.ancestors) || []), true), [parentContext === null || parentContext === void 0 ? void 0 : parentContext.current], false).filter(Boolean), parent: parentContext === null || parentContext === void 0 ? void 0 : parentContext.current, current: block, prev: props.blocks[index - 1], next: props.blocks[index + 1] });
76
+ var ctx = __assign(__assign({}, parentContext), { ancestors: __spreadArray(__spreadArray([], ((parentContext === null || parentContext === void 0 ? void 0 : parentContext.ancestors) || []), true), [parentContext === null || parentContext === void 0 ? void 0 : parentContext.current], false).filter(Boolean), parent: parentContext === null || parentContext === void 0 ? void 0 : parentContext.current, current: block, prev: props.blocks[index - 1], next: props.blocks[index + 1], index: index });
77
77
  // Figure out the
78
78
  var blockNode;
79
79
  if (block.blockName in blockTypes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {