babylonjs-gui-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.
@@ -1182,6 +1182,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1182
1182
  * @param target document or shadow root to copy styles to
1183
1183
  */
1184
1184
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
1185
+ /**
1186
+ * Merges classNames by array of strings or conditions
1187
+ * @param classNames Array of className strings or truthy conditions
1188
+ * @returns A concatenated string, suitable for the className attribute
1189
+ */
1190
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
1191
+ /**
1192
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
1193
+ */
1194
+ type ClassNameCondition = string | undefined | [string, any];
1185
1195
 
1186
1196
 
1187
1197
 
@@ -2841,6 +2851,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2841
2851
  icon?: string;
2842
2852
  iconLabel?: string;
2843
2853
  tooltip?: string;
2854
+ onCopy?: true | (() => string);
2844
2855
  }
2845
2856
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
2846
2857
  constructor(props: ITextLineComponentProps);