@cesdk/cesdk-js 1.62.0-nightly.20251006 → 1.62.0-nightly.20251008
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/assets/core/{cesdk-v1.62.0-nightly.20251006-3RZE4LNV.wasm → cesdk-v1.62.0-nightly.20251008-YG677TVR.wasm} +0 -0
- package/assets/core/{worker-host-v1.62.0-nightly.20251006.js → worker-host-v1.62.0-nightly.20251008.js} +1 -1
- package/assets/ui/stylesheets/cesdk.css +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +50 -1
- package/index.js +1 -1
- package/package.json +2 -2
- /package/assets/core/{cesdk-v1.62.0-nightly.20251006-44YCFRT6.data → cesdk-v1.62.0-nightly.20251008-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -252,6 +252,32 @@ export declare class ActionsAPI {
|
|
|
252
252
|
* @public
|
|
253
253
|
*/
|
|
254
254
|
run<T extends ActionId, C = CustomActionFunction>(actionId: T, ...args: ActionFunction<T, C> extends CustomActionFunction ? Parameters<ActionFunction<T, C>> : never[]): Promise<ActionFunction<T, C> extends (...args: any[]) => infer R ? R : never>;
|
|
255
|
+
/**
|
|
256
|
+
* Returns all registered action IDs.
|
|
257
|
+
*
|
|
258
|
+
* This method retrieves a list of all action identifiers that are
|
|
259
|
+
* available.
|
|
260
|
+
*
|
|
261
|
+
* @param options - Optional configuration object with the following properties:
|
|
262
|
+
* - `matcher`: Optional pattern to match against. Use `*` for wildcard matching.
|
|
263
|
+
* @returns An array of action IDs currently registered in the store
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* ```typescript
|
|
267
|
+
* const registeredActions = actionsAPI.list();
|
|
268
|
+
* console.log('Available actions:', registeredActions);
|
|
269
|
+
* // Output: ['saveScene', 'exportDesign', 'customAction1', ...]
|
|
270
|
+
*
|
|
271
|
+
* // Find all export-related actions using wildcard
|
|
272
|
+
* const exportActions = actionsAPI.list({ matcher: 'export*' });
|
|
273
|
+
* console.log('Export actions:', exportActions);
|
|
274
|
+
* // Output: ['exportDesign', 'exportScene', ...]
|
|
275
|
+
* ```
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
list(options?: {
|
|
279
|
+
matcher?: string;
|
|
280
|
+
}): ActionId[];
|
|
255
281
|
}
|
|
256
282
|
|
|
257
283
|
export { AddImageOptions }
|
|
@@ -3332,7 +3358,7 @@ export declare class FeatureAPI {
|
|
|
3332
3358
|
* @param context - The context object containing a reference to the underlying engine.
|
|
3333
3359
|
* @returns True if the feature is enabled, false otherwise.
|
|
3334
3360
|
*/
|
|
3335
|
-
isEnabled(featureId: FeatureId, context
|
|
3361
|
+
isEnabled(featureId: FeatureId, context?: IsEnabledFeatureContext): boolean;
|
|
3336
3362
|
}
|
|
3337
3363
|
|
|
3338
3364
|
/**
|
|
@@ -3506,6 +3532,29 @@ export declare class InternationalizationAPI {
|
|
|
3506
3532
|
* @returns The currently set locale as a string, or the fallback locale if none is set.
|
|
3507
3533
|
*/
|
|
3508
3534
|
getLocale(): LocaleKey;
|
|
3535
|
+
/**
|
|
3536
|
+
* Returns all available locales that have been loaded.
|
|
3537
|
+
*
|
|
3538
|
+
* @param options - Optional configuration object with the following properties:
|
|
3539
|
+
* - `matcher`: Optional pattern to match against. Use `*` for wildcard matching.
|
|
3540
|
+
* @category Localization
|
|
3541
|
+
* @returns An array of locale strings that have translations available.
|
|
3542
|
+
*
|
|
3543
|
+
* @example
|
|
3544
|
+
* ```typescript
|
|
3545
|
+
* const allLocales = cesdk.i18n.listLocales();
|
|
3546
|
+
* console.log('Available locales:', allLocales);
|
|
3547
|
+
* // Output: ['en', 'de', 'fr', ...]
|
|
3548
|
+
*
|
|
3549
|
+
* // Find all English variants using wildcard
|
|
3550
|
+
* const englishLocales = cesdk.i18n.listLocales({ matcher: 'en*' });
|
|
3551
|
+
* console.log('English locales:', englishLocales);
|
|
3552
|
+
* // Output: ['en', 'en-US', 'en-GB', ...]
|
|
3553
|
+
* ```
|
|
3554
|
+
*/
|
|
3555
|
+
listLocales(options?: {
|
|
3556
|
+
matcher?: string;
|
|
3557
|
+
}): LocaleKey[];
|
|
3509
3558
|
/**
|
|
3510
3559
|
* Sets the active locale for the editor interface.
|
|
3511
3560
|
*
|