ywana-core8 0.0.996 → 0.0.998

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.996",
3
+ "version": "0.0.998",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -166,7 +166,7 @@ export const TaskProgress = (props) => {
166
166
  */
167
167
  export const TaskMonitor = (props) => {
168
168
 
169
- const { title = "Task Monitor", filters = {}, editors, frequency = 5000 } = props
169
+ const { title = "Task Monitor", filters = {}, editors, frequency = 5000, onRefresh } = props
170
170
  const context = useContext(TaskContext)
171
171
  const [tasks = [], setTasks] = useState([])
172
172
  const [minimized, setMinimized] = useState(false)
@@ -182,6 +182,7 @@ export const TaskMonitor = (props) => {
182
182
  async function refresh() {
183
183
  const tasks = await context.tasks(filters)
184
184
  setTasks(tasks)
185
+ if (onRefresh) onRefresh(tasks)
185
186
  }
186
187
 
187
188
  async function remove(task) {
@@ -1,5 +1,6 @@
1
1
  export * from './login/LoginBox'
2
2
  export * from './login/ResetPasswordBox'
3
+ export * from './login/login_commons'
3
4
  export * from './viewer/Viewer'
4
5
  export * from './kanban/Kanban'
5
6
  export * from './avatar/avatar'