diff --git a/package-lock.json b/package-lock.json index 04305ea35..ddecb2706 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@actions/core": "^1.10.0", - "@dcl/protocol": "1.0.0-10043247792.commit-428d1eb", + "@dcl/protocol": "1.0.0-10670971402.commit-227b327", "@dcl/quickjs-emscripten": "^0.21.0-3680274614.commit-1808aa1", "@dcl/ts-proto": "1.153.0", "@types/fs-extra": "^9.0.12", @@ -577,9 +577,9 @@ } }, "node_modules/@dcl/protocol": { - "version": "1.0.0-10043247792.commit-428d1eb", - "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10043247792.commit-428d1eb.tgz", - "integrity": "sha512-rHXQhXBJawMpPEZACp2fdHEK4ZhKw3xJaVz3IpzHdrxYWdPThKf2pUkYZZ/2iQ248GrlDRM9G7ou7lOk8SwOzw==", + "version": "1.0.0-10670971402.commit-227b327", + "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10670971402.commit-227b327.tgz", + "integrity": "sha512-fZrsia50FoCPbWIzY6aQYZolJvOYdNx4KHEBYGAEuL8d8glVFuJMLK0J+Y7YHsCjY9qW810anBAvk4u+d+i/BA==", "dependencies": { "@dcl/ts-proto": "1.154.0" } @@ -8232,9 +8232,9 @@ } }, "@dcl/protocol": { - "version": "1.0.0-10043247792.commit-428d1eb", - "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10043247792.commit-428d1eb.tgz", - "integrity": "sha512-rHXQhXBJawMpPEZACp2fdHEK4ZhKw3xJaVz3IpzHdrxYWdPThKf2pUkYZZ/2iQ248GrlDRM9G7ou7lOk8SwOzw==", + "version": "1.0.0-10670971402.commit-227b327", + "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10670971402.commit-227b327.tgz", + "integrity": "sha512-fZrsia50FoCPbWIzY6aQYZolJvOYdNx4KHEBYGAEuL8d8glVFuJMLK0J+Y7YHsCjY9qW810anBAvk4u+d+i/BA==", "requires": { "@dcl/ts-proto": "1.154.0" }, diff --git a/package.json b/package.json index 29b46a358..78c36e129 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/decentraland/js-sdk-toolchain/issues", "dependencies": { "@actions/core": "^1.10.0", - "@dcl/protocol": "1.0.0-10043247792.commit-428d1eb", + "@dcl/protocol": "1.0.0-10670971402.commit-227b327", "@dcl/quickjs-emscripten": "^0.21.0-3680274614.commit-1808aa1", "@dcl/ts-proto": "1.153.0", "@types/fs-extra": "^9.0.12", diff --git a/packages/@dcl/playground-assets/etc/playground-assets.api.md b/packages/@dcl/playground-assets/etc/playground-assets.api.md index 45a34e5e1..32399ac2d 100644 --- a/packages/@dcl/playground-assets/etc/playground-assets.api.md +++ b/packages/@dcl/playground-assets/etc/playground-assets.api.md @@ -598,6 +598,7 @@ export const componentDefinitionByName: { "core::EngineInfo": LwwComponentGetter>; "core::GltfContainer": LwwComponentGetter>; "core::GltfContainerLoadingState": LwwComponentGetter>; + "core::InputModifier": LwwComponentGetter>; "core::Material": LwwComponentGetter>; "core::MeshCollider": LwwComponentGetter>; "core::MeshRenderer": LwwComponentGetter>; @@ -1384,6 +1385,9 @@ export const enum InputAction { IA_WALK = 9 } +// @public (undocumented) +export const InputModifier: LastWriteWinElementSetComponentDefinition; + // @public export const inputSystem: IInputSystem; @@ -2303,6 +2307,47 @@ export namespace PBGltfContainerLoadingState { export function encode(message: PBGltfContainerLoadingState, writer?: _m0.Writer): _m0.Writer; } +// @public (undocumented) +export interface PBInputModifier { + // (undocumented) + mode?: { + $case: "standard"; + standard: PBInputModifier_StandardInput; + } | undefined; +} + +// @public (undocumented) +export namespace PBInputModifier { + // (undocumented) + export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier; + // (undocumented) + export function encode(message: PBInputModifier, writer?: _m0.Writer): _m0.Writer; +} + +// @public (undocumented) +export interface PBInputModifier_StandardInput { + // (undocumented) + disableAll?: boolean | undefined; + // (undocumented) + disableEmote?: boolean | undefined; + // (undocumented) + disableJog?: boolean | undefined; + // (undocumented) + disableJump?: boolean | undefined; + // (undocumented) + disableRun?: boolean | undefined; + // (undocumented) + disableWalk?: boolean | undefined; +} + +// @public (undocumented) +export namespace PBInputModifier_StandardInput { + // (undocumented) + export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput; + // (undocumented) + export function encode(message: PBInputModifier_StandardInput, writer?: _m0.Writer): _m0.Writer; +} + // @public (undocumented) export interface PBMaterial { // (undocumented) diff --git a/packages/@dcl/sdk-commands/package-lock.json b/packages/@dcl/sdk-commands/package-lock.json index dd53f329f..d86f5b186 100644 --- a/packages/@dcl/sdk-commands/package-lock.json +++ b/packages/@dcl/sdk-commands/package-lock.json @@ -15,7 +15,7 @@ "@dcl/inspector": "file:../inspector", "@dcl/linker-dapp": "^0.12.0", "@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be", - "@dcl/protocol": "1.0.0-10043247792.commit-428d1eb", + "@dcl/protocol": "1.0.0-10670971402.commit-227b327", "@dcl/quests-client": "^1.0.3", "@dcl/quests-manager": "^0.1.4", "@dcl/rpc": "^1.1.1", @@ -93,7 +93,7 @@ "@vscode/webview-ui-toolkit": "^1.2.2", "@well-known-components/pushable-channel": "^1.0.3", "classnames": "^2.3.2", - "decentraland-ui": "^4.10.0", + "decentraland-ui": "^6.5.3", "dotenv": "^16.3.1", "esbuild": "^0.18.17", "ethereum-cryptography": "^2.1.2", @@ -238,9 +238,9 @@ } }, "node_modules/@dcl/protocol": { - "version": "1.0.0-10043247792.commit-428d1eb", - "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10043247792.commit-428d1eb.tgz", - "integrity": "sha512-rHXQhXBJawMpPEZACp2fdHEK4ZhKw3xJaVz3IpzHdrxYWdPThKf2pUkYZZ/2iQ248GrlDRM9G7ou7lOk8SwOzw==", + "version": "1.0.0-10670971402.commit-227b327", + "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10670971402.commit-227b327.tgz", + "integrity": "sha512-fZrsia50FoCPbWIzY6aQYZolJvOYdNx4KHEBYGAEuL8d8glVFuJMLK0J+Y7YHsCjY9qW810anBAvk4u+d+i/BA==", "dependencies": { "@dcl/ts-proto": "1.154.0" } @@ -3158,7 +3158,7 @@ "@vscode/webview-ui-toolkit": "^1.2.2", "@well-known-components/pushable-channel": "^1.0.3", "classnames": "^2.3.2", - "decentraland-ui": "^4.10.0", + "decentraland-ui": "^6.5.3", "dotenv": "^16.3.1", "esbuild": "^0.18.17", "ethereum-cryptography": "^2.1.2", @@ -3227,9 +3227,9 @@ } }, "@dcl/protocol": { - "version": "1.0.0-10043247792.commit-428d1eb", - "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10043247792.commit-428d1eb.tgz", - "integrity": "sha512-rHXQhXBJawMpPEZACp2fdHEK4ZhKw3xJaVz3IpzHdrxYWdPThKf2pUkYZZ/2iQ248GrlDRM9G7ou7lOk8SwOzw==", + "version": "1.0.0-10670971402.commit-227b327", + "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-10670971402.commit-227b327.tgz", + "integrity": "sha512-fZrsia50FoCPbWIzY6aQYZolJvOYdNx4KHEBYGAEuL8d8glVFuJMLK0J+Y7YHsCjY9qW810anBAvk4u+d+i/BA==", "requires": { "@dcl/ts-proto": "1.154.0" } diff --git a/packages/@dcl/sdk-commands/package.json b/packages/@dcl/sdk-commands/package.json index 8e6129163..82179af1e 100644 --- a/packages/@dcl/sdk-commands/package.json +++ b/packages/@dcl/sdk-commands/package.json @@ -13,7 +13,7 @@ "@dcl/inspector": "file:../inspector", "@dcl/linker-dapp": "^0.12.0", "@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be", - "@dcl/protocol": "1.0.0-10043247792.commit-428d1eb", + "@dcl/protocol": "1.0.0-10670971402.commit-227b327", "@dcl/quests-client": "^1.0.3", "@dcl/quests-manager": "^0.1.4", "@dcl/rpc": "^1.1.1", diff --git a/scripts/protocol-buffer-generation/index.ts b/scripts/protocol-buffer-generation/index.ts index 6bdb6b437..d1b218af5 100644 --- a/scripts/protocol-buffer-generation/index.ts +++ b/scripts/protocol-buffer-generation/index.ts @@ -10,7 +10,7 @@ import fs from 'fs-extra' import { FileDescriptorStandardOption, runCommand } from '../utils/shellCommand' import { PROTO_COMPILER_PATH, TS_PROTO_PLUGIN_PATH } from './protoConst' -const NON_EXPOSED_LIST: number[] = [] +const NON_EXPOSED_LIST: number[] = [1097] /** * @param componentPath - Argument of execution '--component-path' diff --git a/test/ecs/components/InputModifier.spec.ts b/test/ecs/components/InputModifier.spec.ts new file mode 100644 index 000000000..9cf6234c1 --- /dev/null +++ b/test/ecs/components/InputModifier.spec.ts @@ -0,0 +1,23 @@ +import { components, Engine } from '../../../packages/@dcl/ecs/src' +import { testComponentSerialization } from './assertion' + +describe('Generated InputModifier ProtoBuf', () => { + it('should serialize/deserialize InputModifier', () => { + const newEngine = Engine() + const InputModifier = components.InputModifier(newEngine) + + testComponentSerialization(InputModifier, { + mode: { + $case: 'standard', + standard: { + disableAll: true, + disableWalk: true, + disableJog: true, + disableRun: true, + disableJump: true, + disableEmote: true + } + } + }) + }) +}) diff --git a/test/ecs/components/MapPin.spec.ts b/test/ecs/components/MapPin.spec.ts new file mode 100644 index 000000000..b333be8d9 --- /dev/null +++ b/test/ecs/components/MapPin.spec.ts @@ -0,0 +1,18 @@ +import { Engine } from '../../../packages/@dcl/ecs/src' +import { MapPinSchema } from '../../../packages/@dcl/ecs/src/components/generated/MapPin.gen' +import { testComponentSerialization } from './assertion' + +describe('Generated Billboard ProtoBuf', () => { + it('should serialize/deserialize Billboard', () => { + const newEngine = Engine() + const MapPin = newEngine.defineComponentFromSchema('core::MapPin', MapPinSchema) + + testComponentSerialization(MapPin, { + description: 'casla', + iconSize: 8, + position: { x: 8, y: 8 }, + title: 'boedo', + texture: undefined + }) + }) +}) diff --git a/test/snapshots/package-lock.json b/test/snapshots/package-lock.json index 86219e251..4e79d1a13 100644 --- a/test/snapshots/package-lock.json +++ b/test/snapshots/package-lock.json @@ -150,7 +150,7 @@ "dependencies": { "@dcl/ecs": "file:../ecs", "@dcl/ecs-math": "2.0.2", - "@dcl/explorer": "1.0.164427-20240726154521.commit-bf9648c", + "@dcl/explorer": "1.0.164509-20240802172549.commit-fb95b9b", "@dcl/js-runtime": "file:../js-runtime", "@dcl/react-ecs": "file:../react-ecs", "@dcl/sdk-commands": "file:../sdk-commands", @@ -168,7 +168,7 @@ "@dcl/inspector": "file:../inspector", "@dcl/linker-dapp": "^0.12.0", "@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be", - "@dcl/protocol": "1.0.0-10043247792.commit-428d1eb", + "@dcl/protocol": "1.0.0-10670971402.commit-227b327", "@dcl/quests-client": "^1.0.3", "@dcl/quests-manager": "^0.1.4", "@dcl/rpc": "^1.1.1",