@rxdrag/website-lib 0.0.108 → 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.
@@ -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 is:inline>
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.108",
3
+ "version": "0.0.110",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts",
@@ -27,18 +27,18 @@
27
27
  "gsap": "^3.12.7",
28
28
  "typescript": "^5",
29
29
  "@rxdrag/entify-hooks": "0.2.77",
30
+ "@rxdrag/tsconfig": "0.2.0",
30
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",
37
37
  "clsx": "^2.1.0",
38
38
  "react": "^19.1.0",
39
39
  "react-dom": "^19.1.0",
40
- "@rxdrag/website-lib-core": "0.0.105",
41
- "@rxdrag/rxcms-models": "0.3.96"
40
+ "@rxdrag/rxcms-models": "0.3.96",
41
+ "@rxdrag/website-lib-core": "0.0.106"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "astro": "^4.0.0 || ^5.0.0"