starlight-cannoli-plugins 2.18.0 → 2.19.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.
@@ -81,6 +81,22 @@ var pageSrcStyles = css`
81
81
  background: var(--sl-color-bg-nav);
82
82
  }
83
83
 
84
+ @keyframes page-src-glow {
85
+ 0% {
86
+ box-shadow: 0 0 0 0 transparent;
87
+ }
88
+ 30% {
89
+ box-shadow: 0 0 12px 4px var(--sl-color-accent);
90
+ }
91
+ 100% {
92
+ box-shadow: 0 0 0 0 transparent;
93
+ }
94
+ }
95
+
96
+ .page-src-action-bar__btn--glow {
97
+ animation: page-src-glow 1s ease-out;
98
+ }
99
+
84
100
  .page-src-action-bar__btn--loading {
85
101
  cursor: default;
86
102
  pointer-events: none;
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  import "./chunk-LJWSZSPB.js";
17
17
  import {
18
18
  syncDocsToPublic
19
- } from "./chunk-BM7LMGAH.js";
19
+ } from "./chunk-EKPDDOOG.js";
20
20
  import {
21
21
  parseFrontmatter
22
22
  } from "./chunk-EEPQVOZC.js";
@@ -126,6 +126,12 @@ function createActionBar(options) {
126
126
  });
127
127
  bar.appendChild(menuBtn);
128
128
  bar.appendChild(menu);
129
+ menuBtn.classList.add("page-src-action-bar__btn--glow");
130
+ menuBtn.addEventListener(
131
+ "animationend",
132
+ () => menuBtn.classList.remove("page-src-action-bar__btn--glow"),
133
+ { once: true }
134
+ );
129
135
  return bar;
130
136
  }
131
137
  function initPageActionBar(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  syncDocsToPublic
3
- } from "../chunk-BM7LMGAH.js";
3
+ } from "../chunk-EKPDDOOG.js";
4
4
  import "../chunk-EEPQVOZC.js";
5
5
  import "../chunk-7D2KLZGE.js";
6
6
  import "../chunk-4VNS5WPM.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-cannoli-plugins",
3
3
  "type": "module",
4
- "version": "2.18.0",
4
+ "version": "2.19.0",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",