@croffledev/croffle-types 1.2.0 → 1.4.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/models/extension.d.ts +3 -25
- package/models/schedule.d.ts +5 -4
- package/package.json +1 -1
package/models/extension.d.ts
CHANGED
|
@@ -18,23 +18,15 @@ export type ConfigurationSectionContribution = {
|
|
|
18
18
|
items: Record<string, ConfigItemSchema>;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
/** Manifest `contributes.configuration` 항목 (런타임 extensionId/render 제외) */
|
|
22
|
+
export type ConfigurationTabManifest = {
|
|
22
23
|
id: string;
|
|
23
24
|
label: string;
|
|
24
25
|
icon?: unknown;
|
|
25
|
-
extensionId: string;
|
|
26
|
-
extensionName?: string;
|
|
27
26
|
order?: number;
|
|
28
|
-
render?: (container: HTMLElement) => void;
|
|
29
27
|
sections?: ConfigurationSectionContribution[];
|
|
30
28
|
};
|
|
31
29
|
|
|
32
|
-
/** Manifest `contributes.configuration` 항목 (런타임 extensionId/render 제외) */
|
|
33
|
-
export type ConfigurationTabManifest = Omit<
|
|
34
|
-
ConfigurationTabContribution,
|
|
35
|
-
'extensionId' | 'extensionName' | 'render'
|
|
36
|
-
>;
|
|
37
|
-
|
|
38
30
|
/** Manifest `contributes.views` 항목 */
|
|
39
31
|
export type ViewManifest = {
|
|
40
32
|
id: string;
|
|
@@ -45,13 +37,6 @@ export type ViewManifest = {
|
|
|
45
37
|
url: string;
|
|
46
38
|
};
|
|
47
39
|
|
|
48
|
-
/** 런타임 뷰 (사이드바 등) — manifest + host 메타 */
|
|
49
|
-
export type FeatureView = ViewManifest & {
|
|
50
|
-
active?: boolean;
|
|
51
|
-
extensionName?: string;
|
|
52
|
-
extensionId?: string;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
40
|
/** Manifest `contributes.contextMenus` 항목 (action은 코드에서만) */
|
|
56
41
|
export type ContextMenuManifest = {
|
|
57
42
|
id: string;
|
|
@@ -60,13 +45,6 @@ export type ContextMenuManifest = {
|
|
|
60
45
|
disabled?: boolean;
|
|
61
46
|
};
|
|
62
47
|
|
|
63
|
-
export type FeatureContextMenu = ContextMenuManifest & {
|
|
64
|
-
action: (targetElement: HTMLElement | null) => void;
|
|
65
|
-
condition?: (targetElement: HTMLElement | null) => boolean;
|
|
66
|
-
extensionId?: string;
|
|
67
|
-
extensionName?: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
48
|
export type ExtensionContributes = {
|
|
71
49
|
views?: ViewManifest[];
|
|
72
50
|
contextMenus?: ContextMenuManifest[];
|
|
@@ -88,7 +66,7 @@ export type CroffleManifest = {
|
|
|
88
66
|
contributes?: ExtensionContributes;
|
|
89
67
|
};
|
|
90
68
|
|
|
91
|
-
/** Host-loaded extension (manifest + enabled) */
|
|
69
|
+
/** Host-loaded extension (manifest + enabled) — also exposed via ExtensionsApi */
|
|
92
70
|
export type ExtensionInfo = CroffleManifest & {
|
|
93
71
|
enabled: boolean;
|
|
94
72
|
};
|
package/models/schedule.d.ts
CHANGED
|
@@ -5,12 +5,13 @@ export type Schedule = {
|
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
7
7
|
location: string;
|
|
8
|
-
startDate:
|
|
9
|
-
endDate:
|
|
8
|
+
startDate: Date;
|
|
9
|
+
endDate: Date;
|
|
10
10
|
isAllDay: boolean;
|
|
11
11
|
recurrenceRule?: string;
|
|
12
12
|
colorLabel: string;
|
|
13
13
|
tags: Tag[];
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
priority: 'low' | 'medium' | 'high';
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
16
17
|
};
|