@plaudit/gutenberg-api-extensions 2.0.0 → 2.0.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.
@@ -1,9 +1,8 @@
1
- import type { BlockIcon } from "@wordpress/blocks";
2
1
  import type { PickableOptions, SimpleBlockControlProps } from "./types";
3
- import React from "react";
2
+ import React, { type ReactElement } from "react";
4
3
  export declare function PickOneFromToggleGroup<T extends string>(props: SimpleBlockControlProps<T, string> & {
5
4
  options: PickableOptions<{
6
- icon: BlockIcon;
5
+ icon: ReactElement;
7
6
  }>;
8
7
  }): React.JSX.Element;
9
8
  export declare function PickOneFromSelect<T extends string>(props: SimpleBlockControlProps<T, string> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/gutenberg-api-extensions",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",
@@ -13,6 +13,13 @@
13
13
  "./blocks": "./build/blocks/index.js",
14
14
  "./controls": "./build/controls/index.js"
15
15
  },
16
+ "typesVersions": {
17
+ "*": {
18
+ "blocks": ["build/blocks/index.d.ts"],
19
+ "controls": ["build/controls/index.d.ts"],
20
+ "lib/plaudit-icons": ["build/lib/plaudit-icons.d.ts"]
21
+ }
22
+ },
16
23
  "dependencies": {
17
24
  "@wordpress/block-editor": "^12.4.0",
18
25
  "@wordpress/blocks": "^12.13.0",