@podlite/schema 0.0.10 → 0.0.11

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.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # @podlite/schema
2
2
 
3
3
  ## Upcoming
4
+ ## 0.0.11
5
+ - extend API by context for react component wrap function
4
6
  ## 0.0.10
5
7
  - fix helper for mkBlock
6
8
  - add Strikethrough inline element support
@@ -1 +1,2 @@
1
1
  export declare const getNodeId: (node: any, ctx: any) => any;
2
+ export declare const makeAttrs: (node: any, ctx?: import("pod6/built/helpers/config").Context) => import("pod6/built/helpers/config").Attr;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getNodeId = void 0;
6
+ exports.makeAttrs = exports.getNodeId = void 0;
7
7
  const config_1 = __importDefault(require("pod6/built/helpers/config"));
8
8
  const getNodeId = (node, ctx) => {
9
9
  const conf = (0, config_1.default)(node, ctx);
@@ -13,3 +13,4 @@ const getNodeId = (node, ctx) => {
13
13
  return node.id;
14
14
  };
15
15
  exports.getNodeId = getNodeId;
16
+ exports.makeAttrs = config_1.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podlite/schema",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "podlite schema",
5
5
  "main": "index.js",
6
6
  "types": "./lib/index.d.ts",