@knotx/react 0.0.9 → 0.0.10

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/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Engine, Plugin, NodeData, EdgeData } from '@knotx/core';
2
- import { FC, CSSProperties, ForwardedRef, ReactElement } from 'react';
2
+ import { FC, CSSProperties, PropsWithoutRef, ForwardedRef, ReactElement } from 'react';
3
3
 
4
4
  type ReactEngine = Engine<FC<any>>;
5
5
  type KnotxProps<TPlugins extends Plugin[] = Plugin[]> = {
@@ -24,7 +24,7 @@ type KnotxProps<TPlugins extends Plugin[] = Plugin[]> = {
24
24
  } : {});
25
25
 
26
26
  declare const Knotx: {
27
- <TPlugins extends Plugin[]>(props: KnotxProps<TPlugins>, ref: ForwardedRef<ReactEngine>): ReactElement | null;
27
+ <TPlugins extends Plugin[]>(props: PropsWithoutRef<KnotxProps<TPlugins>>, ref: ForwardedRef<ReactEngine>): ReactElement | null;
28
28
  displayName?: string | undefined;
29
29
  };
30
30
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Engine, Plugin, NodeData, EdgeData } from '@knotx/core';
2
- import { FC, CSSProperties, ForwardedRef, ReactElement } from 'react';
2
+ import { FC, CSSProperties, PropsWithoutRef, ForwardedRef, ReactElement } from 'react';
3
3
 
4
4
  type ReactEngine = Engine<FC<any>>;
5
5
  type KnotxProps<TPlugins extends Plugin[] = Plugin[]> = {
@@ -24,7 +24,7 @@ type KnotxProps<TPlugins extends Plugin[] = Plugin[]> = {
24
24
  } : {});
25
25
 
26
26
  declare const Knotx: {
27
- <TPlugins extends Plugin[]>(props: KnotxProps<TPlugins>, ref: ForwardedRef<ReactEngine>): ReactElement | null;
27
+ <TPlugins extends Plugin[]>(props: PropsWithoutRef<KnotxProps<TPlugins>>, ref: ForwardedRef<ReactEngine>): ReactElement | null;
28
28
  displayName?: string | undefined;
29
29
  };
30
30
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Engine, Plugin, NodeData, EdgeData } from '@knotx/core';
2
- import { FC, CSSProperties, ForwardedRef, ReactElement } from 'react';
2
+ import { FC, CSSProperties, PropsWithoutRef, ForwardedRef, ReactElement } from 'react';
3
3
 
4
4
  type ReactEngine = Engine<FC<any>>;
5
5
  type KnotxProps<TPlugins extends Plugin[] = Plugin[]> = {
@@ -24,7 +24,7 @@ type KnotxProps<TPlugins extends Plugin[] = Plugin[]> = {
24
24
  } : {});
25
25
 
26
26
  declare const Knotx: {
27
- <TPlugins extends Plugin[]>(props: KnotxProps<TPlugins>, ref: ForwardedRef<ReactEngine>): ReactElement | null;
27
+ <TPlugins extends Plugin[]>(props: PropsWithoutRef<KnotxProps<TPlugins>>, ref: ForwardedRef<ReactEngine>): ReactElement | null;
28
28
  displayName?: string | undefined;
29
29
  };
30
30
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knotx/react",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "description": "React for Knotx",
6
6
  "author": "boenfu",
7
7
  "license": "MIT",
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "rxjs": "^7.8.1",
37
- "@knotx/core": "0.0.7",
38
37
  "@knotx/jsx": "0.0.7",
39
- "@knotx/plugins-base-render": "0.0.9"
38
+ "@knotx/plugins-base-render": "0.0.9",
39
+ "@knotx/core": "0.0.7"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/react": "^17.0.0",