@dcl/protocol 1.0.0-4419899496.commit-11d63ec → 1.0.0-4440731539.commit-a2174f5

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.
Files changed (173) hide show
  1. package/out-js/decentraland/common/border_rect.gen.d.ts +54 -0
  2. package/out-js/decentraland/common/border_rect.gen.js +87 -0
  3. package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
  4. package/out-js/decentraland/common/colors.gen.d.ts +82 -0
  5. package/out-js/decentraland/common/colors.gen.js +152 -0
  6. package/out-js/decentraland/common/colors.gen.js.map +1 -0
  7. package/out-js/decentraland/common/texture.gen.d.ts +319 -0
  8. package/out-js/decentraland/common/texture.gen.js +384 -0
  9. package/out-js/decentraland/common/texture.gen.js.map +1 -0
  10. package/out-js/decentraland/sdk/components/animator.gen.d.ts +184 -0
  11. package/out-js/decentraland/sdk/components/animator.gen.js +172 -0
  12. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
  13. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +74 -0
  14. package/out-js/decentraland/sdk/components/audio_source.gen.js +96 -0
  15. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
  16. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +56 -0
  17. package/out-js/decentraland/sdk/components/audio_stream.gen.js +78 -0
  18. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
  19. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +65 -0
  20. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +115 -0
  21. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
  22. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +100 -0
  23. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +137 -0
  24. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
  25. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +192 -0
  26. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +210 -0
  27. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  28. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +59 -0
  29. package/out-js/decentraland/sdk/components/billboard.gen.js +114 -0
  30. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +44 -0
  32. package/out-js/decentraland/sdk/components/camera_mode.gen.js +59 -0
  33. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  34. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +84 -0
  35. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +71 -0
  36. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  37. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +8 -0
  38. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +39 -0
  39. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  40. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  41. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  42. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  43. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +20 -0
  44. package/out-js/decentraland/sdk/components/common/input_action.gen.js +111 -0
  45. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  46. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  47. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  48. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  49. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +45 -0
  50. package/out-js/decentraland/sdk/components/gltf_container.gen.js +58 -0
  51. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  52. package/out-js/decentraland/sdk/components/material.gen.d.ts +3452 -0
  53. package/out-js/decentraland/sdk/components/material.gen.js +437 -0
  54. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  55. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +250 -0
  56. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +324 -0
  57. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  58. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +284 -0
  59. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +320 -0
  60. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  61. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +114 -0
  62. package/out-js/decentraland/sdk/components/nft_shape.gen.js +242 -0
  63. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  64. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +249 -0
  65. package/out-js/decentraland/sdk/components/pointer_events.gen.js +248 -0
  66. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  67. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +241 -0
  68. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +99 -0
  69. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  70. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +43 -0
  71. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +58 -0
  72. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  73. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +118 -0
  74. package/out-js/decentraland/sdk/components/raycast.gen.js +127 -0
  75. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  76. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +536 -0
  77. package/out-js/decentraland/sdk/components/raycast_result.gen.js +243 -0
  78. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  79. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +247 -0
  80. package/out-js/decentraland/sdk/components/text_shape.gen.js +274 -0
  81. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  82. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +369 -0
  83. package/out-js/decentraland/sdk/components/ui_background.gen.js +175 -0
  84. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  85. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +115 -0
  86. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +152 -0
  87. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  88. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +38 -0
  89. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +58 -0
  90. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  91. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +140 -0
  92. package/out-js/decentraland/sdk/components/ui_input.gen.js +140 -0
  93. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  94. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +38 -0
  95. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +58 -0
  96. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  97. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +95 -0
  98. package/out-js/decentraland/sdk/components/ui_text.gen.js +101 -0
  99. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  100. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +403 -0
  101. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1000 -0
  102. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  103. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +69 -0
  104. package/out-js/decentraland/sdk/components/video_player.gen.js +112 -0
  105. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  106. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
  107. package/out-js/decentraland/sdk/components/visibility_component.gen.js +58 -0
  108. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  109. package/out-js/google/protobuf/descriptor.gen.d.ts +87384 -0
  110. package/out-js/google/protobuf/descriptor.gen.js +2645 -0
  111. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  112. package/out-js/sdk-components.gen.d.ts +1 -0
  113. package/out-js/sdk-components.gen.js +6 -0
  114. package/out-js/sdk-components.gen.js.map +1 -0
  115. package/out-ts/decentraland/common/border_rect.gen.ts +108 -0
  116. package/out-ts/decentraland/common/colors.gen.ts +184 -0
  117. package/out-ts/decentraland/common/texture.gen.ts +454 -0
  118. package/out-ts/decentraland/sdk/components/animator.gen.ts +229 -0
  119. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +141 -0
  120. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +109 -0
  121. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +147 -0
  122. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +172 -0
  123. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +288 -0
  124. package/out-ts/decentraland/sdk/components/billboard.gen.ts +140 -0
  125. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +81 -0
  126. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +106 -0
  127. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +36 -0
  128. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  129. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +108 -0
  130. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  131. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +82 -0
  132. package/out-ts/decentraland/sdk/components/material.gen.ts +546 -0
  133. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +403 -0
  134. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +395 -0
  135. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +275 -0
  136. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +316 -0
  137. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +124 -0
  138. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +80 -0
  139. package/out-ts/decentraland/sdk/components/raycast.gen.ts +159 -0
  140. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +315 -0
  141. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +385 -0
  142. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +199 -0
  143. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +194 -0
  144. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +75 -0
  145. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +182 -0
  146. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +75 -0
  147. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +140 -0
  148. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1104 -0
  149. package/out-ts/decentraland/sdk/components/video_player.gen.ts +148 -0
  150. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +76 -0
  151. package/out-ts/google/protobuf/descriptor.gen.ts +2961 -0
  152. package/out-ts/sdk-components.gen.ts +3 -0
  153. package/package.json +2 -2
  154. package/proto/decentraland/sdk/components/animator.proto +15 -8
  155. package/proto/decentraland/sdk/components/audio_source.proto +16 -6
  156. package/proto/decentraland/sdk/components/audio_stream.proto +6 -3
  157. package/proto/decentraland/sdk/components/avatar_attach.proto +14 -6
  158. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +20 -7
  159. package/proto/decentraland/sdk/components/avatar_shape.proto +34 -24
  160. package/proto/decentraland/sdk/components/billboard.proto +12 -5
  161. package/proto/decentraland/sdk/components/camera_mode.proto +3 -1
  162. package/proto/decentraland/sdk/components/camera_mode_area.proto +13 -2
  163. package/proto/decentraland/sdk/components/gltf_container.proto +5 -5
  164. package/proto/decentraland/sdk/components/mesh_collider.proto +22 -9
  165. package/proto/decentraland/sdk/components/mesh_renderer.proto +17 -4
  166. package/proto/decentraland/sdk/components/nft_shape.proto +15 -7
  167. package/proto/decentraland/sdk/components/pointer_events.proto +28 -14
  168. package/proto/decentraland/sdk/components/pointer_lock.proto +3 -1
  169. package/proto/decentraland/sdk/components/raycast.proto +10 -7
  170. package/proto/decentraland/sdk/components/raycast_result.proto +17 -12
  171. package/proto/decentraland/sdk/components/text_shape.proto +33 -24
  172. package/proto/decentraland/sdk/components/ui_text.proto +8 -5
  173. package/public/sdk-components.proto +33 -0
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBUiDropdown = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ const colors_gen_1 = require("../../common/colors.gen");
10
+ const texts_gen_1 = require("./common/texts.gen");
11
+ exports.protobufPackage = "decentraland.sdk.components";
12
+ function createBasePBUiDropdown() {
13
+ return {
14
+ acceptEmpty: false,
15
+ emptyLabel: undefined,
16
+ options: [],
17
+ selectedIndex: undefined,
18
+ disabled: false,
19
+ color: undefined,
20
+ textAlign: undefined,
21
+ font: undefined,
22
+ fontSize: undefined,
23
+ };
24
+ }
25
+ exports.PBUiDropdown = {
26
+ encode(message, writer = minimal_1.default.Writer.create()) {
27
+ if (message.acceptEmpty === true) {
28
+ writer.uint32(8).bool(message.acceptEmpty);
29
+ }
30
+ if (message.emptyLabel !== undefined) {
31
+ writer.uint32(18).string(message.emptyLabel);
32
+ }
33
+ for (const v of message.options) {
34
+ writer.uint32(26).string(v);
35
+ }
36
+ if (message.selectedIndex !== undefined) {
37
+ writer.uint32(32).int32(message.selectedIndex);
38
+ }
39
+ if (message.disabled === true) {
40
+ writer.uint32(40).bool(message.disabled);
41
+ }
42
+ if (message.color !== undefined) {
43
+ colors_gen_1.Color4.encode(message.color, writer.uint32(50).fork()).ldelim();
44
+ }
45
+ if (message.textAlign !== undefined) {
46
+ writer.uint32(80).int32(message.textAlign);
47
+ }
48
+ if (message.font !== undefined) {
49
+ writer.uint32(88).int32(message.font);
50
+ }
51
+ if (message.fontSize !== undefined) {
52
+ writer.uint32(96).int32(message.fontSize);
53
+ }
54
+ return writer;
55
+ },
56
+ decode(input, length) {
57
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
58
+ let end = length === undefined ? reader.len : reader.pos + length;
59
+ const message = createBasePBUiDropdown();
60
+ while (reader.pos < end) {
61
+ const tag = reader.uint32();
62
+ switch (tag >>> 3) {
63
+ case 1:
64
+ message.acceptEmpty = reader.bool();
65
+ break;
66
+ case 2:
67
+ message.emptyLabel = reader.string();
68
+ break;
69
+ case 3:
70
+ message.options.push(reader.string());
71
+ break;
72
+ case 4:
73
+ message.selectedIndex = reader.int32();
74
+ break;
75
+ case 5:
76
+ message.disabled = reader.bool();
77
+ break;
78
+ case 6:
79
+ message.color = colors_gen_1.Color4.decode(reader, reader.uint32());
80
+ break;
81
+ case 10:
82
+ message.textAlign = reader.int32();
83
+ break;
84
+ case 11:
85
+ message.font = reader.int32();
86
+ break;
87
+ case 12:
88
+ message.fontSize = reader.int32();
89
+ break;
90
+ default:
91
+ reader.skipType(tag & 7);
92
+ break;
93
+ }
94
+ }
95
+ return message;
96
+ },
97
+ fromJSON(object) {
98
+ return {
99
+ acceptEmpty: isSet(object.acceptEmpty) ? Boolean(object.acceptEmpty) : false,
100
+ emptyLabel: isSet(object.emptyLabel) ? String(object.emptyLabel) : undefined,
101
+ options: Array.isArray(object === null || object === void 0 ? void 0 : object.options) ? object.options.map((e) => String(e)) : [],
102
+ selectedIndex: isSet(object.selectedIndex) ? Number(object.selectedIndex) : undefined,
103
+ disabled: isSet(object.disabled) ? Boolean(object.disabled) : false,
104
+ color: isSet(object.color) ? colors_gen_1.Color4.fromJSON(object.color) : undefined,
105
+ textAlign: isSet(object.textAlign) ? (0, texts_gen_1.textAlignModeFromJSON)(object.textAlign) : undefined,
106
+ font: isSet(object.font) ? (0, texts_gen_1.fontFromJSON)(object.font) : undefined,
107
+ fontSize: isSet(object.fontSize) ? Number(object.fontSize) : undefined,
108
+ };
109
+ },
110
+ toJSON(message) {
111
+ const obj = {};
112
+ message.acceptEmpty !== undefined && (obj.acceptEmpty = message.acceptEmpty);
113
+ message.emptyLabel !== undefined && (obj.emptyLabel = message.emptyLabel);
114
+ if (message.options) {
115
+ obj.options = message.options.map((e) => e);
116
+ }
117
+ else {
118
+ obj.options = [];
119
+ }
120
+ message.selectedIndex !== undefined && (obj.selectedIndex = Math.round(message.selectedIndex));
121
+ message.disabled !== undefined && (obj.disabled = message.disabled);
122
+ message.color !== undefined && (obj.color = message.color ? colors_gen_1.Color4.toJSON(message.color) : undefined);
123
+ message.textAlign !== undefined &&
124
+ (obj.textAlign = message.textAlign !== undefined ? (0, texts_gen_1.textAlignModeToJSON)(message.textAlign) : undefined);
125
+ message.font !== undefined && (obj.font = message.font !== undefined ? (0, texts_gen_1.fontToJSON)(message.font) : undefined);
126
+ message.fontSize !== undefined && (obj.fontSize = Math.round(message.fontSize));
127
+ return obj;
128
+ },
129
+ create(base) {
130
+ return exports.PBUiDropdown.fromPartial(base !== null && base !== void 0 ? base : {});
131
+ },
132
+ fromPartial(object) {
133
+ var _a, _b, _c, _d, _e, _f, _g, _h;
134
+ const message = createBasePBUiDropdown();
135
+ message.acceptEmpty = (_a = object.acceptEmpty) !== null && _a !== void 0 ? _a : false;
136
+ message.emptyLabel = (_b = object.emptyLabel) !== null && _b !== void 0 ? _b : undefined;
137
+ message.options = ((_c = object.options) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
138
+ message.selectedIndex = (_d = object.selectedIndex) !== null && _d !== void 0 ? _d : undefined;
139
+ message.disabled = (_e = object.disabled) !== null && _e !== void 0 ? _e : false;
140
+ message.color = (object.color !== undefined && object.color !== null)
141
+ ? colors_gen_1.Color4.fromPartial(object.color)
142
+ : undefined;
143
+ message.textAlign = (_f = object.textAlign) !== null && _f !== void 0 ? _f : undefined;
144
+ message.font = (_g = object.font) !== null && _g !== void 0 ? _g : undefined;
145
+ message.fontSize = (_h = object.fontSize) !== null && _h !== void 0 ? _h : undefined;
146
+ return message;
147
+ },
148
+ };
149
+ function isSet(value) {
150
+ return value !== null && value !== undefined;
151
+ }
152
+ //# sourceMappingURL=ui_dropdown.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui_dropdown.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_dropdown.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,wDAAiD;AACjD,kDAO4B;AAEf,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAyB7D,SAAS,sBAAsB;IAC7B,OAAO;QACL,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,EAAE;QACX,aAAa,EAAE,SAAS;QACxB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;KACpB,CAAC;AACJ,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,MAAM,CAAC,OAAqB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACpE,IAAI,OAAO,CAAC,WAAW,KAAK,IAAI,EAAE;YAChC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SAC5C;QACD,IAAI,OAAO,CAAC,UAAU,KAAK,SAAS,EAAE;YACpC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC9C;QACD,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE;YAC/B,MAAM,CAA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AAI,CAAC;YACnE,CAAC,CAAC,mBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC;YAClC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,SAAS,CAAC;QAClD,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,SAAS,CAAC;QACxC,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,SAAS,CAAC;QAChD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAcF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,38 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ export interface PBUiDropdownResult {
4
+ value: number;
5
+ }
6
+ export declare const PBUiDropdownResult: {
7
+ encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
8
+ decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
9
+ fromJSON(object: any): PBUiDropdownResult;
10
+ toJSON(message: PBUiDropdownResult): unknown;
11
+ create<I extends {
12
+ value?: number | undefined;
13
+ } & {
14
+ value?: number | undefined;
15
+ } & { [K in Exclude<keyof I, "value">]: never; }>(base?: I | undefined): PBUiDropdownResult;
16
+ fromPartial<I_1 extends {
17
+ value?: number | undefined;
18
+ } & {
19
+ value?: number | undefined;
20
+ } & { [K_1 in Exclude<keyof I_1, "value">]: never; }>(object: I_1): PBUiDropdownResult;
21
+ };
22
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
23
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
24
+ $case: string;
25
+ } ? {
26
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
27
+ } & {
28
+ $case: T["$case"];
29
+ } : T extends {} ? {
30
+ [K in keyof T]?: DeepPartial<T[K]>;
31
+ } : Partial<T>;
32
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
33
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
34
+ [K in keyof P]: Exact<P[K], I[K]>;
35
+ } & {
36
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
37
+ };
38
+ export {};
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBUiDropdownResult = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBUiDropdownResult() {
11
+ return { value: 0 };
12
+ }
13
+ exports.PBUiDropdownResult = {
14
+ encode(message, writer = minimal_1.default.Writer.create()) {
15
+ if (message.value !== 0) {
16
+ writer.uint32(8).int32(message.value);
17
+ }
18
+ return writer;
19
+ },
20
+ decode(input, length) {
21
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBasePBUiDropdownResult();
24
+ while (reader.pos < end) {
25
+ const tag = reader.uint32();
26
+ switch (tag >>> 3) {
27
+ case 1:
28
+ message.value = reader.int32();
29
+ break;
30
+ default:
31
+ reader.skipType(tag & 7);
32
+ break;
33
+ }
34
+ }
35
+ return message;
36
+ },
37
+ fromJSON(object) {
38
+ return { value: isSet(object.value) ? Number(object.value) : 0 };
39
+ },
40
+ toJSON(message) {
41
+ const obj = {};
42
+ message.value !== undefined && (obj.value = Math.round(message.value));
43
+ return obj;
44
+ },
45
+ create(base) {
46
+ return exports.PBUiDropdownResult.fromPartial(base !== null && base !== void 0 ? base : {});
47
+ },
48
+ fromPartial(object) {
49
+ var _a;
50
+ const message = createBasePBUiDropdownResult();
51
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : 0;
52
+ return message;
53
+ },
54
+ };
55
+ function isSet(value) {
56
+ return value !== null && value !== undefined;
57
+ }
58
+ //# sourceMappingURL=ui_dropdown_result.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui_dropdown_result.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAM7D,SAAS,4BAA4B;IACnC,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AACtB,CAAC;AAEY,QAAA,kBAAkB,GAAG;IAChC,MAAM,CAAC,OAA2B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC1E,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,EAAE;YACvB,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SACvC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,4BAA4B,EAAE,CAAC;QAC/C,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GA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font, TextAlignMode } from "./common/texts.gen";
4
+ export declare const protobufPackage = "decentraland.sdk.components";
5
+ export interface PBUiInput {
6
+ placeholder: string;
7
+ /** default=(0.0,0.0,0.0,1.0) */
8
+ color?: Color4 | undefined;
9
+ /** default=(0.3,0.3,0.3,1.0) */
10
+ placeholderColor?: Color4 | undefined;
11
+ disabled: boolean;
12
+ /** default='center' */
13
+ textAlign?: TextAlignMode | undefined;
14
+ /** default=0 */
15
+ font?: Font | undefined;
16
+ /** default=10 */
17
+ fontSize?: number | undefined;
18
+ value?: string | undefined;
19
+ }
20
+ export declare const PBUiInput: {
21
+ encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
22
+ decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
23
+ fromJSON(object: any): PBUiInput;
24
+ toJSON(message: PBUiInput): unknown;
25
+ create<I extends {
26
+ placeholder?: string | undefined;
27
+ color?: {
28
+ r?: number | undefined;
29
+ g?: number | undefined;
30
+ b?: number | undefined;
31
+ a?: number | undefined;
32
+ } | undefined;
33
+ placeholderColor?: {
34
+ r?: number | undefined;
35
+ g?: number | undefined;
36
+ b?: number | undefined;
37
+ a?: number | undefined;
38
+ } | undefined;
39
+ disabled?: boolean | undefined;
40
+ textAlign?: TextAlignMode | undefined;
41
+ font?: Font | undefined;
42
+ fontSize?: number | undefined;
43
+ value?: string | undefined;
44
+ } & {
45
+ placeholder?: string | undefined;
46
+ color?: ({
47
+ r?: number | undefined;
48
+ g?: number | undefined;
49
+ b?: number | undefined;
50
+ a?: number | undefined;
51
+ } & {
52
+ r?: number | undefined;
53
+ g?: number | undefined;
54
+ b?: number | undefined;
55
+ a?: number | undefined;
56
+ } & { [K in Exclude<keyof I["color"], keyof Color4>]: never; }) | undefined;
57
+ placeholderColor?: ({
58
+ r?: number | undefined;
59
+ g?: number | undefined;
60
+ b?: number | undefined;
61
+ a?: number | undefined;
62
+ } & {
63
+ r?: number | undefined;
64
+ g?: number | undefined;
65
+ b?: number | undefined;
66
+ a?: number | undefined;
67
+ } & { [K_1 in Exclude<keyof I["placeholderColor"], keyof Color4>]: never; }) | undefined;
68
+ disabled?: boolean | undefined;
69
+ textAlign?: TextAlignMode | undefined;
70
+ font?: Font | undefined;
71
+ fontSize?: number | undefined;
72
+ value?: string | undefined;
73
+ } & { [K_2 in Exclude<keyof I, keyof PBUiInput>]: never; }>(base?: I | undefined): PBUiInput;
74
+ fromPartial<I_1 extends {
75
+ placeholder?: string | undefined;
76
+ color?: {
77
+ r?: number | undefined;
78
+ g?: number | undefined;
79
+ b?: number | undefined;
80
+ a?: number | undefined;
81
+ } | undefined;
82
+ placeholderColor?: {
83
+ r?: number | undefined;
84
+ g?: number | undefined;
85
+ b?: number | undefined;
86
+ a?: number | undefined;
87
+ } | undefined;
88
+ disabled?: boolean | undefined;
89
+ textAlign?: TextAlignMode | undefined;
90
+ font?: Font | undefined;
91
+ fontSize?: number | undefined;
92
+ value?: string | undefined;
93
+ } & {
94
+ placeholder?: string | undefined;
95
+ color?: ({
96
+ r?: number | undefined;
97
+ g?: number | undefined;
98
+ b?: number | undefined;
99
+ a?: number | undefined;
100
+ } & {
101
+ r?: number | undefined;
102
+ g?: number | undefined;
103
+ b?: number | undefined;
104
+ a?: number | undefined;
105
+ } & { [K_3 in Exclude<keyof I_1["color"], keyof Color4>]: never; }) | undefined;
106
+ placeholderColor?: ({
107
+ r?: number | undefined;
108
+ g?: number | undefined;
109
+ b?: number | undefined;
110
+ a?: number | undefined;
111
+ } & {
112
+ r?: number | undefined;
113
+ g?: number | undefined;
114
+ b?: number | undefined;
115
+ a?: number | undefined;
116
+ } & { [K_4 in Exclude<keyof I_1["placeholderColor"], keyof Color4>]: never; }) | undefined;
117
+ disabled?: boolean | undefined;
118
+ textAlign?: TextAlignMode | undefined;
119
+ font?: Font | undefined;
120
+ fontSize?: number | undefined;
121
+ value?: string | undefined;
122
+ } & { [K_5 in Exclude<keyof I_1, keyof PBUiInput>]: never; }>(object: I_1): PBUiInput;
123
+ };
124
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
125
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
126
+ $case: string;
127
+ } ? {
128
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
129
+ } & {
130
+ $case: T["$case"];
131
+ } : T extends {} ? {
132
+ [K in keyof T]?: DeepPartial<T[K]>;
133
+ } : Partial<T>;
134
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
135
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
136
+ [K in keyof P]: Exact<P[K], I[K]>;
137
+ } & {
138
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
139
+ };
140
+ export {};
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBUiInput = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ const colors_gen_1 = require("../../common/colors.gen");
10
+ const texts_gen_1 = require("./common/texts.gen");
11
+ exports.protobufPackage = "decentraland.sdk.components";
12
+ function createBasePBUiInput() {
13
+ return {
14
+ placeholder: "",
15
+ color: undefined,
16
+ placeholderColor: undefined,
17
+ disabled: false,
18
+ textAlign: undefined,
19
+ font: undefined,
20
+ fontSize: undefined,
21
+ value: undefined,
22
+ };
23
+ }
24
+ exports.PBUiInput = {
25
+ encode(message, writer = minimal_1.default.Writer.create()) {
26
+ if (message.placeholder !== "") {
27
+ writer.uint32(10).string(message.placeholder);
28
+ }
29
+ if (message.color !== undefined) {
30
+ colors_gen_1.Color4.encode(message.color, writer.uint32(18).fork()).ldelim();
31
+ }
32
+ if (message.placeholderColor !== undefined) {
33
+ colors_gen_1.Color4.encode(message.placeholderColor, writer.uint32(26).fork()).ldelim();
34
+ }
35
+ if (message.disabled === true) {
36
+ writer.uint32(32).bool(message.disabled);
37
+ }
38
+ if (message.textAlign !== undefined) {
39
+ writer.uint32(80).int32(message.textAlign);
40
+ }
41
+ if (message.font !== undefined) {
42
+ writer.uint32(88).int32(message.font);
43
+ }
44
+ if (message.fontSize !== undefined) {
45
+ writer.uint32(96).int32(message.fontSize);
46
+ }
47
+ if (message.value !== undefined) {
48
+ writer.uint32(106).string(message.value);
49
+ }
50
+ return writer;
51
+ },
52
+ decode(input, length) {
53
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
54
+ let end = length === undefined ? reader.len : reader.pos + length;
55
+ const message = createBasePBUiInput();
56
+ while (reader.pos < end) {
57
+ const tag = reader.uint32();
58
+ switch (tag >>> 3) {
59
+ case 1:
60
+ message.placeholder = reader.string();
61
+ break;
62
+ case 2:
63
+ message.color = colors_gen_1.Color4.decode(reader, reader.uint32());
64
+ break;
65
+ case 3:
66
+ message.placeholderColor = colors_gen_1.Color4.decode(reader, reader.uint32());
67
+ break;
68
+ case 4:
69
+ message.disabled = reader.bool();
70
+ break;
71
+ case 10:
72
+ message.textAlign = reader.int32();
73
+ break;
74
+ case 11:
75
+ message.font = reader.int32();
76
+ break;
77
+ case 12:
78
+ message.fontSize = reader.int32();
79
+ break;
80
+ case 13:
81
+ message.value = reader.string();
82
+ break;
83
+ default:
84
+ reader.skipType(tag & 7);
85
+ break;
86
+ }
87
+ }
88
+ return message;
89
+ },
90
+ fromJSON(object) {
91
+ return {
92
+ placeholder: isSet(object.placeholder) ? String(object.placeholder) : "",
93
+ color: isSet(object.color) ? colors_gen_1.Color4.fromJSON(object.color) : undefined,
94
+ placeholderColor: isSet(object.placeholderColor) ? colors_gen_1.Color4.fromJSON(object.placeholderColor) : undefined,
95
+ disabled: isSet(object.disabled) ? Boolean(object.disabled) : false,
96
+ textAlign: isSet(object.textAlign) ? (0, texts_gen_1.textAlignModeFromJSON)(object.textAlign) : undefined,
97
+ font: isSet(object.font) ? (0, texts_gen_1.fontFromJSON)(object.font) : undefined,
98
+ fontSize: isSet(object.fontSize) ? Number(object.fontSize) : undefined,
99
+ value: isSet(object.value) ? String(object.value) : undefined,
100
+ };
101
+ },
102
+ toJSON(message) {
103
+ const obj = {};
104
+ message.placeholder !== undefined && (obj.placeholder = message.placeholder);
105
+ message.color !== undefined && (obj.color = message.color ? colors_gen_1.Color4.toJSON(message.color) : undefined);
106
+ message.placeholderColor !== undefined &&
107
+ (obj.placeholderColor = message.placeholderColor ? colors_gen_1.Color4.toJSON(message.placeholderColor) : undefined);
108
+ message.disabled !== undefined && (obj.disabled = message.disabled);
109
+ message.textAlign !== undefined &&
110
+ (obj.textAlign = message.textAlign !== undefined ? (0, texts_gen_1.textAlignModeToJSON)(message.textAlign) : undefined);
111
+ message.font !== undefined && (obj.font = message.font !== undefined ? (0, texts_gen_1.fontToJSON)(message.font) : undefined);
112
+ message.fontSize !== undefined && (obj.fontSize = Math.round(message.fontSize));
113
+ message.value !== undefined && (obj.value = message.value);
114
+ return obj;
115
+ },
116
+ create(base) {
117
+ return exports.PBUiInput.fromPartial(base !== null && base !== void 0 ? base : {});
118
+ },
119
+ fromPartial(object) {
120
+ var _a, _b, _c, _d, _e, _f;
121
+ const message = createBasePBUiInput();
122
+ message.placeholder = (_a = object.placeholder) !== null && _a !== void 0 ? _a : "";
123
+ message.color = (object.color !== undefined && object.color !== null)
124
+ ? colors_gen_1.Color4.fromPartial(object.color)
125
+ : undefined;
126
+ message.placeholderColor = (object.placeholderColor !== undefined && object.placeholderColor !== null)
127
+ ? colors_gen_1.Color4.fromPartial(object.placeholderColor)
128
+ : undefined;
129
+ message.disabled = (_b = object.disabled) !== null && _b !== void 0 ? _b : false;
130
+ message.textAlign = (_c = object.textAlign) !== null && _c !== void 0 ? _c : undefined;
131
+ message.font = (_d = object.font) !== null && _d !== void 0 ? _d : undefined;
132
+ message.fontSize = (_e = object.fontSize) !== null && _e !== void 0 ? _e : undefined;
133
+ message.value = (_f = object.value) !== null && _f !== void 0 ? _f : undefined;
134
+ return message;
135
+ },
136
+ };
137
+ function isSet(value) {
138
+ return value !== null && value !== undefined;
139
+ }
140
+ //# sourceMappingURL=ui_input.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui_input.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_input.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,wDAAiD;AACjD,kDAO4B;AAEf,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAwB7D,SAAS,mBAAmB;IAC1B,OAAO;QACL,WAAW,EAAE,EAAE;QACf,KAAK,EAAE,SAAS;QAChB,gBAAgB,EAAE,SAAS;QAC3B,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;KACjB,CAAC;AACJ,CAAC;AAEY,QAAA,SAAS,GAAG;IACvB,MAAM,CAAC,OAAkB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACjE,IAAI,OAAO,CAAC,WAAW,KAAK,EAAE,EAAE;YAC9B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SAC/C;QACD,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE;YAC/B,mBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SACjE;QACD,IAAI,OAAO,CAAC,gBAAgB,KAAK,SAAS,EAAE;YAC1C,mBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI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AAW,CAA6C,MAAS;;QAC/D,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;QACtC,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,EAAE,CAAC;QAC/C,OAAO,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC;YACnE,CAAC,CAAC,mBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC;YAClC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,gBAAgB,GAAG,CAAC,MAAM,CAAC,gBAAgB,KAAK,SAAS,IAAI,MAAM,CAAC,gBAAgB,KAAK,IAAI,CAAC;YACpG,CAAC,CAAC,mBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC;YAC7C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,KAAK,CAAC;QAC5C,OAAO,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,SAAS,CAAC;QAClD,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,SAAS,CAAC;QACxC,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,SAAS,CAAC;QAChD,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,SAAS,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAcF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,38 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ export interface PBUiInputResult {
4
+ value: string;
5
+ }
6
+ export declare const PBUiInputResult: {
7
+ encode(message: PBUiInputResult, writer?: _m0.Writer): _m0.Writer;
8
+ decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
9
+ fromJSON(object: any): PBUiInputResult;
10
+ toJSON(message: PBUiInputResult): unknown;
11
+ create<I extends {
12
+ value?: string | undefined;
13
+ } & {
14
+ value?: string | undefined;
15
+ } & { [K in Exclude<keyof I, "value">]: never; }>(base?: I | undefined): PBUiInputResult;
16
+ fromPartial<I_1 extends {
17
+ value?: string | undefined;
18
+ } & {
19
+ value?: string | undefined;
20
+ } & { [K_1 in Exclude<keyof I_1, "value">]: never; }>(object: I_1): PBUiInputResult;
21
+ };
22
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
23
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
24
+ $case: string;
25
+ } ? {
26
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
27
+ } & {
28
+ $case: T["$case"];
29
+ } : T extends {} ? {
30
+ [K in keyof T]?: DeepPartial<T[K]>;
31
+ } : Partial<T>;
32
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
33
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
34
+ [K in keyof P]: Exact<P[K], I[K]>;
35
+ } & {
36
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
37
+ };
38
+ export {};
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBUiInputResult = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBUiInputResult() {
11
+ return { value: "" };
12
+ }
13
+ exports.PBUiInputResult = {
14
+ encode(message, writer = minimal_1.default.Writer.create()) {
15
+ if (message.value !== "") {
16
+ writer.uint32(10).string(message.value);
17
+ }
18
+ return writer;
19
+ },
20
+ decode(input, length) {
21
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBasePBUiInputResult();
24
+ while (reader.pos < end) {
25
+ const tag = reader.uint32();
26
+ switch (tag >>> 3) {
27
+ case 1:
28
+ message.value = reader.string();
29
+ break;
30
+ default:
31
+ reader.skipType(tag & 7);
32
+ break;
33
+ }
34
+ }
35
+ return message;
36
+ },
37
+ fromJSON(object) {
38
+ return { value: isSet(object.value) ? String(object.value) : "" };
39
+ },
40
+ toJSON(message) {
41
+ const obj = {};
42
+ message.value !== undefined && (obj.value = message.value);
43
+ return obj;
44
+ },
45
+ create(base) {
46
+ return exports.PBUiInputResult.fromPartial(base !== null && base !== void 0 ? base : {});
47
+ },
48
+ fromPartial(object) {
49
+ var _a;
50
+ const message = createBasePBUiInputResult();
51
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : "";
52
+ return message;
53
+ },
54
+ };
55
+ function isSet(value) {
56
+ return value !== null && value !== undefined;
57
+ }
58
+ //# sourceMappingURL=ui_input_result.gen.js.map