@servicetitan/anvil2-ext-atlas 0.0.0-rc-1.47.0-20251104204300

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/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # @servicetitan/anvil2-ext-atlas
2
+
3
+ ## 0.0.0-rc-1.47.0-20251104204300
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`68cee99`](https://github.com/servicetitan/hammer/commit/68cee99d0510afa28b295b376ebe5b16994e7838), [`bf6df2d`](https://github.com/servicetitan/hammer/commit/bf6df2dd47192b26c5821e7844c6ea9a3b8f292c), [`34e43ed`](https://github.com/servicetitan/hammer/commit/34e43edd81055fb78e9c6f25788155215f26e50f), [`6be78b9`](https://github.com/servicetitan/hammer/commit/6be78b9befb53cc32ba2d4a3b55531db60a647ea), [`89dd374`](https://github.com/servicetitan/hammer/commit/89dd374d0883c72343fba2da5b781a58a155b74f), [`a169457`](https://github.com/servicetitan/hammer/commit/a169457c8461d3c373ce092b0229ca0fa71a4a15), [`34e43ed`](https://github.com/servicetitan/hammer/commit/34e43edd81055fb78e9c6f25788155215f26e50f), [`cd23c5b`](https://github.com/servicetitan/hammer/commit/cd23c5bd1533cdbf2170a762973dbfbe4a114928)]:
8
+ - @servicetitan/anvil2@0.0.0-rc-1.47.0-20251104204300
9
+
10
+ ## 0.0.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`d7fc638`](https://github.com/servicetitan/hammer/commit/d7fc63866ede9561f6e039d855738d7c2d294716)]:
15
+ - @servicetitan/anvil2@1.46.11
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # Atlas • Anvil2 Extended Library
2
+
3
+ This package contains the UI components used in the Atlas chat experience. These components are built using Anvil2, and are maintained by both the Atlas and Anvil teams.
4
+
5
+ ## Getting started
6
+
7
+ ### Installation
8
+
9
+ To use the Atlas UI components in this library, install the extended library in your project:
10
+
11
+ ```
12
+ npm install @servicetitan/anvil2-ext-atlas
13
+ ```
14
+
15
+ > [!NOTE]
16
+ > This package requires `@servicetitan/anvil2` as a `peerDependency`, so make sure that is installed as well, and meets the version requirement in this package's `package.json`.
17
+
18
+ ### Usage
19
+
20
+ The Atlas Extended Library includes React components and utils, which can be imported and used just as you would Anvil2 or other component libraries:
21
+
22
+ ```tsx
23
+ import { ChatWindow } from "@servicetitan/anvil2-ext-atlas";
24
+
25
+ export function ExampleComponent() {
26
+ return <ChatWindow />;
27
+ }
28
+ ```
29
+
30
+ > [!WARNING]
31
+ > This should be updated after actually migrating components to this package.
32
+
33
+ ## Contributing
34
+
35
+ Check out the [CONTRIBUTING.md](../CONTRIBUTING.md) in the root of the monorepo for general instructions for running and contributing to this repo.
36
+
37
+ ### File structure
38
+
39
+ Here is a high-level breakdown of where files for source code should exist within this package:
40
+
41
+ ```
42
+ src/
43
+ components/
44
+ ComponentName/
45
+ ComponentName.tsx
46
+ ComponentName.module.scss
47
+ ComponentName.stories.tsx
48
+ ComponentName.test.tsx
49
+ index.ts
50
+ hooks/
51
+ useHookName.ts
52
+ index.ts
53
+ utils/
54
+ someUtil.ts
55
+ index.ts
56
+ index.ts
57
+ ```
58
+
59
+ > [!NOTE]
60
+ > If a component has internal utils or sub-components, they can be added to an `internal` directory within the component directory.
61
+
62
+ ### Testing
63
+
64
+ We recommend including unit tests to verify functionality of all components and utils
65
+
66
+ ### Storybook
67
+
68
+ Storybook is a great tool for development and testing. If you haven't used it before, [check out their docs](https://storybook.js.org/) to learn more.
69
+
70
+ Each component should have a `Component.stories.tsx` file, with at least one story to test and validate features.
71
+
72
+ To run Storybook locally for this project, simply run:
73
+
74
+ ```
75
+ pnpm sb:atlas
76
+ ```
77
+
78
+ ### Chromatic
79
+
80
+ This project also leverages [Chromatic](https://www.chromatic.com/) to publish the Storybook on each branch, and prevent visual regressions in PRs. Each PR will have two relevant checks:
81
+
82
+ 1. **UI Tests: Anvil2 Extended Atlas**: does a visual regression test on stories to verify visual differences
83
+ 2. **Storybook Publish: Anvil2 Extended Atlas**: publishes the Storybook for viewing and testing
84
+
85
+ Any changes that are caught in the UI Tests should be approved before merging and releasing changes.
@@ -0,0 +1,8 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+
3
+ const DummyComponent = () => {
4
+ return /* @__PURE__ */ jsx("div", { children: "Dummy component. Real components coming soon." });
5
+ };
6
+
7
+ export { DummyComponent as D };
8
+ //# sourceMappingURL=DummyComponent-ac_BQfhC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DummyComponent-ac_BQfhC.js","sources":["../src/components/DummyComponent/DummyComponent.tsx"],"sourcesContent":["export const DummyComponent = () => {\n return <div>Dummy component. Real components coming soon.</div>;\n};\n"],"names":[],"mappings":";;AAAO,MAAM,iBAAiB,MAAM;AAClC,EAAA,uBAAO,GAAA,CAAC,SAAI,QAAA,EAAA,+CAAA,EAA6C,CAAA;AAC3D;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './components/DummyComponent/index'
2
+ export {}
@@ -0,0 +1,2 @@
1
+ export { D as DummyComponent } from './DummyComponent-ac_BQfhC.js';
2
+ //# sourceMappingURL=DummyComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DummyComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const DummyComponent: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './DummyComponent';
@@ -0,0 +1 @@
1
+ export * from './DummyComponent';
Binary file
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './types';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { D as DummyComponent } from './DummyComponent-ac_BQfhC.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2
+ export type Prettify<T> = {
3
+ [K in keyof T]: T[K];
4
+ } & {};
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "@servicetitan/anvil2-ext-atlas",
3
+ "version": "0.0.0-rc-1.47.0-20251104204300",
4
+ "type": "module",
5
+ "types": "./dist/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "module": ".",
8
+ "sideEffects": [
9
+ "*.css",
10
+ "*.scss"
11
+ ],
12
+ "files": [
13
+ "dist",
14
+ "CHANGELOG.md"
15
+ ],
16
+ "exports": {
17
+ ".": "./dist/index.js",
18
+ "./package.json": "./package.json"
19
+ },
20
+ "keywords": [],
21
+ "author": "",
22
+ "license": "ISC",
23
+ "description": "",
24
+ "dependencies": {
25
+ "@react-hook/merged-ref": "^1.3.2",
26
+ "@react-hook/resize-observer": "^2.0.1",
27
+ "classnames": "^2.5.1",
28
+ "tabbable": "^6.2.0",
29
+ "tinycolor2": "^1.6.0",
30
+ "uuid": "^10.0.0",
31
+ "@servicetitan/anvil2": "0.0.0-rc-1.47.0-20251104204300"
32
+ },
33
+ "peerDependencies": {
34
+ "@types/react": "^18",
35
+ "@types/react-dom": "^18",
36
+ "react": "^18",
37
+ "react-dom": "^18"
38
+ },
39
+ "devDependencies": {
40
+ "@chromatic-com/storybook": "^4.1.1",
41
+ "@storybook/addon-a11y": "9.1.5",
42
+ "@storybook/addon-docs": "9.1.5",
43
+ "@storybook/addon-links": "9.1.5",
44
+ "@storybook/addon-vitest": "9.1.5",
45
+ "@storybook/react-vite": "9.1.5",
46
+ "@testing-library/jest-dom": "^5.17.0",
47
+ "@testing-library/react": "^16.1.0",
48
+ "@testing-library/user-event": "^14.5.2",
49
+ "@types/crypto-js": "^4.2.2",
50
+ "@types/luxon": "^3.4.2",
51
+ "@types/react": "18.3.18",
52
+ "@types/react-dom": "18.3.5",
53
+ "@types/react-window": "^1.8.8",
54
+ "@types/testing-library__jest-dom": "^5.14.9",
55
+ "@types/tinycolor2": "^1.4.6",
56
+ "@types/uuid": "^10.0.0",
57
+ "@typescript-eslint/eslint-plugin": "^6.14.0",
58
+ "@typescript-eslint/parser": "^6.14.0",
59
+ "@vitest/browser": "^3.2.4",
60
+ "@vitest/coverage-v8": "^3.0.8",
61
+ "chromatic": "^11.20.2",
62
+ "commander": "^12.1.0",
63
+ "globals": "^15.15.0",
64
+ "happy-dom": "^17.4.4",
65
+ "mdast-util-to-string": "^4.0.0",
66
+ "playwright": "^1.52.0",
67
+ "react": "18.2.0",
68
+ "react-dom": "18.2.0",
69
+ "remark-gfm": "^4.0.0",
70
+ "remark-parse": "^11.0.0",
71
+ "remark-stringify": "^11.0.0",
72
+ "sass": "1.87.0",
73
+ "storybook": "9.1.5",
74
+ "svgo": "^3.3.2",
75
+ "typescript": "~5.7.2",
76
+ "unified": "^11.0.5",
77
+ "vite": "6.4.1",
78
+ "vitest": "^3.2.4",
79
+ "vitest-axe": "^0.1.0"
80
+ },
81
+ "scripts": {
82
+ "dev": "vite",
83
+ "build": "vite build",
84
+ "lint": "eslint .",
85
+ "preview": "vite preview",
86
+ "storybook": "storybook dev -p 8007",
87
+ "build-storybook": "storybook build --stats-json",
88
+ "test-storybook": "vitest --project=storybook",
89
+ "test": "vitest run --project=unit"
90
+ }
91
+ }