@uipath/apollo-vertex 1.1.0 → 1.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/dist/lib/i18n.d.ts +2 -0
- package/dist/lib/table-features.d.ts +38 -0
- package/dist/lib/table-features.js +32 -0
- package/dist/locales/en.json +1 -0
- package/dist/registry/bar-chart/bar-chart-view.js +19 -17
- package/dist/registry/bar-chart/util/get-bar-color.js +2 -2
- package/dist/registry/calendar/calendar.js +2 -2
- package/dist/registry/chart/chart.d.ts +19 -17
- package/dist/registry/chart/chart.js +52 -20
- package/dist/registry/command/command.js +3 -0
- package/dist/registry/confidence-signal/confidence-signal-chip.js +1 -1
- package/dist/registry/data-table/data-table-column-header.d.ts +5 -4
- package/dist/registry/data-table/data-table-column-header.js +21 -18
- package/dist/registry/data-table/data-table-expand-toggle.d.ts +5 -4
- package/dist/registry/data-table/data-table-expand-toggle.js +1 -1
- package/dist/registry/data-table/data-table-filters.d.ts +4 -3
- package/dist/registry/data-table/data-table-filters.js +4 -4
- package/dist/registry/data-table/data-table-pagination.d.ts +5 -4
- package/dist/registry/data-table/data-table-pagination.js +2 -3
- package/dist/registry/data-table/data-table-search.d.ts +5 -4
- package/dist/registry/data-table/data-table-search.js +2 -2
- package/dist/registry/data-table/data-table-toolbar.d.ts +5 -4
- package/dist/registry/data-table/data-table-view-options.d.ts +5 -4
- package/dist/registry/data-table/data-table-view-options.js +2 -2
- package/dist/registry/data-table/data-table.d.ts +13 -12
- package/dist/registry/data-table/data-table.js +9 -12
- package/dist/registry/data-table/index.d.ts +3 -2
- package/dist/registry/data-table/index.js +1 -1
- package/dist/registry/filter-dropdown/filter-dropdown.d.ts +4 -4
- package/dist/registry/filter-dropdown/filter-dropdown.js +1 -1
- package/dist/registry/shell/shell-theme-provider.js +12 -6
- package/dist/registry/solution-tests/config.d.ts +5 -5
- package/dist/registry/solution-tests/solution-tests-view.js +1 -1
- package/dist/registry/sonner/sonner.d.ts +1 -1
- package/dist/registry/sonner/sonner.js +4 -4
- package/dist/registry/table-chart/table-chart-view.js +9 -5
- package/dist/registry/timeline/timeline-marker.js +2 -2
- package/dist/registry/use-data-table/types.d.ts +3 -2
- package/dist/registry/use-data-table/useColumnVisibility.d.ts +3 -3
- package/dist/registry/use-data-table/useDataTable.d.ts +8 -7
- package/dist/registry/use-data-table/useEntityColumns.d.ts +2 -2
- package/dist/registry/use-data-table/useEntityDataTable.d.ts +3 -3
- package/package.json +4 -5
- package/skills/setup/SKILL.md +123 -0
- package/dist/registry/use-data-table/useReactTableCompat.d.ts +0 -13
- package/dist/registry/use-data-table/useReactTableCompat.js +0 -9
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup
|
|
3
|
+
description: >
|
|
4
|
+
Use when adding @uipath/apollo-vertex to a React app, or when an app that
|
|
5
|
+
already depends on it is missing the Vertex stylesheet or the agent skill
|
|
6
|
+
setup. Covers peer dependencies, importing the Vertex CSS, setting up
|
|
7
|
+
TanStack Intent so agents load the Vertex skills, and adding a rule to the
|
|
8
|
+
project's agent instructions. Not for building UI: load
|
|
9
|
+
use-vertex-components for that.
|
|
10
|
+
metadata:
|
|
11
|
+
purpose: >
|
|
12
|
+
Set up a React app to use Apollo Vertex and make its coding agents follow
|
|
13
|
+
the Vertex skills when they change UI.
|
|
14
|
+
type: lifecycle
|
|
15
|
+
library: '@uipath/apollo-vertex'
|
|
16
|
+
sources:
|
|
17
|
+
- 'UiPath/apollo-ui:packages/apollo-vertex/package.json'
|
|
18
|
+
- 'UiPath/apollo-ui:packages/apollo-vertex/styles/tailwind.css'
|
|
19
|
+
- 'UiPath/apollo-ui:apps/apollo-vertex/content/docs/getting-started.mdx'
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Set up Apollo Vertex
|
|
23
|
+
|
|
24
|
+
Work from the project root and use the project's package manager (npm, pnpm,
|
|
25
|
+
yarn or bun) for every install. Do each step, then run the completion check.
|
|
26
|
+
|
|
27
|
+
## 1. Install the package and its peers
|
|
28
|
+
|
|
29
|
+
Install `@uipath/apollo-vertex` if the project doesn't have it yet.
|
|
30
|
+
|
|
31
|
+
Then read `peerDependencies` in
|
|
32
|
+
`node_modules/@uipath/apollo-vertex/package.json` and make sure the app has
|
|
33
|
+
every package listed there, in a version that matches the range. Also install
|
|
34
|
+
every package listed in `peerDependenciesMeta`, even the ones marked optional
|
|
35
|
+
or missing from `peerDependencies`: the package entry imports them, so the
|
|
36
|
+
app's bundler fails to resolve the entry without them.
|
|
37
|
+
|
|
38
|
+
- If the app already has a peer in a version outside the range, tell the user
|
|
39
|
+
about the conflict instead of upgrading it on your own.
|
|
40
|
+
- Some `@uipath` peers are not on the public npm registry. If installing one
|
|
41
|
+
fails with a 404 or an authentication error, stop and ask the user for access
|
|
42
|
+
to UiPath's package registry. Do not install look-alike packages from npm.
|
|
43
|
+
- If the app doesn't use Tailwind yet, set it up for the app's bundler with
|
|
44
|
+
Tailwind's own install guide: install the integration, such as
|
|
45
|
+
`@tailwindcss/vite`, and register it in the bundler config. Installing it is
|
|
46
|
+
not enough.
|
|
47
|
+
|
|
48
|
+
## 2. Import the stylesheet
|
|
49
|
+
|
|
50
|
+
Add these lines once to the app's main CSS file, the one that sets up Tailwind,
|
|
51
|
+
and remove its own `@import "tailwindcss";` line. If the app has no CSS file
|
|
52
|
+
yet, create one and import it from the app's entry point:
|
|
53
|
+
|
|
54
|
+
```css
|
|
55
|
+
@import "@uipath/apollo-vertex/tailwind.css";
|
|
56
|
+
@source "./";
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`tailwind.css` includes Tailwind, the Vertex theme and the classes the Vertex
|
|
60
|
+
components use. Keep `@source "./";` and adjust the path if the CSS file is not
|
|
61
|
+
next to the app's sources. Without it, Tailwind drops the classes used in the
|
|
62
|
+
app's own files.
|
|
63
|
+
|
|
64
|
+
## 3. Set up TanStack Intent
|
|
65
|
+
|
|
66
|
+
[TanStack Intent](https://tanstack.com/intent) finds the skills that ship in
|
|
67
|
+
`node_modules` and tells agents to load them.
|
|
68
|
+
|
|
69
|
+
1. Add `@tanstack/intent` as a dev dependency.
|
|
70
|
+
2. Add this to the project's `package.json`. If an `intent.skills` list already
|
|
71
|
+
exists, add `@uipath/apollo-vertex` to it instead of replacing it:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"intent": {
|
|
76
|
+
"skills": ["@uipath/apollo-vertex"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
3. Run `intent install` through the package manager, for example
|
|
82
|
+
`npx intent install` or `pnpm exec intent install`. It writes a skill
|
|
83
|
+
loading block into `AGENTS.md`, or into another agent instructions file that
|
|
84
|
+
already has one.
|
|
85
|
+
4. Tell the user that you allowed agents to load the `@uipath/apollo-vertex`
|
|
86
|
+
skills, and that they can change this with `intent install --review` in a
|
|
87
|
+
terminal.
|
|
88
|
+
|
|
89
|
+
Without the `intent.skills` entry, `intent install` stops and asks for
|
|
90
|
+
permissions in an interactive terminal, which an agent can't answer.
|
|
91
|
+
|
|
92
|
+
## 4. Add the Vertex rule to the agent instructions
|
|
93
|
+
|
|
94
|
+
`intent install` printed which file it wrote the skill loading block to. The
|
|
95
|
+
block starts with `<!-- intent-skills:start -->`. Add this section to that same
|
|
96
|
+
file, right after the block:
|
|
97
|
+
|
|
98
|
+
```markdown
|
|
99
|
+
## UI
|
|
100
|
+
|
|
101
|
+
This app uses Apollo Vertex (`@uipath/apollo-vertex`) for all UI. Before
|
|
102
|
+
building or changing UI, run `intent list` and load the matching
|
|
103
|
+
`@uipath/apollo-vertex` skills, then follow them.
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Write the `intent` command the way the skill loading block does, for example
|
|
107
|
+
`npm exec --no -- intent list`.
|
|
108
|
+
|
|
109
|
+
If that file is `AGENTS.md`, make sure Claude Code reads it too: if the
|
|
110
|
+
project has a `CLAUDE.md`, it must import `AGENTS.md` with an `@AGENTS.md` line,
|
|
111
|
+
and if there is no `CLAUDE.md`, create one that contains only `@AGENTS.md`.
|
|
112
|
+
|
|
113
|
+
## Completion
|
|
114
|
+
|
|
115
|
+
- `intent list` shows `@uipath/apollo-vertex` with the `use-vertex-components`
|
|
116
|
+
skill.
|
|
117
|
+
- One agent instructions file has both the skill loading block and the UI
|
|
118
|
+
section.
|
|
119
|
+
- The app builds, and a Vertex component such as `Button` renders with Vertex
|
|
120
|
+
styling.
|
|
121
|
+
|
|
122
|
+
Then tell the user what you changed, and load `use-vertex-components` before
|
|
123
|
+
building any UI.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Table, useReactTable } from "@tanstack/react-table";
|
|
2
|
-
/**
|
|
3
|
-
* React Compiler compatibility wrapper for useReactTable.
|
|
4
|
-
*
|
|
5
|
-
* useReactTable returns a mutable object with a stable reference. The React
|
|
6
|
-
* Compiler caches values by reference, so child components that receive the
|
|
7
|
-
* table instance never see a "change" and skip re-renders. Spreading into a
|
|
8
|
-
* new object on every render gives children a fresh reference while keeping
|
|
9
|
-
* all methods intact (they are closures, not prototype methods).
|
|
10
|
-
*
|
|
11
|
-
* @see https://github.com/facebook/react/pull/31820
|
|
12
|
-
*/
|
|
13
|
-
export declare function useReactTableCompat<TData>(options: Parameters<typeof useReactTable<TData>>[0]): Table<TData>;
|