babylonjs-inspector 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.
@@ -3666,6 +3666,16 @@ declare module INSPECTOR.SharedUIComponents {
3666
3666
  * @param target document or shadow root to copy styles to
3667
3667
  */
3668
3668
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
3669
+ /**
3670
+ * Merges classNames by array of strings or conditions
3671
+ * @param classNames Array of className strings or truthy conditions
3672
+ * @returns A concatenated string, suitable for the className attribute
3673
+ */
3674
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
3675
+ /**
3676
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
3677
+ */
3678
+ type ClassNameCondition = string | undefined | [string, any];
3669
3679
 
3670
3680
 
3671
3681
 
@@ -5325,6 +5335,7 @@ declare module INSPECTOR.SharedUIComponents {
5325
5335
  icon?: string;
5326
5336
  iconLabel?: string;
5327
5337
  tooltip?: string;
5338
+ onCopy?: true | (() => string);
5328
5339
  }
5329
5340
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
5330
5341
  constructor(props: ITextLineComponentProps);
@@ -4716,6 +4716,17 @@ declare module "babylonjs-inspector/styleHelper" {
4716
4716
  * @param target document or shadow root to copy styles to
4717
4717
  */
4718
4718
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
4719
+ /**
4720
+ * Merges classNames by array of strings or conditions
4721
+ * @param classNames Array of className strings or truthy conditions
4722
+ * @returns A concatenated string, suitable for the className attribute
4723
+ */
4724
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
4725
+ /**
4726
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
4727
+ */
4728
+ type ClassNameCondition = string | undefined | [string, any];
4729
+ export {};
4719
4730
 
4720
4731
  }
4721
4732
  declare module "babylonjs-inspector/stringTools" {
@@ -6275,6 +6286,7 @@ interface ITextLineComponentProps {
6275
6286
  icon?: string;
6276
6287
  iconLabel?: string;
6277
6288
  tooltip?: string;
6289
+ onCopy?: true | (() => string);
6278
6290
  }
6279
6291
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
6280
6292
  constructor(props: ITextLineComponentProps);
@@ -11803,6 +11815,16 @@ declare module INSPECTOR.SharedUIComponents {
11803
11815
  * @param target document or shadow root to copy styles to
11804
11816
  */
11805
11817
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
11818
+ /**
11819
+ * Merges classNames by array of strings or conditions
11820
+ * @param classNames Array of className strings or truthy conditions
11821
+ * @returns A concatenated string, suitable for the className attribute
11822
+ */
11823
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
11824
+ /**
11825
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
11826
+ */
11827
+ type ClassNameCondition = string | undefined | [string, any];
11806
11828
 
11807
11829
 
11808
11830
 
@@ -13462,6 +13484,7 @@ declare module INSPECTOR.SharedUIComponents {
13462
13484
  icon?: string;
13463
13485
  iconLabel?: string;
13464
13486
  tooltip?: string;
13487
+ onCopy?: true | (() => string);
13465
13488
  }
13466
13489
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
13467
13490
  constructor(props: ITextLineComponentProps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-inspector",
3
- "version": "7.52.1",
3
+ "version": "7.52.2",
4
4
  "main": "babylon.inspector.bundle.max.js",
5
5
  "types": "babylon.inspector.module.d.ts",
6
6
  "files": [
@@ -14,12 +14,12 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.52.1",
18
- "babylonjs-gui": "^7.52.1",
19
- "babylonjs-gui-editor": "^7.52.1",
20
- "babylonjs-loaders": "^7.52.1",
21
- "babylonjs-materials": "^7.52.1",
22
- "babylonjs-serializers": "^7.52.1"
17
+ "babylonjs": "^7.52.2",
18
+ "babylonjs-gui": "^7.52.2",
19
+ "babylonjs-gui-editor": "^7.52.2",
20
+ "babylonjs-loaders": "^7.52.2",
21
+ "babylonjs-materials": "^7.52.2",
22
+ "babylonjs-serializers": "^7.52.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@dev/build-tools": "1.0.0",