@cycle-robot-drivers/screen
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -6,3 +6,4 @@ import { Stream } from "xstream"; | ||
MESSAGE = "MESSAGE", | ||
CHOICE = "CHOICE" | ||
CHOICE = "CHOICE", | ||
IMAGE = "IMAGE" | ||
} | ||
@@ -9,0 +10,0 @@ export declare function status(reducerState$: any): Stream<GoalStatus>; |
@@ -37,2 +37,3 @@ "use strict"; | ||
SpeechbubbleType["CHOICE"] = "CHOICE"; | ||
SpeechbubbleType["IMAGE"] = "IMAGE"; | ||
})(SpeechbubbleType = exports.SpeechbubbleType || (exports.SpeechbubbleType = {})); | ||
@@ -58,3 +59,3 @@ function input(goal$, cancel$, clickEvent$) { | ||
} | ||
: goal.goal // {type: string, value: string | [string]} | ||
: goal | ||
}); }), cancel$.map(function (val) { return ({ type: InputType.CANCEL, value: val }); }), clickEvent$.map(function (event) { return ({ | ||
@@ -88,3 +89,5 @@ type: InputType.CLICK, | ||
})) | ||
: "" | ||
: inputValue.goal.type === SpeechbubbleType.IMAGE | ||
? dom_1.img({ attrs: { src: inputValue.goal.value, width: "80%" } }) | ||
: "" | ||
} | ||
@@ -108,3 +111,5 @@ }); }, | ||
})) | ||
: "", | ||
: inputValue.goal.type === SpeechbubbleType.IMAGE | ||
? dom_1.img({ attrs: { src: inputValue.goal.value, width: "80%" } }) | ||
: "", | ||
result: { | ||
@@ -111,0 +116,0 @@ status: { |
@@ -6,3 +6,4 @@ import { Stream } from "xstream"; | ||
MESSAGE = "MESSAGE", | ||
CHOICE = "CHOICE" | ||
CHOICE = "CHOICE", | ||
IMAGE = "IMAGE" | ||
} | ||
@@ -9,0 +10,0 @@ export declare function status(reducerState$: any): Stream<GoalStatus>; |
@@ -15,3 +15,3 @@ var __assign = (this && this.__assign) || function () { | ||
import isolate from "@cycle/isolate"; | ||
import { span, button } from "@cycle/dom"; | ||
import { span, button, img } from "@cycle/dom"; | ||
import { Status, initGoal, generateGoalStatus, isEqualGoalStatus, isEqualGoalID } from "@cycle-robot-drivers/action"; | ||
@@ -33,2 +33,3 @@ var State; | ||
SpeechbubbleType["CHOICE"] = "CHOICE"; | ||
SpeechbubbleType["IMAGE"] = "IMAGE"; | ||
})(SpeechbubbleType || (SpeechbubbleType = {})); | ||
@@ -54,3 +55,3 @@ function input(goal$, cancel$, clickEvent$) { | ||
} | ||
: goal.goal // {type: string, value: string | [string]} | ||
: goal | ||
}); }), cancel$.map(function (val) { return ({ type: InputType.CANCEL, value: val }); }), clickEvent$.map(function (event) { return ({ | ||
@@ -84,3 +85,5 @@ type: InputType.CLICK, | ||
})) | ||
: "" | ||
: inputValue.goal.type === SpeechbubbleType.IMAGE | ||
? img({ attrs: { src: inputValue.goal.value, width: "80%" } }) | ||
: "" | ||
} | ||
@@ -104,3 +107,5 @@ }); }, | ||
})) | ||
: "", | ||
: inputValue.goal.type === SpeechbubbleType.IMAGE | ||
? img({ attrs: { src: inputValue.goal.value, width: "80%" } }) | ||
: "", | ||
result: { | ||
@@ -107,0 +112,0 @@ status: { |
{ | ||
"name": "@cycle-robot-drivers/screen", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Cycle.js drivers for rendering a robot face", | ||
@@ -5,0 +5,0 @@ "author": "Michael Jae-Yoon Chung", |
@@ -5,3 +5,3 @@ import xs from "xstream"; | ||
import isolate from "@cycle/isolate"; | ||
import { span, button, DOMSource, VNode } from "@cycle/dom"; | ||
import { span, button, img, DOMSource, VNode } from "@cycle/dom"; | ||
import { | ||
@@ -58,3 +58,4 @@ GoalID, | ||
MESSAGE = "MESSAGE", | ||
CHOICE = "CHOICE" | ||
CHOICE = "CHOICE", | ||
IMAGE = "IMAGE" | ||
} | ||
@@ -87,3 +88,3 @@ | ||
} | ||
: goal.goal // {type: string, value: string | [string]} | ||
: goal | ||
})), | ||
@@ -144,2 +145,4 @@ cancel$.map(val => ({ type: InputType.CANCEL, value: val })), | ||
) | ||
: inputValue.goal.type === SpeechbubbleType.IMAGE | ||
? img({ attrs: { src: inputValue.goal.value, width: "80%" } }) | ||
: "" | ||
@@ -167,2 +170,4 @@ } | ||
) | ||
: inputValue.goal.type === SpeechbubbleType.IMAGE | ||
? img({ attrs: { src: inputValue.goal.value, width: "80%" } }) | ||
: "", | ||
@@ -169,0 +174,0 @@ result: { |
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
183605
3524