@imtf/dms-core 1.0.0-beta.1 → 1.0.0-beta.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,5 +1,5 @@
1
- import { AxiosError } from "axios";
2
1
  import webappParamsSchema from "@/schemas/jsonSchemas/webapp_params.json";
2
+ import { AxiosError } from "axios";
3
3
  import settingsSchema from "@/features/User/settings.schema.json";
4
4
  type SettingsKeys = keyof typeof settingsSchema.properties;
5
5
  type ParamKeys = keyof typeof webappParamsSchema.properties;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
+ import { FormDefinition, MdmEditorDefinition } from "../../Definitions/types";
2
3
  import { Inode } from "../../Inodes/types";
3
4
  import { Entity } from "../../MdmGraph/types";
4
- import { Definition } from "./ccm";
5
5
  export type ComponentPluginProps<P> = P & {
6
6
  defaultRender: (props?: Partial<P>) => JSX.Element;
7
7
  };
@@ -14,7 +14,7 @@ export type MdmEditorEntityRowActionsProps = ComponentPluginProps<{
14
14
  definition: any;
15
15
  }>;
16
16
  export type EntityEditModalEditForm = ComponentPluginProps<{
17
- definition: Definition;
17
+ definition: FormDefinition;
18
18
  entity: Entity;
19
19
  children: ReactNode;
20
20
  }>;
@@ -55,7 +55,7 @@ export type EntityDocumentsTypeLabelProps = ComponentPluginProps<{
55
55
  documents: Inode<"dms-core.File">[];
56
56
  }>;
57
57
  export type EntitiesWrapperProps = ComponentPluginProps<{
58
- definition: Definition;
58
+ definition: MdmEditorDefinition;
59
59
  entitiesLength: number;
60
60
  disabled: boolean;
61
61
  }>;
package/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import PluginRegistry from "./core/providers/Plugins/pluginRegistry";
2
2
  export type { InspectorProps } from "./core/providers/Inspectors/types";
3
- export type * from "./core/providers/Plugins/types/ccm";
4
3
  export type * from "./core/providers/Plugins/types/componentPlugins";
5
4
  export type { Capabilities } from "./core/providers/App/types";
6
5
  export type { Case, CaseRef } from "./core/providers/Cases/types";
7
- export type { Inode, StateMachine, StateMachineAction, StateMachineState } from "./core/providers/Inodes/types";
8
- export type { EntitiesList, Entity, EntityData, MdmGraphData, MdmValue, Relation } from "./core/providers/MdmGraph/types";
6
+ export type { Inode, StateMachine, StateMachineAction, StateMachineState, } from "./core/providers/Inodes/types";
7
+ export type { EntitiesList, Entity, EntityData, MdmGraphData, MdmValue, Relation, } from "./core/providers/MdmGraph/types";
9
8
  export type { QuestionnairePluginProps } from "./core/providers/Plugins/components/QuestionnairePart";
10
9
  export type { Task, TaskData } from "./core/providers/Tasks/types";
11
10
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imtf/dms-core",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "Typings for dms-core plugin system",
5
5
  "nonNpm": true
6
6
  }
@@ -1,4 +0,0 @@
1
- export type Definition = {
2
- name: string;
3
- [key: string]: unknown;
4
- };