@hufe921/canvas-editor 0.9.51 → 0.9.52

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.
@@ -97,5 +97,6 @@ export declare class Command {
97
97
  getLocale: CommandAdapt['getLocale'];
98
98
  getGroupIds: CommandAdapt['getGroupIds'];
99
99
  getControlValue: CommandAdapt['getControlValue'];
100
+ getContainer: CommandAdapt['getContainer'];
100
101
  constructor(adapt: CommandAdapt);
101
102
  }
@@ -127,4 +127,5 @@ export declare class CommandAdapt {
127
127
  locationGroup(groupId: string): void;
128
128
  getControlValue(payload: IGetControlValueOption): IGetControlValueResult | null;
129
129
  setControlValue(payload: ISetControlOption): void;
130
+ getContainer(): HTMLDivElement;
130
131
  }
@@ -26,6 +26,7 @@ export interface IControlBasic {
26
26
  postfix?: string;
27
27
  minWidth?: number;
28
28
  underline?: boolean;
29
+ extension?: unknown;
29
30
  }
30
31
  export declare type IControl = IControlBasic & Partial<IControlSelect> & Partial<IControlCheckbox>;
31
32
  export interface IControlOption {
@@ -58,10 +59,10 @@ export interface IControlContext {
58
59
  export interface IGetControlValueOption {
59
60
  conceptId: string;
60
61
  }
61
- export declare type IGetControlValueResult = {
62
+ export declare type IGetControlValueResult = (Omit<IControl, 'value'> & {
62
63
  value: string | null;
63
64
  innerText: string | null;
64
- }[];
65
+ })[];
65
66
  export interface ISetControlOption {
66
67
  conceptId: string;
67
68
  value: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hufe921/canvas-editor",
3
3
  "author": "Hufe",
4
4
  "license": "MIT",
5
- "version": "0.9.51",
5
+ "version": "0.9.52",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",