@dcl/sdk 7.0.0-3220317770.commit-748a07b → 7.0.0-3229738194.commit-4629198

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.
@@ -5,6 +5,6 @@ option (ecs_component_id) = 1053;
5
5
 
6
6
  import "ecs/components/common/Color4.proto";
7
7
 
8
- message PBUiStyles {
8
+ message PBUiBackground {
9
9
  optional Color4 background_color = 1; // default=(0.0, 0.0, 0.0, 0.0)
10
10
  }
@@ -13,7 +13,7 @@ export const uiComponent = () => (
13
13
  height: 500,
14
14
  padding: { top: 10, right: 10, bottom: 10, left: 10 }
15
15
  }}
16
- uiStyles={{ backgroundColor: { r: 10, g: 10, b: 10, a: 0.2 } }}
16
+ uiBackground={{ backgroundColor: { r: 10, g: 10, b: 10, a: 0.2 } }}
17
17
  >
18
18
  <UiEntity
19
19
  uiTransform={{
@@ -23,12 +23,12 @@ export const uiComponent = () => (
23
23
  justifyContent: YGJustify.YGJustifyCenter,
24
24
  alignItems: YGAlign.YGAlignCenter
25
25
  }}
26
- uiStyles={{ backgroundColor: { r: 255, g: 45, b: 85, a: 0.2 } }}
26
+ uiBackground={{ backgroundColor: { r: 255, g: 45, b: 85, a: 0.2 } }}
27
27
  >
28
28
  <UiEntity
29
29
  uiTransform={{ width: 80, height: 20 }}
30
30
  uiText={{ value: 'Boedo', textAlign: 0, fontSize: 12 }}
31
- uiStyles={{ backgroundColor: { r: 255, g: 45, b: 85, a: 1 } }}
31
+ uiBackground={{ backgroundColor: { r: 255, g: 45, b: 85, a: 1 } }}
32
32
  />
33
33
  </UiEntity>
34
34
  </UiEntity>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-3220317770.commit-748a07b",
3
+ "version": "7.0.0-3229738194.commit-4629198",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "src/cli/**/*.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@dcl/amd": "6.11.9-3220317770.commit-748a07b",
31
- "@dcl/build-ecs": "6.11.9-3220317770.commit-748a07b",
30
+ "@dcl/amd": "6.11.9-3229738194.commit-4629198",
31
+ "@dcl/build-ecs": "6.11.9-3229738194.commit-4629198",
32
32
  "@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
33
33
  "@dcl/posix": "^1.0.4",
34
34
  "@dcl/schemas": "4.8.0",
@@ -38,5 +38,5 @@
38
38
  "ignore": "^5.1.8"
39
39
  },
40
40
  "minCliVersion": "3.10.2",
41
- "commit": "748a07b22f71265b377ba464c650649db24a10da"
41
+ "commit": "46291988f735661b56033b3b767fa65c297f2f53"
42
42
  }
@@ -244,14 +244,6 @@ declare namespace Components {
244
244
  /** @public */
245
245
  const NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
246
246
  /** @public */
247
- const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
248
- /** @public */
249
- const OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
250
- /** @public */
251
- const OnPointerUp: ComponentDefinition<ISchema<PBOnPointerUp>, PBOnPointerUp>;
252
- /** @public */
253
- const OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
254
- /** @public */
255
247
  const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
256
248
  /** @public */
257
249
  const PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
@@ -264,7 +256,7 @@ declare namespace Components {
264
256
  /** @public */
265
257
  const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
266
258
  /** @public */
267
- const UiStyles: ComponentDefinition<ISchema<PBUiStyles>, PBUiStyles>;
259
+ const UiBackground: ComponentDefinition<ISchema<PBUiBackground>, PBUiBackground>;
268
260
  /** @public */
269
261
  const UiText: ComponentDefinition<ISchema<PBUiText>, PBUiText>;
270
262
  /** @public */
@@ -477,17 +469,13 @@ declare function defineSdkComponents(engine: PreEngine): {
477
469
  GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
478
470
  Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
479
471
  NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
480
- OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
481
- OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
482
- OnPointerUp: ComponentDefinition<ISchema<PBOnPointerUp>, PBOnPointerUp>;
483
- OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
484
472
  PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
485
473
  PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
486
474
  PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
487
475
  Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
488
476
  RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
489
477
  TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
490
- UiStyles: ComponentDefinition<ISchema<PBUiStyles>, PBUiStyles>;
478
+ UiBackground: ComponentDefinition<ISchema<PBUiBackground>, PBUiBackground>;
491
479
  UiText: ComponentDefinition<ISchema<PBUiText>, PBUiText>;
492
480
  UiTransform: ComponentDefinition<ISchema<PBUiTransform>, PBUiTransform>;
493
481
  VisibilityComponent: ComponentDefinition<ISchema<PBVisibilityComponent>, PBVisibilityComponent>;
@@ -1758,18 +1746,6 @@ declare const onPlayerExpressionObservable: Observable<{
1758
1746
  expressionId: string;
1759
1747
  }>;
1760
1748
 
1761
- /** @public */
1762
- declare const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
1763
-
1764
- /** @public */
1765
- declare const OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
1766
-
1767
- /** @public */
1768
- declare const OnPointerUp: ComponentDefinition<ISchema<PBOnPointerUp>, PBOnPointerUp>;
1769
-
1770
- /** @public */
1771
- declare const OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
1772
-
1773
1749
  /**
1774
1750
  * @public
1775
1751
  * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
@@ -2028,50 +2004,6 @@ declare const enum PBNFTShape_PictureFrameStyle {
2028
2004
  UNRECOGNIZED = -1
2029
2005
  }
2030
2006
 
2031
- declare interface PBOnPointerDown {
2032
- /** default=ActionButton.ANY */
2033
- button?: ActionButton | undefined;
2034
- /** default='Interact' */
2035
- hoverText?: string | undefined;
2036
- /** default=10 */
2037
- maxDistance?: number | undefined;
2038
- /** default=true */
2039
- showFeedback?: boolean | undefined;
2040
- }
2041
-
2042
- declare interface PBOnPointerDownResult {
2043
- button: ActionButton;
2044
- meshName: string;
2045
- origin: Vector3_2 | undefined;
2046
- direction: Vector3_2 | undefined;
2047
- point: Vector3_2 | undefined;
2048
- normal: Vector3_2 | undefined;
2049
- distance: number;
2050
- timestamp: number;
2051
- }
2052
-
2053
- declare interface PBOnPointerUp {
2054
- /** default=ActionButton.ANY */
2055
- button?: ActionButton | undefined;
2056
- /** default='Interact' */
2057
- hoverText?: string | undefined;
2058
- /** default=10 */
2059
- maxDistance?: number | undefined;
2060
- /** default=true */
2061
- showFeedback?: boolean | undefined;
2062
- }
2063
-
2064
- declare interface PBOnPointerUpResult {
2065
- button: ActionButton;
2066
- meshName: string;
2067
- origin: Vector3_2 | undefined;
2068
- direction: Vector3_2 | undefined;
2069
- point: Vector3_2 | undefined;
2070
- normal: Vector3_2 | undefined;
2071
- distance: number;
2072
- timestamp: number;
2073
- }
2074
-
2075
2007
  declare interface PBPointerEvents {
2076
2008
  pointerEvents: PBPointerEvents_Entry[];
2077
2009
  }
@@ -2166,7 +2098,7 @@ declare interface PBTextShape {
2166
2098
  textColor?: Color3 | undefined;
2167
2099
  }
2168
2100
 
2169
- declare interface PBUiStyles {
2101
+ declare interface PBUiBackground {
2170
2102
  /** default=(0.0, 0.0, 0.0, 0.0) */
2171
2103
  backgroundColor?: Color4 | undefined;
2172
2104
  }
@@ -2753,10 +2685,10 @@ declare type Transport = {
2753
2685
 
2754
2686
  declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
2755
2687
 
2756
- declare type Uint32 = number;
2757
-
2758
2688
  /** @public */
2759
- declare const UiStyles: ComponentDefinition<ISchema<PBUiStyles>, PBUiStyles>;
2689
+ declare const UiBackground: ComponentDefinition<ISchema<PBUiBackground>, PBUiBackground>;
2690
+
2691
+ declare type Uint32 = number;
2760
2692
 
2761
2693
  /** @public */
2762
2694
  declare const UiText: ComponentDefinition<ISchema<PBUiText>, PBUiText>;
@@ -1,12 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1060;
5
- import "ecs/components/common/ActionButton.proto";
6
-
7
- message PBOnPointerDown {
8
- optional ActionButton button = 1; // default=ActionButton.ANY
9
- optional string hover_text = 2; // default='Interact'
10
- optional float max_distance = 3; // default=10
11
- optional bool show_feedback = 4; // default=true
12
- }
@@ -1,17 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1066;
5
- import "ecs/components/common/Vector3.proto";
6
- import "ecs/components/common/ActionButton.proto";
7
-
8
- message PBOnPointerDownResult {
9
- ActionButton button = 2;
10
- string meshName = 3;
11
- Vector3 origin = 4;
12
- Vector3 direction = 5;
13
- Vector3 point = 6;
14
- Vector3 normal = 7;
15
- float distance = 8;
16
- int32 timestamp = 9;
17
- }
@@ -1,12 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1061;
5
- import "ecs/components/common/ActionButton.proto";
6
-
7
- message PBOnPointerUp {
8
- optional ActionButton button = 1; // default=ActionButton.ANY
9
- optional string hover_text = 2; // default='Interact'
10
- optional float max_distance = 3; // default=10
11
- optional bool show_feedback = 4; // default=true
12
- }
@@ -1,17 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1065;
5
- import "ecs/components/common/Vector3.proto";
6
- import "ecs/components/common/ActionButton.proto";
7
-
8
- message PBOnPointerUpResult {
9
- ActionButton button = 2;
10
- string meshName = 3;
11
- Vector3 origin = 4;
12
- Vector3 direction = 5;
13
- Vector3 point = 6;
14
- Vector3 normal = 7;
15
- float distance = 8;
16
- int32 timestamp = 9;
17
- }