@dcl/playground-assets 7.20.5-22683934262.commit-8314528 → 7.20.5-22869988861.commit-9d0cc3a

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.20.5-22683934262.commit-8314528",
4
+ "version": "7.20.5-22869988861.commit-9d0cc3a",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "types": "./index.d.ts",
37
37
  "typings": "./index.d.ts",
38
- "commit": "8314528ab573055b83ee38a7b93e57ea0fdefe3d"
38
+ "commit": "9d0cc3ae3ae3f717a56275731d6bc478bc48fb67"
39
39
  }
@@ -2205,6 +2205,15 @@ export declare const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => Eve
2205
2205
  */
2206
2206
  export declare function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
2207
2207
 
2208
+ /**
2209
+ * Internal utilities for standardized globalThis access.
2210
+ */
2211
+ /**
2212
+ * Type-safe globalThis property access.
2213
+ * @public
2214
+ */
2215
+ export declare function getGlobal<T>(key: string): T | undefined;
2216
+
2208
2217
  /**
2209
2218
  * Get the world position of an entity, taking into account the full parent hierarchy.
2210
2219
  * This computes the world-space position by accumulating all parent transforms
@@ -7921,6 +7930,12 @@ export declare namespace Schemas {
7921
7930
  }) => void;
7922
7931
  }
7923
7932
 
7933
+ /**
7934
+ * Sets a globalThis property as a polyfill (only if undefined/null).
7935
+ * @public
7936
+ */
7937
+ export declare function setGlobalPolyfill<T>(key: string, value: T): void;
7938
+
7924
7939
  /**
7925
7940
  * @public
7926
7941
  * Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.57.6"
8
+ "packageVersion": "7.57.7"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.57.6",
4
+ "toolVersion": "7.57.7",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -20959,6 +20959,64 @@
20959
20959
  ],
20960
20960
  "name": "getEntitiesWithParent"
20961
20961
  },
20962
+ {
20963
+ "kind": "Function",
20964
+ "canonicalReference": "@dcl/playground-assets!getGlobal:function(1)",
20965
+ "docComment": "/**\n * Type-safe globalThis property access.\n *\n * @public\n */\n",
20966
+ "excerptTokens": [
20967
+ {
20968
+ "kind": "Content",
20969
+ "text": "export declare function getGlobal<T>(key: "
20970
+ },
20971
+ {
20972
+ "kind": "Content",
20973
+ "text": "string"
20974
+ },
20975
+ {
20976
+ "kind": "Content",
20977
+ "text": "): "
20978
+ },
20979
+ {
20980
+ "kind": "Content",
20981
+ "text": "T | undefined"
20982
+ },
20983
+ {
20984
+ "kind": "Content",
20985
+ "text": ";"
20986
+ }
20987
+ ],
20988
+ "fileUrlPath": "../ecs/dist/runtime/globals.d.ts",
20989
+ "returnTypeTokenRange": {
20990
+ "startIndex": 3,
20991
+ "endIndex": 4
20992
+ },
20993
+ "releaseTag": "Public",
20994
+ "overloadIndex": 1,
20995
+ "parameters": [
20996
+ {
20997
+ "parameterName": "key",
20998
+ "parameterTypeTokenRange": {
20999
+ "startIndex": 1,
21000
+ "endIndex": 2
21001
+ },
21002
+ "isOptional": false
21003
+ }
21004
+ ],
21005
+ "typeParameters": [
21006
+ {
21007
+ "typeParameterName": "T",
21008
+ "constraintTokenRange": {
21009
+ "startIndex": 0,
21010
+ "endIndex": 0
21011
+ },
21012
+ "defaultTypeTokenRange": {
21013
+ "startIndex": 0,
21014
+ "endIndex": 0
21015
+ }
21016
+ }
21017
+ ],
21018
+ "name": "getGlobal"
21019
+ },
20962
21020
  {
20963
21021
  "kind": "Function",
20964
21022
  "canonicalReference": "@dcl/playground-assets!getWorldPosition:function(1)",
@@ -75272,6 +75330,80 @@
75272
75330
  }
75273
75331
  ]
75274
75332
  },
75333
+ {
75334
+ "kind": "Function",
75335
+ "canonicalReference": "@dcl/playground-assets!setGlobalPolyfill:function(1)",
75336
+ "docComment": "/**\n * Sets a globalThis property as a polyfill (only if undefined/null).\n *\n * @public\n */\n",
75337
+ "excerptTokens": [
75338
+ {
75339
+ "kind": "Content",
75340
+ "text": "export declare function setGlobalPolyfill<T>(key: "
75341
+ },
75342
+ {
75343
+ "kind": "Content",
75344
+ "text": "string"
75345
+ },
75346
+ {
75347
+ "kind": "Content",
75348
+ "text": ", value: "
75349
+ },
75350
+ {
75351
+ "kind": "Content",
75352
+ "text": "T"
75353
+ },
75354
+ {
75355
+ "kind": "Content",
75356
+ "text": "): "
75357
+ },
75358
+ {
75359
+ "kind": "Content",
75360
+ "text": "void"
75361
+ },
75362
+ {
75363
+ "kind": "Content",
75364
+ "text": ";"
75365
+ }
75366
+ ],
75367
+ "fileUrlPath": "../ecs/dist/runtime/globals.d.ts",
75368
+ "returnTypeTokenRange": {
75369
+ "startIndex": 5,
75370
+ "endIndex": 6
75371
+ },
75372
+ "releaseTag": "Public",
75373
+ "overloadIndex": 1,
75374
+ "parameters": [
75375
+ {
75376
+ "parameterName": "key",
75377
+ "parameterTypeTokenRange": {
75378
+ "startIndex": 1,
75379
+ "endIndex": 2
75380
+ },
75381
+ "isOptional": false
75382
+ },
75383
+ {
75384
+ "parameterName": "value",
75385
+ "parameterTypeTokenRange": {
75386
+ "startIndex": 3,
75387
+ "endIndex": 4
75388
+ },
75389
+ "isOptional": false
75390
+ }
75391
+ ],
75392
+ "typeParameters": [
75393
+ {
75394
+ "typeParameterName": "T",
75395
+ "constraintTokenRange": {
75396
+ "startIndex": 0,
75397
+ "endIndex": 0
75398
+ },
75399
+ "defaultTypeTokenRange": {
75400
+ "startIndex": 0,
75401
+ "endIndex": 0
75402
+ }
75403
+ }
75404
+ ],
75405
+ "name": "setGlobalPolyfill"
75406
+ },
75275
75407
  {
75276
75408
  "kind": "Interface",
75277
75409
  "canonicalReference": "@dcl/playground-assets!SetMoveRotateScaleParams:interface",
@@ -1253,6 +1253,9 @@ export const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => EventSystem
1253
1253
  // @public
1254
1254
  export function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
1255
1255
 
1256
+ // @public
1257
+ export function getGlobal<T>(key: string): T | undefined;
1258
+
1256
1259
  // @public
1257
1260
  export function getWorldPosition(engine: WorldTransformEngine, entity: Entity): Vector3Type;
1258
1261
 
@@ -4357,6 +4360,9 @@ export namespace Schemas {
4357
4360
  }) => void;
4358
4361
  }
4359
4362
 
4363
+ // @public
4364
+ export function setGlobalPolyfill<T>(key: string, value: T): void;
4365
+
4360
4366
  // @public
4361
4367
  export interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
4362
4368
  duration: number;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.20.5-22683934262.commit-8314528",
4
+ "version": "7.20.5-22869988861.commit-9d0cc3a",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.20.5-22683934262.commit-8314528",
8
- "@dcl/sdk": "7.20.5-22683934262.commit-8314528"
7
+ "@dcl/js-runtime": "7.20.5-22869988861.commit-9d0cc3a",
8
+ "@dcl/sdk": "7.20.5-22869988861.commit-9d0cc3a"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "typings": "./dist/index.d.ts",
35
- "commit": "8314528ab573055b83ee38a7b93e57ea0fdefe3d"
35
+ "commit": "9d0cc3ae3ae3f717a56275731d6bc478bc48fb67"
36
36
  }