Comparing version 1.1.0 to 1.1.1
@@ -122,5 +122,3 @@ import React from 'react'; | ||
const inputs = this.props.inputs.length ? | ||
React.createElement("div", Object.assign({}, events, { className: styles.inputs, ref: this.props.brick_inputs_ref }), | ||
this.props.show_hat ? React.createElement("div", { className: styles.hat }) : null, | ||
this.props.inputs) : null; | ||
React.createElement("div", Object.assign({}, events, { className: `${styles.inputs} ${this.props.show_hat ? styles.hat : ''}`, ref: this.props.brick_inputs_ref }), this.props.inputs) : null; | ||
const parts = this.props.parts.length ? | ||
@@ -133,3 +131,3 @@ React.createElement("div", { className: styles.parts, ref: this.props.brick_parts_ref }, this.props.parts) : null; | ||
marginTop: `${this.props.offset && this.props.offset.y || 0}px`, | ||
}, className: `${styles.wrap} ${styles[BrickOutput[this.props.output || BrickOutput.void]]} ${this.props.is_removing ? styles.removing : ''} ${this.props.is_container ? styles.container : ''} ${this.props.is_ghost ? styles.ghost : ''} ${this.props.active ? styles.active : ''}`, "data-id": this.props.id, ref: this.props.brick_ref }, this.props.children ? events : {}), | ||
}, className: `${styles.wrap} ${this.props.output ? `${styles.output} ${styles[BrickOutput[this.props.output]]}` : ''} ${this.props.is_removing ? styles.removing : ''} ${this.props.is_container ? styles.container : ''} ${this.props.is_ghost ? styles.ghost : ''} ${this.props.active ? styles.active : ''}`, "data-id": this.props.id, ref: this.props.brick_ref }, this.props.children ? events : {}), | ||
inputs, | ||
@@ -136,0 +134,0 @@ parts, |
@@ -10,13 +10,13 @@ export const toolbox: string; | ||
export const inputs: string; | ||
export const hat: string; | ||
export const parts: string; | ||
export const next: string; | ||
export const hat: string; | ||
export const container: string; | ||
export const output: string; | ||
export const number: string; | ||
export const boolean: string; | ||
export const array: string; | ||
export const number: string; | ||
export const string: string; | ||
export const any: string; | ||
export const atomicText: string; | ||
export const ghost: string; | ||
export const atomicText: string; | ||
export const atomicParam: string; | ||
@@ -23,0 +23,0 @@ export const atomicTextIndent: string; |
@@ -187,3 +187,3 @@ import React from 'react'; | ||
const y1 = offset.y; | ||
const x2 = this.inserting_candidates_local_offset[i].x + (parent && parent.parts ? 20 : 0); | ||
const x2 = this.inserting_candidates_local_offset[i].x + (parent && parent.parts ? 15 : 0); | ||
const y2 = this.inserting_candidates_local_offset[i].y + (brick_data.output ? 0 : this.brick_id_to_size[i].h); | ||
@@ -570,3 +570,3 @@ const distance = distance_2d(x1, y1, x2, y2); | ||
if (brick.type === 'atomic_text') { | ||
return React.createElement("span", { key: brick.id, className: styles.atomicText }, | ||
return React.createElement("div", { key: brick.id, className: styles.atomicText }, | ||
brick.ui.value[0] === ' ' ? React.createElement("div", { className: styles.atomicTextIndent }) : null, | ||
@@ -573,0 +573,0 @@ brick.ui.value); |
{ | ||
"name": "froggy", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161979
3608