eligius 1.0.11 → 1.0.12

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.
@@ -0,0 +1,3 @@
1
+ export declare const getGlobals: (name?: string) => Record<string, any> | any;
2
+ export declare const setGlobals: (newValues: Record<string, any>) => void;
3
+ export declare const clearGlobals: () => void;
@@ -30,6 +30,7 @@ export { resizeAction } from './resize-action';
30
30
  export { selectElement } from './select-element';
31
31
  export { setElementAttributes } from './set-element-attributes';
32
32
  export { setElementContent } from './set-element-content';
33
+ export { setGlobalData } from './set-global-data';
33
34
  export { setOperationData } from './set-operation-data';
34
35
  export { setStyle } from './set-style';
35
36
  export { startAction } from './start-action';
@@ -30,6 +30,7 @@ export { default as resizeAction } from './resize-action';
30
30
  export { default as selectElement } from './select-element';
31
31
  export { default as setElementAttributes } from './set-element-attributes';
32
32
  export { default as setElementContent } from './set-element-content';
33
+ export { default as setGlobalData } from './set-global-data';
33
34
  export { default as setOperationData } from './set-operation-data';
34
35
  export { default as setStyle } from './set-style';
35
36
  export { default as startAction } from './start-action';
@@ -0,0 +1,4 @@
1
+ import { ISetGlobalDataOperationData } from '../set-global-data';
2
+ import { IOperationMetadata } from './types';
3
+ declare function setGlobalData(): IOperationMetadata<ISetGlobalDataOperationData>;
4
+ export default setGlobalData;
@@ -0,0 +1,11 @@
1
+ import { TOperation } from './types';
2
+ export interface ISetGlobalDataOperationData {
3
+ properties: string[];
4
+ }
5
+ /**
6
+ * This operation copies the specified values from the operationData to the global data.
7
+ *
8
+ * @param operationData
9
+ * @returns
10
+ */
11
+ export declare const setGlobalData: TOperation<ISetGlobalDataOperationData>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.11",
2
+ "version": "1.0.12",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "homepage": "https://rolandzwaga.github.io/eligius/",
@@ -1 +0,0 @@
1
- export declare const getGlobals: (name?: string) => any;