@rxdrag/website-lib 0.0.109 → 0.0.110
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/components/Link.astro +6 -7
- package/package.json +4 -4
package/components/Link.astro
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
import {
|
|
3
|
-
toHref,
|
|
4
|
-
type LinkType,
|
|
5
|
-
} from "@rxdrag/website-lib-core";
|
|
2
|
+
import { toHref, type LinkType } from "@rxdrag/website-lib-core";
|
|
6
3
|
|
|
7
4
|
import type { HTMLAttributes } from "astro/types";
|
|
8
5
|
|
|
@@ -42,12 +39,14 @@ const hrefObj = href ? { href } : {};
|
|
|
42
39
|
<slot />
|
|
43
40
|
</a>
|
|
44
41
|
|
|
45
|
-
<script
|
|
42
|
+
<script>
|
|
46
43
|
import { initLinks } from "@rxdrag/website-lib-core";
|
|
47
44
|
|
|
48
45
|
(() => {
|
|
49
|
-
const bindAstroLifecycle = (key, fn) => {
|
|
50
|
-
const w = window
|
|
46
|
+
const bindAstroLifecycle = (key: string, fn: () => void) => {
|
|
47
|
+
const w = window as typeof window & {
|
|
48
|
+
__astro_lifecycle_bound__?: Record<string, boolean>;
|
|
49
|
+
};
|
|
51
50
|
const bound = (w.__astro_lifecycle_bound__ ||= Object.create(null));
|
|
52
51
|
if (bound[key]) return;
|
|
53
52
|
bound[key] = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/website-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.110",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"eslint": "^7.32.0",
|
|
27
27
|
"gsap": "^3.12.7",
|
|
28
28
|
"typescript": "^5",
|
|
29
|
-
"@rxdrag/slate-preview": "1.2.63",
|
|
30
29
|
"@rxdrag/entify-hooks": "0.2.77",
|
|
30
|
+
"@rxdrag/tsconfig": "0.2.0",
|
|
31
|
+
"@rxdrag/slate-preview": "1.2.63",
|
|
31
32
|
"@rxdrag/rxcms-models": "0.3.96",
|
|
32
|
-
"@rxdrag/eslint-config-custom": "0.2.12"
|
|
33
|
-
"@rxdrag/tsconfig": "0.2.0"
|
|
33
|
+
"@rxdrag/eslint-config-custom": "0.2.12"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"aos": "3.0.0-beta.6",
|