diff --git a/package-lock.json b/package-lock.json index f57a1e082..56996bc22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@dcl/crypto": "^3.4.5", "@dcl/hashing": "^3.0.4", "@dcl/mini-rpc": "^1.0.7", - "@dcl/schemas": "^15.1.2", + "@dcl/schemas": "^15.4.0", "@dcl/sdk": "7.5.5", "@dcl/single-sign-on-client": "^0.1.0", "@dcl/ui-env": "^1.5.0", @@ -3066,9 +3066,9 @@ } }, "node_modules/@dcl/schemas": { - "version": "15.1.2", - "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-15.1.2.tgz", - "integrity": "sha512-RD7ML7gpQiIbSHSF1xquYfOZgq1KlYO+TvKPVmeI+X6wfj6cbC1A46NPj+Hm39lKsPqvVXivfrfhcZskGATjfA==", + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-15.4.0.tgz", + "integrity": "sha512-pRR81kg9o9FFTWBTn3aslgGdBrRnUWFpLu9lwrEJr/5J2rhmHDzeeBTlr7x+0r3qnzzNVOLndOurtgM3/HzqeA==", "dependencies": { "ajv": "^8.11.0", "ajv-errors": "^3.0.0", diff --git a/package.json b/package.json index 9d7d73520..f7b94dd51 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@dcl/crypto": "^3.4.5", "@dcl/hashing": "^3.0.4", "@dcl/mini-rpc": "^1.0.7", - "@dcl/schemas": "^15.1.2", + "@dcl/schemas": "^15.4.0", "@dcl/sdk": "7.5.5", "@dcl/single-sign-on-client": "^0.1.0", "@dcl/ui-env": "^1.5.0", diff --git a/src/components/ItemEditorPage/RightPanel/RightPanel.tsx b/src/components/ItemEditorPage/RightPanel/RightPanel.tsx index caa203a36..a7737b8f3 100644 --- a/src/components/ItemEditorPage/RightPanel/RightPanel.tsx +++ b/src/components/ItemEditorPage/RightPanel/RightPanel.tsx @@ -169,6 +169,14 @@ export default class RightPanel extends React.PureComponent { this.setState({ data, isDirty: this.isDirty({ data }) }) } + handleAllowOutlineCompatible = (_event: React.FormEvent, { checked }: CheckboxProps) => { + const data = { + ...this.state.data, + outlineCompatible: checked + } as WearableData + this.setState({ data, isDirty: this.isDirty({ data }) }) + } + handleChangeCategory = (category: HideableWearableCategory | EmoteCategory) => { let data if (isEmoteData(this.state.data!)) { @@ -262,7 +270,8 @@ export default class RightPanel extends React.PureComponent { itemData.category === WearableCategory.UPPER_BODY || itemData.hides?.includes(WearableCategory.UPPER_BODY) ? [BodyPartCategory.HANDS] : [], - ...('blockVrmExport' in itemData ? { blockVrmExport: itemData.blockVrmExport } : {}) + ...('blockVrmExport' in itemData ? { blockVrmExport: itemData.blockVrmExport } : {}), + ...('outlineCompatible' in itemData ? { outlineCompatible: itemData.outlineCompatible } : {}) } } const itemContents = { @@ -689,6 +698,33 @@ export default class RightPanel extends React.PureComponent { )} + {item?.type === ItemType.WEARABLE && ( + + {t('item_editor.right_panel.outline_compatible.title')} + + + } + > +
+
+ {t('item_editor.right_panel.outline_compatible.title')} + +
+
+
+ )} {isDirty ? (