@servicetitan/anvil2-ext-atlas 2.1.2 → 2.2.1
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 +18 -0
- package/dist/{atlas-header-C-Bw_KyV.js → atlas-header-DtYEZIyx.js} +2 -2
- package/dist/{atlas-header-C-Bw_KyV.js.map → atlas-header-DtYEZIyx.js.map} +1 -1
- package/dist/atlas-header.js +1 -1
- package/dist/index.js +6 -6
- package/dist/loader.js +1 -1
- package/dist/{index-DFEn2XpE.js → markdown-text-BcCCdMfH.js} +10 -3
- package/dist/markdown-text-BcCCdMfH.js.map +1 -0
- package/dist/markdown-text.css +103 -26
- package/dist/markdown-text.js +1 -1
- package/dist/messages.js +1 -1
- package/dist/{notification-card-Bhi2-mQR.js → notification-card-DizmzaUo.js} +2 -2
- package/dist/{notification-card-Bhi2-mQR.js.map → notification-card-DizmzaUo.js.map} +1 -1
- package/dist/notification-card.js +1 -1
- package/dist/{pulse-loader-D0pbsphx.js → pulse-loader-DcrQsZeD.js} +3 -3
- package/dist/{pulse-loader-D0pbsphx.js.map → pulse-loader-DcrQsZeD.js.map} +1 -1
- package/dist/recommendations.js +1 -1
- package/dist/{single-recommendation-card-D_FiwLm1.js → single-recommendation-card-BPbfhvu_.js} +2 -2
- package/dist/{single-recommendation-card-D_FiwLm1.js.map → single-recommendation-card-BPbfhvu_.js.map} +1 -1
- package/dist/src/components/markdown-text/markdown-text.d.ts +17 -0
- package/dist/src/components/messages/markdown-message.d.ts +38 -0
- package/dist/{user-message-Cc5g9JGK.js → user-message-D1KrKgfD.js} +5 -6
- package/dist/user-message-D1KrKgfD.js.map +1 -0
- package/dist/user-message.css +9 -134
- package/package.json +5 -7
- package/dist/index-DFEn2XpE.js.map +0 -1
- package/dist/markdown-text-DWHdZVVX.js +0 -12
- package/dist/markdown-text-DWHdZVVX.js.map +0 -1
- package/dist/user-message-Cc5g9JGK.js.map +0 -1
package/dist/user-message.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.anvil2 ._message-
|
|
1
|
+
.anvil2 ._message-wrapper_15dut_1 {
|
|
2
2
|
width: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
|
-
.anvil2 ._error-
|
|
6
|
+
.anvil2 ._error-color_15dut_6._error-color_15dut_6 {
|
|
7
7
|
color: var(--a2-foreground-color-danger);
|
|
8
8
|
}
|
|
9
|
-
.anvil2 .
|
|
9
|
+
.anvil2 ._message_15dut_1 {
|
|
10
10
|
max-width: 70%;
|
|
11
11
|
padding: var(--a2-size-1) 12px;
|
|
12
12
|
border-radius: 8px;
|
|
@@ -14,147 +14,22 @@
|
|
|
14
14
|
background-color: var(--a2-background-color-strong);
|
|
15
15
|
color: var(--a2-foreground-color-default);
|
|
16
16
|
}
|
|
17
|
-
.anvil2 .
|
|
17
|
+
.anvil2 ._message_15dut_1._user_15dut_17 {
|
|
18
18
|
background-color: var(--a2-background-color-success-subdued);
|
|
19
19
|
}
|
|
20
|
-
.anvil2 .
|
|
20
|
+
.anvil2 ._left_15dut_20 {
|
|
21
21
|
justify-content: flex-start;
|
|
22
22
|
}
|
|
23
|
-
.anvil2 .
|
|
23
|
+
.anvil2 ._right_15dut_23 {
|
|
24
24
|
justify-content: flex-end;
|
|
25
25
|
}
|
|
26
|
-
.anvil2 ._user-
|
|
26
|
+
.anvil2 ._user-wrapper_15dut_26 {
|
|
27
27
|
justify-content: flex-end;
|
|
28
28
|
}
|
|
29
|
-
.anvil2 ._message-
|
|
29
|
+
.anvil2 ._message-list_15dut_29 {
|
|
30
30
|
max-height: 400px;
|
|
31
31
|
overflow-y: auto;
|
|
32
32
|
}
|
|
33
|
-
.anvil2 .
|
|
34
|
-
color: var(--a2-foreground-color-default);
|
|
35
|
-
font-family: var(--a2-typography-heading-font-family, "Nunito Sans");
|
|
36
|
-
font-size: var(--a2-typography-heading-size-large, 24px);
|
|
37
|
-
font-style: normal;
|
|
38
|
-
font-weight: 800;
|
|
39
|
-
line-height: var(--a2-typography-heading-line-height-large, 30px);
|
|
40
|
-
letter-spacing: var(--a2-typography-heading-letter-spacing-large, -0.12px);
|
|
41
|
-
margin: 0 0 var(--a2-size-2);
|
|
42
|
-
}
|
|
43
|
-
.anvil2 ._markdown-content_1m83v_33 h2 {
|
|
44
|
-
color: var(--a2-foreground-color-default);
|
|
45
|
-
font-family: var(--a2-typography-heading-font-family, "Nunito Sans");
|
|
46
|
-
font-size: var(--a2-typography-heading-size-default, 20px);
|
|
47
|
-
font-style: normal;
|
|
48
|
-
font-weight: 800;
|
|
49
|
-
line-height: var(--a2-typography-heading-line-height-default, 25px);
|
|
50
|
-
letter-spacing: var(--a2-typography-heading-letter-spacing-default, -0.05px);
|
|
51
|
-
margin: 0 0 var(--a2-size-2);
|
|
52
|
-
}
|
|
53
|
-
.anvil2 ._markdown-content_1m83v_33 h3 {
|
|
54
|
-
color: var(--a2-foreground-color-default);
|
|
55
|
-
font-family: var(--a2-typography-heading-font-family, "Nunito Sans");
|
|
56
|
-
font-size: var(--a2-typography-heading-size-small, 16px);
|
|
57
|
-
font-style: normal;
|
|
58
|
-
font-weight: 800;
|
|
59
|
-
line-height: var(--a2-typography-heading-line-height-small, 20px);
|
|
60
|
-
letter-spacing: var(--a2-typography-heading-letter-spacing-small, 0);
|
|
61
|
-
margin: 0 0 var(--a2-size-2);
|
|
62
|
-
}
|
|
63
|
-
.anvil2 ._markdown-content_1m83v_33 p {
|
|
64
|
-
margin: 0 0 var(--a2-size-2) 0;
|
|
65
|
-
color: var(--a2-foreground-color-default);
|
|
66
|
-
font-family: var(--a2-typography-paragraph-font-family, "Nunito Sans");
|
|
67
|
-
font-size: var(--a2-typography-paragraph-size-default, 16px);
|
|
68
|
-
font-style: normal;
|
|
69
|
-
font-weight: var(--a2-font-weight-normal, 400);
|
|
70
|
-
line-height: var(--a2-typography-paragraph-line-height-default, 24px);
|
|
71
|
-
}
|
|
72
|
-
.anvil2 ._markdown-content_1m83v_33 pre {
|
|
73
|
-
background-color: var(--a2-background-color-strong);
|
|
74
|
-
border-radius: var(--a2-border-radius-large);
|
|
75
|
-
padding: var(--a2-size-4);
|
|
76
|
-
overflow: auto;
|
|
77
|
-
}
|
|
78
|
-
.anvil2 ._markdown-content_1m83v_33 code {
|
|
79
|
-
background-color: rgba(175, 184, 193, 0.2);
|
|
80
|
-
border-radius: var(--a2-border-radius-large);
|
|
81
|
-
padding: 0.2em 0.4em;
|
|
82
|
-
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
83
|
-
}
|
|
84
|
-
.anvil2 ._markdown-content_1m83v_33 pre code {
|
|
85
|
-
background-color: transparent;
|
|
86
|
-
padding: 0;
|
|
87
|
-
}
|
|
88
|
-
.anvil2 ._markdown-content_1m83v_33 ul,
|
|
89
|
-
.anvil2 ._markdown-content_1m83v_33 ol {
|
|
90
|
-
padding-left: var(--a2-size-8);
|
|
91
|
-
margin: 0 0 1em;
|
|
92
|
-
color: var(--a2-foreground-color-default);
|
|
93
|
-
font-family: var(--a2-typography-paragraph-font-family, "Nunito Sans");
|
|
94
|
-
font-size: var(--a2-typography-paragraph-size-default, 16px);
|
|
95
|
-
font-style: normal;
|
|
96
|
-
font-weight: var(--a2-font-weight-normal, 400);
|
|
97
|
-
line-height: var(--a2-typography-paragraph-line-height-default, 24px);
|
|
98
|
-
}
|
|
99
|
-
.anvil2 ._markdown-content_1m83v_33 li {
|
|
100
|
-
color: var(--a2-foreground-color-default);
|
|
101
|
-
font-family: var(--a2-typography-paragraph-font-family, "Nunito Sans");
|
|
102
|
-
font-size: var(--a2-typography-paragraph-size-default, 16px);
|
|
103
|
-
font-style: normal;
|
|
104
|
-
font-weight: var(--a2-font-weight-normal, 400);
|
|
105
|
-
line-height: var(--a2-typography-paragraph-line-height-default, 24px);
|
|
106
|
-
}
|
|
107
|
-
.anvil2 ._markdown-content_1m83v_33 strong,
|
|
108
|
-
.anvil2 ._markdown-content_1m83v_33 b {
|
|
109
|
-
color: var(--a2-foreground-color-default);
|
|
110
|
-
font-family: var(--a2-typography-paragraph-font-family, "Nunito Sans");
|
|
111
|
-
font-size: var(--a2-typography-paragraph-size-default, 16px);
|
|
112
|
-
font-style: normal;
|
|
113
|
-
font-weight: var(--a2-font-weight-bold, 700);
|
|
114
|
-
line-height: var(--a2-typography-paragraph-line-height-default, 24px);
|
|
115
|
-
}
|
|
116
|
-
.anvil2 ._markdown-content_1m83v_33 em,
|
|
117
|
-
.anvil2 ._markdown-content_1m83v_33 i {
|
|
118
|
-
color: var(--a2-foreground-color-default);
|
|
119
|
-
font-family: var(--a2-typography-paragraph-font-family, "Nunito Sans");
|
|
120
|
-
font-size: var(--a2-typography-paragraph-size-default, 16px);
|
|
121
|
-
font-style: italic;
|
|
122
|
-
font-weight: var(--a2-font-weight-normal, 400);
|
|
123
|
-
line-height: var(--a2-typography-paragraph-line-height-default, 24px);
|
|
124
|
-
}
|
|
125
|
-
.anvil2 ._markdown-content_1m83v_33 a {
|
|
126
|
-
color: var(--a2-foreground-color-primary, #0265dc);
|
|
127
|
-
font-family: var(--a2-typography-paragraph-font-family, "Nunito Sans");
|
|
128
|
-
font-size: var(--a2-typography-paragraph-size-default, 16px);
|
|
129
|
-
font-style: normal;
|
|
130
|
-
font-weight: var(--a2-font-weight-normal, 400);
|
|
131
|
-
line-height: var(--a2-typography-paragraph-line-height-default, 24px);
|
|
132
|
-
}
|
|
133
|
-
.anvil2 ._markdown-content_1m83v_33 table {
|
|
134
|
-
border-collapse: collapse;
|
|
135
|
-
width: 100%;
|
|
136
|
-
margin: 1em 0;
|
|
137
|
-
}
|
|
138
|
-
.anvil2 ._markdown-content_1m83v_33 th {
|
|
139
|
-
border: 1px solid var(--a2-border-color-subdued);
|
|
140
|
-
background: var(--a2-background-color-strong);
|
|
141
|
-
padding: 6px 13px;
|
|
142
|
-
color: var(--a2-foreground-color-default);
|
|
143
|
-
font-size: var(--a2-font-size-300, 0.875rem);
|
|
144
|
-
font-style: normal;
|
|
145
|
-
font-weight: var(--a2-font-weight-semibold, 600);
|
|
146
|
-
line-height: 150%;
|
|
147
|
-
}
|
|
148
|
-
.anvil2 ._markdown-content_1m83v_33 td {
|
|
149
|
-
border: 1px solid var(--a2-border-color-subdued);
|
|
150
|
-
background: var(--a2-background-color-default);
|
|
151
|
-
padding: 6px 13px;
|
|
152
|
-
color: var(--a2-foreground-color-default);
|
|
153
|
-
font-size: var(--a2-font-size-300, 0.875rem);
|
|
154
|
-
font-style: normal;
|
|
155
|
-
font-weight: var(--a2-font-weight-normal, 400);
|
|
156
|
-
line-height: 150%;
|
|
157
|
-
}
|
|
158
|
-
.anvil2 ._message-icon_1m83v_158 {
|
|
33
|
+
.anvil2 ._message-icon_15dut_33 {
|
|
159
34
|
display: flex;
|
|
160
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/anvil2-ext-atlas",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/src/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"remark-gfm": "^4.0.1",
|
|
34
34
|
"tabbable": "^6.2.0",
|
|
35
35
|
"tinycolor2": "^1.6.0",
|
|
36
|
-
"uuid": "^
|
|
36
|
+
"uuid": "^14.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@servicetitan/tokens": "^12.9.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"mobx-react": "^9.2.0",
|
|
44
44
|
"react": "^18 || ^19",
|
|
45
45
|
"react-dom": "^18 || ^19",
|
|
46
|
-
"@servicetitan/anvil2": "3.0.
|
|
46
|
+
"@servicetitan/anvil2": "3.0.8"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@chromatic-com/storybook": "^5.1.2",
|
|
@@ -64,8 +64,6 @@
|
|
|
64
64
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
65
65
|
"@types/tinycolor2": "^1.4.6",
|
|
66
66
|
"@types/uuid": "^10.0.0",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
68
|
-
"@typescript-eslint/parser": "^8.59.0",
|
|
69
67
|
"@vitest/browser": "^3.2.4",
|
|
70
68
|
"@vitest/coverage-v8": "^3.0.8",
|
|
71
69
|
"chromatic": "^11.20.2",
|
|
@@ -89,14 +87,14 @@
|
|
|
89
87
|
"vite": "6.4.2",
|
|
90
88
|
"vitest": "^3.2.4",
|
|
91
89
|
"vitest-axe": "^0.1.0",
|
|
92
|
-
"@servicetitan/anvil2": "3.0.
|
|
90
|
+
"@servicetitan/anvil2": "3.0.8"
|
|
93
91
|
},
|
|
94
92
|
"scripts": {
|
|
95
93
|
"dev": "vite",
|
|
96
94
|
"build": "vite build",
|
|
97
95
|
"build-storybook": "storybook build --stats-json",
|
|
98
96
|
"clean": "rimraf dist node_modules/.cache",
|
|
99
|
-
"lint": "
|
|
97
|
+
"lint": "oxlint . -c ../../.oxlintrc.json",
|
|
100
98
|
"nuke": "pnpm clean && rimraf node_modules",
|
|
101
99
|
"preview": "vite preview",
|
|
102
100
|
"storybook": "storybook dev -p 8007",
|