babylonjs-node-editor 7.52.1 → 7.52.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.
@@ -1357,6 +1357,17 @@ declare module "babylonjs-node-editor/styleHelper" {
1357
1357
  * @param target document or shadow root to copy styles to
1358
1358
  */
1359
1359
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
1360
+ /**
1361
+ * Merges classNames by array of strings or conditions
1362
+ * @param classNames Array of className strings or truthy conditions
1363
+ * @returns A concatenated string, suitable for the className attribute
1364
+ */
1365
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
1366
+ /**
1367
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
1368
+ */
1369
+ type ClassNameCondition = string | undefined | [string, any];
1370
+ export {};
1360
1371
 
1361
1372
  }
1362
1373
  declare module "babylonjs-node-editor/stringTools" {
@@ -2916,6 +2927,7 @@ interface ITextLineComponentProps {
2916
2927
  icon?: string;
2917
2928
  iconLabel?: string;
2918
2929
  tooltip?: string;
2930
+ onCopy?: true | (() => string);
2919
2931
  }
2920
2932
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
2921
2933
  constructor(props: ITextLineComponentProps);
@@ -5739,6 +5751,16 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
5739
5751
  * @param target document or shadow root to copy styles to
5740
5752
  */
5741
5753
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
5754
+ /**
5755
+ * Merges classNames by array of strings or conditions
5756
+ * @param classNames Array of className strings or truthy conditions
5757
+ * @returns A concatenated string, suitable for the className attribute
5758
+ */
5759
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
5760
+ /**
5761
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
5762
+ */
5763
+ type ClassNameCondition = string | undefined | [string, any];
5742
5764
 
5743
5765
 
5744
5766
 
@@ -7398,6 +7420,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
7398
7420
  icon?: string;
7399
7421
  iconLabel?: string;
7400
7422
  tooltip?: string;
7423
+ onCopy?: true | (() => string);
7401
7424
  }
7402
7425
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
7403
7426
  constructor(props: ITextLineComponentProps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-editor",
3
- "version": "7.52.1",
3
+ "version": "7.52.2",
4
4
  "main": "babylon.nodeEditor.js",
5
5
  "types": "babylon.nodeEditor.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.52.1"
17
+ "babylonjs": "^7.52.2"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",