@stainless-api/docs 0.1.0-beta.62 → 0.1.0-beta.63
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
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @stainless-api/docs
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.63
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d2e3686: add a success state to the copy markdown action
|
|
8
|
+
- Updated dependencies [5d6e5fa]
|
|
9
|
+
- @stainless-api/ui-primitives@0.1.0-beta.39
|
|
10
|
+
- @stainless-api/docs-ui@0.1.0-beta.52
|
|
11
|
+
- @stainless-api/docs-search@0.1.0-beta.4
|
|
12
|
+
|
|
3
13
|
## 0.1.0-beta.62
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.63",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"vite-plugin-prebundle-workers": "^0.2.0",
|
|
53
53
|
"web-worker": "^1.5.0",
|
|
54
54
|
"yaml": "^2.8.2",
|
|
55
|
-
"@stainless-api/docs-ui": "0.1.0-beta.
|
|
56
|
-
"@stainless-api/docs-search": "0.1.0-beta.
|
|
57
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
55
|
+
"@stainless-api/docs-ui": "0.1.0-beta.52",
|
|
56
|
+
"@stainless-api/docs-search": "0.1.0-beta.4",
|
|
57
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.39"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@astrojs/check": "^0.9.6",
|
|
@@ -226,8 +226,16 @@ export function wireAIDropdown() {
|
|
|
226
226
|
onSelect: (value) => {
|
|
227
227
|
triggerOption(value);
|
|
228
228
|
},
|
|
229
|
-
onPrimaryAction: () => {
|
|
229
|
+
onPrimaryAction: (el) => {
|
|
230
230
|
triggerOption(primaryAction.id);
|
|
231
|
+
const span = el.querySelector('[data-part="primary-action-text"]');
|
|
232
|
+
if (span) {
|
|
233
|
+
const originalContent = span.textContent;
|
|
234
|
+
span.textContent = 'Copied!';
|
|
235
|
+
setTimeout(() => {
|
|
236
|
+
span.textContent = originalContent;
|
|
237
|
+
}, 2000);
|
|
238
|
+
}
|
|
231
239
|
},
|
|
232
240
|
});
|
|
233
241
|
});
|