@arbidocs/blocks 0.4.93 → 0.4.95
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/dist/agents/index.cjs +281 -281
- package/dist/agents/index.js +5 -5
- package/dist/chat/index.cjs +127 -127
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-HOXKR26S.js → chunk-24CS7JWU.js} +3 -3
- package/dist/{chunk-HOXKR26S.js.map → chunk-24CS7JWU.js.map} +1 -1
- package/dist/{chunk-6XS5IJ5R.cjs → chunk-3OXWJ3CZ.cjs} +5 -5
- package/dist/{chunk-6XS5IJ5R.cjs.map → chunk-3OXWJ3CZ.cjs.map} +1 -1
- package/dist/chunk-AF6RDAJF.js +14 -0
- package/dist/chunk-AF6RDAJF.js.map +1 -0
- package/dist/chunk-AOFATOT3.cjs +196 -0
- package/dist/chunk-AOFATOT3.cjs.map +1 -0
- package/dist/{chunk-NYBIKDWI.cjs → chunk-CKYA2IG5.cjs} +11 -5
- package/dist/chunk-CKYA2IG5.cjs.map +1 -0
- package/dist/chunk-D3QPYKZG.js +173 -0
- package/dist/chunk-D3QPYKZG.js.map +1 -0
- package/dist/{chunk-3WW32OUU.cjs → chunk-DCZGYCN2.cjs} +4 -4
- package/dist/{chunk-3WW32OUU.cjs.map → chunk-DCZGYCN2.cjs.map} +1 -1
- package/dist/{chunk-2ZDFVRGV.cjs → chunk-E2AAIMXO.cjs} +975 -61
- package/dist/chunk-E2AAIMXO.cjs.map +1 -0
- package/dist/{chunk-EWSEQEPL.js → chunk-EJAYB7PP.js} +4 -4
- package/dist/{chunk-EWSEQEPL.js.map → chunk-EJAYB7PP.js.map} +1 -1
- package/dist/{chunk-UO74FLRK.js → chunk-EOEDGJ75.js} +22 -53
- package/dist/chunk-EOEDGJ75.js.map +1 -0
- package/dist/{chunk-XMBYDLZQ.cjs → chunk-GNHOB2ZB.cjs} +4 -4
- package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-GNHOB2ZB.cjs.map} +1 -1
- package/dist/{chunk-SF4BDUZS.js → chunk-HUFLBZWI.js} +3 -3
- package/dist/{chunk-SF4BDUZS.js.map → chunk-HUFLBZWI.js.map} +1 -1
- package/dist/{chunk-B4SRYJLM.cjs → chunk-KBPHLW2R.cjs} +3 -3
- package/dist/{chunk-B4SRYJLM.cjs.map → chunk-KBPHLW2R.cjs.map} +1 -1
- package/dist/{chunk-IF6VAYIA.cjs → chunk-OYMYNYFV.cjs} +5 -5
- package/dist/{chunk-IF6VAYIA.cjs.map → chunk-OYMYNYFV.cjs.map} +1 -1
- package/dist/{chunk-ICBAFX5B.js → chunk-PDEHIGJ5.js} +3 -3
- package/dist/{chunk-ICBAFX5B.js.map → chunk-PDEHIGJ5.js.map} +1 -1
- package/dist/{chunk-SJVUKXS6.js → chunk-QQH2NI5U.js} +6 -6
- package/dist/{chunk-SJVUKXS6.js.map → chunk-QQH2NI5U.js.map} +1 -1
- package/dist/chunk-RC25WMVB.cjs +16 -0
- package/dist/chunk-RC25WMVB.cjs.map +1 -0
- package/dist/{chunk-YFPIJUV3.cjs → chunk-RZGVMV6B.cjs} +5 -5
- package/dist/{chunk-YFPIJUV3.cjs.map → chunk-RZGVMV6B.cjs.map} +1 -1
- package/dist/{chunk-AMC5PMJ3.cjs → chunk-TOVSTC2M.cjs} +36 -68
- package/dist/chunk-TOVSTC2M.cjs.map +1 -0
- package/dist/{chunk-R3PDNQYT.js → chunk-UMY6Y6BM.js} +11 -5
- package/dist/chunk-UMY6Y6BM.js.map +1 -0
- package/dist/{chunk-MROSCSPW.cjs → chunk-VQ65UHTV.cjs} +45 -45
- package/dist/{chunk-MROSCSPW.cjs.map → chunk-VQ65UHTV.cjs.map} +1 -1
- package/dist/{chunk-MP6FK43E.cjs → chunk-VYKMBLDX.cjs} +8 -8
- package/dist/{chunk-MP6FK43E.cjs.map → chunk-VYKMBLDX.cjs.map} +1 -1
- package/dist/{chunk-W2R7YVFM.js → chunk-WXLKMEMB.js} +970 -65
- package/dist/chunk-WXLKMEMB.js.map +1 -0
- package/dist/{chunk-XQDM6T6C.js → chunk-YG7DGGCA.js} +3 -3
- package/dist/{chunk-XQDM6T6C.js.map → chunk-YG7DGGCA.js.map} +1 -1
- package/dist/{chunk-BX62HJZU.js → chunk-YPKSLTL5.js} +3 -3
- package/dist/{chunk-BX62HJZU.js.map → chunk-YPKSLTL5.js.map} +1 -1
- package/dist/{chunk-UDLMLU6T.js → chunk-ZNDAXSDP.js} +3 -3
- package/dist/{chunk-UDLMLU6T.js.map → chunk-ZNDAXSDP.js.map} +1 -1
- package/dist/connect/docx.cjs +8 -6
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +6 -4
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +47 -45
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +16 -14
- package/dist/connect/index.js.map +1 -1
- package/dist/docx/NativeDocxEditor.d.ts +6 -0
- package/dist/docx/definitions/DefinedTerms.d.ts +50 -0
- package/dist/docx/definitions/commands.d.ts +78 -0
- package/dist/docx/definitions/fragment.d.ts +29 -0
- package/dist/docx/definitions/port.d.ts +76 -0
- package/dist/docx/index.cjs +53 -15
- package/dist/docx/index.cjs.map +1 -1
- package/dist/docx/index.d.ts +3 -0
- package/dist/docx/index.js +5 -3
- package/dist/docx/index.js.map +1 -1
- package/dist/facts/index.cjs +7 -12
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +3 -10
- package/dist/facts/index.js.map +1 -1
- package/dist/home/CreateTile.d.ts +3 -1
- package/dist/home/index.cjs +10 -4
- package/dist/home/index.cjs.map +1 -1
- package/dist/home/index.js +10 -4
- package/dist/home/index.js.map +1 -1
- package/dist/index.cjs +1207 -1067
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +102 -15
- package/dist/index.js.map +1 -1
- package/dist/settings/PanelFrame.d.ts +3 -1
- package/dist/settings/index.cjs +12 -4
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +12 -4
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/Workspace.d.ts +6 -1
- package/dist/shell/index.cjs +67 -67
- package/dist/shell/index.js +3 -3
- package/dist/studio/index.cjs +7 -7
- package/dist/studio/index.js +6 -6
- package/dist/tags/definitions.d.ts +92 -0
- package/dist/tags/glossary.d.ts +44 -0
- package/dist/tags/index.d.ts +2 -0
- package/dist/tags/ooxml.d.ts +46 -0
- package/dist/tags/tagTableDocx.d.ts +1 -1
- package/dist/workflow-canvas/index.cjs +49 -49
- package/dist/workflow-canvas/index.js +6 -6
- package/package.json +4 -4
- package/src/docx/README.md +11 -0
- package/dist/chunk-2ZDFVRGV.cjs.map +0 -1
- package/dist/chunk-AMC5PMJ3.cjs.map +0 -1
- package/dist/chunk-NYBIKDWI.cjs.map +0 -1
- package/dist/chunk-R3PDNQYT.js.map +0 -1
- package/dist/chunk-UO74FLRK.js.map +0 -1
- package/dist/chunk-W2R7YVFM.js.map +0 -1
|
@@ -70,6 +70,11 @@ export interface WorkspaceSwitcherProps {
|
|
|
70
70
|
/** Return to the workspaces list; leaves the workspace open. */
|
|
71
71
|
onGoToList: () => void;
|
|
72
72
|
onNewWorkspace: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* When set, "New workspace" is shown disabled with this explanation under it (e.g. the user may
|
|
75
|
+
* not create workspaces on this deployment).
|
|
76
|
+
*/
|
|
77
|
+
newWorkspaceDisabledReason?: string;
|
|
73
78
|
/** Entity nouns and menu strings; any subset (the nouns default to workspace(s)). */
|
|
74
79
|
labels?: Partial<WorkspaceSwitcherLabels>;
|
|
75
80
|
className?: string;
|
|
@@ -87,4 +92,4 @@ export interface WorkspaceSwitcherProps {
|
|
|
87
92
|
* The current-workspace control as a dropdown: "All workspaces", "New workspace", then the
|
|
88
93
|
* recent workspaces to jump straight into.
|
|
89
94
|
*/
|
|
90
|
-
export declare function WorkspaceSwitcher({ workspace, recent, compact, variant, onSwitch, onGoToList, onNewWorkspace, labels, className, testId, testIds, identityTestIds, }: WorkspaceSwitcherProps): import("react").JSX.Element;
|
|
95
|
+
export declare function WorkspaceSwitcher({ workspace, recent, compact, variant, onSwitch, onGoToList, onNewWorkspace, newWorkspaceDisabledReason, labels, className, testId, testIds, identityTestIds, }: WorkspaceSwitcherProps): import("react").JSX.Element;
|
package/dist/shell/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkCKYA2IG5_cjs = require('../chunk-CKYA2IG5.cjs');
|
|
5
|
+
var chunkXKSFJYOD_cjs = require('../chunk-XKSFJYOD.cjs');
|
|
6
|
+
var chunkVGOFFCMT_cjs = require('../chunk-VGOFFCMT.cjs');
|
|
5
7
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
6
8
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
7
9
|
require('../chunk-OB5F4577.cjs');
|
|
8
|
-
var chunkXKSFJYOD_cjs = require('../chunk-XKSFJYOD.cjs');
|
|
9
|
-
var chunkVGOFFCMT_cjs = require('../chunk-VGOFFCMT.cjs');
|
|
10
10
|
require('../chunk-PPCATBOY.cjs');
|
|
11
11
|
require('../chunk-C54XEN5T.cjs');
|
|
12
12
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
@@ -17,199 +17,179 @@ require('../chunk-DES3K4SD.cjs');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "ActionCluster", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkCKYA2IG5_cjs.ActionCluster; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "AskField", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkCKYA2IG5_cjs.AskField; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "AskRow", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkCKYA2IG5_cjs.AskRow; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "AskTrigger", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkCKYA2IG5_cjs.AskTrigger; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "DEFAULT_ASK_FIELD_LABELS", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_ASK_FIELD_LABELS; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "DEFAULT_INSTALL_PROMPT_LABELS", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_INSTALL_PROMPT_LABELS; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "DEFAULT_MOBILE_BARS_LABELS", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_MOBILE_BARS_LABELS; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "DEFAULT_OFFLINE_PILL_LABELS", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_OFFLINE_PILL_LABELS; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "DEFAULT_REMOTE_CONTROL_PILL_LABELS", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_REMOTE_CONTROL_PILL_LABELS; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "DEFAULT_SIDEBAR_LABELS", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_SIDEBAR_LABELS; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "DEFAULT_TIP_CARD_LABELS", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_TIP_CARD_LABELS; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_KIND_LABELS", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_WORKSPACE_KIND_LABELS; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_SWITCHER_LABELS", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkCKYA2IG5_cjs.DEFAULT_WORKSPACE_SWITCHER_LABELS; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "INSTALL_PROMPT_DISMISSED_KEY", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkCKYA2IG5_cjs.INSTALL_PROMPT_DISMISSED_KEY; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "InfoBar", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkCKYA2IG5_cjs.InfoBar; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "InstallPrompt", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkCKYA2IG5_cjs.InstallPrompt; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "MobileAppBar", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkCKYA2IG5_cjs.MobileAppBar; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "MobileTabBar", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkCKYA2IG5_cjs.MobileTabBar; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "NotificationBell", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkCKYA2IG5_cjs.NotificationBell; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "OfflinePill", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkCKYA2IG5_cjs.OfflinePill; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "RemoteControlPill", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkCKYA2IG5_cjs.RemoteControlPill; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "STATUS_ROW_BASE_CLASS", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkCKYA2IG5_cjs.STATUS_ROW_BASE_CLASS; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "STATUS_ROW_TONES", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkCKYA2IG5_cjs.STATUS_ROW_TONES; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "Sidebar", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkCKYA2IG5_cjs.Sidebar; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "SidebarBadgeRow", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkCKYA2IG5_cjs.SidebarBadgeRow; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "SidebarRowAction", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkCKYA2IG5_cjs.SidebarRowAction; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "SidebarRowHoverContext", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkCKYA2IG5_cjs.SidebarRowHoverContext; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "SplitLayout", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkCKYA2IG5_cjs.SplitLayout; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "StatusBadge", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkCKYA2IG5_cjs.StatusBadge; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "StatusRow", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkCKYA2IG5_cjs.StatusRow; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "TipCard", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkCKYA2IG5_cjs.TipCard; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "UserMenu", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkCKYA2IG5_cjs.UserMenu; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "WorkspaceIdentity", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkCKYA2IG5_cjs.WorkspaceIdentity; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "WorkspaceSwitcher", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkCKYA2IG5_cjs.WorkspaceSwitcher; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "getInstallInstructions", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkCKYA2IG5_cjs.getInstallInstructions; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "initInstallPrompt", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkCKYA2IG5_cjs.initInstallPrompt; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "isIosDevice", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkCKYA2IG5_cjs.isIosDevice; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "promptAppInstall", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkCKYA2IG5_cjs.promptAppInstall; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "resolveSidebarLayout", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkCKYA2IG5_cjs.resolveSidebarLayout; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "useInstallPrompt", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkCKYA2IG5_cjs.useInstallPrompt; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "useSidebarContext", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkCKYA2IG5_cjs.useSidebarContext; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "useSidebarSettle", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkCKYA2IG5_cjs.useSidebarSettle; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "workspaceKindColor", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkCKYA2IG5_cjs.workspaceKindColor; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "workspaceKindMeta", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
193
|
-
});
|
|
194
|
-
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
195
|
-
enumerable: true,
|
|
196
|
-
get: function () { return chunk7RGLTF76_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
197
|
-
});
|
|
198
|
-
Object.defineProperty(exports, "TabHeader", {
|
|
199
|
-
enumerable: true,
|
|
200
|
-
get: function () { return chunk7RGLTF76_cjs.TabHeader; }
|
|
201
|
-
});
|
|
202
|
-
Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
|
|
203
|
-
enumerable: true,
|
|
204
|
-
get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_FIELDS; }
|
|
205
|
-
});
|
|
206
|
-
Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
|
|
207
|
-
enumerable: true,
|
|
208
|
-
get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
209
|
-
});
|
|
210
|
-
Object.defineProperty(exports, "FilterInput", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function () { return chunk2EI7NCUA_cjs.FilterInput; }
|
|
192
|
+
get: function () { return chunkCKYA2IG5_cjs.workspaceKindMeta; }
|
|
213
193
|
});
|
|
214
194
|
Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
|
|
215
195
|
enumerable: true,
|
|
@@ -263,6 +243,26 @@ Object.defineProperty(exports, "useShellBottomInset", {
|
|
|
263
243
|
enumerable: true,
|
|
264
244
|
get: function () { return chunkVGOFFCMT_cjs.useShellBottomInset; }
|
|
265
245
|
});
|
|
246
|
+
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () { return chunk7RGLTF76_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(exports, "TabHeader", {
|
|
251
|
+
enumerable: true,
|
|
252
|
+
get: function () { return chunk7RGLTF76_cjs.TabHeader; }
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_FIELDS; }
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(exports, "FilterInput", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () { return chunk2EI7NCUA_cjs.FilterInput; }
|
|
265
|
+
});
|
|
266
266
|
Object.defineProperty(exports, "BREAKPOINT_QUERIES", {
|
|
267
267
|
enumerable: true,
|
|
268
268
|
get: function () { return chunkFX3K6LNZ_cjs.BREAKPOINT_QUERIES; }
|
package/dist/shell/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from '../chunk-
|
|
2
|
+
export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from '../chunk-UMY6Y6BM.js';
|
|
3
|
+
export { DEFAULT_DOCK_WIDTH, Toaster } from '../chunk-BV7FEMSI.js';
|
|
4
|
+
export { DEFAULT_OVERLAY_ZONE_ID, DEFAULT_PAGE_CONTAINER_PADDING, DEFAULT_SIDEBAR_TOGGLE_BUTTON_LABELS, PageContainer, SHELL_BOTTOM_INSET_VAR, Shell, SidebarToggleButton, ToolButton, useDrawerBehavior, useOverlayZoneId, useShellBottomInset } from '../chunk-KZJAG7T3.js';
|
|
3
5
|
export { DEFAULT_TAB_HEADER_LABELS, TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
4
6
|
export { DEFAULT_FILTER_FIELDS, DEFAULT_FILTER_INPUT_LABELS, FilterInput } from '../chunk-YU2KUMGE.js';
|
|
5
7
|
import '../chunk-S7PSMMRG.js';
|
|
6
|
-
export { DEFAULT_DOCK_WIDTH, Toaster } from '../chunk-BV7FEMSI.js';
|
|
7
|
-
export { DEFAULT_OVERLAY_ZONE_ID, DEFAULT_PAGE_CONTAINER_PADDING, DEFAULT_SIDEBAR_TOGGLE_BUTTON_LABELS, PageContainer, SHELL_BOTTOM_INSET_VAR, Shell, SidebarToggleButton, ToolButton, useDrawerBehavior, useOverlayZoneId, useShellBottomInset } from '../chunk-KZJAG7T3.js';
|
|
8
8
|
import '../chunk-NPLYHR2E.js';
|
|
9
9
|
import '../chunk-76JDDMSP.js';
|
|
10
10
|
export { BREAKPOINT_QUERIES, useIsNarrow, useIsPhone, useIsTouchScreen, useMediaQuery } from '../chunk-SLSBJRWW.js';
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
4
|
+
var chunkGNHOB2ZB_cjs = require('../chunk-GNHOB2ZB.cjs');
|
|
6
5
|
var chunk7QDX2CO4_cjs = require('../chunk-7QDX2CO4.cjs');
|
|
7
6
|
var chunkMJCCBMM5_cjs = require('../chunk-MJCCBMM5.cjs');
|
|
8
7
|
var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
|
|
8
|
+
require('../chunk-VYKMBLDX.cjs');
|
|
9
|
+
require('../chunk-VGOFFCMT.cjs');
|
|
9
10
|
require('../chunk-VPPX5XUF.cjs');
|
|
10
11
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
11
12
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
13
|
+
require('../chunk-KBPHLW2R.cjs');
|
|
12
14
|
require('../chunk-OB5F4577.cjs');
|
|
13
|
-
require('../chunk-MP6FK43E.cjs');
|
|
14
|
-
require('../chunk-VGOFFCMT.cjs');
|
|
15
|
-
require('../chunk-B4SRYJLM.cjs');
|
|
16
|
-
require('../chunk-7UTB4PHM.cjs');
|
|
17
15
|
require('../chunk-PPCATBOY.cjs');
|
|
18
16
|
var chunkC54XEN5T_cjs = require('../chunk-C54XEN5T.cjs');
|
|
19
17
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
18
|
+
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
19
|
+
require('../chunk-7UTB4PHM.cjs');
|
|
20
20
|
require('../chunk-MHVNT4J3.cjs');
|
|
21
21
|
require('../chunk-DES3K4SD.cjs');
|
|
22
22
|
var lucideReact = require('lucide-react');
|
|
@@ -883,7 +883,7 @@ function latestImageDocId(artifacts) {
|
|
|
883
883
|
return null;
|
|
884
884
|
}
|
|
885
885
|
function useImageGen() {
|
|
886
|
-
const task =
|
|
886
|
+
const task = chunkGNHOB2ZB_cjs.useConnectedAiTask();
|
|
887
887
|
const { run } = task;
|
|
888
888
|
const generate = react.useCallback(
|
|
889
889
|
async (prompt, referenceDocIds = []) => {
|
package/dist/studio/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedAiTask } from '../chunk-
|
|
3
|
-
import { useConnection } from '../chunk-OYMWV45N.js';
|
|
2
|
+
import { useConnectedAiTask } from '../chunk-YG7DGGCA.js';
|
|
4
3
|
import { PageHeader, MetricCard, DataTableBlock, StatGroup } from '../chunk-ZCF2JJFA.js';
|
|
5
4
|
import { assetRefId, applyStoredTheme, AssetResolverProvider, ThemeEditor, applyThemeVars, tid, SectionHeading, PricingTable, Tabs as Tabs$1, Accordion, Gallery, VideoEmbed, ContactForm, Banner, MediaText, TeamGrid, Steps, TestimonialGrid, Columns, Spacer, Container, Hero, FeatureGrid, Testimonial, CTABanner, LogoCloud, FAQ, RichTextBlock, BlockImage, AvatarBlock, Navbar, Footer, ListBlock, isAssetRef, asAssetRef } from '../chunk-DLBUFHLY.js';
|
|
6
5
|
export { ASSET_REF_PREFIX, AssetResolverProvider, asAssetRef, assetRefId, isAssetRef, useAssetRenderer, useAssetResolverActive } from '../chunk-DLBUFHLY.js';
|
|
7
6
|
import { Timeline } from '../chunk-OVEQERPO.js';
|
|
7
|
+
import '../chunk-EJAYB7PP.js';
|
|
8
|
+
import '../chunk-KZJAG7T3.js';
|
|
8
9
|
import '../chunk-4EZVCGRL.js';
|
|
9
10
|
import { Callout } from '../chunk-UJE32SST.js';
|
|
10
11
|
import { EmptyState } from '../chunk-P6GHJSLR.js';
|
|
12
|
+
import '../chunk-24CS7JWU.js';
|
|
11
13
|
import '../chunk-S7PSMMRG.js';
|
|
12
|
-
import '../chunk-EWSEQEPL.js';
|
|
13
|
-
import '../chunk-KZJAG7T3.js';
|
|
14
|
-
import '../chunk-HOXKR26S.js';
|
|
15
|
-
import '../chunk-AA3PT6KR.js';
|
|
16
14
|
import '../chunk-NPLYHR2E.js';
|
|
17
15
|
import { useBlocksEnvironment } from '../chunk-76JDDMSP.js';
|
|
18
16
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
17
|
+
import { useConnection } from '../chunk-OYMWV45N.js';
|
|
18
|
+
import '../chunk-AA3PT6KR.js';
|
|
19
19
|
import '../chunk-7F6CBP3Z.js';
|
|
20
20
|
import '../chunk-VUNV25KB.js';
|
|
21
21
|
import { MessageSquare, Cpu, Code, Cloud, Layers, Target, Award, MapPin, Phone, Mail, Lock, Globe, Heart, Star, Rocket, Shield, Zap, Sparkles, Gavel, Scale, Bell, Activity, BarChart3, DollarSign, TrendingUp, Info, AlertCircle, CheckCircle, Clock, Calendar, Briefcase, Users, Folder, FileText, ArrowLeft, Palette, Loader2, RotateCcw, ChevronUp, ChevronDown, BrainCircuit, Bot, LayoutGrid, FileJson, Download, Crop, ImagePlus, Upload, Link2, Check, MessagesSquare } from 'lucide-react';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defined terms. A definition is an ordinary fact carrying the workspace's "Definitions" label; its
|
|
3
|
+
* TERM is read from the start of its text — `"Shares" means …`, `**Business Day** shall mean …`,
|
|
4
|
+
* `Completion: the date …` — and facts defining the same term (one per agreement, say) are grouped,
|
|
5
|
+
* a confirmed one preferred over the rest, then the most recent. Pure helpers, no React: the Word
|
|
6
|
+
* editor inserts terms with them and the Tags page prints the glossary with them.
|
|
7
|
+
*/
|
|
8
|
+
/** The label that marks a fact as a definition. */
|
|
9
|
+
export declare const DEFINITIONS_LABEL = "Definitions";
|
|
10
|
+
/** A label on a definition other than {@link DEFINITIONS_LABEL} (e.g. the agreement it is from). */
|
|
11
|
+
export interface DefinitionLabel {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
/** A definition fact, as the host reads it. */
|
|
16
|
+
export interface DefinitionSource {
|
|
17
|
+
/** The fact's id (`fct-…`). */
|
|
18
|
+
id: string;
|
|
19
|
+
/** The fact text, as written (it may be Markdown). */
|
|
20
|
+
text: string;
|
|
21
|
+
/** A human vouched for it: preferred over unconfirmed definitions of the same term. */
|
|
22
|
+
confirmed?: boolean;
|
|
23
|
+
/** ISO time it was last written; the most recent wins between equals. */
|
|
24
|
+
updatedAt?: string;
|
|
25
|
+
/** Where it comes from: the cited document's name. */
|
|
26
|
+
source?: string;
|
|
27
|
+
/** Its other labels, e.g. the agreement ("SPA") it defines a term of. */
|
|
28
|
+
labels?: DefinitionLabel[];
|
|
29
|
+
}
|
|
30
|
+
/** A definition's text split into its term and the rest. */
|
|
31
|
+
export interface ParsedDefinition {
|
|
32
|
+
/** The term as written, without quotes or emphasis (`Business Day`). */
|
|
33
|
+
term: string;
|
|
34
|
+
/** What follows the term, its connecting word included (`means a day …`, `: the date …`). */
|
|
35
|
+
rest: string;
|
|
36
|
+
/** Just the meaning, the connecting word dropped (`a day …`). */
|
|
37
|
+
meaning: string;
|
|
38
|
+
}
|
|
39
|
+
/** A parsed definition fact. */
|
|
40
|
+
export interface Definition extends DefinitionSource, ParsedDefinition {
|
|
41
|
+
/** The term's matching key (case and whitespace folded). */
|
|
42
|
+
key: string;
|
|
43
|
+
}
|
|
44
|
+
/** Every definition of one term, the preferred one first. */
|
|
45
|
+
export interface DefinedTermGroup {
|
|
46
|
+
key: string;
|
|
47
|
+
/** The term as the preferred definition writes it. */
|
|
48
|
+
term: string;
|
|
49
|
+
/** The preferred definition (first of {@link DefinedTermGroup.definitions}). */
|
|
50
|
+
preferred: Definition;
|
|
51
|
+
definitions: Definition[];
|
|
52
|
+
}
|
|
53
|
+
/** The matching key of a term: case and whitespace folded, quotes and emphasis dropped. */
|
|
54
|
+
export declare function termKey(term: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Read a definition's term from the start of its text, or `null` when it does not start with one.
|
|
57
|
+
*
|
|
58
|
+
* Optional straight or curly quotes and bold markers around the term are dropped; the term is what
|
|
59
|
+
* comes before "means", "shall mean", "includes", "has the meaning", a colon, or a dash. A quoted
|
|
60
|
+
* term is taken whole, so `"Long-Stop Date" means …` keeps its hyphen.
|
|
61
|
+
*/
|
|
62
|
+
export declare function parseDefinition(text: string): ParsedDefinition | null;
|
|
63
|
+
/** A definition parsed, or `null` when its text names no term. */
|
|
64
|
+
export declare function toDefinition(source: DefinitionSource): Definition | null;
|
|
65
|
+
/** Preferred first: confirmed, then most recently written, then by id (stable). */
|
|
66
|
+
export declare function compareDefinitions(a: DefinitionSource, b: DefinitionSource): number;
|
|
67
|
+
/** Alphabetical order of terms, as a reader sorts a glossary (case and accents folded). */
|
|
68
|
+
export declare const compareTerms: (a: string, b: string) => number;
|
|
69
|
+
/**
|
|
70
|
+
* Definitions grouped by term, alphabetically, each group's preferred definition first. Facts whose
|
|
71
|
+
* text names no term are returned apart (`unparsed`), so a host can say how many it could not read.
|
|
72
|
+
* With `labelId`, only definitions carrying that label (one agreement's, say) are kept.
|
|
73
|
+
*/
|
|
74
|
+
export declare function groupDefinitions(sources: readonly DefinitionSource[], options?: {
|
|
75
|
+
labelId?: string | null;
|
|
76
|
+
}): {
|
|
77
|
+
groups: DefinedTermGroup[];
|
|
78
|
+
unparsed: DefinitionSource[];
|
|
79
|
+
};
|
|
80
|
+
/** The labels (agreements) definitions carry besides the Definitions label, by name. */
|
|
81
|
+
export declare function definitionLabels(sources: readonly DefinitionSource[]): DefinitionLabel[];
|
|
82
|
+
/** Groups whose term matches a typed query: prefix matches first, then any word, then anywhere. */
|
|
83
|
+
export declare function filterTermGroups(groups: readonly DefinedTermGroup[], query: string): DefinedTermGroup[];
|
|
84
|
+
/** Prefix of every bookmark a defined term links to: hidden in Word (leading underscore). */
|
|
85
|
+
export declare const DEFINITION_BOOKMARK_PREFIX = "_dt_";
|
|
86
|
+
/**
|
|
87
|
+
* The Word bookmark of a definition: `_dt_` and the fact id in valid bookmark characters
|
|
88
|
+
* (`fct-AbC12345` → `_dt_fct_AbC12345`), at most 40 characters as Word requires.
|
|
89
|
+
*/
|
|
90
|
+
export declare function definitionBookmark(factId: string): string;
|
|
91
|
+
/** The fact id a definition bookmark names, or `null` for any other bookmark. */
|
|
92
|
+
export declare function definitionIdOfBookmark(name: string): string | null;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The glossary: every definition fact (optionally one agreement's), alphabetical by term, as a
|
|
3
|
+
* three-column table — Term, Definition, Source — printed as a Word document or as Markdown with
|
|
4
|
+
* the same WordprocessingML the tag tables export with (`ooxml.ts`).
|
|
5
|
+
*/
|
|
6
|
+
import { type DefinitionSource } from './definitions';
|
|
7
|
+
/** One glossary row. */
|
|
8
|
+
export interface GlossaryEntry {
|
|
9
|
+
/** Empty for a definition whose text names no term (listed last, as written). */
|
|
10
|
+
term: string;
|
|
11
|
+
definition: string;
|
|
12
|
+
source: string;
|
|
13
|
+
factId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GlossaryLabels {
|
|
16
|
+
term: string;
|
|
17
|
+
definition: string;
|
|
18
|
+
source: string;
|
|
19
|
+
/** `{at}` is when it was printed, `YYYY-MM-DD HH:MM UTC`. */
|
|
20
|
+
takenAt: string;
|
|
21
|
+
empty: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const DEFAULT_GLOSSARY_LABELS: GlossaryLabels;
|
|
24
|
+
export interface GlossaryOptions {
|
|
25
|
+
title: string;
|
|
26
|
+
/** When it was printed (ISO); default now. */
|
|
27
|
+
at?: string;
|
|
28
|
+
labels?: Partial<GlossaryLabels>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The glossary's rows: every definition, alphabetical by term and, within a term, the preferred one
|
|
32
|
+
* first. Definitions whose text names no term follow, as written. `labelId` keeps one label's.
|
|
33
|
+
*/
|
|
34
|
+
export declare function glossaryEntries(sources: readonly DefinitionSource[], options?: {
|
|
35
|
+
labelId?: string | null;
|
|
36
|
+
}): GlossaryEntry[];
|
|
37
|
+
/** The glossary as a Markdown document: a heading, when it was printed, and one table. */
|
|
38
|
+
export declare function glossaryMarkdown(entries: readonly GlossaryEntry[], options: GlossaryOptions): string;
|
|
39
|
+
/** `word/document.xml` of the glossary (exposed for tests). */
|
|
40
|
+
export declare function glossaryDocumentXml(entries: readonly GlossaryEntry[], options: GlossaryOptions): string;
|
|
41
|
+
/** The glossary as `.docx` bytes. */
|
|
42
|
+
export declare function glossaryDocx(entries: readonly GlossaryEntry[], options: GlossaryOptions): Uint8Array;
|
|
43
|
+
/** A file name for the glossary: `Glossary - SPA.docx`. */
|
|
44
|
+
export declare function glossaryFileName(title: string, extension: 'docx' | 'md'): string;
|
package/dist/tags/index.d.ts
CHANGED
|
@@ -9,3 +9,5 @@ export { TagDetail, DEFAULT_TAG_DETAIL_LABELS, type TagDetailProps, type TagDeta
|
|
|
9
9
|
export { TagsNav, findTagsNavItem, DEFAULT_TAGS_NAV_LABELS, type TagsNavProps, type TagsNavLabels, type TagsNavGroup, type TagsNavItem, type TagsNavSelection, } from './TagsNav';
|
|
10
10
|
export { tagTableMarkdown, cellValue, cellText, parseCell, isGap, rowLinks, fieldWrites, type TagTableData, type TagTableRow, type TagTableLinks, type TagTableField, type TagTableFieldType, type TagTableFieldWrite, type TagTableMarkdownOptions, } from './tagTableModel';
|
|
11
11
|
export { tagTableDocx, tagTableDocumentXml, DEFAULT_TAG_TABLE_DOCX_LABELS, TAG_TABLE_DOCX_LANDSCAPE_AFTER, type TagTableDocxLabels, type TagTableDocxOptions, } from './tagTableDocx';
|
|
12
|
+
export { DEFINITIONS_LABEL, DEFINITION_BOOKMARK_PREFIX, parseDefinition, toDefinition, termKey, groupDefinitions, definitionLabels, filterTermGroups, compareDefinitions, compareTerms, definitionBookmark, definitionIdOfBookmark, type DefinitionSource, type DefinitionLabel, type Definition, type DefinedTermGroup, type ParsedDefinition, } from './definitions';
|
|
13
|
+
export { glossaryEntries, glossaryMarkdown, glossaryDocx, glossaryDocumentXml, glossaryFileName, DEFAULT_GLOSSARY_LABELS, type GlossaryEntry, type GlossaryLabels, type GlossaryOptions, } from './glossary';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The small WordprocessingML vocabulary the tags exports write: escaped runs, paragraphs, table
|
|
3
|
+
* cells, an A4 page, and the minimal package around a `word/document.xml`. Zipped with `fflate`, so
|
|
4
|
+
* the result opens in the native Word editor and in Word without pulling the editor engine in.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DOCX_MIME_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
7
|
+
export declare const W_NAMESPACES = "xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"";
|
|
8
|
+
/** Text as XML character data or an attribute value. */
|
|
9
|
+
export declare const esc: (text: string) => string;
|
|
10
|
+
export interface Run {
|
|
11
|
+
text: string;
|
|
12
|
+
bold?: boolean;
|
|
13
|
+
italic?: boolean;
|
|
14
|
+
muted?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const run: ({ text, bold, italic, muted }: Run) => string;
|
|
17
|
+
export declare const paragraph: (runs: Run[], style?: string) => string;
|
|
18
|
+
/** A table cell: its paragraphs (a cell must hold at least one), shaded when given a fill. */
|
|
19
|
+
export declare const cell: (paragraphs: string[], width: number, fill?: string) => string;
|
|
20
|
+
/** Page geometry in twips (A4), turned for landscape. */
|
|
21
|
+
export declare function page(landscape: boolean): {
|
|
22
|
+
margin: number;
|
|
23
|
+
textWidth: number;
|
|
24
|
+
sectPr: string;
|
|
25
|
+
};
|
|
26
|
+
/** `YYYY-MM-DD HH:MM` (UTC) of an ISO time, for a "taken at" line. */
|
|
27
|
+
export declare const minuteUtc: (at: string) => string;
|
|
28
|
+
/** A `word/document.xml` around body content (paragraphs, tables, then the section). */
|
|
29
|
+
export declare const documentXml: (body: string) => string;
|
|
30
|
+
/** `word/styles.xml` holding the given style definitions. */
|
|
31
|
+
export declare const stylesXml: (defaults: string, styles: string) => string;
|
|
32
|
+
/** Calibri 11pt (en-GB), 8pt after each paragraph: the document defaults the exports share. */
|
|
33
|
+
export declare const DOC_DEFAULTS = "<w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:ascii=\"Calibri\" w:hAnsi=\"Calibri\" w:eastAsia=\"Calibri\" w:cs=\"Calibri\"/><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/><w:lang w:val=\"en-GB\"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after=\"160\" w:line=\"259\" w:lineRule=\"auto\"/></w:pPr></w:pPrDefault></w:docDefaults>";
|
|
34
|
+
/**
|
|
35
|
+
* Styles of a document that is a title and a table: `Title`, the compact `TagTableCell` paragraph
|
|
36
|
+
* and the bordered `TagTableGrid` table.
|
|
37
|
+
*/
|
|
38
|
+
export declare const TABLE_DOCUMENT_STYLES: string;
|
|
39
|
+
/** The minimal `.docx` package: a document, its styles, and its title and time. */
|
|
40
|
+
export declare function docxPackage(parts: {
|
|
41
|
+
document: string;
|
|
42
|
+
styles: string;
|
|
43
|
+
title: string;
|
|
44
|
+
/** ISO time; default now. */
|
|
45
|
+
at?: string;
|
|
46
|
+
}): Uint8Array;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* in Word without pulling the editor engine into the tags module.
|
|
7
7
|
*/
|
|
8
8
|
import { type TagTableData } from './tagTableModel';
|
|
9
|
-
export
|
|
9
|
+
export { DOCX_MIME_TYPE } from './ooxml';
|
|
10
10
|
/** More table columns than this (item, fields, evidence, gaps) turn the page to landscape. */
|
|
11
11
|
export declare const TAG_TABLE_DOCX_LANDSCAPE_AFTER = 6;
|
|
12
12
|
export interface TagTableDocxLabels {
|