@adaptabletools/adaptable-plugin-nocode-aggrid 22.0.2 → 22.0.4

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": "@adaptabletools/adaptable-plugin-nocode-aggrid",
3
- "version": "22.0.2",
3
+ "version": "22.0.4",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
package/src/index.d.ts CHANGED
@@ -1,23 +1,13 @@
1
1
  import { AdaptableOptions, AdaptablePlugin, AgGridConfig } from '@adaptabletools/adaptable/types';
2
+ import { NoCodePluginOptions } from './types';
2
3
  export declare const readJSONFile: (file: File, toJSON?: (str: string) => Promise<any> | any) => Promise<unknown>;
3
4
  export declare const readExcelFile: (file: File) => Promise<any>;
4
- interface NoCodePluginOptions {
5
- modules?: any[];
6
- onInit?: (adaptableOptions: AdaptableOptions) => void | Promise<any>;
7
- headerMessage?: React.ReactNode;
8
- actionMessage?: React.ReactNode;
9
- dropActionMessage?: React.ReactNode;
10
- loadingMessage?: React.ReactNode;
11
- theme?: 'dark' | 'light';
12
- fetchData?: () => Promise<any>;
13
- showFetchDataWizard?: boolean;
14
- skipToWizard?: boolean;
15
- }
16
5
  declare class NoCodePlugin extends AdaptablePlugin {
17
6
  options: NoCodePluginOptions;
18
7
  pluginId: string;
19
8
  constructor(options?: NoCodePluginOptions);
20
9
  beforeInit(adaptableOptions: AdaptableOptions, agGridOptions: AgGridConfig): Promise<unknown>;
21
10
  }
22
- declare const _default: (options?: NoCodePluginOptions) => NoCodePlugin;
23
- export default _default;
11
+ export type { NoCodePluginOptions } from './types';
12
+ export declare const nocodePlugin: (options?: NoCodePluginOptions) => NoCodePlugin;
13
+ export default nocodePlugin;
package/src/index.js CHANGED
@@ -121,4 +121,5 @@ class NoCodePlugin extends AdaptablePlugin {
121
121
  });
122
122
  }
123
123
  }
124
- export default (options) => new NoCodePlugin(options);
124
+ export const nocodePlugin = (options) => new NoCodePlugin(options);
125
+ export default nocodePlugin;
package/src/types.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import type { AdaptableOptions } from '@adaptabletools/adaptable/types';
2
+ export interface NoCodePluginOptions {
3
+ modules?: any[];
4
+ onInit?: (adaptableOptions: AdaptableOptions) => void | Promise<any>;
5
+ headerMessage?: React.ReactNode;
6
+ actionMessage?: React.ReactNode;
7
+ dropActionMessage?: React.ReactNode;
8
+ loadingMessage?: React.ReactNode;
9
+ theme?: 'dark' | 'light';
10
+ fetchData?: () => Promise<any>;
11
+ showFetchDataWizard?: boolean;
12
+ skipToWizard?: boolean;
13
+ }
package/src/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};