bobflux-monitor
Advanced tools
Comparing version 2.0.4 to 2.0.5
import * as b from 'bobril'; | ||
export const textareaStyles = { | ||
default: { | ||
resize: 'none' | ||
}, | ||
copyState: b.styleDef({ | ||
@@ -46,12 +49,11 @@ width: 150, | ||
me.tag = 'textarea'; | ||
me.attrs = { | ||
rows: 1, | ||
value: ctx.value, | ||
placeholder: ctx.data.placeholder, | ||
wrap: 'soft', | ||
resize: 'none', | ||
spellcheck: false | ||
me.attrs = { | ||
rows: 1, | ||
value: ctx.value, | ||
placeholder: ctx.data.placeholder, | ||
wrap: 'soft', | ||
spellcheck: false | ||
}; | ||
b.style(me, !!ctx.data.style, { cssFloat: ctx.data.float }); | ||
b.style(me, !!ctx.data.style && ctx.data.style, textareaStyles.default, { cssFloat: ctx.data.float }); | ||
}, | ||
@@ -58,0 +60,0 @@ postInitDom(ctx: ICtx, _me: b.IBobrilCacheNode, element: HTMLElement) { |
@@ -7,4 +7,4 @@ import * as f from 'fun-model'; | ||
copy.date = new Date(Date.now()); | ||
copy.popup = () => alert(`Current value is ${copy.counter}.`); | ||
copy.popup = () => alert('Popup opened by some data-closed function.'); | ||
copy.history = [...state.history, copy.counter]; | ||
})); |
@@ -1,2 +0,2 @@ | ||
export function allToString(obj?: Object[] | Date | Object | string): string { | ||
export function allToString(obj?: Object[] | Date | Object | string | null): string { | ||
if (obj === null) | ||
@@ -3,0 +3,0 @@ return 'null'; |
@@ -15,3 +15,3 @@ import * as b from 'bobril'; | ||
// TODO: update fun-model to recognize the calling action from stack | ||
export function init<TState extends f.IState>(cursor: f.ICursor<TState> = { key: '' }): (m, p) => void { | ||
export function init<TState extends f.IState>(cursor: f.ICursor<TState> = { key: '' }): (message: string, params?: Object[]) => void { | ||
const createMonitor = monitorGenericFactory(cursor); | ||
@@ -27,6 +27,6 @@ let routeUrl = ''; | ||
const callback = (m, p) => { | ||
const callback = (m: string, p?: Object[]) => { | ||
if (isPlaying) | ||
return; | ||
if (m && m.indexOf('has been initialized') >= 0) { | ||
@@ -33,0 +33,0 @@ data.stateStamps = [createStateStamp(f.getState(cursor))]; |
{ | ||
"name": "bobflux-monitor", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Component for time travelling in bobflux/fun-model application state history.", | ||
@@ -33,4 +33,4 @@ "typescript": { | ||
"dependencies": { | ||
"bobril": "^4.*", | ||
"fun-model": "^1.*.*" | ||
"bobril": "^5.0.4", | ||
"fun-model": "^2.1.0" | ||
}, | ||
@@ -41,2 +41,2 @@ "bobril": { | ||
} | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"target": "es5", | ||
"module": "commonjs", | ||
@@ -25,16 +25,4 @@ "moduleResolution": "node", | ||
"C:/Users/t.rut/AppData/Roaming/npm/node_modules/bobril-build/typings/jasmine/jasmine.d.ts", | ||
"components/button.ts", | ||
"components/monitorPanel.ts", | ||
"components/row.ts", | ||
"components/rows.ts", | ||
"components/textarea.ts", | ||
"example.ts", | ||
"example/actions/increment.ts", | ||
"example/mainPage.ts", | ||
"example/state.ts", | ||
"helpers/string.ts", | ||
"index.ts", | ||
"node_modules/bobril/jsx.d.ts", | ||
"spec/string.spec.ts" | ||
"node_modules/bobril/jsx.d.ts" | ||
] | ||
} |
@@ -103,3 +103,7 @@ { | ||
], | ||
"variable-name": [true, "allow-leading-underscore"], | ||
"variable-name": [ | ||
true, | ||
"allow-leading-underscore" | ||
], | ||
"whitespace": [ | ||
@@ -115,2 +119,2 @@ true, | ||
} | ||
} | ||
} |
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
25953
18
691
+ Addedbobril@5.5.0(transitive)
+ Addedfun-model@2.2.0(transitive)
- Removedbobril@4.49.2(transitive)
- Removedfun-model@1.3.3(transitive)
Updatedbobril@^5.0.4
Updatedfun-model@^2.1.0