@dxos/plugin-help 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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/lib/browser/{chunk-K4LQ2TR7.mjs → chunk-53QC3FTJ.mjs} +1 -1
- package/dist/lib/browser/{chunk-K4LQ2TR7.mjs.map → chunk-53QC3FTJ.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-TEXIV2IJ.mjs → chunk-EEXGETLQ.mjs} +1 -1
- package/dist/lib/browser/{chunk-TEXIV2IJ.mjs.map → chunk-EEXGETLQ.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-KUUIRJG5.mjs → chunk-RWK34XL5.mjs} +2 -2
- package/dist/lib/browser/chunk-RWK34XL5.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +9 -380
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +1 -1
- package/dist/lib/browser/operations/index.mjs +3 -3
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{start-YZBO346C.mjs → start-JQ2LLVCT.mjs} +4 -4
- package/dist/lib/browser/{start-YZBO346C.mjs.map → start-JQ2LLVCT.mjs.map} +1 -1
- package/dist/lib/browser/translations.mjs +20 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/types/src/HelpPlugin.d.ts +1 -0
- package/dist/types/src/HelpPlugin.d.ts.map +1 -1
- package/dist/types/src/HelpPlugin.test.d.ts +2 -0
- package/dist/types/src/HelpPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/components/Shortcuts/Key.d.ts.map +1 -1
- package/dist/types/src/components/Shortcuts/ShortcutsHints.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +9 -9
- package/dist/types/src/components/WelcomeTour/WelcomeTour.d.ts.map +1 -1
- package/dist/types/src/components/WelcomeTour/WelcomeTour.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ShortcutsDialogContent/ShortcutsDialogContent.stories.d.ts +5 -5
- package/dist/types/src/containers/ShortcutsDialogContent/ShortcutsDialogContent.stories.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +1 -1
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/start.d.ts +1 -1
- package/dist/types/src/operations/start.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +5 -6
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +30 -35
- package/src/HelpPlugin.test.ts +30 -0
- package/src/HelpPlugin.tsx +3 -2
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +1 -2
- package/src/components/WelcomeTour/WelcomeTour.tsx +1 -0
- package/src/containers/ShortcutsDialogContent/ShortcutsDialogContent.stories.tsx +2 -1
- package/src/index.ts +7 -3
- package/src/operations/definitions.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/start.ts +1 -1
- package/dist/lib/browser/chunk-KUUIRJG5.mjs.map +0 -7
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types/capabilities.ts", "../../../src/types/schema.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Atom } from '@effect-atom/atom-react';\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\n\nexport namespace HelpCapabilities {\n export const StateSchema = Schema.mutable(\n Schema.Struct({\n running: Schema.Boolean,\n showHints: Schema.Boolean,\n showWelcome: Schema.Boolean,\n }),\n );\n\n export type State = Schema.Schema.Type<typeof StateSchema>;\n\n export const State = Capability.make<Atom.Writable<State>>(`${meta.id}.capability.state`);\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Context, createContext } from 'react';\nimport { type Step as BaseStep } from 'react-joyride';\n\nimport { type CapabilityManager } from '@dxos/app-framework';\n\nexport type Step = BaseStep & {\n before?: (capabilities: CapabilityManager.CapabilityManager) => void;\n};\n\nexport type HelpContextType = {\n running: boolean;\n steps: Step[];\n setSteps: (steps: Step[]) => void;\n setIndex: (index: number) => void;\n start: () => void;\n stop: () => void;\n};\n\nexport const HelpContext: Context<HelpContextType> = createContext<HelpContextType>({\n running: false,\n steps: [],\n setSteps: () => {},\n setIndex: () => {},\n start: () => {},\n stop: () => {},\n});\n"],
|
|
5
|
-
"mappings": ";AAKA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAE3B,SAASC,YAAY;UAEJC,mBAAAA;oBACFC,cAAqBC,eACzBC,cAAO;IACZC,SAAgBC;IAChBC,WAAkBD;IAClBE,aAAoBF;EACtB,CAAA,CAAA;oBAKWG,
|
|
6
|
-
"names": ["Schema", "Capability", "meta", "HelpCapabilities", "StateSchema", "mutable", "Struct", "running", "Boolean", "showHints", "showWelcome", "State", "
|
|
5
|
+
"mappings": ";AAKA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAE3B,SAASC,YAAY;UAEJC,mBAAAA;oBACFC,cAAqBC,eACzBC,cAAO;IACZC,SAAgBC;IAChBC,WAAkBD;IAClBE,aAAoBF;EACtB,CAAA,CAAA;oBAKWG,QAAQV,WAAWW,KAA2B,GAAGV,KAAKW,EAAE,mBAAmB;AAC1F,GAZiBV,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;ACPjB,SAAuBW,qBAAqB;AAkBrC,IAAMC,cAAwCD,cAA+B;EAClFE,SAAS;EACTC,OAAO,CAAA;EACPC,UAAU,MAAA;EAAO;EACjBC,UAAU,MAAA;EAAO;EACjBC,OAAO,MAAA;EAAO;EACdC,MAAM,MAAA;EAAO;AACf,CAAA;",
|
|
6
|
+
"names": ["Schema", "Capability", "meta", "HelpCapabilities", "StateSchema", "mutable", "Struct", "running", "Boolean", "showHints", "showWelcome", "State", "make", "id", "createContext", "HelpContext", "running", "steps", "setSteps", "setIndex", "start", "stop"]
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/meta.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.help',\n name: 'Help',\n description: trim`\n Built-in help system with documentation, tutorials, and contextual assistance.\n Access keyboard shortcuts, feature guides, and support resources.\n `,\n icon: 'ph--info--regular',\n};\n"],
|
|
5
|
-
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,
|
|
6
|
-
"names": ["trim", "meta", "id", "name", "description", "
|
|
5
|
+
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;AACR;",
|
|
6
|
+
"names": ["trim", "meta", "id", "name", "description", "icon"]
|
|
7
7
|
}
|
|
@@ -9,7 +9,7 @@ __export(definitions_exports, {
|
|
|
9
9
|
});
|
|
10
10
|
import * as Schema from "effect/Schema";
|
|
11
11
|
import { Capability } from "@dxos/app-framework";
|
|
12
|
-
import { Operation } from "@dxos/
|
|
12
|
+
import { Operation } from "@dxos/compute";
|
|
13
13
|
import { meta } from "#meta";
|
|
14
14
|
var HELP_OPERATION = `${meta.id}.operation`;
|
|
15
15
|
var Start = Operation.make({
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
Start,
|
|
29
29
|
definitions_exports
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
31
|
+
//# sourceMappingURL=chunk-RWK34XL5.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\n\nimport { meta } from '#meta';\n\nconst HELP_OPERATION = `${meta.id}.operation`;\n\nexport const Start = Operation.make({\n meta: { key: `${HELP_OPERATION}.start`, name: 'Start Help' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n"],
|
|
5
|
+
"mappings": ";;;;;AAAA;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAE1B,SAASC,YAAY;AAErB,IAAMC,iBAAiB,GAAGD,KAAKE,EAAE;AAE1B,IAAMC,QAAQJ,UAAUK,KAAK;EAClCJ,MAAM;IAAEK,KAAK,GAAGJ,cAAAA;IAAwBK,MAAM;EAAa;EAC3DC,UAAU;IAACT,WAAWU;;EACtBC,OAAcC;EACdC,QAAeD;AACjB,CAAA;",
|
|
6
|
+
"names": ["Schema", "Capability", "Operation", "meta", "HELP_OPERATION", "id", "Start", "make", "key", "name", "services", "Service", "input", "Void", "output"]
|
|
7
|
+
}
|
|
@@ -1,397 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EEXGETLQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HelpCapabilities,
|
|
6
6
|
HelpContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-53QC3FTJ.mjs";
|
|
8
8
|
import "./chunk-J5LGTIGS.mjs";
|
|
9
9
|
|
|
10
|
-
// src/
|
|
11
|
-
import
|
|
12
|
-
import { Keyboard } from "@dxos/keyboard";
|
|
13
|
-
import { IconButton, toLocalizedString, useTranslation } from "@dxos/react-ui";
|
|
14
|
-
import { osTranslations } from "@dxos/ui-theme";
|
|
15
|
-
|
|
16
|
-
// src/components/Shortcuts/Key.tsx
|
|
17
|
-
import React from "react";
|
|
18
|
-
import { keySymbols } from "@dxos/keyboard";
|
|
19
|
-
|
|
20
|
-
// src/components/Shortcuts/styles.ts
|
|
21
|
-
import { mx } from "@dxos/ui-theme";
|
|
22
|
-
var shortcutKey = mx("inline-flex min-w-[24px] h-[24px] px-0.5 justify-center items-center text-xs", "rounded-sm bg-neutral-100 dark:bg-neutral-900");
|
|
23
|
-
|
|
24
|
-
// src/components/Shortcuts/Key.tsx
|
|
25
|
-
var Key = ({ binding }) => {
|
|
26
|
-
return /* @__PURE__ */ React.createElement("span", {
|
|
27
|
-
role: "term",
|
|
28
|
-
className: "inline-flex gap-1",
|
|
29
|
-
"aria-label": binding,
|
|
30
|
-
id: binding
|
|
31
|
-
}, keySymbols(binding).map((c, i) => /* @__PURE__ */ React.createElement("span", {
|
|
32
|
-
key: i,
|
|
33
|
-
className: shortcutKey
|
|
34
|
-
}, c)));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// src/components/Shortcuts/ShortcutsHints.tsx
|
|
38
|
-
var Shortcut = ({ binding }) => {
|
|
39
|
-
const { t } = useTranslation(osTranslations);
|
|
40
|
-
return /* @__PURE__ */ React2.createElement("div", {
|
|
41
|
-
role: "none",
|
|
42
|
-
className: "flex items-center gap-2 whitespace-nowrap"
|
|
43
|
-
}, /* @__PURE__ */ React2.createElement(Key, {
|
|
44
|
-
binding: binding.shortcut
|
|
45
|
-
}), /* @__PURE__ */ React2.createElement("span", {
|
|
46
|
-
className: "text-sm"
|
|
47
|
-
}, toLocalizedString(binding.data, t)));
|
|
48
|
-
};
|
|
49
|
-
var ShortcutsHints = ({ onClose }) => {
|
|
50
|
-
const defaults = [
|
|
51
|
-
"meta+k",
|
|
52
|
-
"meta+/",
|
|
53
|
-
"meta+,"
|
|
54
|
-
];
|
|
55
|
-
const bindings = Keyboard.singleton.getBindings();
|
|
56
|
-
const hints = bindings.filter((binding) => defaults.includes(binding.shortcut));
|
|
57
|
-
return /* @__PURE__ */ React2.createElement("div", {
|
|
58
|
-
role: "none",
|
|
59
|
-
className: "flex overflow-hidden px-2 gap-4"
|
|
60
|
-
}, hints.map((binding) => /* @__PURE__ */ React2.createElement(Shortcut, {
|
|
61
|
-
key: binding.shortcut,
|
|
62
|
-
binding
|
|
63
|
-
})), onClose && /* @__PURE__ */ React2.createElement(IconButton, {
|
|
64
|
-
icon: "ph--x--regular",
|
|
65
|
-
size: 4,
|
|
66
|
-
label: "Close",
|
|
67
|
-
iconOnly: true,
|
|
68
|
-
noTooltip: true,
|
|
69
|
-
variant: "ghost",
|
|
70
|
-
classNames: "p-0 cursor-pointer",
|
|
71
|
-
onClick: onClose
|
|
72
|
-
}));
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
// src/components/Shortcuts/ShortcutsList.tsx
|
|
76
|
-
import React3, { Fragment } from "react";
|
|
77
|
-
import { Keyboard as Keyboard2 } from "@dxos/keyboard";
|
|
78
|
-
import { toLocalizedString as toLocalizedString2, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
79
|
-
import { mx as mx2 } from "@dxos/ui-theme";
|
|
80
|
-
import { meta as meta2 } from "#meta";
|
|
81
|
-
var ShortcutsList = () => {
|
|
82
|
-
const { t } = useTranslation2(meta2.id);
|
|
83
|
-
const bindings = Keyboard2.singleton.getBindings();
|
|
84
|
-
bindings.sort((a, b) => {
|
|
85
|
-
return toLocalizedString2(a.data, t)?.toLowerCase().localeCompare(toLocalizedString2(b.data, t)?.toLowerCase());
|
|
86
|
-
});
|
|
87
|
-
return /* @__PURE__ */ React3.createElement("dl", {
|
|
88
|
-
className: mx2("w-fit grid grid-cols-[min-content_minmax(12rem,1fr)] gap-2 my-4 text-subdued select-none")
|
|
89
|
-
}, bindings.map((binding, i) => /* @__PURE__ */ React3.createElement(Fragment, {
|
|
90
|
-
key: i
|
|
91
|
-
}, /* @__PURE__ */ React3.createElement(Key, {
|
|
92
|
-
binding: binding.shortcut
|
|
93
|
-
}), /* @__PURE__ */ React3.createElement("span", {
|
|
94
|
-
role: "definition",
|
|
95
|
-
className: "ms-4",
|
|
96
|
-
"aria-labelledby": binding.shortcut
|
|
97
|
-
}, toLocalizedString2(binding.data, t)))));
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/components/Shortcuts/ShortcutsSection.tsx
|
|
101
|
-
import React4 from "react";
|
|
102
|
-
var ShortcutsSection = () => {
|
|
103
|
-
return /* @__PURE__ */ React4.createElement("section", {
|
|
104
|
-
className: "text-description"
|
|
105
|
-
}, /* @__PURE__ */ React4.createElement(ShortcutsList, null));
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
// src/components/Tooltip/Tooltip.tsx
|
|
109
|
-
import { useArrowNavigationGroup, useFocusableGroup } from "@fluentui/react-tabster";
|
|
110
|
-
import React5, { forwardRef } from "react";
|
|
111
|
-
import { Button, Icon, IconButton as IconButton2 } from "@dxos/react-ui";
|
|
112
|
-
var floaterProps = {
|
|
113
|
-
styles: {
|
|
114
|
-
// Arrow color is set by joyride.
|
|
115
|
-
arrow: {
|
|
116
|
-
length: 8,
|
|
117
|
-
spread: 16
|
|
118
|
-
},
|
|
119
|
-
floater: {
|
|
120
|
-
// TODO(burdon): Get tokens from theme.
|
|
121
|
-
filter: "drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.2))"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
var Tooltip = /* @__PURE__ */ forwardRef(({ step: { title, content }, index, size, isLastStep, backProps, closeProps, primaryProps }, forwardedRef) => {
|
|
126
|
-
const arrowNavigationAttrs = useArrowNavigationGroup({
|
|
127
|
-
axis: "horizontal"
|
|
128
|
-
});
|
|
129
|
-
const focusableGroupAttrs = useFocusableGroup({
|
|
130
|
-
tabBehavior: "limited-trap-focus"
|
|
131
|
-
});
|
|
132
|
-
return /* @__PURE__ */ React5.createElement("div", {
|
|
133
|
-
className: "flex flex-col w-[15rem] min-h-[10rem] overflow-hidden rounded-md shadow-xl bg-accent-surface text-accent-surface-text",
|
|
134
|
-
role: "tooltip",
|
|
135
|
-
"data-testid": "helpPlugin.tooltip",
|
|
136
|
-
"data-step": index + 1,
|
|
137
|
-
...focusableGroupAttrs,
|
|
138
|
-
ref: forwardedRef
|
|
139
|
-
}, /* @__PURE__ */ React5.createElement("div", {
|
|
140
|
-
className: "flex p-2"
|
|
141
|
-
}, /* @__PURE__ */ React5.createElement("h2", {
|
|
142
|
-
className: "grow px-2 py-1 text-lg font-medium text-accent-surface-text"
|
|
143
|
-
}, title), /* @__PURE__ */ React5.createElement(IconButton2, {
|
|
144
|
-
density: "fine",
|
|
145
|
-
icon: "ph--x--bold",
|
|
146
|
-
iconOnly: true,
|
|
147
|
-
label: closeProps["aria-label"],
|
|
148
|
-
onClick: closeProps.onClick,
|
|
149
|
-
size: 4,
|
|
150
|
-
variant: "primary",
|
|
151
|
-
"data-testid": "helpPlugin.tooltip.close"
|
|
152
|
-
})), /* @__PURE__ */ React5.createElement("div", {
|
|
153
|
-
className: "flex grow px-4 my-2"
|
|
154
|
-
}, content), /* @__PURE__ */ React5.createElement("div", {
|
|
155
|
-
className: "flex p-2 items-center justify-between",
|
|
156
|
-
...arrowNavigationAttrs
|
|
157
|
-
}, /* @__PURE__ */ React5.createElement(IconButton2, {
|
|
158
|
-
classNames: [
|
|
159
|
-
!(index > 0 && backProps) && "invisible"
|
|
160
|
-
],
|
|
161
|
-
icon: "ph--caret-left--regular",
|
|
162
|
-
iconOnly: true,
|
|
163
|
-
label: backProps["aria-label"],
|
|
164
|
-
onClick: backProps.onClick,
|
|
165
|
-
variant: "primary",
|
|
166
|
-
"data-testid": "helpPlugin.tooltip.back"
|
|
167
|
-
}), /* @__PURE__ */ React5.createElement("div", {
|
|
168
|
-
className: "flex grow gap-2 justify-center"
|
|
169
|
-
}, /* @__PURE__ */ React5.createElement("div", {
|
|
170
|
-
className: "flex"
|
|
171
|
-
}, Array.from({
|
|
172
|
-
length: size
|
|
173
|
-
}).map((_, i) => /* @__PURE__ */ React5.createElement(Icon, {
|
|
174
|
-
key: i,
|
|
175
|
-
icon: index === i ? "ph--circle--fill" : "ph--circle--regular",
|
|
176
|
-
size: 2,
|
|
177
|
-
classNames: "mx-1 cursor-pointer"
|
|
178
|
-
})))), isLastStep ? /* @__PURE__ */ React5.createElement(Button, {
|
|
179
|
-
variant: "primary",
|
|
180
|
-
onClick: closeProps.onClick,
|
|
181
|
-
title: closeProps["aria-label"],
|
|
182
|
-
autoFocus: true,
|
|
183
|
-
"data-testid": "helpPlugin.tooltip.finish"
|
|
184
|
-
}, "Done") : /* @__PURE__ */ React5.createElement(IconButton2, {
|
|
185
|
-
autoFocus: true,
|
|
186
|
-
icon: "ph--caret-right--regular",
|
|
187
|
-
iconOnly: true,
|
|
188
|
-
label: primaryProps["aria-label"],
|
|
189
|
-
onClick: primaryProps.onClick,
|
|
190
|
-
size: 6,
|
|
191
|
-
variant: "primary",
|
|
192
|
-
"data-testid": "helpPlugin.tooltip.next"
|
|
193
|
-
})));
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
// src/components/WelcomeTour/WelcomeTour.tsx
|
|
197
|
-
import React6, { useState } from "react";
|
|
198
|
-
import Joyride, { ACTIONS, EVENTS } from "react-joyride";
|
|
199
|
-
import { usePluginManager } from "@dxos/app-framework/ui";
|
|
200
|
-
import { useLayout } from "@dxos/app-toolkit/ui";
|
|
201
|
-
import { useAsyncEffect } from "@dxos/react-ui";
|
|
202
|
-
import { HelpContext as HelpContext2 } from "#types";
|
|
203
|
-
var addStepClass = (target) => {
|
|
204
|
-
const element = typeof target === "string" ? document.querySelector(target) : target;
|
|
205
|
-
if (element) {
|
|
206
|
-
element.classList.add("joyride-target");
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
var removeTargetClass = (target) => {
|
|
210
|
-
const element = typeof target === "string" ? document.querySelector(target) : target;
|
|
211
|
-
if (element) {
|
|
212
|
-
element.classList.remove("joyride-target");
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
var getTarget = (step) => {
|
|
216
|
-
return typeof step.target === "string" ? document.querySelector(step.target) : step.target;
|
|
217
|
-
};
|
|
218
|
-
var waitForTarget = async (step) => {
|
|
219
|
-
if (typeof step.target === "string") {
|
|
220
|
-
const target = step.target;
|
|
221
|
-
const element = document.querySelector(target);
|
|
222
|
-
if (element) {
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
await new Promise((resolve) => {
|
|
226
|
-
const observer = new MutationObserver((mutations) => {
|
|
227
|
-
mutations.forEach((mutation) => {
|
|
228
|
-
if (mutation.addedNodes.length > 0) {
|
|
229
|
-
const element2 = document.querySelector(target);
|
|
230
|
-
if (element2) {
|
|
231
|
-
observer.disconnect();
|
|
232
|
-
resolve();
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
observer.observe(document.body, {
|
|
238
|
-
childList: true,
|
|
239
|
-
subtree: true
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
var WelcomeTour = ({ steps: initialSteps, running: runningProp, onRunningChanged }) => {
|
|
245
|
-
const manager = usePluginManager();
|
|
246
|
-
const layout = useLayout();
|
|
247
|
-
const [running, setRunning] = useState(!!runningProp && !!getTarget(initialSteps[0]));
|
|
248
|
-
const [stepIndex, _setStepIndex] = useState(0);
|
|
249
|
-
const [steps, setSteps] = useState(initialSteps);
|
|
250
|
-
const paused = layout.dialogOpen;
|
|
251
|
-
const setStepIndex = (index) => {
|
|
252
|
-
if (runningProp) {
|
|
253
|
-
const step = steps[index];
|
|
254
|
-
step?.before?.(manager.capabilities);
|
|
255
|
-
}
|
|
256
|
-
_setStepIndex(index);
|
|
257
|
-
};
|
|
258
|
-
const setRunningChanged = (state) => {
|
|
259
|
-
if (typeof runningProp !== "undefined") {
|
|
260
|
-
onRunningChanged?.(state);
|
|
261
|
-
} else {
|
|
262
|
-
if (state) {
|
|
263
|
-
setStepIndex(0);
|
|
264
|
-
setRunning(true);
|
|
265
|
-
} else {
|
|
266
|
-
setRunning(false);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
useAsyncEffect(async () => {
|
|
271
|
-
if (runningProp) {
|
|
272
|
-
await waitForTarget(steps[stepIndex]);
|
|
273
|
-
setStepIndex(0);
|
|
274
|
-
setRunning(true);
|
|
275
|
-
} else if (typeof runningProp !== "undefined") {
|
|
276
|
-
setRunning(false);
|
|
277
|
-
}
|
|
278
|
-
}, [
|
|
279
|
-
runningProp
|
|
280
|
-
]);
|
|
281
|
-
const callback = async (options) => {
|
|
282
|
-
const { type, action, index, size } = options;
|
|
283
|
-
switch (type) {
|
|
284
|
-
case EVENTS.STEP_BEFORE:
|
|
285
|
-
addStepClass(options.step.target);
|
|
286
|
-
break;
|
|
287
|
-
case EVENTS.TOUR_END:
|
|
288
|
-
break;
|
|
289
|
-
case EVENTS.STEP_AFTER:
|
|
290
|
-
removeTargetClass(options.step.target);
|
|
291
|
-
switch (action) {
|
|
292
|
-
case ACTIONS.NEXT:
|
|
293
|
-
if (index < size - 1) {
|
|
294
|
-
setStepIndex(index + 1);
|
|
295
|
-
}
|
|
296
|
-
break;
|
|
297
|
-
case ACTIONS.PREV:
|
|
298
|
-
if (index > 0) {
|
|
299
|
-
setStepIndex(index - 1);
|
|
300
|
-
}
|
|
301
|
-
break;
|
|
302
|
-
case ACTIONS.CLOSE:
|
|
303
|
-
setRunningChanged(false);
|
|
304
|
-
setStepIndex(0);
|
|
305
|
-
break;
|
|
306
|
-
}
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
return /* @__PURE__ */ React6.createElement(HelpContext2.Provider, {
|
|
311
|
-
value: {
|
|
312
|
-
running: running && !paused,
|
|
313
|
-
steps,
|
|
314
|
-
setSteps,
|
|
315
|
-
setIndex: setStepIndex,
|
|
316
|
-
start: () => setRunningChanged(true),
|
|
317
|
-
stop: () => setRunningChanged(false)
|
|
318
|
-
}
|
|
319
|
-
}, /* @__PURE__ */ React6.createElement("style", null, `.joyride-target {
|
|
320
|
-
--controls-opacity: 1;
|
|
321
|
-
}`), /* @__PURE__ */ React6.createElement(Joyride, {
|
|
322
|
-
continuous: true,
|
|
323
|
-
steps,
|
|
324
|
-
stepIndex,
|
|
325
|
-
run: running && !paused,
|
|
326
|
-
callback,
|
|
327
|
-
floaterProps,
|
|
328
|
-
tooltipComponent: Tooltip
|
|
329
|
-
}));
|
|
330
|
-
};
|
|
10
|
+
// src/index.ts
|
|
11
|
+
import { Plugin } from "@dxos/app-framework";
|
|
331
12
|
|
|
332
13
|
// src/constants.ts
|
|
333
|
-
import { meta as
|
|
334
|
-
var SHORTCUTS_DIALOG = `${
|
|
335
|
-
|
|
336
|
-
// src/HelpPlugin.tsx
|
|
337
|
-
import { ActivationEvents, Plugin } from "@dxos/app-framework";
|
|
338
|
-
import { AppPlugin } from "@dxos/app-toolkit";
|
|
339
|
-
import { AppGraphBuilder, HelpState, OperationHandler, ReactRoot, ReactSurface } from "#capabilities";
|
|
340
|
-
import { meta as meta5 } from "#meta";
|
|
341
|
-
|
|
342
|
-
// src/translations.ts
|
|
343
|
-
import { meta as meta4 } from "#meta";
|
|
344
|
-
var translations = [
|
|
345
|
-
{
|
|
346
|
-
"en-US": {
|
|
347
|
-
[meta4.id]: {
|
|
348
|
-
"plugin.name": "Help",
|
|
349
|
-
"open-help-tour.message": "Show welcome tour",
|
|
350
|
-
"open-shortcuts.label": "Show shortcuts",
|
|
351
|
-
"shortcuts-dialog.title": "Shortcuts"
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
];
|
|
356
|
-
|
|
357
|
-
// src/HelpPlugin.tsx
|
|
358
|
-
var HelpPlugin = Plugin.define(meta5).pipe(AppPlugin.addAppGraphModule({
|
|
359
|
-
activate: AppGraphBuilder
|
|
360
|
-
}), AppPlugin.addOperationHandlerModule({
|
|
361
|
-
activate: OperationHandler
|
|
362
|
-
}), AppPlugin.addSurfaceModule({
|
|
363
|
-
activate: ReactSurface
|
|
364
|
-
}), AppPlugin.addTranslationsModule({
|
|
365
|
-
translations
|
|
366
|
-
}), Plugin.addModule({
|
|
367
|
-
activatesOn: ActivationEvents.Startup,
|
|
368
|
-
activate: HelpState
|
|
369
|
-
}), Plugin.addModule(({ steps = [] }) => ({
|
|
370
|
-
id: "react-root",
|
|
371
|
-
activatesOn: ActivationEvents.Startup,
|
|
372
|
-
activate: () => ReactRoot(steps)
|
|
373
|
-
})), Plugin.make);
|
|
14
|
+
import { meta as meta2 } from "#meta";
|
|
15
|
+
var SHORTCUTS_DIALOG = `${meta2.id}.ShortcutsDialog`;
|
|
374
16
|
|
|
375
|
-
// src/
|
|
376
|
-
|
|
377
|
-
import { raise } from "@dxos/debug";
|
|
378
|
-
import { HelpContext as HelpContext3 } from "#types";
|
|
379
|
-
var useHelp = () => {
|
|
380
|
-
return useContext(HelpContext3) ?? raise(new Error("Missing HelpContext"));
|
|
381
|
-
};
|
|
17
|
+
// src/index.ts
|
|
18
|
+
var HelpPlugin = Plugin.lazy(meta, () => import("#plugin"));
|
|
382
19
|
export {
|
|
383
20
|
HelpCapabilities,
|
|
384
21
|
HelpContext,
|
|
385
22
|
HelpPlugin,
|
|
386
|
-
Key,
|
|
387
23
|
SHORTCUTS_DIALOG,
|
|
388
|
-
|
|
389
|
-
ShortcutsList,
|
|
390
|
-
ShortcutsSection,
|
|
391
|
-
Tooltip,
|
|
392
|
-
WelcomeTour,
|
|
393
|
-
floaterProps,
|
|
394
|
-
meta,
|
|
395
|
-
useHelp
|
|
24
|
+
meta
|
|
396
25
|
};
|
|
397
26
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type KeyBinding, Keyboard } from '@dxos/keyboard';\nimport { IconButton, toLocalizedString, useTranslation } from '@dxos/react-ui';\nimport { osTranslations } from '@dxos/ui-theme';\n\nimport { Key } from './Key';\n\nconst Shortcut = ({ binding }: { binding: KeyBinding }) => {\n const { t } = useTranslation(osTranslations);\n return (\n <div role='none' className='flex items-center gap-2 whitespace-nowrap'>\n <Key binding={binding.shortcut} />\n <span className='text-sm'>{toLocalizedString(binding.data, t)}</span>\n </div>\n );\n};\n\nexport const ShortcutsHints = ({ onClose }: { onClose?: () => void }) => {\n // TODO(burdon): Display by context/weight/cycle.\n const defaults = ['meta+k', 'meta+/', 'meta+,'];\n const bindings = Keyboard.singleton.getBindings();\n const hints = bindings.filter((binding) => defaults.includes(binding.shortcut));\n\n return (\n <div role='none' className='flex overflow-hidden px-2 gap-4'>\n {hints.map((binding) => (\n <Shortcut key={binding.shortcut} binding={binding} />\n ))}\n {onClose && (\n <IconButton\n icon='ph--x--regular'\n size={4}\n label='Close'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0 cursor-pointer'\n onClick={onClose}\n />\n )}\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { keySymbols } from '@dxos/keyboard';\n\nimport { shortcutKey } from './styles';\n\nexport const Key = ({ binding }: { binding: string }) => {\n return (\n <span role='term' className='inline-flex gap-1' aria-label={binding} id={binding}>\n {keySymbols(binding).map((c, i) => (\n <span key={i} className={shortcutKey}>\n {c}\n </span>\n ))}\n </span>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { mx } from '@dxos/ui-theme';\n\nexport const shortcutKey = mx(\n 'inline-flex min-w-[24px] h-[24px] px-0.5 justify-center items-center text-xs',\n 'rounded-sm bg-neutral-100 dark:bg-neutral-900',\n);\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { Fragment } from 'react';\n\nimport { Keyboard } from '@dxos/keyboard';\nimport { toLocalizedString, useTranslation } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nimport { meta } from '#meta';\n\nimport { Key } from './Key';\n\nexport const ShortcutsList = () => {\n const { t } = useTranslation(meta.id);\n const bindings = Keyboard.singleton.getBindings();\n\n // TODO(burdon): Get shortcuts from TextEditor.\n bindings.sort((a, b) => {\n return toLocalizedString(a.data, t)?.toLowerCase().localeCompare(toLocalizedString(b.data, t)?.toLowerCase());\n });\n\n return (\n <dl className={mx('w-fit grid grid-cols-[min-content_minmax(12rem,1fr)] gap-2 my-4 text-subdued select-none')}>\n {bindings.map((binding, i) => (\n <Fragment key={i}>\n <Key binding={binding.shortcut} />\n <span role='definition' className='ms-4' aria-labelledby={binding.shortcut}>\n {toLocalizedString(binding.data, t)}\n </span>\n </Fragment>\n ))}\n </dl>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { ShortcutsList } from './ShortcutsList';\n\nexport const ShortcutsSection = () => {\n return (\n <section className='text-description'>\n <ShortcutsList />\n </section>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useArrowNavigationGroup, useFocusableGroup } from '@fluentui/react-tabster';\nimport React, { forwardRef } from 'react';\n// TODO(thure): This needed to be imported in the package.json specifically to pacify TS2742. See if this is resolved with typescript@5.5.x.\n// eslint-disable-next-line unused-imports/no-unused-imports\nimport _floater from 'react-floater';\nimport { type Props, type TooltipRenderProps } from 'react-joyride';\n// TODO(thure): This needed to be imported in the package.json specifically to pacify TS2742. See if this is resolved with typescript@5.5.x.\n// eslint-disable-next-line unused-imports/no-unused-imports\nimport _typefest from 'type-fest';\n\nimport { Button, Icon, IconButton } from '@dxos/react-ui';\n\n// https://docs.react-joyride.com/styling\n// https://github.com/gilbarbara/react-floater\nexport const floaterProps: Props['floaterProps'] = {\n styles: {\n // Arrow color is set by joyride.\n arrow: {\n length: 8,\n spread: 16,\n },\n floater: {\n // TODO(burdon): Get tokens from theme.\n filter: 'drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.2))',\n },\n },\n};\n\n// TODO(burdon): Add info link to docs.\nexport const Tooltip = forwardRef<HTMLDivElement, TooltipRenderProps>(\n ({ step: { title, content }, index, size, isLastStep, backProps, closeProps, primaryProps }, forwardedRef) => {\n const arrowNavigationAttrs = useArrowNavigationGroup({ axis: 'horizontal' });\n const focusableGroupAttrs = useFocusableGroup({ tabBehavior: 'limited-trap-focus' });\n\n return (\n <div\n className='flex flex-col w-[15rem] min-h-[10rem] overflow-hidden rounded-md shadow-xl bg-accent-surface text-accent-surface-text'\n role='tooltip'\n data-testid='helpPlugin.tooltip'\n data-step={index + 1}\n {...focusableGroupAttrs}\n ref={forwardedRef}\n >\n <div className='flex p-2'>\n <h2 className='grow px-2 py-1 text-lg font-medium text-accent-surface-text'>{title}</h2>\n <IconButton\n density='fine'\n icon='ph--x--bold'\n iconOnly\n label={closeProps['aria-label']}\n onClick={closeProps.onClick}\n size={4}\n variant='primary'\n data-testid='helpPlugin.tooltip.close'\n />\n </div>\n <div className='flex grow px-4 my-2'>{content}</div>\n <div className='flex p-2 items-center justify-between' {...arrowNavigationAttrs}>\n {\n <IconButton\n classNames={[!(index > 0 && backProps) && 'invisible']}\n icon='ph--caret-left--regular'\n iconOnly\n label={backProps['aria-label']}\n onClick={backProps.onClick}\n variant='primary'\n data-testid='helpPlugin.tooltip.back'\n />\n }\n <div className='flex grow gap-2 justify-center'>\n <div className='flex'>\n {Array.from({ length: size }).map((_, i) => (\n <Icon\n key={i}\n icon={index === i ? 'ph--circle--fill' : 'ph--circle--regular'}\n size={2}\n classNames='mx-1 cursor-pointer'\n />\n ))}\n </div>\n </div>\n {isLastStep ? (\n <Button\n variant='primary'\n onClick={closeProps.onClick}\n title={closeProps['aria-label']}\n autoFocus\n data-testid='helpPlugin.tooltip.finish'\n >\n Done\n </Button>\n ) : (\n <IconButton\n autoFocus\n icon='ph--caret-right--regular'\n iconOnly\n label={primaryProps['aria-label']}\n onClick={primaryProps.onClick}\n size={6}\n variant='primary'\n data-testid='helpPlugin.tooltip.next'\n />\n )}\n </div>\n </div>\n );\n },\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useState } from 'react';\nimport Joyride, { ACTIONS, EVENTS } from 'react-joyride';\n\nimport { usePluginManager } from '@dxos/app-framework/ui';\nimport { useLayout } from '@dxos/app-toolkit/ui';\nimport { useAsyncEffect } from '@dxos/react-ui';\n\nimport { HelpContext, type Step } from '#types';\n\nimport { Tooltip, floaterProps } from '../Tooltip';\n\nconst addStepClass = (target: string | HTMLElement) => {\n const element = typeof target === 'string' ? document.querySelector(target) : target;\n if (element) {\n element.classList.add('joyride-target');\n }\n};\n\nconst removeTargetClass = (target: string | HTMLElement) => {\n const element = typeof target === 'string' ? document.querySelector(target) : target;\n if (element) {\n element.classList.remove('joyride-target');\n }\n};\n\nconst getTarget = (step: Step) => {\n return typeof step.target === 'string' ? document.querySelector(step.target) : step.target;\n};\n\n/**\n * Wait for the target element to be in the document.\n */\nconst waitForTarget = async (step: Step) => {\n if (typeof step.target === 'string') {\n const target = step.target;\n const element = document.querySelector(target);\n if (element) {\n return;\n }\n\n await new Promise<void>((resolve) => {\n const observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.addedNodes.length > 0) {\n const element = document.querySelector(target);\n if (element) {\n observer.disconnect();\n resolve();\n }\n }\n });\n });\n\n observer.observe(document.body, { childList: true, subtree: true });\n });\n }\n};\n\nexport type WelcomeTourProps = {\n steps: Step[];\n running?: boolean;\n onRunningChanged?: (state: boolean) => any;\n};\n\nexport const WelcomeTour = ({ steps: initialSteps, running: runningProp, onRunningChanged }: WelcomeTourProps) => {\n const manager = usePluginManager();\n const layout = useLayout();\n const [running, setRunning] = useState(!!runningProp && !!getTarget(initialSteps[0]));\n const [stepIndex, _setStepIndex] = useState(0);\n const [steps, setSteps] = useState(initialSteps);\n\n const paused = layout.dialogOpen;\n\n const setStepIndex = (index: number) => {\n if (runningProp) {\n const step = steps[index];\n step?.before?.(manager.capabilities);\n }\n _setStepIndex(index);\n };\n\n const setRunningChanged = (state: boolean) => {\n if (typeof runningProp !== 'undefined') {\n onRunningChanged?.(state);\n } else {\n if (state) {\n setStepIndex(0);\n setRunning(true);\n } else {\n setRunning(false);\n }\n }\n };\n\n useAsyncEffect(async () => {\n if (runningProp) {\n // This handles the case when the target is not yet in the document.\n // If the target is not in the document, when the joyride is turned on, it will not show the tooltip.\n await waitForTarget(steps[stepIndex]);\n setStepIndex(0);\n setRunning(true);\n } else if (typeof runningProp !== 'undefined') {\n setRunning(false);\n }\n }, [runningProp]);\n\n // https://docs.react-joyride.com/callback\n const callback: Joyride['callback'] = async (options) => {\n const { type, action, index, size } = options;\n switch (type) {\n case EVENTS.STEP_BEFORE:\n addStepClass(options.step.target);\n break;\n case EVENTS.TOUR_END:\n break;\n case EVENTS.STEP_AFTER:\n removeTargetClass(options.step.target);\n switch (action) {\n case ACTIONS.NEXT:\n if (index < size - 1) {\n setStepIndex(index + 1);\n }\n break;\n case ACTIONS.PREV:\n if (index > 0) {\n setStepIndex(index - 1);\n }\n break;\n case ACTIONS.CLOSE:\n setRunningChanged(false);\n setStepIndex(0);\n break;\n }\n break;\n }\n };\n\n return (\n <HelpContext.Provider\n value={{\n running: running && !paused,\n steps,\n setSteps,\n setIndex: setStepIndex,\n start: () => setRunningChanged(true),\n stop: () => setRunningChanged(false),\n }}\n >\n <style>\n {`.joyride-target {\n --controls-opacity: 1;\n }`}\n </style>\n <Joyride\n continuous={true}\n steps={steps}\n stepIndex={stepIndex}\n run={running && !paused}\n callback={callback}\n floaterProps={floaterProps}\n tooltipComponent={Tooltip}\n />\n </HelpContext.Provider>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { meta } from '#meta';\n\nexport const SHORTCUTS_DIALOG = `${meta.id}.ShortcutsDialog`;\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { ActivationEvents, Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\nimport { AppGraphBuilder, HelpState, OperationHandler, ReactRoot, ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { type Step } from '#types';\n\nimport { translations } from './translations';\n\nexport type HelpPluginOptions = { steps?: Step[] };\n\nexport const HelpPlugin = Plugin.define<HelpPluginOptions>(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule({\n activatesOn: ActivationEvents.Startup,\n activate: HelpState,\n }),\n Plugin.addModule(({ steps = [] }) => ({\n id: 'react-root',\n activatesOn: ActivationEvents.Startup,\n activate: () => ReactRoot(steps),\n })),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Help',\n 'open-help-tour.message': 'Show welcome tour',\n 'open-shortcuts.label': 'Show shortcuts',\n 'shortcuts-dialog.title': 'Shortcuts',\n },\n },\n },\n] as const satisfies Resource[];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useContext } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { HelpContext } from '#types';\n\nexport const useHelp = () => {\n return useContext(HelpContext) ?? raise(new Error('Missing HelpContext'));\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;AAIA,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/index.ts", "../../../src/constants.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport { HelpCapabilities } from './types';\nexport * from './constants';\nexport * from './meta';\nexport * from './types';\n\nexport const HelpPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport type { HelpPluginOptions } from '#plugin';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { meta } from '#meta';\n\nexport const SHORTCUTS_DIALOG = `${meta.id}.ShortcutsDialog`;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,SAASA,cAAc;;;ACAvB,SAASC,QAAAA,aAAY;AAEd,IAAMC,mBAAmB,GAAGD,MAAKE,EAAE;;;ADOnC,IAAMC,aAAaC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "meta", "SHORTCUTS_DIALOG", "id", "HelpPlugin", "Plugin", "lazy", "meta"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/types/capabilities.ts":{"bytes":2221,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":1835,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":559,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"},"src/components/Shortcuts/styles.ts":{"bytes":986,"imports":[{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/Shortcuts/Key.tsx":{"bytes":1977,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"src/components/Shortcuts/styles.ts","kind":"import-statement","original":"./styles"}],"format":"esm"},"src/components/Shortcuts/ShortcutsHints.tsx":{"bytes":5436,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/components/Shortcuts/Key.tsx","kind":"import-statement","original":"./Key"}],"format":"esm"},"src/components/Shortcuts/ShortcutsList.tsx":{"bytes":4274,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/components/Shortcuts/Key.tsx","kind":"import-statement","original":"./Key"}],"format":"esm"},"src/components/Shortcuts/ShortcutsSection.tsx":{"bytes":1257,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Shortcuts/ShortcutsList.tsx","kind":"import-statement","original":"./ShortcutsList"}],"format":"esm"},"src/components/Shortcuts/index.ts":{"bytes":782,"imports":[{"path":"src/components/Shortcuts/ShortcutsHints.tsx","kind":"import-statement","original":"./ShortcutsHints"},{"path":"src/components/Shortcuts/ShortcutsList.tsx","kind":"import-statement","original":"./ShortcutsList"},{"path":"src/components/Shortcuts/ShortcutsSection.tsx","kind":"import-statement","original":"./ShortcutsSection"},{"path":"src/components/Shortcuts/Key.tsx","kind":"import-statement","original":"./Key"}],"format":"esm"},"src/components/Tooltip/Tooltip.tsx":{"bytes":12122,"imports":[{"path":"@fluentui/react-tabster","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tooltip/index.ts":{"bytes":473,"imports":[{"path":"src/components/Tooltip/Tooltip.tsx","kind":"import-statement","original":"./Tooltip"}],"format":"esm"},"src/components/WelcomeTour/WelcomeTour.tsx":{"bytes":16593,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-joyride","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/components/Tooltip/index.ts","kind":"import-statement","original":"../Tooltip"}],"format":"esm"},"src/components/WelcomeTour/index.ts":{"bytes":489,"imports":[{"path":"src/components/WelcomeTour/WelcomeTour.tsx","kind":"import-statement","original":"./WelcomeTour"}],"format":"esm"},"src/components/index.ts":{"bytes":653,"imports":[{"path":"src/components/Shortcuts/index.ts","kind":"import-statement","original":"./Shortcuts"},{"path":"src/components/Tooltip/index.ts","kind":"import-statement","original":"./Tooltip"},{"path":"src/components/WelcomeTour/index.ts","kind":"import-statement","original":"./WelcomeTour"}],"format":"esm"},"src/constants.ts":{"bytes":759,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":1443,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1547,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/HelpPlugin.tsx":{"bytes":3850,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/hooks/useHelp.tsx":{"bytes":1194,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":460,"imports":[{"path":"src/hooks/useHelp.tsx","kind":"import-statement","original":"./useHelp"}],"format":"esm"},"src/index.ts":{"bytes":1050,"imports":[{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/HelpPlugin.tsx","kind":"import-statement","original":"./HelpPlugin"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/operations/definitions.ts":{"bytes":2039,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/start.ts":{"bytes":2184,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1101,"imports":[{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/start.ts","kind":"dynamic-import","original":"./start"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":25558},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-TEXIV2IJ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-K4LQ2TR7.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@fluentui/react-tabster","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-joyride","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["HelpCapabilities","HelpContext","HelpPlugin","Key","SHORTCUTS_DIALOG","ShortcutsHints","ShortcutsList","ShortcutsSection","Tooltip","WelcomeTour","floaterProps","meta","useHelp"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/components/Shortcuts/ShortcutsHints.tsx":{"bytesInOutput":1360},"src/components/Shortcuts/Key.tsx":{"bytesInOutput":391},"src/components/Shortcuts/styles.ts":{"bytesInOutput":188},"src/components/Shortcuts/index.ts":{"bytesInOutput":0},"src/components/Shortcuts/ShortcutsList.tsx":{"bytesInOutput":1093},"src/components/Shortcuts/ShortcutsSection.tsx":{"bytesInOutput":220},"src/components/index.ts":{"bytesInOutput":0},"src/components/Tooltip/Tooltip.tsx":{"bytesInOutput":3121},"src/components/Tooltip/index.ts":{"bytesInOutput":0},"src/components/WelcomeTour/WelcomeTour.tsx":{"bytesInOutput":3962},"src/components/WelcomeTour/index.ts":{"bytesInOutput":0},"src/constants.ts":{"bytesInOutput":93},"src/HelpPlugin.tsx":{"bytesInOutput":781},"src/translations.ts":{"bytesInOutput":302},"src/hooks/useHelp.tsx":{"bytesInOutput":230},"src/hooks/index.ts":{"bytesInOutput":0}},"bytes":12640},"dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/meta.mjs":{"imports":[{"path":"dist/lib/browser/chunk-TEXIV2IJ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/browser/chunk-TEXIV2IJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":693},"dist/lib/browser/chunk-TEXIV2IJ.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":304}},"bytes":383},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-K4LQ2TR7.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["HelpCapabilities","HelpContext"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":188},"dist/lib/browser/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":527},"dist/lib/browser/operations/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-KUUIRJG5.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"dist/lib/browser/start-YZBO346C.mjs","kind":"dynamic-import"}],"exports":["HelpOperation","HelpOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":150}},"bytes":386},"dist/lib/browser/start-YZBO346C.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1115},"dist/lib/browser/start-YZBO346C.mjs":{"imports":[{"path":"dist/lib/browser/chunk-K4LQ2TR7.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-KUUIRJG5.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/start.ts","inputs":{"src/operations/start.ts":{"bytesInOutput":368}},"bytes":617},"dist/lib/browser/chunk-K4LQ2TR7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2209},"dist/lib/browser/chunk-K4LQ2TR7.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["HelpCapabilities","HelpContext"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":463},"src/types/index.ts":{"bytesInOutput":0},"src/types/schema.ts":{"bytesInOutput":200}},"bytes":807},"dist/lib/browser/chunk-KUUIRJG5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1036},"dist/lib/browser/chunk-KUUIRJG5.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["Start","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":491}},"bytes":664},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1361,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":2129,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":1749,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":470,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"},"src/constants.ts":{"bytes":672,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1335,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1457,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/definitions.ts":{"bytes":1937,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/start.ts":{"bytes":2088,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1005,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/start.ts","kind":"dynamic-import","original":"./start"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":881},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EEXGETLQ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-53QC3FTJ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["HelpCapabilities","HelpContext","HelpPlugin","SHORTCUTS_DIALOG","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":107},"src/constants.ts":{"bytesInOutput":93}},"bytes":530},"dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/meta.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EEXGETLQ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/browser/chunk-EEXGETLQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":685},"dist/lib/browser/chunk-EEXGETLQ.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":304}},"bytes":383},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":735},"dist/lib/browser/translations.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":292}},"bytes":416},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-53QC3FTJ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["HelpCapabilities","HelpContext"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":188},"dist/lib/browser/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":502},"dist/lib/browser/operations/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-RWK34XL5.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/browser/start-JQ2LLVCT.mjs","kind":"dynamic-import"}],"exports":["HelpOperation","HelpOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":148}},"bytes":384},"dist/lib/browser/start-JQ2LLVCT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1113},"dist/lib/browser/start-JQ2LLVCT.mjs":{"imports":[{"path":"dist/lib/browser/chunk-53QC3FTJ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-RWK34XL5.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/start.ts","inputs":{"src/operations/start.ts":{"bytesInOutput":366}},"bytes":615},"dist/lib/browser/chunk-53QC3FTJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2170},"dist/lib/browser/chunk-53QC3FTJ.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["HelpCapabilities","HelpContext"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":463},"src/types/index.ts":{"bytesInOutput":0},"src/types/schema.ts":{"bytesInOutput":200}},"bytes":807},"dist/lib/browser/chunk-RWK34XL5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":999},"dist/lib/browser/chunk-RWK34XL5.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["Start","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":489}},"bytes":662},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|