@cesdk/cesdk-js 1.45.0 → 1.202502.25-nightly

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.
package/index.d.ts CHANGED
@@ -497,6 +497,15 @@ export declare interface BuilderRenderFunctionContext<P> {
497
497
  };
498
498
  payload?: P;
499
499
  renderOptimizedSmallViewport: boolean;
500
+ /**
501
+ * PLEASE NOTE: This contains experimental APIs.
502
+ *
503
+ * Use them with caution since they might change without warning and might be replaced
504
+ * with a completely different concept or maybe not at all.
505
+ *
506
+ * @public
507
+ */
508
+ experimental: Experimental.BuilderRenderContext;
500
509
  }
501
510
 
502
511
  /**
@@ -1065,6 +1074,51 @@ export { EnginePluginContext }
1065
1074
 
1066
1075
  export { EventAPI }
1067
1076
 
1077
+ /**
1078
+ * @public
1079
+ */
1080
+ export declare namespace Experimental {
1081
+ /**
1082
+ * @public
1083
+ */
1084
+ export interface BuilderRenderContext {
1085
+ builder: Builder;
1086
+ }
1087
+ /**
1088
+ * @public
1089
+ */
1090
+ export interface PopoverChildrenContext {
1091
+ close: () => void;
1092
+ }
1093
+ /**
1094
+ * @public
1095
+ */
1096
+ export interface PopoverOptions {
1097
+ inputLabel?: string | string[];
1098
+ inputLabelPosition?: 'top' | 'left';
1099
+ label?: string | string[];
1100
+ tooltip?: string | string[];
1101
+ variant?: 'regular' | 'plain';
1102
+ color?: 'accent' | 'danger';
1103
+ size?: 'normal' | 'large';
1104
+ icon?: CustomIcon;
1105
+ isDisabled?: boolean;
1106
+ isLoading?: boolean;
1107
+ loadingProgress?: number;
1108
+ children?: (context: PopoverChildrenContext) => void;
1109
+ suffix?: Suffix;
1110
+ }
1111
+ /**
1112
+ * Interface for all available builder. Depending on the context different
1113
+ * implementation might be used. A "Button" in the canvas menu might render
1114
+ * different component than a button in the topbar or a panel.
1115
+ * @public
1116
+ */
1117
+ export interface Builder {
1118
+ Popover: (id: string, options: PopoverOptions) => void;
1119
+ }
1120
+ }
1121
+
1068
1122
  /** @public */
1069
1123
  declare type ExportFormat = 'image/png' | 'video/mp4' | 'application/pdf';
1070
1124