element-book 7.0.0 → 7.0.1

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.
@@ -4,8 +4,9 @@ import { InfiniteRecursionLimiter } from '../../../util/type';
4
4
  import { BookElementExampleInit } from '../book-element-example/book-element-example';
5
5
  import { BookPage } from './book-page';
6
6
  import { BookPageControlsInitBase } from './book-page-controls';
7
+ export type DefineExampleCallback<ControlsInit extends BookPageControlsInitBase = BookPageControlsInitBase> = <StateInit extends PropertyInitMapBase, RenderOutput>(exampleInit: BookElementExampleInit<ControlsInit, StateInit, RenderOutput>) => void;
7
8
  export type ElementExamplesDefiner<ControlsInit extends BookPageControlsInitBase = BookPageControlsInitBase> = (params: {
8
- defineExample: <StateInit extends PropertyInitMapBase, RenderOutput>(exampleInit: BookElementExampleInit<ControlsInit, StateInit, RenderOutput>) => void;
9
+ defineExample: DefineExampleCallback<ControlsInit>;
9
10
  }) => void;
10
11
  type CollapseControlsInit<ParentPage extends BookPage | undefined, CurrentControlsInit extends BookPageControlsInitBase,
11
12
  /** Prevent infinite recursion TypeScript errors. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-book",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "keywords": [
5
5
  "book",
6
6
  "design system",