@ecodev/natural 41.1.1 → 41.2.1

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.
@@ -47,6 +47,12 @@ export declare class NaturalQueryVariablesManager<T extends QueryVariables = Que
47
47
  * Set or override all the variables that may exist in the given channel
48
48
  */
49
49
  set(channelName: string, variables: Partial<T> | null | undefined): void;
50
+ /**
51
+ * Return a deep clone of the variables for the given channel name.
52
+ *
53
+ * Avoid returning the same reference to prevent an attribute change, then another channel update that would
54
+ * used this changed attribute without having explicitly asked QueryVariablesManager to update it.
55
+ */
50
56
  get(channelName: string): Partial<T> | undefined;
51
57
  /**
52
58
  * Merge variable into a channel, overriding arrays in same channel / key
@@ -57,7 +63,7 @@ export declare class NaturalQueryVariablesManager<T extends QueryVariables = Que
57
63
  * Note : lodash defaults only defines values on destinations keys that are undefined
58
64
  */
59
65
  defaults(channelName: string, newVariables: Partial<T>): void;
60
- getChannelsCopy(): Map<string, Partial<T>>;
66
+ private getChannelsCopy;
61
67
  /**
62
68
  * Merge channels in a single object
63
69
  * Arrays are concatenated
@@ -48,3 +48,8 @@ export declare function getForegroundColor(hexBgColor: string): 'black' | 'white
48
48
  * During lodash.mergeWith, overrides arrays
49
49
  */
50
50
  export declare function mergeOverrideArray(destValue: any, source: any): any;
51
+ /**
52
+ * Copy text to clipboard.
53
+ * Accepts line breaks `\n` as textarea do.
54
+ */
55
+ export declare function copyToClipboard(document: Document, text: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "41.1.1",
3
+ "version": "41.2.1",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,