@dcl/playground-assets 7.23.4-26770223094.commit-52b9415 → 7.23.4-26955626649.commit-5d040fd
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/dist/alpha.d.ts +27 -5
- package/dist/beta.d.ts +27 -5
- package/dist/index.bundled.d.ts +27 -5
- package/dist/index.js +5 -5
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +27 -5
- package/etc/playground-assets.api.json +133 -5
- package/etc/playground-assets.api.md +12 -1
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -1488,14 +1488,16 @@ export declare namespace Composite {
|
|
|
1488
1488
|
/** @public */
|
|
1489
1489
|
export function toBinary(composite: Composite.Definition): Uint8Array;
|
|
1490
1490
|
/**
|
|
1491
|
-
* Instance a composite and
|
|
1492
|
-
* @param
|
|
1493
|
-
* @param
|
|
1494
|
-
* @param
|
|
1491
|
+
* Instance a composite and return its root entity.
|
|
1492
|
+
* @param engine - the engine that will own the new entities
|
|
1493
|
+
* @param compositeData - the composite resource to instance
|
|
1494
|
+
* @param compositeProvider - provider used to resolve nested composite references
|
|
1495
|
+
* @param options - instancing options (`rootEntity`, `entityMapping`, `alreadyRequestedSrc`)
|
|
1496
|
+
* @returns the root entity of the instanced composite
|
|
1495
1497
|
*
|
|
1496
1498
|
* @public
|
|
1497
1499
|
*/
|
|
1498
|
-
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions):
|
|
1500
|
+
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
1499
1501
|
/**
|
|
1500
1502
|
* Resolve and normalize a composite path
|
|
1501
1503
|
* @param src - the source path
|
|
@@ -1568,6 +1570,11 @@ export declare namespace CompositeDefinition {
|
|
|
1568
1570
|
*/
|
|
1569
1571
|
export declare type CompositeProvider = {
|
|
1570
1572
|
getCompositeOrNull(src: string): CompositeResource | null;
|
|
1573
|
+
loadComposite?: (src: string) => Promise<CompositeResource>;
|
|
1574
|
+
schemas?: Iterable<{
|
|
1575
|
+
name: string;
|
|
1576
|
+
jsonSchema: any;
|
|
1577
|
+
}>;
|
|
1571
1578
|
};
|
|
1572
1579
|
|
|
1573
1580
|
/**
|
|
@@ -2276,6 +2283,13 @@ export declare function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEnti
|
|
|
2276
2283
|
parent?: Entity;
|
|
2277
2284
|
}>): Generator<Entity>;
|
|
2278
2285
|
|
|
2286
|
+
/**
|
|
2287
|
+
* Get the composite provider registered via setCompositeProvider. Returns null if
|
|
2288
|
+
* no provider has been set.
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
export declare function getCompositeProvider(): CompositeProvider | null;
|
|
2292
|
+
|
|
2279
2293
|
/**
|
|
2280
2294
|
* @public
|
|
2281
2295
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
@@ -8589,6 +8603,14 @@ export declare namespace Schemas {
|
|
|
8589
8603
|
*/
|
|
8590
8604
|
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8591
8605
|
|
|
8606
|
+
/**
|
|
8607
|
+
* Register the composite provider used to resolve composite files. Also registers
|
|
8608
|
+
* any `provider.schemas` on the engine pre-seal so composites that reference those
|
|
8609
|
+
* components can be instanced without further setup.
|
|
8610
|
+
* @public
|
|
8611
|
+
*/
|
|
8612
|
+
export declare function setCompositeProvider(engine: IEngine, provider: CompositeProvider): void;
|
|
8613
|
+
|
|
8592
8614
|
/**
|
|
8593
8615
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8594
8616
|
* @public
|
package/dist/beta.d.ts
CHANGED
|
@@ -1488,14 +1488,16 @@ export declare namespace Composite {
|
|
|
1488
1488
|
/** @public */
|
|
1489
1489
|
export function toBinary(composite: Composite.Definition): Uint8Array;
|
|
1490
1490
|
/**
|
|
1491
|
-
* Instance a composite and
|
|
1492
|
-
* @param
|
|
1493
|
-
* @param
|
|
1494
|
-
* @param
|
|
1491
|
+
* Instance a composite and return its root entity.
|
|
1492
|
+
* @param engine - the engine that will own the new entities
|
|
1493
|
+
* @param compositeData - the composite resource to instance
|
|
1494
|
+
* @param compositeProvider - provider used to resolve nested composite references
|
|
1495
|
+
* @param options - instancing options (`rootEntity`, `entityMapping`, `alreadyRequestedSrc`)
|
|
1496
|
+
* @returns the root entity of the instanced composite
|
|
1495
1497
|
*
|
|
1496
1498
|
* @public
|
|
1497
1499
|
*/
|
|
1498
|
-
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions):
|
|
1500
|
+
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
1499
1501
|
/**
|
|
1500
1502
|
* Resolve and normalize a composite path
|
|
1501
1503
|
* @param src - the source path
|
|
@@ -1568,6 +1570,11 @@ export declare namespace CompositeDefinition {
|
|
|
1568
1570
|
*/
|
|
1569
1571
|
export declare type CompositeProvider = {
|
|
1570
1572
|
getCompositeOrNull(src: string): CompositeResource | null;
|
|
1573
|
+
loadComposite?: (src: string) => Promise<CompositeResource>;
|
|
1574
|
+
schemas?: Iterable<{
|
|
1575
|
+
name: string;
|
|
1576
|
+
jsonSchema: any;
|
|
1577
|
+
}>;
|
|
1571
1578
|
};
|
|
1572
1579
|
|
|
1573
1580
|
/**
|
|
@@ -2276,6 +2283,13 @@ export declare function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEnti
|
|
|
2276
2283
|
parent?: Entity;
|
|
2277
2284
|
}>): Generator<Entity>;
|
|
2278
2285
|
|
|
2286
|
+
/**
|
|
2287
|
+
* Get the composite provider registered via setCompositeProvider. Returns null if
|
|
2288
|
+
* no provider has been set.
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
export declare function getCompositeProvider(): CompositeProvider | null;
|
|
2292
|
+
|
|
2279
2293
|
/**
|
|
2280
2294
|
* @public
|
|
2281
2295
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
@@ -8561,6 +8575,14 @@ export declare namespace Schemas {
|
|
|
8561
8575
|
*/
|
|
8562
8576
|
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8563
8577
|
|
|
8578
|
+
/**
|
|
8579
|
+
* Register the composite provider used to resolve composite files. Also registers
|
|
8580
|
+
* any `provider.schemas` on the engine pre-seal so composites that reference those
|
|
8581
|
+
* components can be instanced without further setup.
|
|
8582
|
+
* @public
|
|
8583
|
+
*/
|
|
8584
|
+
export declare function setCompositeProvider(engine: IEngine, provider: CompositeProvider): void;
|
|
8585
|
+
|
|
8564
8586
|
/**
|
|
8565
8587
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8566
8588
|
* @public
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -1488,14 +1488,16 @@ export declare namespace Composite {
|
|
|
1488
1488
|
/** @public */
|
|
1489
1489
|
export function toBinary(composite: Composite.Definition): Uint8Array;
|
|
1490
1490
|
/**
|
|
1491
|
-
* Instance a composite and
|
|
1492
|
-
* @param
|
|
1493
|
-
* @param
|
|
1494
|
-
* @param
|
|
1491
|
+
* Instance a composite and return its root entity.
|
|
1492
|
+
* @param engine - the engine that will own the new entities
|
|
1493
|
+
* @param compositeData - the composite resource to instance
|
|
1494
|
+
* @param compositeProvider - provider used to resolve nested composite references
|
|
1495
|
+
* @param options - instancing options (`rootEntity`, `entityMapping`, `alreadyRequestedSrc`)
|
|
1496
|
+
* @returns the root entity of the instanced composite
|
|
1495
1497
|
*
|
|
1496
1498
|
* @public
|
|
1497
1499
|
*/
|
|
1498
|
-
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions):
|
|
1500
|
+
export function instance(engine: IEngine, compositeData: Composite.Resource, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
1499
1501
|
/**
|
|
1500
1502
|
* Resolve and normalize a composite path
|
|
1501
1503
|
* @param src - the source path
|
|
@@ -1568,6 +1570,11 @@ export declare namespace CompositeDefinition {
|
|
|
1568
1570
|
*/
|
|
1569
1571
|
export declare type CompositeProvider = {
|
|
1570
1572
|
getCompositeOrNull(src: string): CompositeResource | null;
|
|
1573
|
+
loadComposite?: (src: string) => Promise<CompositeResource>;
|
|
1574
|
+
schemas?: Iterable<{
|
|
1575
|
+
name: string;
|
|
1576
|
+
jsonSchema: any;
|
|
1577
|
+
}>;
|
|
1571
1578
|
};
|
|
1572
1579
|
|
|
1573
1580
|
/**
|
|
@@ -2276,6 +2283,13 @@ export declare function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEnti
|
|
|
2276
2283
|
parent?: Entity;
|
|
2277
2284
|
}>): Generator<Entity>;
|
|
2278
2285
|
|
|
2286
|
+
/**
|
|
2287
|
+
* Get the composite provider registered via setCompositeProvider. Returns null if
|
|
2288
|
+
* no provider has been set.
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
export declare function getCompositeProvider(): CompositeProvider | null;
|
|
2292
|
+
|
|
2279
2293
|
/**
|
|
2280
2294
|
* @public
|
|
2281
2295
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
@@ -8561,6 +8575,14 @@ export declare namespace Schemas {
|
|
|
8561
8575
|
*/
|
|
8562
8576
|
export declare function ScreenInsetArea(props: UiScreenInsetAreaProps): ReactEcs.JSX.Element;
|
|
8563
8577
|
|
|
8578
|
+
/**
|
|
8579
|
+
* Register the composite provider used to resolve composite files. Also registers
|
|
8580
|
+
* any `provider.schemas` on the engine pre-seal so composites that reference those
|
|
8581
|
+
* components can be instanced without further setup.
|
|
8582
|
+
* @public
|
|
8583
|
+
*/
|
|
8584
|
+
export declare function setCompositeProvider(engine: IEngine, provider: CompositeProvider): void;
|
|
8585
|
+
|
|
8564
8586
|
/**
|
|
8565
8587
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8566
8588
|
* @public
|