ywana-core8 0.0.838 → 0.0.840

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.
@@ -5125,6 +5125,7 @@ var TaskContextProvider = function TaskContextProvider(props) {
5125
5125
  useEffect(function () {
5126
5126
  var _interval = setInterval(function () {
5127
5127
  try {
5128
+ console.log("TASKS INTERVAL", listeners);
5128
5129
  var taskIDs = Object.keys(listeners);
5129
5130
 
5130
5131
  var _temp2 = _forTo(taskIDs, function (i) {
@@ -5154,6 +5155,12 @@ var TaskContextProvider = function TaskContextProvider(props) {
5154
5155
  setListeners(next);
5155
5156
  }
5156
5157
 
5158
+ function addListeners(newListeners) {
5159
+ var next = _extends({}, listeners, newListeners);
5160
+
5161
+ setListeners(next);
5162
+ }
5163
+
5157
5164
  function removeListener(taskID) {
5158
5165
  var next = _extends({}, listeners);
5159
5166
 
@@ -5169,12 +5176,25 @@ var TaskContextProvider = function TaskContextProvider(props) {
5169
5176
  removeTask: removeTask,
5170
5177
  listeners: listeners,
5171
5178
  addListener: addListener,
5179
+ addListeners: addListeners,
5172
5180
  removeListener: removeListener
5173
5181
  };
5174
5182
  return /*#__PURE__*/React.createElement(TaskContext.Provider, {
5175
5183
  value: value
5176
5184
  }, children);
5177
5185
  };
5186
+ /**
5187
+ * Task States
5188
+ */
5189
+
5190
+ var TASK_STATES = {
5191
+ "CREATED": "CREATED",
5192
+ "RUNNING": "RUNNING",
5193
+ "COMPLETED": "COMPLETED",
5194
+ "FAULTED": "FAULTED",
5195
+ "CANCELED": "CANCELED",
5196
+ "QUEUED": "QUEUED"
5197
+ };
5178
5198
  /**
5179
5199
  * TaskProgress
5180
5200
  */
@@ -11824,5 +11844,5 @@ var isFunction = function isFunction(value) {
11824
11844
  return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
11825
11845
  };
11826
11846
 
11827
- export { Accordion, Avatar, Button, Calendar, CheckBox, Chip, Chips, CircularProgress, CollectionAPI$1 as CollectionAPI, CollectionAPI as CollectionAPI2, CollectionContext$1 as CollectionContext, CollectionContext as CollectionContext2, CollectionEditor$2 as CollectionEditor, CollectionFilters$1 as CollectionFilters, CollectionPage$1 as CollectionPage, CollectionPage as CollectionPage2, CollectionTree, ColorField, Content, ContentEditor, ContentForm, ContentViewer, CreateContentDialog, DataTable, DateRange, Dialog, DropDown, DynamicForm, EditContentDialog, EmptyMessage, FORMATS$1 as FORMATS, FieldEditor, FileExplorer, FilesGrid, Form, HTTPClient, Header, Icon, ImageViewer, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, MultiSelector, Page, PageContext, PageProvider, PasswordEditor, PasswordField, Planner, Property, RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, TEXTFORMATS, TYPES$1 as TYPES, Tab, TabbedContentEditor, TabbedTablePage, TabbedView, TableEditor$2 as TableEditor, TablePage, TablePage2, Tabs, TaskContext, TaskContextProvider, TaskMonitor, TaskProgress, Text, TextArea, TextField, Thumbnail, ToggleButton, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadDialog, UploadFile$1 as UploadFile, UploadForm, UploadIcon, Uploader, View, Viewer, WaitScreen, Wizard, WizardContext, isEmpty, isFunction };
11847
+ export { Accordion, Avatar, Button, Calendar, CheckBox, Chip, Chips, CircularProgress, CollectionAPI$1 as CollectionAPI, CollectionAPI as CollectionAPI2, CollectionContext$1 as CollectionContext, CollectionContext as CollectionContext2, CollectionEditor$2 as CollectionEditor, CollectionFilters$1 as CollectionFilters, CollectionPage$1 as CollectionPage, CollectionPage as CollectionPage2, CollectionTree, ColorField, Content, ContentEditor, ContentForm, ContentViewer, CreateContentDialog, DataTable, DateRange, Dialog, DropDown, DynamicForm, EditContentDialog, EmptyMessage, FORMATS$1 as FORMATS, FieldEditor, FileExplorer, FilesGrid, Form, HTTPClient, Header, Icon, ImageViewer, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, MultiSelector, Page, PageContext, PageProvider, PasswordEditor, PasswordField, Planner, Property, RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, TASK_STATES, TEXTFORMATS, TYPES$1 as TYPES, Tab, TabbedContentEditor, TabbedTablePage, TabbedView, TableEditor$2 as TableEditor, TablePage, TablePage2, Tabs, TaskContext, TaskContextProvider, TaskMonitor, TaskProgress, Text, TextArea, TextField, Thumbnail, ToggleButton, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadDialog, UploadFile$1 as UploadFile, UploadForm, UploadIcon, Uploader, View, Viewer, WaitScreen, Wizard, WizardContext, isEmpty, isFunction };
11828
11848
  //# sourceMappingURL=index.modern.js.map