diff --git a/docs/package.json b/docs/package.json index c6c51379..7c5d5239 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,7 +7,8 @@ "start": "pnpm dev", "dev": "pnpm setup:docs && vitepress dev", "build": "pnpm setup:docs && vitepress build", - "setup:docs": "pnpm -F @darksoil-studio/tasks analyze && cp ../ui/custom-elements.json elements && pnpm setup:cargo", + "setup:docs": "pnpm setup:custom-elements && pnpm setup:cargo", + "setup:custom-elements": "pnpm -F @darksoil-studio/notifications analyze && mkdir -p public/elements && cp ../ui/custom-elements.json ./public/elements/custom-elements.json", "setup:cargo": "cargo doc --release --no-deps --target-dir public/backend", "preview": "vitepress preview" }, diff --git a/docs/public/elements/custom-elements.json b/docs/public/elements/custom-elements.json new file mode 100644 index 00000000..15f544d8 --- /dev/null +++ b/docs/public/elements/custom-elements.json @@ -0,0 +1,1429 @@ +{ + "schemaVersion": "1.0.0", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "locales/locales.js", + "declarations": [ + { + "kind": "variable", + "name": "sourceLocale", + "default": "`en`", + "description": "The locale code that templates in this source code are written in." + }, + { + "kind": "variable", + "name": "targetLocales", + "type": { + "text": "array" + }, + "default": "[\n ,\n]", + "description": "The other locale codes that this application is localized into. Sorted\nlexicographically." + }, + { + "kind": "variable", + "name": "allLocales", + "type": { + "text": "array" + }, + "default": "[\n `en`,\n]", + "description": "All valid project locale codes. Sorted lexicographically." + } + ], + "exports": [ + { + "kind": "js", + "name": "sourceLocale", + "declaration": { + "name": "sourceLocale", + "module": "locales/locales.js" + } + }, + { + "kind": "js", + "name": "targetLocales", + "declaration": { + "name": "targetLocales", + "module": "locales/locales.js" + } + }, + { + "kind": "js", + "name": "allLocales", + "declaration": { + "name": "allLocales", + "module": "locales/locales.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/context.ts", + "declarations": [ + { + "kind": "variable", + "name": "tasksStoreContext" + } + ], + "exports": [ + { + "kind": "js", + "name": "tasksStoreContext", + "declaration": { + "name": "tasksStoreContext", + "module": "src/context.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/index.ts", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "*", + "declaration": { + "name": "*", + "package": "./tasks-store.js" + } + }, + { + "kind": "js", + "name": "*", + "declaration": { + "name": "*", + "package": "./tasks-client.js" + } + }, + { + "kind": "js", + "name": "*", + "declaration": { + "name": "*", + "package": "./context.js" + } + }, + { + "kind": "js", + "name": "*", + "declaration": { + "name": "*", + "package": "./types.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/mocks.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TasksZomeMock", + "members": [ + { + "kind": "field", + "name": "tasks", + "default": "new HoloHashMap<\n\t\tActionHash,\n\t\t{\n\t\t\tdeletes: Array>;\n\t\t\trevisions: Array;\n\t\t}\n\t>()", + "description": "Task" + }, + { + "kind": "field", + "name": "tasksForAssignee", + "default": "new HoloHashMap()" + }, + { + "kind": "field", + "name": "tasksForTask", + "default": "new HoloHashMap()" + }, + { + "kind": "method", + "name": "create_task", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "task", + "type": { + "text": "Task" + } + } + ] + }, + { + "kind": "method", + "name": "get_latest_task", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "get_all_revisions_for_task", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "get_original_task", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "get_all_deletes_for_task", + "return": { + "type": { + "text": "Promise> | undefined>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "get_oldest_delete_for_task", + "return": { + "type": { + "text": "Promise | undefined>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "delete_task", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "original_task_hash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "update_task", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "input", + "type": { + "text": "{\n\t\toriginal_task_hash: ActionHash;\n\t\tprevious_task_hash: ActionHash;\n\t\tupdated_task: Task;\n\t}" + } + } + ] + }, + { + "kind": "method", + "name": "get_tasks_for_assignee", + "return": { + "type": { + "text": "Promise>" + } + }, + "parameters": [ + { + "name": "assignee", + "type": { + "text": "AgentPubKey" + } + } + ] + }, + { + "kind": "method", + "name": "get_dependent_tasks_for_task", + "return": { + "type": { + "text": "Promise>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "get_unfinished_tasks", + "return": { + "type": { + "text": "Promise>" + } + } + } + ], + "superclass": { + "name": "ZomeMock", + "package": "@holochain-open-dev/utils" + } + }, + { + "kind": "function", + "name": "sampleTask", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "client", + "type": { + "text": "TasksClient" + } + }, + { + "name": "partialTask", + "default": "{}", + "type": { + "text": "Partial" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "TasksZomeMock", + "declaration": { + "name": "TasksZomeMock", + "module": "src/mocks.ts" + } + }, + { + "kind": "js", + "name": "sampleTask", + "declaration": { + "name": "sampleTask", + "module": "src/mocks.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/notifications.ts", + "declarations": [ + { + "kind": "variable", + "name": "NOTIFICATIONS_TYPES", + "type": { + "text": "{\n\tTASK_UNBLOCKED: 'tasks/task_unblocked',\n\tTASK_ASSIGNED_TO_YOU: 'tasks/task_assigned_to_you',\n\tTASK_UNASSIGNED_TO_YOU: 'tasks/task_unassigned_to_you',\n\tDEPENDENCY_FOR_YOUR_TASK_WAS_CANCELLED:\n\t\t'tasks/dependency_for_your_task_was_cancelled',\n\tASSIGNEE_REMOVED_FROM_YOUR_DEPENDENCIES:\n\t\t'tasks/assignee_removed_from_your_dependencies',\n}" + }, + "default": "{\n\tTASK_UNBLOCKED: 'tasks/task_unblocked',\n\tTASK_ASSIGNED_TO_YOU: 'tasks/task_assigned_to_you',\n\tTASK_UNASSIGNED_TO_YOU: 'tasks/task_unassigned_to_you',\n\tDEPENDENCY_FOR_YOUR_TASK_WAS_CANCELLED:\n\t\t'tasks/dependency_for_your_task_was_cancelled',\n\tASSIGNEE_REMOVED_FROM_YOUR_DEPENDENCIES:\n\t\t'tasks/assignee_removed_from_your_dependencies',\n}" + }, + { + "kind": "function", + "name": "notificationsTypes", + "return": { + "type": { + "text": "Record" + } + }, + "parameters": [ + { + "name": "tasksStore", + "type": { + "text": "TasksStore" + } + }, + { + "name": "onClickHandlers", + "optional": true, + "type": { + "text": "TasksNotificationClickHandlers" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "NOTIFICATIONS_TYPES", + "declaration": { + "name": "NOTIFICATIONS_TYPES", + "module": "src/notifications.ts" + } + }, + { + "kind": "js", + "name": "notificationsTypes", + "declaration": { + "name": "notificationsTypes", + "module": "src/notifications.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/tasks-client.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TasksClient", + "members": [ + { + "kind": "method", + "name": "createTask", + "return": { + "type": { + "text": "Promise>" + } + }, + "parameters": [ + { + "name": "task", + "type": { + "text": "Task" + } + } + ], + "description": "Task" + }, + { + "kind": "method", + "name": "getLatestTask", + "return": { + "type": { + "text": "Promise | undefined>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "getOriginalTask", + "return": { + "type": { + "text": "Promise | undefined>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "getAllRevisionsForTask", + "return": { + "type": { + "text": "Promise>>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "updateTask", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "originalTaskHash", + "type": { + "text": "ActionHash" + } + }, + { + "name": "previousTaskHash", + "type": { + "text": "ActionHash" + } + }, + { + "name": "updatedTask", + "type": { + "text": "Task" + } + } + ] + }, + { + "kind": "method", + "name": "deleteTask", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "originalTaskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "getAllDeletesForTask", + "return": { + "type": { + "text": "Promise> | undefined>" + } + }, + "parameters": [ + { + "name": "originalTaskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "getOldestDeleteForTask", + "return": { + "type": { + "text": "Promise | undefined>" + } + }, + "parameters": [ + { + "name": "originalTaskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "getTasksForAssignee", + "return": { + "type": { + "text": "Promise>" + } + }, + "parameters": [ + { + "name": "assignee", + "type": { + "text": "AgentPubKey" + } + } + ] + }, + { + "kind": "method", + "name": "getDeletedTasksForAssignee", + "return": { + "type": { + "text": "Promise<\n\t\tArray<[SignedActionHashed, SignedActionHashed[]]>\n\t>" + } + }, + "parameters": [ + { + "name": "assignee", + "type": { + "text": "AgentPubKey" + } + } + ] + }, + { + "kind": "method", + "name": "getDependentTasksForTask", + "return": { + "type": { + "text": "Promise>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "getDeletedDependentTasksForTask", + "return": { + "type": { + "text": "Promise<\n\t\tArray<[SignedActionHashed, SignedActionHashed[]]>\n\t>" + } + }, + "parameters": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "method", + "name": "getUnfinishedTasks", + "return": { + "type": { + "text": "Promise>" + } + }, + "description": "Unfinished Tasks" + } + ], + "superclass": { + "name": "ZomeClient", + "package": "@holochain-open-dev/utils" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "TasksClient", + "declaration": { + "name": "TasksClient", + "module": "src/tasks-client.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/tasks-store.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TasksStore", + "members": [ + { + "kind": "field", + "name": "updatingTasks", + "privacy": "private", + "default": "new HoloHashMap()" + }, + { + "kind": "method", + "name": "updateDependentTaskIfNecessary", + "privacy": "private", + "parameters": [ + { + "name": "originalDependencyHash", + "type": { + "text": "ActionHash" + } + }, + { + "name": "latestDependencyHash", + "type": { + "text": "ActionHash" + } + }, + { + "name": "newDependencyStatus", + "type": { + "text": "TaskStatus" + } + }, + { + "name": "originalDependentHash", + "type": { + "text": "ActionHash" + } + } + ] + }, + { + "kind": "field", + "name": "tasks", + "default": "new LazyHoloHashMap((taskHash: ActionHash) => ({\n\t\tlatestVersion: latestVersionOfEntrySignal(this.client, () =>\n\t\t\tthis.client.getLatestTask(taskHash),\n\t\t),\n\t\toriginal: immutableEntrySignal(() => this.client.getOriginalTask(taskHash)),\n\t\tallRevisions: allRevisionsOfEntrySignal(this.client, () =>\n\t\t\tthis.client.getAllRevisionsForTask(taskHash),\n\t\t),\n\t\tdeletes: deletesForEntrySignal(this.client, taskHash, () =>\n\t\t\tthis.client.getAllDeletesForTask(taskHash),\n\t\t),\n\t\tdependentTasks: {\n\t\t\tlive: mapCompleted(\n\t\t\t\tliveLinksSignal(\n\t\t\t\t\tthis.client,\n\t\t\t\t\ttaskHash,\n\t\t\t\t\t() => this.client.getDependentTasksForTask(taskHash),\n\t\t\t\t\t'Dependency',\n\t\t\t\t),\n\t\t\t\tlinks => links.map(l => l.target),\n\t\t\t),\n\t\t\tdeleted: mapCompleted(\n\t\t\t\tdeletedLinksSignal(\n\t\t\t\t\tthis.client,\n\t\t\t\t\ttaskHash,\n\t\t\t\t\t() => this.client.getDeletedDependentTasksForTask(taskHash),\n\t\t\t\t\t'Dependency',\n\t\t\t\t),\n\t\t\t\tlinks => links.map(l => l[0].hashed.content.target_address),\n\t\t\t),\n\t\t},\n\t}))", + "description": "Task" + }, + { + "kind": "field", + "name": "tasksForAssignee", + "default": "new LazyHoloHashMap((assignee: AgentPubKey) => ({\n\t\tlive: mapCompleted(\n\t\t\tliveLinksSignal(\n\t\t\t\tthis.client,\n\t\t\t\tassignee,\n\t\t\t\t() => this.client.getTasksForAssignee(assignee),\n\t\t\t\t'AssigneeToTasks',\n\t\t\t),\n\t\t\tlinks =>\n\t\t\t\tslice(\n\t\t\t\t\tthis.tasks,\n\t\t\t\t\tlinks.map(l => l.target),\n\t\t\t\t),\n\t\t),\n\t\tdeleted: mapCompleted(\n\t\t\tdeletedLinksSignal(\n\t\t\t\tthis.client,\n\t\t\t\tassignee,\n\t\t\t\t() => this.client.getDeletedTasksForAssignee(assignee),\n\t\t\t\t'AssigneeToTasks',\n\t\t\t),\n\t\t\tlinks =>\n\t\t\t\tslice(\n\t\t\t\t\tthis.tasks,\n\t\t\t\t\tlinks.map(l => l[0].hashed.content.target_address),\n\t\t\t\t),\n\t\t),\n\t}))" + }, + { + "kind": "field", + "name": "myTasks" + }, + { + "kind": "field", + "name": "unfinishedTasks", + "description": "Unfinished Tasks" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "TasksStore", + "declaration": { + "name": "TasksStore", + "module": "src/tasks-store.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/types.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "src/utils.ts", + "declarations": [ + { + "kind": "function", + "name": "effect", + "parameters": [ + { + "name": "cb", + "type": { + "text": "() => unknown" + } + } + ] + }, + { + "kind": "function", + "name": "waitUntil", + "parameters": [ + { + "name": "condition", + "type": { + "text": "() => Promise" + } + }, + { + "name": "timeout", + "type": { + "text": "number" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "effect", + "declaration": { + "name": "effect", + "module": "src/utils.ts" + } + }, + { + "kind": "js", + "name": "waitUntil", + "declaration": { + "name": "waitUntil", + "module": "src/utils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/create-task.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "CreateTask", + "members": [ + { + "kind": "method", + "name": "createTask", + "parameters": [ + { + "name": "fields", + "type": { + "text": "Partial" + } + } + ] + } + ], + "events": [ + { + "name": "task-created", + "type": { + "text": "CustomEvent" + } + }, + { + "description": "detail will contain { taskHash }", + "name": "task-created:" + } + ], + "mixins": [ + { + "name": "SignalWatcher", + "package": "@holochain-open-dev/signals" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "create-task", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "CreateTask", + "declaration": { + "name": "CreateTask", + "module": "src/elements/create-task.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "create-task", + "declaration": { + "name": "CreateTask", + "module": "src/elements/create-task.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/dependent-tasks-for-task.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "DependentTasksForTask", + "members": [ + { + "kind": "field", + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The TaskHash for which the Tasks should be fetched", + "attribute": "taskHash" + }, + { + "kind": "method", + "name": "renderList", + "parameters": [ + { + "name": "hashes", + "type": { + "text": "Array" + } + } + ] + } + ], + "attributes": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The TaskHash for which the Tasks should be fetched", + "fieldName": "taskHash" + } + ], + "mixins": [ + { + "name": "SignalWatcher", + "package": "@holochain-open-dev/signals" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "dependent-tasks-for-task", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "DependentTasksForTask", + "declaration": { + "name": "DependentTasksForTask", + "module": "src/elements/dependent-tasks-for-task.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "dependent-tasks-for-task", + "declaration": { + "name": "DependentTasksForTask", + "module": "src/elements/dependent-tasks-for-task.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/edit-task.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "EditTask", + "members": [ + { + "kind": "field", + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The hash of the original `Create` action for this Task", + "attribute": "taskHash" + }, + { + "kind": "method", + "name": "updateTask", + "parameters": [ + { + "name": "currentRecord", + "type": { + "text": "EntryRecord" + } + }, + { + "name": "fields", + "type": { + "text": "Partial" + } + } + ] + }, + { + "kind": "method", + "name": "renderEditForm", + "parameters": [ + { + "name": "currentRecord", + "type": { + "text": "EntryRecord" + } + } + ] + } + ], + "events": [ + { + "name": "task-updated", + "type": { + "text": "CustomEvent" + } + }, + { + "name": "edit-canceled", + "type": { + "text": "CustomEvent" + } + }, + { + "description": "detail will contain { originalTaskHash, previousTaskHash, updatedTaskHash }", + "name": "task-updated:" + } + ], + "attributes": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The hash of the original `Create` action for this Task", + "fieldName": "taskHash" + } + ], + "mixins": [ + { + "name": "SignalWatcher", + "package": "@holochain-open-dev/signals" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "edit-task", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "EditTask", + "declaration": { + "name": "EditTask", + "module": "src/elements/edit-task.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "edit-task", + "declaration": { + "name": "EditTask", + "module": "src/elements/edit-task.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/task-detail.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TaskDetail", + "members": [ + { + "kind": "field", + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The hash of the Task to show", + "attribute": "taskHash" + }, + { + "kind": "method", + "name": "deleteTask" + }, + { + "kind": "method", + "name": "renderDetail", + "parameters": [ + { + "name": "entryRecord", + "type": { + "text": "EntryRecord" + } + } + ] + } + ], + "events": [ + { + "name": "task-deleted", + "type": { + "text": "CustomEvent" + } + }, + { + "description": "detail will contain { taskHash }", + "name": "task-deleted:" + } + ], + "attributes": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The hash of the Task to show", + "fieldName": "taskHash" + } + ], + "mixins": [ + { + "name": "SignalWatcher", + "package": "@holochain-open-dev/signals" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "task-detail", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "TaskDetail", + "declaration": { + "name": "TaskDetail", + "module": "src/elements/task-detail.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "task-detail", + "declaration": { + "name": "TaskDetail", + "module": "src/elements/task-detail.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/task-summary.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TaskSummary", + "members": [ + { + "kind": "field", + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The hash of the Task to show", + "attribute": "taskHash" + }, + { + "kind": "method", + "name": "renderSummary", + "parameters": [ + { + "name": "entryRecord", + "type": { + "text": "EntryRecord" + } + } + ] + } + ], + "events": [ + { + "description": "detail will contain { taskHash }", + "name": "task-selected:" + } + ], + "attributes": [ + { + "name": "taskHash", + "type": { + "text": "ActionHash" + }, + "description": "REQUIRED. The hash of the Task to show", + "fieldName": "taskHash" + } + ], + "mixins": [ + { + "name": "SignalWatcher", + "package": "@holochain-open-dev/signals" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "task-summary", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "TaskSummary", + "declaration": { + "name": "TaskSummary", + "module": "src/elements/task-summary.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "task-summary", + "declaration": { + "name": "TaskSummary", + "module": "src/elements/task-summary.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/tasks-context.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TasksContext", + "members": [ + { + "kind": "field", + "name": "store", + "type": { + "text": "TasksStore" + }, + "attribute": "store" + } + ], + "attributes": [ + { + "name": "store", + "type": { + "text": "TasksStore" + }, + "fieldName": "store" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "tasks-context", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "TasksContext", + "declaration": { + "name": "TasksContext", + "module": "src/elements/tasks-context.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "tasks-context", + "declaration": { + "name": "TasksContext", + "module": "src/elements/tasks-context.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/tasks-for-assignee.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TasksForAssignee", + "members": [ + { + "kind": "field", + "name": "assignee", + "type": { + "text": "AgentPubKey" + }, + "description": "REQUIRED. The Assignee for which the Tasks should be fetched", + "attribute": "assignee" + }, + { + "kind": "method", + "name": "renderList", + "parameters": [ + { + "name": "hashes", + "type": { + "text": "Array" + } + } + ] + } + ], + "attributes": [ + { + "name": "assignee", + "type": { + "text": "AgentPubKey" + }, + "description": "REQUIRED. The Assignee for which the Tasks should be fetched", + "fieldName": "assignee" + } + ], + "mixins": [ + { + "name": "SignalWatcher", + "package": "@holochain-open-dev/signals" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "tasks-for-assignee", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "TasksForAssignee", + "declaration": { + "name": "TasksForAssignee", + "module": "src/elements/tasks-for-assignee.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "tasks-for-assignee", + "declaration": { + "name": "TasksForAssignee", + "module": "src/elements/tasks-for-assignee.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/elements/unfinished-tasks.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "UnfinishedTasks", + "members": [ + { + "kind": "method", + "name": "renderList", + "parameters": [ + { + "name": "hashes", + "type": { + "text": "Array" + } + } + ] + } + ], + "mixins": [ + { + "name": "SignalWatcher", + "package": "@holochain-open-dev/signals" + } + ], + "superclass": { + "name": "LitElement", + "package": "lit" + }, + "tagName": "unfinished-tasks", + "customElement": true + } + ], + "exports": [ + { + "kind": "js", + "name": "UnfinishedTasks", + "declaration": { + "name": "UnfinishedTasks", + "module": "src/elements/unfinished-tasks.ts" + } + }, + { + "kind": "custom-element-definition", + "name": "unfinished-tasks", + "declaration": { + "name": "UnfinishedTasks", + "module": "src/elements/unfinished-tasks.ts" + } + } + ] + } + ] +} diff --git a/package.json b/package.json index a6943b0d..faaaf032 100644 --- a/package.json +++ b/package.json @@ -1,29 +1,29 @@ { - "name": "tasks-dev", - "private": true, - "scripts": { - "start": "AGENTS=2 pnpm network", - "network": "hc s clean && pnpm build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) UI_PORT=8888 concurrently -k \"pnpm -F @darksoil-studio/tasks start\" \"pnpm launch\" \"holochain-playground\" \"pnpm local-services\"", - "launch": "echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/tasks_test.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:$BOOTSTRAP_PORT webrtc ws://127.0.0.1:$SIGNAL_PORT", - "local-services": "hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT", - "test": "pnpm build:happ && pnpm -F tests test", - "build:happ": "nix build --no-update-lock-file --accept-flake-config -L .#tasks_test_happ.meta.debug -o workdir/tasks_test.happ" - }, - "devDependencies": { - "@holochain-playground/cli": "^0.300.0-rc", - "@trivago/prettier-plugin-sort-imports": "^4.3.0", - "@eslint/js": "^8.0.0", - "concurrently": "^6.2.1", - "eslint": "^8.0.0", - "eslint-config-prettier": "^9.1.0", - "new-port-cli": "^1.0.0", - "prettier": "^3.2.5", - "typescript-eslint": "^7.7.0", - "typescript": "^5.4.5" - }, - "type": "module", - "engines": { - "pnpm": ">=9.0.0" - }, - "packageManager": "pnpm@9.2.0+sha256.94fab213df221c55b6956b14a2264c21c6203cca9f0b3b95ff2fe9b84b120390" -} + "name": "tasks-dev", + "private": true, + "scripts": { + "start": "AGENTS=2 pnpm network", + "network": "hc s clean && pnpm build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) UI_PORT=8888 concurrently -k \"pnpm -F @darksoil-studio/tasks start\" \"pnpm launch\" \"holochain-playground\" \"pnpm local-services\"", + "launch": "echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/tasks_test.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:$BOOTSTRAP_PORT webrtc ws://127.0.0.1:$SIGNAL_PORT", + "local-services": "hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT", + "test": "pnpm build:happ && pnpm -F tests test", + "build:happ": "nix build --no-update-lock-file --accept-flake-config -L .#tasks_test_happ.meta.debug -o workdir/tasks_test.happ" + }, + "devDependencies": { + "@holochain-playground/cli": "^0.300.0-rc", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", + "@eslint/js": "^8.0.0", + "concurrently": "^6.2.1", + "eslint": "^8.0.0", + "eslint-config-prettier": "^9.1.0", + "new-port-cli": "^1.0.0", + "prettier": "^3.2.5", + "typescript-eslint": "^7.7.0", + "typescript": "^5.4.5" + }, + "type": "module", + "engines": { + "pnpm": ">=9.0.0" + }, + "packageManager": "pnpm@9.2.0+sha256.94fab213df221c55b6956b14a2264c21c6203cca9f0b3b95ff2fe9b84b120390" +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f7b2bff4..ecc420f7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -99,14 +99,14 @@ importers: ui: dependencies: '@darksoil-studio/notifications': - specifier: github:darksoil-studio/notifications#f7f4eebc5b8de1f1f102c5bb2deb4a5350210fe3&path:ui - version: https://codeload.github.com/darksoil-studio/notifications/tar.gz/f7f4eebc5b8de1f1f102c5bb2deb4a5350210fe3#path:ui(@types/react@18.3.3) + specifier: github:darksoil-studio/notifications#c1fd45a17aba34e8028f0ca971755b3fe6d7f4ed&path:ui + version: https://codeload.github.com/darksoil-studio/notifications/tar.gz/c1fd45a17aba34e8028f0ca971755b3fe6d7f4ed#path:ui(@types/react@18.3.3) '@holochain-open-dev/elements': specifier: ^0.300.1 version: 0.300.1(@types/react@18.3.3) '@holochain-open-dev/profiles': - specifier: github:holochain-open-dev/profiles#e04300c94df9d1821b2d03fdf9980611d935ec24&path:ui - version: https://codeload.github.com/holochain-open-dev/profiles/tar.gz/e04300c94df9d1821b2d03fdf9980611d935ec24#path:ui(@types/react@18.3.3) + specifier: github:holochain-open-dev/profiles#43e97c82887cc3eb91ef92c9ab01b93529693b68&path:ui + version: https://codeload.github.com/holochain-open-dev/profiles/tar.gz/43e97c82887cc3eb91ef92c9ab01b93529693b68#path:ui(@types/react@18.3.3) '@holochain-open-dev/signals': specifier: ^0.300.7 version: 0.300.7(@types/react@18.3.3) @@ -322,8 +322,8 @@ packages: '@dabh/diagnostics@2.0.3': resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==} - '@darksoil-studio/notifications@https://codeload.github.com/darksoil-studio/notifications/tar.gz/f7f4eebc5b8de1f1f102c5bb2deb4a5350210fe3#path:ui': - resolution: {path: ui, tarball: https://codeload.github.com/darksoil-studio/notifications/tar.gz/f7f4eebc5b8de1f1f102c5bb2deb4a5350210fe3} + '@darksoil-studio/notifications@https://codeload.github.com/darksoil-studio/notifications/tar.gz/c1fd45a17aba34e8028f0ca971755b3fe6d7f4ed#path:ui': + resolution: {path: ui, tarball: https://codeload.github.com/darksoil-studio/notifications/tar.gz/c1fd45a17aba34e8028f0ca971755b3fe6d7f4ed} version: 0.1.0 '@docsearch/css@3.6.0': @@ -658,12 +658,12 @@ packages: '@holochain-open-dev/elements@0.300.1': resolution: {integrity: sha512-i0BYvrM+aKFlyiNQ02mkqTElLxQ4AFM0nBs4whXrb/p7XU/SQm0dApieEGMsTgtZu8cI/ZgmPzi6qQSduXXLPA==} - '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/748bb4879e247eff44a4a23a8d2aaa02a585578a#path:ui': - resolution: {path: ui, tarball: https://codeload.github.com/holochain-open-dev/profiles/tar.gz/748bb4879e247eff44a4a23a8d2aaa02a585578a} + '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/43e97c82887cc3eb91ef92c9ab01b93529693b68#path:ui': + resolution: {path: ui, tarball: https://codeload.github.com/holochain-open-dev/profiles/tar.gz/43e97c82887cc3eb91ef92c9ab01b93529693b68} version: 0.300.0 - '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/e04300c94df9d1821b2d03fdf9980611d935ec24#path:ui': - resolution: {path: ui, tarball: https://codeload.github.com/holochain-open-dev/profiles/tar.gz/e04300c94df9d1821b2d03fdf9980611d935ec24} + '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/748bb4879e247eff44a4a23a8d2aaa02a585578a#path:ui': + resolution: {path: ui, tarball: https://codeload.github.com/holochain-open-dev/profiles/tar.gz/748bb4879e247eff44a4a23a8d2aaa02a585578a} version: 0.300.0 '@holochain-open-dev/signals@0.300.4': @@ -678,6 +678,9 @@ packages: '@holochain-open-dev/utils@0.300.2': resolution: {integrity: sha512-wdJtqUAsiYmKNPLVfrAX6rP+ufF844v7bKGu1y5l1zQuMdGWPGkH43FUIy5xe6NrWWY2pz3W8D/IyXc8mnBc1w==} + '@holochain-open-dev/utils@0.300.3': + resolution: {integrity: sha512-ckamdApCDWevnQNvggf+M/lOYCUGbKxoPajOkKy5kX/DbY5hIkFJot2lFvxTBpv5hYYGqWkZVbOldJ5DFdqD4w==} + '@holochain-playground/cli@0.300.0-rc.0': resolution: {integrity: sha512-8LBZHl6u1NRdbltNxmxfBZCpg8KBH0xvsQJzv0+Gc7kBgtP186bISVoGlugyx8IqK3nxI7mi5J9mGZfqhjIfHQ==} hasBin: true @@ -2991,12 +2994,12 @@ snapshots: enabled: 2.0.0 kuler: 2.0.0 - '@darksoil-studio/notifications@https://codeload.github.com/darksoil-studio/notifications/tar.gz/f7f4eebc5b8de1f1f102c5bb2deb4a5350210fe3#path:ui(@types/react@18.3.3)': + '@darksoil-studio/notifications@https://codeload.github.com/darksoil-studio/notifications/tar.gz/c1fd45a17aba34e8028f0ca971755b3fe6d7f4ed#path:ui(@types/react@18.3.3)': dependencies: '@holochain-open-dev/elements': 0.300.1(@types/react@18.3.3) - '@holochain-open-dev/profiles': https://codeload.github.com/holochain-open-dev/profiles/tar.gz/e04300c94df9d1821b2d03fdf9980611d935ec24#path:ui(@types/react@18.3.3) + '@holochain-open-dev/profiles': https://codeload.github.com/holochain-open-dev/profiles/tar.gz/43e97c82887cc3eb91ef92c9ab01b93529693b68#path:ui(@types/react@18.3.3) '@holochain-open-dev/signals': 0.300.7(@types/react@18.3.3) - '@holochain-open-dev/utils': 0.300.2 + '@holochain-open-dev/utils': 0.300.3 '@holochain/client': 0.17.1 '@lit/context': 1.1.2 '@lit/localize': 0.12.1 @@ -3243,11 +3246,11 @@ snapshots: - bufferutil - utf-8-validate - '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/748bb4879e247eff44a4a23a8d2aaa02a585578a#path:ui(@types/react@18.3.3)': + '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/43e97c82887cc3eb91ef92c9ab01b93529693b68#path:ui(@types/react@18.3.3)': dependencies: - '@holochain-open-dev/elements': 0.300.0(@types/react@18.3.3) - '@holochain-open-dev/signals': 0.300.4(@types/react@18.3.3) - '@holochain-open-dev/utils': 0.300.1 + '@holochain-open-dev/elements': 0.300.1(@types/react@18.3.3) + '@holochain-open-dev/signals': 0.300.7(@types/react@18.3.3) + '@holochain-open-dev/utils': 0.300.2 '@holochain/client': 0.17.1 '@lit/context': 1.1.2 '@lit/localize': 0.12.1 @@ -3260,11 +3263,11 @@ snapshots: - bufferutil - utf-8-validate - '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/e04300c94df9d1821b2d03fdf9980611d935ec24#path:ui(@types/react@18.3.3)': + '@holochain-open-dev/profiles@https://codeload.github.com/holochain-open-dev/profiles/tar.gz/748bb4879e247eff44a4a23a8d2aaa02a585578a#path:ui(@types/react@18.3.3)': dependencies: - '@holochain-open-dev/elements': 0.300.1(@types/react@18.3.3) - '@holochain-open-dev/signals': 0.300.7(@types/react@18.3.3) - '@holochain-open-dev/utils': 0.300.2 + '@holochain-open-dev/elements': 0.300.0(@types/react@18.3.3) + '@holochain-open-dev/signals': 0.300.4(@types/react@18.3.3) + '@holochain-open-dev/utils': 0.300.1 '@holochain/client': 0.17.1 '@lit/context': 1.1.2 '@lit/localize': 0.12.1 @@ -3327,6 +3330,18 @@ snapshots: - bufferutil - utf-8-validate + '@holochain-open-dev/utils@0.300.3': + dependencies: + '@holochain/client': 0.17.1 + '@msgpack/msgpack': 2.8.0 + blakejs: 1.2.1 + emittery: 1.0.3 + lodash-es: 4.17.21 + sort-keys: 5.0.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@holochain-playground/cli@0.300.0-rc.0': {} '@holochain/client@0.17.1': diff --git a/ui/package.json b/ui/package.json index e2cc671b..5e808fab 100644 --- a/ui/package.json +++ b/ui/package.json @@ -29,9 +29,9 @@ "./locales/*": "./locales/*" }, "dependencies": { - "@darksoil-studio/notifications": "github:darksoil-studio/notifications#f7f4eebc5b8de1f1f102c5bb2deb4a5350210fe3&path:ui", + "@darksoil-studio/notifications": "github:darksoil-studio/notifications#c1fd45a17aba34e8028f0ca971755b3fe6d7f4ed&path:ui", "@holochain-open-dev/elements": "^0.300.1", - "@holochain-open-dev/profiles": "github:holochain-open-dev/profiles#e04300c94df9d1821b2d03fdf9980611d935ec24&path:ui", + "@holochain-open-dev/profiles": "github:holochain-open-dev/profiles#43e97c82887cc3eb91ef92c9ab01b93529693b68&path:ui", "@holochain-open-dev/signals": "^0.300.7", "@holochain-open-dev/utils": "^0.300.2", "@holochain/client": "^0.17.1",