@xiongtao.xt/tau-plugins 0.61.0 → 0.62.0
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/CHANGELOG.md +8 -0
- package/docs/portability.md +2 -2
- package/docs/task-data.md +55 -4
- package/docs/user-data.md +19 -7
- package/package.json +1 -1
- package/types/packages/plugins/src/data.d.ts +10 -0
- package/types/packages/plugins/src/events.d.ts +17 -12
- package/types/packages/plugins/src/index.d.ts +1 -1
- package/types/packages/shared/src/task-assistant/directories.d.ts +15 -0
- package/types/packages/shared/src/task-assistant/directory-colors.d.ts +2 -0
- package/types/packages/shared/task-assistant.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# 更新记录
|
|
2
2
|
|
|
3
|
+
## 0.62.0
|
|
4
|
+
|
|
5
|
+
- 待办、日程、待办项目与日历目录统一为带 ID 的对象创建/修改/删除事件,使用现有 context.events.on;移除 `todos.changed` / `calendar.changed`,改用 `todo.*`、`event.*`、`todo-list.*`、`calendar.*` 的完整对象事件名;回调按订阅类型推导对象身份。
|
|
6
|
+
- 桌面事件改为提交后分发,回滚不通知;批量通知分页保留身份,记录/实体按拥有者隔离,日志不足时通知重新核对。
|
|
7
|
+
|
|
8
|
+
- 待办项目与日历目录新增 create/update,支持名称、颜色与日历显示设置;修改保留未指定字段,沿用条件版本和创建请求防重。目录返回 editable,与内容写入资格 writable 分开。
|
|
9
|
+
- 两端目录创建/改名接入可靠变化流,清单曾用名保留正文待办归属;旧创建回执升级保留数据和退役状态。
|
|
10
|
+
|
|
3
11
|
## 0.61.0
|
|
4
12
|
|
|
5
13
|
- 待办支持重复创建、按日期分段修改和停止、原子实例状态补丁及持久状态分页。正文待办支持清单和单提醒,变化流开放 document/all 来源。待办提醒类型增加 `{ at }`,作者须区分绝对提醒与偏移提醒。
|
package/docs/portability.md
CHANGED
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
|
|
65
65
|
### 待办与日程接口
|
|
66
66
|
|
|
67
|
-
完整待办/日程能力在桌面、Android 和 iOS
|
|
67
|
+
完整待办/日程能力在桌面、Android 和 iOS 的开发版中实现,包括目录读取与创建/修改、提醒、备注、重复规则、实例状态、正文变化读取及带身份的对象通知。SDK 的接口声明不代表用户安装的 Tau 已具备这些能力;使用这些接口的正式插件,应等待对应客户端发行,并以实际通过验证的版本填写 targets.minAppVersion。
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
未具备接口的客户端不能通过省略参数代替成功。插件可以在入口检查需要的方法,给出升级提示;调用失败时保留处理进度,不能把失败当作空列表。目录写入需要独立的适配支持;只读目录接口可用不代表可以创建或改名,方法存在也不能代替成功结果。
|
|
70
70
|
|
|
71
71
|
```ts
|
|
72
72
|
import type { PluginContext } from "@tau/plugins";
|
package/docs/task-data.md
CHANGED
|
@@ -35,10 +35,61 @@ async function loadTargets(context: PluginContext) {
|
|
|
35
35
|
| --- | --- |
|
|
36
36
|
| `id`、`revision`、`title` | 身份、版本和名称 |
|
|
37
37
|
| `archived` | 是否归档 |
|
|
38
|
-
| `writable`、`readonlyReason?` |
|
|
39
|
-
| `
|
|
38
|
+
| `writable`、`readonlyReason?` | 能否向其中写入待办或日程;不能写时给出原因 |
|
|
39
|
+
| `editable?`、`editReadonlyReason?` | 能否修改目录本身;未提供时不能据 writable 推断 |
|
|
40
|
+
| `color` | 颜色;待办项目没有颜色时为 null |
|
|
41
|
+
| 日历 `visible` | 是否在日历中显示 |
|
|
42
|
+
|
|
43
|
+
选择内容写入位置时检查 writable,修改目录名称等信息时检查 editable。日历 visible 只表示是否显示。系统目录不可修改;归档用户目录可以改名,但仍不能向其中写入内容。
|
|
44
|
+
|
|
45
|
+
## 创建和修改待办项目、日历
|
|
46
|
+
|
|
47
|
+
需要为评审准备独立的项目和日历时,可以创建普通用户目录:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
import type { PluginContext } from "@tau/plugins";
|
|
51
|
+
|
|
52
|
+
async function createReviewTargets(context: PluginContext, requestId: string) {
|
|
53
|
+
const list = await context.data.todoLists.create({
|
|
54
|
+
title: "评审准备", color: "blue",
|
|
55
|
+
}, { requestId: `${requestId}:list` });
|
|
56
|
+
const calendar = await context.data.calendars.create({
|
|
57
|
+
title: "评审安排", color: "blue", visible: true,
|
|
58
|
+
}, { requestId: `${requestId}:calendar` });
|
|
59
|
+
return { list, calendar };
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
调用前保存 requestId,重试复用;两次创建各自提交,第一次成功、第二次失败时也能继续。将返回 ID 与外部目录的稳定身份保存到 context.records,再用 listId/calendarId 创建待办和日程。名称可以重复,不按同名自动认领或合并用户目录。
|
|
64
|
+
|
|
65
|
+
| 方法 | 字段 | 权限 |
|
|
66
|
+
| --- | --- | --- |
|
|
67
|
+
| `todoLists.create(input, options?)` | 必填 title,可选 color | todos:write |
|
|
68
|
+
| `todoLists.update(id, patch, options)` | title、color | todos:write |
|
|
69
|
+
| `calendars.create(input, options?)` | 必填 title,可选 color、visible | calendar:write |
|
|
70
|
+
| `calendars.update(id, patch, options)` | title、color、visible | calendar:write |
|
|
71
|
+
|
|
72
|
+
颜色使用 PluginDirectoryColor 中的色板标识,例如 blue、red、green;外部服务的颜色由插件转换。待办项目 color:null 清除颜色;日历省略颜色使用默认色,不能设 null。日历默认显示。空名称、控制字符、空修改和未开放字段会被拒绝,不会截断名称。
|
|
73
|
+
|
|
74
|
+
改名先读取当前目录,传回刚取得的版本:
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
import type { PluginContext } from "@tau/plugins";
|
|
78
|
+
|
|
79
|
+
async function renameReviewCalendar(context: PluginContext, id: string, title: string) {
|
|
80
|
+
const calendar = await context.data.calendars.get(id);
|
|
81
|
+
if (!calendar) throw new Error("日历已不存在,请重新选择");
|
|
82
|
+
if (calendar.editable !== true) throw new Error("此日历不能修改");
|
|
83
|
+
return context.data.calendars.update(id, { title }, {
|
|
84
|
+
expectedRevision: calendar.revision,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
待办项目使用相同的 get/update 方式。改名保持 ID、原待办和日程的归属,不会修改未指定的颜色、显示或其他目录信息。版本冲突抛出 PluginConflictError,由插件重新读取并决定如何处理;不能因为改名失败就另建同名目录。
|
|
90
|
+
|
|
91
|
+
创建防重与[创建待办](#创建带提醒的待办)相同:相同请求与输入返回原目录当前状态,删除后旧请求不重建。接口不提供目录删除、归档、合并、分组和排序操作。
|
|
40
92
|
|
|
41
|
-
选择写入位置时检查 writable。日历 visible 只表示是否显示,不表示能否写入。插件能选择已有目录,不能通过这些接口新建、改名或删除目录。
|
|
42
93
|
|
|
43
94
|
## 读取待办与日程
|
|
44
95
|
|
|
@@ -333,6 +384,6 @@ async function consumeTaskChanges(
|
|
|
333
384
|
- 发生冲突或外部调用失败时,不推进游标。映射与处理结果适合存入 records,保存方式见[插件记录](plugin-content.md#插件记录)。
|
|
334
385
|
- 示例不根据「本轮没出现」删除已有对象。需要缺失对账时,把本轮出现的身份集合也一起保存,等全量和补查成功结束再比较;恢复半轮游标时也要恢复这份集合。
|
|
335
386
|
- 换资料库、换设备、授权或查询范围变化、历史过期、游标损坏会抛 PluginSyncResetRequiredError。保留映射,丢弃游标,再完整读取;protocol-changed 需要先核对客户端支持,见[多端适配](portability.md#待办与日程接口)。
|
|
336
|
-
- 在插件启动、恢复前台以及收到
|
|
387
|
+
- 在插件启动、恢复前台以及收到 todo.* / event.* / todo-list.* / calendar.* 的对象事件时续读。订阅时列出完整事件名,例如 todo-list.updated;每条通知带对应 get 使用的 ID。事件用来唤醒读取,不承担离线历史,也不保证每次变化只通知一次。订阅方式见[订阅变化](user-data.md#订阅变化)。
|
|
337
388
|
|
|
338
389
|
日程备注和正文待办的编辑保存后会进入变化流;读取不会强行停止打开中的编辑器。外部冲突策略、无法表达的重复或时区数据以及多设备执行协调,由插件明确处理,不能把不支持的数据静默展开后宣称可无损回写。
|
package/docs/user-data.md
CHANGED
|
@@ -210,11 +210,18 @@ try {
|
|
|
210
210
|
回顾页面开着时,用户在别处改了卡片或待办,页面应该跟着刷新:
|
|
211
211
|
|
|
212
212
|
```ts
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
import type { PluginContext } from "@tau/plugins";
|
|
214
|
+
|
|
215
|
+
function watchReviewLists(context: PluginContext, refresh: (id: string) => void) {
|
|
216
|
+
return context.events.on(
|
|
217
|
+
["todo-list.created", "todo-list.updated", "todo-list.deleted"],
|
|
218
|
+
event => refresh(event.id),
|
|
219
|
+
);
|
|
220
|
+
}
|
|
216
221
|
```
|
|
217
222
|
|
|
223
|
+
所有业务对象使用同一套 created / updated / deleted 事件,回调带稳定字符串 id,与相应 get 使用的 ID 一致。 type 区分对象和动作,at 是通知送出时间,不能作为修改版本;名称、颜色等当前值通过 get 读取。订阅时写完整事件名,不传 `*`。返回句柄的 dispose() 可取消订阅。
|
|
224
|
+
|
|
218
225
|
| 事件 | 说明 |
|
|
219
226
|
| ---------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
220
227
|
| `card.created`、`card.updated`、`card.deleted` | 带 `id`。正文修改也算 `updated` |
|
|
@@ -224,14 +231,19 @@ context.events.on(["card.created", "card.updated", "card.deleted", "todos.change
|
|
|
224
231
|
| `material.*`、`chat.*` | 同上。划线删除算 `deleted`;对话收到新消息也算 `updated` |
|
|
225
232
|
| `entity.*` | 本插件的内容,带 `id` 和 `kind`,见[插件内容](plugin-content.md#插件内容) |
|
|
226
233
|
| `record.*` | 本插件的记录,带 `id` 和 `collection`,见[插件记录](plugin-content.md#插件记录) |
|
|
227
|
-
| `todos.
|
|
234
|
+
| `todo.*` | 待办变化,带 todos.get 使用的 ID;重复任务实例变化通知系列根对象 |
|
|
235
|
+
| `event.*` | 真实日程变化,带 calendar.get 使用的 ID,不展开虚拟任务标记 |
|
|
236
|
+
| `todo-list.*` | 待办项目创建、改名、颜色或其他元数据变化,带 todoLists.get 使用的 ID |
|
|
237
|
+
| `calendar.*` | 日历目录变化,带 calendars.get 使用的 ID |
|
|
228
238
|
| `workspace.reset` | 资料库被整个替换(例如从云端恢复),应全部重新读取 |
|
|
229
239
|
|
|
230
|
-
-
|
|
231
|
-
- `origin` 表示变化的来源:`{ kind: "plugin", pluginId }` 表示由插件写入,可以用它忽略自己写入引起的事件;其他情况是 `{ kind: "app" }
|
|
232
|
-
-
|
|
240
|
+
- 事件在提交后送出,回滚的修改不送出。通知只说明哪一项变了,不携带完整数据或旧值,需要时用 `context.data` 重新读取;读取时可能已有更新、恢复或权限变化。
|
|
241
|
+
- `origin` 表示变化的来源:`{ kind: "plugin", pluginId }` 表示由插件写入,可以用它忽略自己写入引起的事件;其他情况是 `{ kind: "app" }`。待办、日程及两类目录事件不提供精确写入方,总是 `app`,应比较已处理状态避免循环。
|
|
242
|
+
- 通知可能延迟、合并或重复;批量变化仍保留各个对象身份,不是逐次操作审计。workspace.reset 是资料库级例外,不携带对象 ID;它也用于提示事件历史已经不足。
|
|
243
|
+
- 事件不承担离线历史。需要可靠同步时,启动、恢复前台和收到通知后使用[按游标读取变化](task-data.md#按游标读取变化)补读;这是数据查询接口,订阅仍只使用 context.events.on。
|
|
233
244
|
- 接收事件需要对应的读取权限(`entity.*`、`record.*` 与 `workspace.reset` 除外)。还没获得授权时事件不会送达,也不会因此弹窗。
|
|
234
245
|
- `entity.created`、`entity.updated`、`entity.deleted` 只发给创建这项内容的插件,不需要权限。正文修改也算 `updated`;`kind` 是内容类型,删除后 `get` 读不到时可以据此判断是哪类内容。从「最近删除」恢复、卸载后重新安装找回,都算 `created`。适合在其他设备同步过来或 AI 通过 MCP 写入后刷新页面。
|
|
246
|
+
- 同一订阅按顺序处理回调,可以使用异步函数;回调失败不会阻断后续通知。耗时同步适合由回调唤醒自己的任务队列。
|
|
235
247
|
- 订阅在插件停用时自动注销。
|
|
236
248
|
|
|
237
249
|
要读改正文或在页面里嵌入编辑器,接着读[正文](document-body.md)。
|
package/package.json
CHANGED
|
@@ -235,7 +235,13 @@ export interface PluginDirectoryQuery {
|
|
|
235
235
|
limit?: number;
|
|
236
236
|
cursor?: string;
|
|
237
237
|
}
|
|
238
|
+
export type { DirectoryColor as PluginDirectoryColor, TodoListInput as PluginTodoListInput, TodoListPatch as PluginTodoListPatch, CalendarDirectoryInput as PluginCalendarDirectoryInput, CalendarDirectoryPatch as PluginCalendarDirectoryPatch, } from "../../shared/task-assistant";
|
|
239
|
+
import type { TodoListInput, TodoListPatch, CalendarDirectoryInput, CalendarDirectoryPatch } from "../../shared/task-assistant";
|
|
238
240
|
export interface PluginTodoList {
|
|
241
|
+
/** 旧宿主不提供时表示尚不能判断目录编辑资格。 */
|
|
242
|
+
editable?: boolean;
|
|
243
|
+
editReadonlyReason?: string;
|
|
244
|
+
color?: string | null;
|
|
239
245
|
id: string;
|
|
240
246
|
revision: string;
|
|
241
247
|
title: string;
|
|
@@ -418,10 +424,14 @@ export interface PluginData {
|
|
|
418
424
|
/** AI 对话的信息,不含消息内容;query 不支持 tag */
|
|
419
425
|
readonly chats: PluginEntityReader<PluginChatSession>;
|
|
420
426
|
readonly todoLists: {
|
|
427
|
+
create(input: TodoListInput, options?: PluginCreateOptions): Promise<PluginTodoList>;
|
|
428
|
+
update(id: string, patch: TodoListPatch, options: PluginWriteOptions): Promise<PluginTodoList>;
|
|
421
429
|
get(id: string): Promise<PluginTodoList | null>;
|
|
422
430
|
query(query?: PluginDirectoryQuery): Promise<PluginPage<PluginTodoList>>;
|
|
423
431
|
};
|
|
424
432
|
readonly calendars: {
|
|
433
|
+
create(input: CalendarDirectoryInput, options?: PluginCreateOptions): Promise<PluginCalendar>;
|
|
434
|
+
update(id: string, patch: CalendarDirectoryPatch, options: PluginWriteOptions): Promise<PluginCalendar>;
|
|
425
435
|
get(id: string): Promise<PluginCalendar | null>;
|
|
426
436
|
query(query?: PluginDirectoryQuery): Promise<PluginPage<PluginCalendar>>;
|
|
427
437
|
};
|
|
@@ -3,34 +3,39 @@ import type { PluginPermission } from "./permissions";
|
|
|
3
3
|
/**
|
|
4
4
|
* 业务数据变更事件。事件只说明「哪一项变了」,不携带数据:需要时用 context.data 重新读取。
|
|
5
5
|
* 正文修改计入所属卡片、文章、项目文档或插件实体的 updated;Notebook 资料的增删改计入所属
|
|
6
|
-
* Notebook 的 updated
|
|
6
|
+
* Notebook 的 updated;待办、日程和目录使用相同的对象动作事件。entity.* 与 record.* 是本插件实体
|
|
7
7
|
* (context.entities)与记录(context.records)的变化,只发给拥有它的插件。
|
|
8
8
|
*/
|
|
9
|
-
export declare const PLUGIN_EVENT_TYPES: readonly ["card.created", "card.updated", "card.deleted", "article.created", "article.updated", "article.deleted", "document.created", "document.updated", "document.deleted", "whiteboard.created", "whiteboard.updated", "whiteboard.deleted", "project.created", "project.updated", "project.deleted", "notebook.created", "notebook.updated", "notebook.deleted", "material.created", "material.updated", "material.deleted", "chat.created", "chat.updated", "chat.deleted", "entity.created", "entity.updated", "entity.deleted", "record.created", "record.updated", "record.deleted", "
|
|
9
|
+
export declare const PLUGIN_EVENT_TYPES: readonly ["card.created", "card.updated", "card.deleted", "article.created", "article.updated", "article.deleted", "document.created", "document.updated", "document.deleted", "whiteboard.created", "whiteboard.updated", "whiteboard.deleted", "project.created", "project.updated", "project.deleted", "notebook.created", "notebook.updated", "notebook.deleted", "material.created", "material.updated", "material.deleted", "chat.created", "chat.updated", "chat.deleted", "entity.created", "entity.updated", "entity.deleted", "record.created", "record.updated", "record.deleted", "todo.created", "todo.updated", "todo.deleted", "event.created", "event.updated", "event.deleted", "todo-list.created", "todo-list.updated", "todo-list.deleted", "calendar.created", "calendar.updated", "calendar.deleted", "workspace.reset"];
|
|
10
10
|
export type PluginEventType = (typeof PLUGIN_EVENT_TYPES)[number];
|
|
11
|
-
/**
|
|
11
|
+
/** 能识别插件写入方时提供 pluginId;app 也包含不能细分写入方的通知。 */
|
|
12
12
|
export type PluginEventOrigin = {
|
|
13
13
|
kind: "plugin";
|
|
14
14
|
pluginId: string;
|
|
15
15
|
} | {
|
|
16
16
|
kind: "app";
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
type: PluginEventType;
|
|
20
|
-
/** 实体事件给出与 context.data / context.entities 相同的 ID;集合级事件没有 */
|
|
21
|
-
id?: string;
|
|
22
|
-
/** entity.* 事件给出实体类型(registerKind 声明的 kind);删除后读不到实体时据此区分 */
|
|
18
|
+
interface PluginEventFields {
|
|
23
19
|
kind?: string;
|
|
24
|
-
/** record.* 事件给出记录所在的集合 */
|
|
25
20
|
collection?: string;
|
|
26
|
-
/**
|
|
21
|
+
/** 宿主送出通知的时间(毫秒),不是业务版本。 */
|
|
27
22
|
at: number;
|
|
28
|
-
/**
|
|
23
|
+
/** 待办、日程、目录事件不提供精确写入方,固定为 app。 */
|
|
29
24
|
origin: PluginEventOrigin;
|
|
30
25
|
}
|
|
26
|
+
export type PluginEvent<T extends PluginEventType = PluginEventType> = T extends "workspace.reset" ? PluginEventFields & {
|
|
27
|
+
type: T;
|
|
28
|
+
id?: never;
|
|
29
|
+
} : PluginEventFields & {
|
|
30
|
+
type: T;
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
export type PluginDomainEvent = PluginEvent;
|
|
31
34
|
/** 接收事件需要对应数据的读取权限;未获准时事件不送达,也不会弹窗询问 */
|
|
32
35
|
export declare const PLUGIN_EVENT_PERMISSIONS: Record<PluginEventType, PluginPermission | null>;
|
|
33
36
|
export declare const isPluginEventType: (value: unknown) => value is PluginEventType;
|
|
34
37
|
export interface PluginEvents {
|
|
35
|
-
|
|
38
|
+
/** 同一订阅按序处理;异步回调等待完成,返回值不作为结果。 */
|
|
39
|
+
on<T extends PluginEventType>(types: T | readonly T[], listener: (event: PluginEvent<T>) => void): Disposable;
|
|
36
40
|
}
|
|
41
|
+
export {};
|
|
@@ -49,7 +49,7 @@ export type { PluginNotifications, PluginNotificationOptions, PluginNotification
|
|
|
49
49
|
export type { PluginSpeech, PluginSpeechSession, PluginSpeechStartOptions } from "./speech";
|
|
50
50
|
export type { PluginApp, PluginAppAction, PluginAppActions, PluginAppActionResults, PluginContentLocation, PluginOpenOptions, PluginExportFormat, PluginEntityKind, PluginEntityRef, PluginEntityDescription, PluginPickOptions, PluginPickedEntity, } from "./app";
|
|
51
51
|
export { PLUGIN_EVENT_TYPES } from "./events";
|
|
52
|
-
export type { PluginDomainEvent, PluginEventOrigin, PluginEventType, PluginEvents } from "./events";
|
|
52
|
+
export type { PluginDomainEvent, PluginEvent, PluginEventOrigin, PluginEventType, PluginEvents, } from "./events";
|
|
53
53
|
export { PLUGIN_PERMISSIONS, PluginPermissionError, isPluginPermission } from "./permissions";
|
|
54
54
|
export type { PluginPermission, PluginPermissions, PluginPermissionState, PluginPermissionDenial, } from "./permissions";
|
|
55
55
|
export type * from "./flashcards";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import colors from "./directory-colors";
|
|
2
|
+
export type DirectoryColor = keyof typeof colors;
|
|
3
|
+
export type DirectoryEntity = "todo-list" | "calendar";
|
|
4
|
+
export interface TodoListInput {
|
|
5
|
+
title: string;
|
|
6
|
+
color?: DirectoryColor | null;
|
|
7
|
+
}
|
|
8
|
+
export type TodoListPatch = Partial<TodoListInput>;
|
|
9
|
+
export interface CalendarDirectoryInput {
|
|
10
|
+
title: string;
|
|
11
|
+
color?: DirectoryColor;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type CalendarDirectoryPatch = Partial<CalendarDirectoryInput>;
|
|
15
|
+
export declare function readDirectoryFields(entity: DirectoryEntity, input: unknown, create: boolean): TodoListInput | TodoListPatch | CalendarDirectoryInput | CalendarDirectoryPatch;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const value: {"berry-red":true,"red":true,"orange":true,"yellow":true,"olive-green":true,"green":true,"mint-green":true,"teal":true,"sky-blue":true,"light-blue":true,"blue":true,"grape-purple":true,"violet":true,"light-orange":true,"charcoal":true,"gray":true,"gray-brown":true};
|
|
2
|
+
export default value;
|