altitude-design 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -8
- package/dist/adapters/codemirror.cjs +88 -0
- package/dist/adapters/codemirror.cjs.map +7 -0
- package/dist/adapters/codemirror.js +67 -0
- package/dist/adapters/codemirror.js.map +7 -0
- package/dist/adapters/react-flow.css +102 -0
- package/dist/adapters/tiptap.css +71 -0
- package/dist/altitude.css +3165 -246
- package/dist/altitude.iife.js +33 -5
- package/dist/altitude.no-fonts.css +3165 -246
- package/dist/chart-themes.cjs +195 -0
- package/dist/chart-themes.cjs.map +7 -0
- package/dist/chart-themes.js +165 -0
- package/dist/chart-themes.js.map +7 -0
- package/dist/cli/altitude.mjs +134 -0
- package/dist/guidance/README.md +32 -0
- package/dist/guidance/agent-setup.md +22 -0
- package/dist/guidance/app-skeleton.md +17 -0
- package/dist/guidance/evidence.json +95 -0
- package/dist/guidance/index.json +493 -0
- package/dist/guidance/llms.txt +20 -0
- package/dist/guidance/manifest.json +92 -0
- package/dist/guidance/pattern.schema.json +181 -0
- package/dist/guidance/patterns/agent-action.json +77 -0
- package/dist/guidance/patterns/agent-action.md +39 -0
- package/dist/guidance/patterns/assistant-conversation.json +77 -0
- package/dist/guidance/patterns/assistant-conversation.md +50 -0
- package/dist/guidance/patterns/async-collection.json +71 -0
- package/dist/guidance/patterns/async-collection.md +29 -0
- package/dist/guidance/patterns/audit-log.json +75 -0
- package/dist/guidance/patterns/audit-log.md +27 -0
- package/dist/guidance/patterns/auth.json +86 -0
- package/dist/guidance/patterns/auth.md +29 -0
- package/dist/guidance/patterns/billing.json +80 -0
- package/dist/guidance/patterns/billing.md +29 -0
- package/dist/guidance/patterns/consequential-action.json +76 -0
- package/dist/guidance/patterns/consequential-action.md +27 -0
- package/dist/guidance/patterns/developer-settings.json +79 -0
- package/dist/guidance/patterns/developer-settings.md +29 -0
- package/dist/guidance/patterns/edit-record.json +74 -0
- package/dist/guidance/patterns/edit-record.md +51 -0
- package/dist/guidance/patterns/import.json +77 -0
- package/dist/guidance/patterns/import.md +31 -0
- package/dist/guidance/patterns/members.json +77 -0
- package/dist/guidance/patterns/members.md +27 -0
- package/dist/guidance/patterns/onboarding.json +78 -0
- package/dist/guidance/patterns/onboarding.md +31 -0
- package/dist/guidance/patterns/review-submit.json +72 -0
- package/dist/guidance/patterns/review-submit.md +27 -0
- package/dist/guidance/patterns/screen-layout.json +79 -0
- package/dist/guidance/patterns/screen-layout.md +40 -0
- package/dist/guidance/patterns/settings.json +78 -0
- package/dist/guidance/patterns/settings.md +32 -0
- package/dist/guidance/patterns/sync.json +77 -0
- package/dist/guidance/patterns/sync.md +31 -0
- package/dist/guidance/principles.md +23 -0
- package/dist/guidance/references/build/checks/agent-action-pattern.mjs +57 -0
- package/dist/guidance/references/build/checks/agent-setup.mjs +78 -0
- package/dist/guidance/references/build/checks/assistant-conversation-pattern.mjs +49 -0
- package/dist/guidance/references/build/checks/audit-log-pattern.mjs +63 -0
- package/dist/guidance/references/build/checks/auth-pattern.mjs +67 -0
- package/dist/guidance/references/build/checks/billing-pattern.mjs +63 -0
- package/dist/guidance/references/build/checks/developer-settings-pattern.mjs +76 -0
- package/dist/guidance/references/build/checks/guidance.mjs +71 -0
- package/dist/guidance/references/build/checks/import-pattern.mjs +69 -0
- package/dist/guidance/references/build/checks/members-pattern.mjs +71 -0
- package/dist/guidance/references/build/checks/onboarding-pattern.mjs +54 -0
- package/dist/guidance/references/build/checks/pattern-types.mjs +13 -0
- package/dist/guidance/references/build/checks/pattern-workflows.mjs +226 -0
- package/dist/guidance/references/build/checks/primary-scope.mjs +49 -0
- package/dist/guidance/references/build/checks/render-tells.mjs +72 -0
- package/dist/guidance/references/build/checks/screen-layout-pattern.mjs +111 -0
- package/dist/guidance/references/build/checks/semantics.mjs +72 -0
- package/dist/guidance/references/build/checks/settings-pattern.mjs +73 -0
- package/dist/guidance/references/build/checks/sync-pattern.mjs +62 -0
- package/dist/guidance/references/build/checks/tells-lint.mjs +164 -0
- package/dist/guidance/references/build/fixtures/pattern-workflows.tsx +83 -0
- package/dist/guidance/references/build/fixtures/patterns/agent-action.jsx +60 -0
- package/dist/guidance/references/build/fixtures/patterns/app-skeleton.jsx +94 -0
- package/dist/guidance/references/build/fixtures/patterns/assistant-conversation.jsx +79 -0
- package/dist/guidance/references/build/fixtures/patterns/audit-log.jsx +81 -0
- package/dist/guidance/references/build/fixtures/patterns/auth.jsx +150 -0
- package/dist/guidance/references/build/fixtures/patterns/billing.jsx +96 -0
- package/dist/guidance/references/build/fixtures/patterns/developer-settings.jsx +95 -0
- package/dist/guidance/references/build/fixtures/patterns/import.jsx +102 -0
- package/dist/guidance/references/build/fixtures/patterns/members.jsx +106 -0
- package/dist/guidance/references/build/fixtures/patterns/onboarding.jsx +70 -0
- package/dist/guidance/references/build/fixtures/patterns/screen-layout-decision.jsx +74 -0
- package/dist/guidance/references/build/fixtures/patterns/screen-layout-editor.jsx +56 -0
- package/dist/guidance/references/build/fixtures/patterns/screen-layout-report.jsx +42 -0
- package/dist/guidance/references/build/fixtures/patterns/settings.jsx +73 -0
- package/dist/guidance/references/build/fixtures/patterns/sync.jsx +78 -0
- package/dist/guidance/references/project/components/src/pattern-async-collection.tsx +57 -0
- package/dist/guidance/references/project/components/src/pattern-consequential-action.tsx +77 -0
- package/dist/guidance/references/project/components/src/pattern-edit-record.tsx +127 -0
- package/dist/guidance/references/project/components/src/pattern-review-submit.tsx +47 -0
- package/dist/guidance/references/project/components/src/settings.tsx +79 -0
- package/dist/guidance/references/scripts/build-framework-fixture.mjs +20 -0
- package/dist/guidance/rules.json +653 -0
- package/dist/guidance/visual/Elevation.md +194 -0
- package/dist/guidance/visual/Fundamentals.md +83 -0
- package/dist/guidance/visual/Research.md +1620 -0
- package/dist/index.cjs +19009 -1854
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +19009 -1854
- package/dist/index.js.map +4 -4
- package/dist/tokens.css +84 -84
- package/dist/tokens.json +301 -128
- package/dist/types/adapter-codemirror.d.ts +13 -0
- package/dist/types/agent-fleet.d.ts +166 -0
- package/dist/types/ai-label.d.ts +30 -0
- package/dist/types/app-shell.d.ts +83 -0
- package/dist/types/area-chart.d.ts +80 -0
- package/dist/types/artifact.d.ts +65 -0
- package/dist/types/bar-chart.d.ts +83 -0
- package/dist/types/bar-list.d.ts +35 -0
- package/dist/types/breadcrumb.d.ts +62 -0
- package/dist/types/chart-brush.d.ts +35 -0
- package/dist/types/chart-themes.d.ts +229 -0
- package/dist/types/chart.d.ts +570 -0
- package/dist/types/checklist.d.ts +71 -0
- package/dist/types/code-block.d.ts +32 -0
- package/dist/types/collections.d.ts +116 -5
- package/dist/types/color-picker.d.ts +38 -0
- package/dist/types/command.d.ts +6 -3
- package/dist/types/comment-thread.d.ts +48 -0
- package/dist/types/confirmation.d.ts +60 -0
- package/dist/types/context-menu.d.ts +17 -0
- package/dist/types/controls.d.ts +134 -22
- package/dist/types/conversation.d.ts +130 -0
- package/dist/types/copy-button.d.ts +19 -0
- package/dist/types/core.d.ts +139 -10
- package/dist/types/data-grid.d.ts +76 -0
- package/dist/types/date-picker.d.ts +96 -0
- package/dist/types/diff-view.d.ts +54 -0
- package/dist/types/dot-plot.d.ts +54 -0
- package/dist/types/edit-region.d.ts +121 -0
- package/dist/types/feature-gate.d.ts +22 -0
- package/dist/types/filter-bar.d.ts +65 -0
- package/dist/types/formatted-number.d.ts +38 -0
- package/dist/types/heatmap.d.ts +64 -0
- package/dist/types/in-place.d.ts +24 -0
- package/dist/types/index.d.ts +159 -14
- package/dist/types/inline-citation.d.ts +35 -0
- package/dist/types/inline-edit.d.ts +71 -0
- package/dist/types/input-otp.d.ts +37 -0
- package/dist/types/item-group.d.ts +104 -0
- package/dist/types/line-chart.d.ts +116 -0
- package/dist/types/link.d.ts +11 -0
- package/dist/types/markdown.d.ts +88 -0
- package/dist/types/meter.d.ts +43 -0
- package/dist/types/modal-state.d.ts +62 -0
- package/dist/types/nav.d.ts +8 -1
- package/dist/types/notifications.d.ts +42 -0
- package/dist/types/number-input.d.ts +30 -0
- package/dist/types/overlays.d.ts +56 -15
- package/dist/types/page-header.d.ts +27 -0
- package/dist/types/pagination.d.ts +29 -0
- package/dist/types/palette.d.ts +64 -0
- package/dist/types/password-input.d.ts +22 -0
- package/dist/types/pattern-assistant-conversation.d.ts +55 -0
- package/dist/types/pattern-async-collection.d.ts +34 -0
- package/dist/types/pattern-consequential-action.d.ts +53 -0
- package/dist/types/pattern-edit-record.d.ts +72 -0
- package/dist/types/pattern-review-submit.d.ts +43 -0
- package/dist/types/permission-matrix.d.ts +34 -0
- package/dist/types/plan-picker.d.ts +40 -0
- package/dist/types/prompt-input.d.ts +106 -0
- package/dist/types/property-list.d.ts +67 -0
- package/dist/types/question.d.ts +64 -0
- package/dist/types/relative-time.d.ts +21 -0
- package/dist/types/removal-receipt.d.ts +1180 -0
- package/dist/types/resizable.d.ts +48 -0
- package/dist/types/roving.d.ts +44 -0
- package/dist/types/save-bar.d.ts +38 -0
- package/dist/types/saved-views.d.ts +72 -0
- package/dist/types/scatter-chart.d.ts +60 -0
- package/dist/types/schedule.d.ts +80 -0
- package/dist/types/secret-field.d.ts +33 -0
- package/dist/types/select.d.ts +44 -2
- package/dist/types/separator.d.ts +11 -0
- package/dist/types/settings.d.ts +39 -0
- package/dist/types/sheet.d.ts +1 -1
- package/dist/types/sparkline.d.ts +46 -0
- package/dist/types/split-button.d.ts +21 -0
- package/dist/types/stat.d.ts +54 -0
- package/dist/types/stepper.d.ts +6 -3
- package/dist/types/suggestions.d.ts +29 -0
- package/dist/types/suspense.d.ts +85 -0
- package/dist/types/sync-indicator.d.ts +24 -0
- package/dist/types/tag-input.d.ts +65 -0
- package/dist/types/terminal.d.ts +33 -0
- package/dist/types/thread-list.d.ts +58 -0
- package/dist/types/time-input.d.ts +33 -0
- package/dist/types/timeline.d.ts +38 -0
- package/dist/types/toggle.d.ts +46 -0
- package/dist/types/toolbar.d.ts +34 -0
- package/dist/types/tour.d.ts +23 -0
- package/dist/types/trace.d.ts +65 -0
- package/dist/types/tree.d.ts +71 -0
- package/dist/types-cjs/adapter-codemirror.d.cts +13 -0
- package/dist/types-cjs/agent-fleet.d.cts +166 -0
- package/dist/types-cjs/ai-label.d.cts +30 -0
- package/dist/types-cjs/app-shell.d.cts +83 -0
- package/dist/types-cjs/area-chart.d.cts +80 -0
- package/dist/types-cjs/artifact.d.cts +65 -0
- package/dist/types-cjs/bar-chart.d.cts +83 -0
- package/dist/types-cjs/bar-list.d.cts +35 -0
- package/dist/types-cjs/breadcrumb.d.cts +62 -0
- package/dist/types-cjs/chart-brush.d.cts +35 -0
- package/dist/types-cjs/chart-themes.d.cts +229 -0
- package/dist/types-cjs/chart.d.cts +570 -0
- package/dist/types-cjs/checklist.d.cts +71 -0
- package/dist/types-cjs/code-block.d.cts +32 -0
- package/dist/types-cjs/collections.d.cts +246 -0
- package/dist/types-cjs/color-picker.d.cts +38 -0
- package/dist/types-cjs/command.d.cts +66 -0
- package/dist/types-cjs/comment-thread.d.cts +48 -0
- package/dist/types-cjs/confirmation.d.cts +60 -0
- package/dist/types-cjs/context-menu.d.cts +17 -0
- package/dist/types-cjs/controls.d.cts +360 -0
- package/dist/types-cjs/conversation.d.cts +130 -0
- package/dist/types-cjs/copy-button.d.cts +19 -0
- package/dist/types-cjs/core.d.cts +256 -0
- package/dist/types-cjs/data-grid.d.cts +76 -0
- package/dist/types-cjs/date-picker.d.cts +96 -0
- package/dist/types-cjs/diff-view.d.cts +54 -0
- package/dist/types-cjs/dot-plot.d.cts +54 -0
- package/dist/types-cjs/edit-region.d.cts +121 -0
- package/dist/types-cjs/empty.d.cts +24 -0
- package/dist/types-cjs/feature-gate.d.cts +22 -0
- package/dist/types-cjs/filter-bar.d.cts +65 -0
- package/dist/types-cjs/formatted-number.d.cts +38 -0
- package/dist/types-cjs/heatmap.d.cts +64 -0
- package/dist/types-cjs/in-place.d.cts +24 -0
- package/dist/types-cjs/index.d.cts +154 -0
- package/dist/types-cjs/inline-citation.d.cts +35 -0
- package/dist/types-cjs/inline-edit.d.cts +71 -0
- package/dist/types-cjs/input-otp.d.cts +37 -0
- package/dist/types-cjs/item-group.d.cts +104 -0
- package/dist/types-cjs/line-chart.d.cts +116 -0
- package/dist/types-cjs/link.d.cts +11 -0
- package/dist/types-cjs/markdown.d.cts +88 -0
- package/dist/types-cjs/meter.d.cts +43 -0
- package/dist/types-cjs/modal-state.d.cts +62 -0
- package/dist/types-cjs/nav.d.cts +25 -0
- package/dist/types-cjs/notifications.d.cts +42 -0
- package/dist/types-cjs/number-input.d.cts +30 -0
- package/dist/types-cjs/overlays.d.cts +170 -0
- package/dist/types-cjs/page-header.d.cts +27 -0
- package/dist/types-cjs/pagination.d.cts +29 -0
- package/dist/types-cjs/palette.d.cts +64 -0
- package/dist/types-cjs/password-input.d.cts +22 -0
- package/dist/types-cjs/pattern-assistant-conversation.d.cts +55 -0
- package/dist/types-cjs/pattern-async-collection.d.cts +34 -0
- package/dist/types-cjs/pattern-consequential-action.d.cts +53 -0
- package/dist/types-cjs/pattern-edit-record.d.cts +72 -0
- package/dist/types-cjs/pattern-review-submit.d.cts +43 -0
- package/dist/types-cjs/permission-matrix.d.cts +34 -0
- package/dist/types-cjs/pile.d.cts +27 -0
- package/dist/types-cjs/plan-picker.d.cts +40 -0
- package/dist/types-cjs/prompt-input.d.cts +106 -0
- package/dist/types-cjs/property-list.d.cts +67 -0
- package/dist/types-cjs/question.d.cts +64 -0
- package/dist/types-cjs/relative-time.d.cts +21 -0
- package/dist/types-cjs/removal-receipt.d.cts +1180 -0
- package/dist/types-cjs/resizable.d.cts +48 -0
- package/dist/types-cjs/roving.d.cts +44 -0
- package/dist/types-cjs/save-bar.d.cts +38 -0
- package/dist/types-cjs/saved-views.d.cts +72 -0
- package/dist/types-cjs/scatter-chart.d.cts +60 -0
- package/dist/types-cjs/schedule.d.cts +80 -0
- package/dist/types-cjs/secret-field.d.cts +33 -0
- package/dist/types-cjs/select.d.cts +109 -0
- package/dist/types-cjs/separator.d.cts +11 -0
- package/dist/types-cjs/settings.d.cts +39 -0
- package/dist/types-cjs/sheet.d.cts +27 -0
- package/dist/types-cjs/sparkline.d.cts +46 -0
- package/dist/types-cjs/split-button.d.cts +21 -0
- package/dist/types-cjs/stat.d.cts +54 -0
- package/dist/types-cjs/stepper.d.cts +26 -0
- package/dist/types-cjs/suggestions.d.cts +29 -0
- package/dist/types-cjs/suspense.d.cts +85 -0
- package/dist/types-cjs/sync-indicator.d.cts +24 -0
- package/dist/types-cjs/tag-input.d.cts +65 -0
- package/dist/types-cjs/terminal.d.cts +33 -0
- package/dist/types-cjs/thread-list.d.cts +58 -0
- package/dist/types-cjs/time-input.d.cts +33 -0
- package/dist/types-cjs/timeline.d.cts +38 -0
- package/dist/types-cjs/toggle.d.cts +46 -0
- package/dist/types-cjs/toolbar.d.cts +34 -0
- package/dist/types-cjs/tour.d.cts +23 -0
- package/dist/types-cjs/trace.d.cts +65 -0
- package/dist/types-cjs/tree.d.cts +71 -0
- package/package.json +90 -9
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type TreeResult = {
|
|
3
|
+
ok: true;
|
|
4
|
+
} | {
|
|
5
|
+
ok: false;
|
|
6
|
+
error: string;
|
|
7
|
+
};
|
|
8
|
+
export type TreeCreateResult<T> = {
|
|
9
|
+
ok: true;
|
|
10
|
+
value: T;
|
|
11
|
+
} | {
|
|
12
|
+
ok: false;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
/** Where a node goes: under `parentId` (null for the top level), at `index` among the children once it has left its old place. */
|
|
16
|
+
export interface TreeTarget {
|
|
17
|
+
parentId: string | null;
|
|
18
|
+
index: number;
|
|
19
|
+
}
|
|
20
|
+
export interface TreeMove {
|
|
21
|
+
id: string;
|
|
22
|
+
from: TreeTarget;
|
|
23
|
+
to: TreeTarget;
|
|
24
|
+
}
|
|
25
|
+
export interface TreeHandle {
|
|
26
|
+
/** Open a naming well for a new node under `parentId` (null: the top level) at `index` (default: the end). */
|
|
27
|
+
startCreate: (parentId: string | null, index?: number) => void;
|
|
28
|
+
/** Rename a node, as F2 does. */
|
|
29
|
+
startRename: (id: string) => void;
|
|
30
|
+
}
|
|
31
|
+
export interface TreeProps<T> {
|
|
32
|
+
'aria-label'?: string;
|
|
33
|
+
'aria-labelledby'?: string;
|
|
34
|
+
items: T[];
|
|
35
|
+
getKey: (item: T) => string;
|
|
36
|
+
getLabel: (item: T) => string;
|
|
37
|
+
/** Children, or undefined when there are none or they aren't loaded yet. */
|
|
38
|
+
getChildren?: (item: T) => T[] | undefined;
|
|
39
|
+
/** Whether a node can have children (and so shows a chevron) before they're loaded. Default: it has children. */
|
|
40
|
+
hasChildren?: (item: T) => boolean;
|
|
41
|
+
/** Called the first time a node with no loaded children is expanded; an imprint shows until `items` includes them. */
|
|
42
|
+
loadChildren?: (item: T) => void | Promise<void>;
|
|
43
|
+
expanded?: string[];
|
|
44
|
+
defaultExpanded?: string[];
|
|
45
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
46
|
+
/** Default 'single'. */
|
|
47
|
+
selectionMode?: 'single' | 'none';
|
|
48
|
+
selected?: string | null;
|
|
49
|
+
defaultSelected?: string | null;
|
|
50
|
+
onSelectedChange?: (id: string | null) => void;
|
|
51
|
+
/** Enter's default action (open the page). */
|
|
52
|
+
onAction?: (item: T) => void;
|
|
53
|
+
/** Draw a node's label. Default: getLabel. */
|
|
54
|
+
renderItem?: (item: T) => React.ReactNode;
|
|
55
|
+
/** F2. Resolve after `items` carries the new name. */
|
|
56
|
+
onRename?: (item: T, draft: string) => TreeResult | Promise<TreeResult>;
|
|
57
|
+
/** Space to carry, or drag. Resolve after `items` reflects the move. */
|
|
58
|
+
onMove?: (move: TreeMove) => TreeResult | Promise<TreeResult>;
|
|
59
|
+
/** Refuse a target: a node can never go into its own subtree, whatever this says. */
|
|
60
|
+
canDrop?: (move: TreeMove) => boolean;
|
|
61
|
+
/** Ctrl/Cmd+Enter (sibling after) and Ctrl/Cmd+Shift+Enter (child). Resolve after `items` includes the new node. */
|
|
62
|
+
onCreate?: (request: TreeTarget & {
|
|
63
|
+
name: string;
|
|
64
|
+
}) => TreeCreateResult<T> | Promise<TreeCreateResult<T>>;
|
|
65
|
+
/** Delete. Your removal policy (recovery or confirmation) applies; the tree only asks. */
|
|
66
|
+
onRemove?: (item: T) => void;
|
|
67
|
+
className?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare const Tree: <T>(props: TreeProps<T> & {
|
|
70
|
+
ref?: React.Ref<TreeHandle>;
|
|
71
|
+
}) => React.ReactElement;
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altitude-design",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "A design and HCI framework for agent-built React web applications, where height is the interface.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"design-system",
|
|
8
8
|
"components",
|
|
9
9
|
"elevation",
|
|
10
|
-
"ui"
|
|
10
|
+
"ui",
|
|
11
|
+
"hci",
|
|
12
|
+
"workflow",
|
|
13
|
+
"agents"
|
|
11
14
|
],
|
|
12
15
|
"license": "MIT",
|
|
13
16
|
"homepage": "https://richlaconte.github.io/altitude/",
|
|
@@ -24,17 +27,46 @@
|
|
|
24
27
|
"types": "./dist/types/index.d.ts",
|
|
25
28
|
"exports": {
|
|
26
29
|
".": {
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/types/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./dist/types-cjs/index.d.cts",
|
|
36
|
+
"default": "./dist/index.cjs"
|
|
37
|
+
}
|
|
30
38
|
},
|
|
39
|
+
"./chart-themes": {
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/types/chart-themes.d.ts",
|
|
42
|
+
"default": "./dist/chart-themes.js"
|
|
43
|
+
},
|
|
44
|
+
"require": {
|
|
45
|
+
"types": "./dist/types-cjs/chart-themes.d.cts",
|
|
46
|
+
"default": "./dist/chart-themes.cjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"./adapters/tiptap.css": "./dist/adapters/tiptap.css",
|
|
50
|
+
"./adapters/codemirror": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/types/adapter-codemirror.d.ts",
|
|
53
|
+
"default": "./dist/adapters/codemirror.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/types-cjs/adapter-codemirror.d.cts",
|
|
57
|
+
"default": "./dist/adapters/codemirror.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"./adapters/react-flow.css": "./dist/adapters/react-flow.css",
|
|
31
61
|
"./altitude.css": "./dist/altitude.css",
|
|
32
62
|
"./altitude.no-fonts.css": "./dist/altitude.no-fonts.css",
|
|
33
63
|
"./fonts.css": "./dist/fonts.css",
|
|
34
64
|
"./tokens.css": "./dist/tokens.css",
|
|
35
65
|
"./tokens.json": "./dist/tokens.json",
|
|
36
66
|
"./altitude.iife.js": "./dist/altitude.iife.js",
|
|
37
|
-
"./package.json": "./package.json"
|
|
67
|
+
"./package.json": "./package.json",
|
|
68
|
+
"./guidance": "./dist/guidance/index.json",
|
|
69
|
+
"./guidance/*": "./dist/guidance/*"
|
|
38
70
|
},
|
|
39
71
|
"files": [
|
|
40
72
|
"dist"
|
|
@@ -46,26 +78,75 @@
|
|
|
46
78
|
"node": ">=20"
|
|
47
79
|
},
|
|
48
80
|
"peerDependencies": {
|
|
81
|
+
"@codemirror/language": ">=6.0.0",
|
|
82
|
+
"@codemirror/state": ">=6.0.0",
|
|
83
|
+
"@codemirror/view": ">=6.0.0",
|
|
84
|
+
"@lezer/highlight": ">=1.0.0",
|
|
85
|
+
"@tiptap/core": ">=2.0.0",
|
|
86
|
+
"@xyflow/react": ">=12.0.0",
|
|
49
87
|
"react": "^18.2.0 || ^19.0.0",
|
|
50
88
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
51
89
|
},
|
|
90
|
+
"peerDependenciesMeta": {
|
|
91
|
+
"@tiptap/core": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@codemirror/language": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"@codemirror/state": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"@codemirror/view": {
|
|
101
|
+
"optional": true
|
|
102
|
+
},
|
|
103
|
+
"@lezer/highlight": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"@xyflow/react": {
|
|
107
|
+
"optional": true
|
|
108
|
+
}
|
|
109
|
+
},
|
|
52
110
|
"scripts": {
|
|
53
111
|
"build": "node scripts/build-package.mjs",
|
|
54
|
-
"typecheck": "tsc -p tsconfig.json --noEmit --declaration false --emitDeclarationOnly false",
|
|
112
|
+
"typecheck": "tsc -p tsconfig.json --noEmit --declaration false --emitDeclarationOnly false && tsc -p examples/apps/tsconfig.json",
|
|
55
113
|
"storybook": "node scripts/stories.mjs && storybook dev -p 6006",
|
|
56
|
-
"build-storybook": "node scripts/stories.mjs && storybook build -o storybook-static --quiet"
|
|
114
|
+
"build-storybook": "node scripts/stories.mjs && storybook build -o storybook-static --quiet",
|
|
115
|
+
"build-site": "node scripts/build-site.mjs",
|
|
116
|
+
"check:guidance": "node build/checks/guidance.mjs",
|
|
117
|
+
"check:tells": "node build/checks/tells-freshness.mjs",
|
|
118
|
+
"check:tells-lint": "node build/checks/tells-lint.mjs",
|
|
119
|
+
"check:agent-setup": "node build/checks/agent-setup.mjs",
|
|
120
|
+
"check:framework": "node scripts/check-framework.mjs"
|
|
57
121
|
},
|
|
58
122
|
"devDependencies": {
|
|
123
|
+
"@codemirror/commands": "6.11.1",
|
|
124
|
+
"@codemirror/lang-json": "6.0.2",
|
|
125
|
+
"@codemirror/language": "6.13.1",
|
|
126
|
+
"@codemirror/lint": "6.9.7",
|
|
127
|
+
"@codemirror/state": "6.7.6",
|
|
128
|
+
"@codemirror/view": "6.43.15",
|
|
129
|
+
"@lezer/highlight": "1.2.5",
|
|
59
130
|
"@storybook/addon-docs": "10.6.1",
|
|
60
131
|
"@storybook/react-vite": "10.6.1",
|
|
132
|
+
"@tiptap/extension-mention": "3.32.1",
|
|
133
|
+
"@tiptap/pm": "3.32.1",
|
|
134
|
+
"@tiptap/react": "3.32.1",
|
|
135
|
+
"@tiptap/starter-kit": "3.32.1",
|
|
136
|
+
"@tiptap/suggestion": "3.32.1",
|
|
61
137
|
"@types/react": "19.3.0",
|
|
62
138
|
"@types/react-dom": "19.3.0",
|
|
63
139
|
"@vitejs/plugin-react": "6.1.2",
|
|
140
|
+
"@xyflow/react": "12.12.0",
|
|
141
|
+
"axe-core": "4.14.0",
|
|
64
142
|
"esbuild": "0.28.2",
|
|
65
143
|
"react": "19.3.0",
|
|
66
144
|
"react-dom": "19.3.0",
|
|
67
145
|
"storybook": "10.6.1",
|
|
68
146
|
"typescript": "5.6.3",
|
|
69
147
|
"vite": "8.3.3"
|
|
148
|
+
},
|
|
149
|
+
"bin": {
|
|
150
|
+
"altitude": "./dist/cli/altitude.mjs"
|
|
70
151
|
}
|
|
71
152
|
}
|