@kanaries/graphic-walker 0.2.5 → 0.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanaries/graphic-walker",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "scripts": {
5
5
  "dev:front_end": "vite --host",
6
6
  "dev": "npm run dev:front_end",
package/src/App.tsx CHANGED
@@ -31,6 +31,7 @@ export interface EditorProps {
31
31
  hideDataSourceConfig?: boolean;
32
32
  i18nLang?: string;
33
33
  i18nResources?: { [lang: string]: Record<string, string | any> };
34
+ keepAlive?: boolean;
34
35
  }
35
36
 
36
37
  const App: React.FC<EditorProps> = props => {
package/src/index.tsx CHANGED
@@ -4,7 +4,7 @@ import { StoreWrapper } from './store/index';
4
4
  import { FieldsContextWrapper } from './fields/fieldsContext';
5
5
 
6
6
  export const GraphicWalker: React.FC<EditorProps> = props => {
7
- return <StoreWrapper>
7
+ return <StoreWrapper keepAlive={props.keepAlive}>
8
8
  <FieldsContextWrapper>
9
9
  <App {...props} />
10
10
  </FieldsContextWrapper>