@lynx-js/luna-stage 0.1.1 → 0.1.3

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 ADDED
@@ -0,0 +1,32 @@
1
+ # @lynx-js/luna-stage
2
+
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Include missing README/CHANGELOG/SKILL/LICENSE files in published tarballs and exclude test and workspace-only config files. ([#404](https://github.com/lynx-family/lynx-ui/pull/404))
8
+
9
+ ## 0.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies []:
14
+ - @lynx-js/luna-core@0.2.3
15
+
16
+ ## 0.1.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies []:
21
+ - @lynx-js/luna-core@0.2.2
22
+
23
+ ## 0.1.0
24
+
25
+ ### Minor Changes
26
+
27
+ - Add the initial `@lynx-js/luna-stage` source package. ([#240](https://github.com/lynx-family/lynx-ui/pull/240))
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [[`f80b5cc`](https://github.com/lynx-family/lynx-ui/commit/f80b5ccecd8444ac06428f30475eb14d764ce8d7)]:
32
+ - @lynx-js/luna-core@0.2.1
@@ -1 +1 @@
1
- {"version":3,"file":"hooks/use-merged-refs.js","sources":["../../src/hooks/use-merged-refs.ts"],"sourcesContent":["// Copyright 2026 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n\nimport { useMemo } from 'react'\nimport type { Ref } from 'react'\n\ntype PossibleRef<T> = Ref<T> | undefined\ninterface WritableRefObject<T> {\n current: T | null\n}\n\nfunction setRef<T>(\n ref: PossibleRef<T>,\n value: T | null,\n): void {\n if (typeof ref === 'function') {\n ref(value)\n } else if (\n ref !== undefined && ref !== null && typeof ref === 'object'\n && 'current' in ref\n ) {\n ;(ref as WritableRefObject<T>).current = value\n }\n}\n\nfunction mergeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T | null) => {\n refs.forEach(ref => {\n setRef(ref, node)\n })\n }\n}\n\nexport function useMergedRefs<T>(\n ...refs: PossibleRef<T>[]\n): (node: T | null) => void {\n // biome-ignore lint/correctness/useExhaustiveDependencies: refs is the dependency list for the merged ref callback.\n return useMemo(() => mergeRefs(...refs), refs)\n}\n"],"names":["setRef","ref","value","mergeRefs","refs","node","useMergedRefs","useMemo"],"mappings":";AAYA,SAASA,OACPC,GAAmB,EACnBC,KAAe;IAEf,IAAI,AAAe,cAAf,OAAOD,KACTA,IAAIC;SACC,IACLD,QAAAA,OAAqC,AAAe,YAAf,OAAOA,OACzC,aAAaA,KAEdA,IAA6B,OAAO,GAAGC;AAE7C;AAEA,SAASC,UAAa,GAAGC,IAAsB;IAC7C,OAAO,CAACC;QACND,KAAK,OAAO,CAACH,CAAAA;YACXD,OAAOC,KAAKI;QACd;IACF;AACF;AAEO,SAASC,cACd,GAAGF,IAAsB;IAGzB,OAAOG,QAAQ,IAAMJ,aAAaC,OAAOA;AAC3C"}
1
+ {"version":3,"file":"hooks/use-merged-refs.js","sources":["../../src/hooks/use-merged-refs.ts"],"sourcesContent":["// Copyright 2026 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n\nimport { useMemo } from 'react'\nimport type { Ref } from 'react'\n\ntype PossibleRef<T> = Ref<T> | undefined\ninterface WritableRefObject<T> {\n current: T | null\n}\n\nfunction setRef<T>(\n ref: PossibleRef<T>,\n value: T | null,\n): void {\n if (typeof ref === 'function') {\n ref(value)\n } else if (\n ref !== undefined && ref !== null && typeof ref === 'object'\n && 'current' in ref\n ) {\n ;(ref as WritableRefObject<T>).current = value\n }\n}\n\nfunction mergeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T | null) => {\n refs.forEach(ref => {\n setRef(ref, node)\n })\n }\n}\n\nexport function useMergedRefs<T>(\n ...refs: PossibleRef<T>[]\n): (node: T | null) => void {\n // eslint-disable-next-line react-hooks/exhaustive-deps -- refs is the dependency list\n return useMemo(() => mergeRefs(...refs), refs)\n}\n"],"names":["setRef","ref","value","mergeRefs","refs","node","useMergedRefs","useMemo"],"mappings":";AAYA,SAASA,OACPC,GAAmB,EACnBC,KAAe;IAEf,IAAI,AAAe,cAAf,OAAOD,KACTA,IAAIC;SACC,IACLD,QAAAA,OAAqC,AAAe,YAAf,OAAOA,OACzC,aAAaA,KAEdA,IAA6B,OAAO,GAAGC;AAE7C;AAEA,SAASC,UAAa,GAAGC,IAAsB;IAC7C,OAAO,CAACC;QACND,KAAK,OAAO,CAACH,CAAAA;YACXD,OAAOC,KAAKI;QACd;IACF;AACF;AAEO,SAASC,cACd,GAAGF,IAAsB;IAGzB,OAAOG,QAAQ,IAAMJ,aAAaC,OAAOA;AAC3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/luna-stage",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Stage system and showcase components for the L.U.N.A project",
5
5
  "keywords": [
6
6
  "luna",
@@ -38,14 +38,15 @@
38
38
  "types": "./dist/index.d.ts",
39
39
  "files": [
40
40
  "dist",
41
+ "CHANGELOG.md",
41
42
  "LICENSE",
42
43
  "README.md"
43
44
  ],
44
45
  "dependencies": {
45
- "@lynx-js/luna-core": "0.2.2"
46
+ "@lynx-js/luna-core": "0.2.3"
46
47
  },
47
48
  "devDependencies": {
48
- "@lynx-js/web-core": "0.23.0",
49
+ "@lynx-js/web-core": "0.26.2",
49
50
  "@rsbuild/plugin-react": "2.1.0",
50
51
  "@rslib/core": "0.23.2",
51
52
  "@testing-library/jest-dom": "6.9.1",