@weasel-js/labkit 0.7.1 → 0.8.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.
package/package.json CHANGED
@@ -1,8 +1,22 @@
1
1
  {
2
2
  "name": "@weasel-js/labkit",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "React widgets for building self-contained interactive lab pages",
5
+ "license": "MIT",
6
+ "author": "orochi235",
7
+ "homepage": "https://orochi235.github.io/weasel/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/orochi235/weasel.git",
11
+ "directory": "packages/labkit"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/orochi235/weasel/issues"
15
+ },
5
16
  "type": "module",
17
+ "engines": {
18
+ "node": ">=22"
19
+ },
6
20
  "files": [
7
21
  "dist",
8
22
  "src",
@@ -57,6 +71,25 @@
57
71
  "./theme-light.css": "./dist/theme-light.css",
58
72
  "./theme-interstellar.css": "./dist/theme-interstellar.css"
59
73
  },
74
+ "scripts": {
75
+ "dev": "vite",
76
+ "dev:drag": "LABKIT_EXAMPLE=drag-lab vite",
77
+ "dev:weasel": "LABKIT_EXAMPLE=weasel-lab vite",
78
+ "build": "tsup && npm run build:dts && npm run build:css && npm run build:fonts",
79
+ "build:dts": "tsx scripts/build-dts.mts",
80
+ "prepublishOnly": "npm run build",
81
+ "build:css": "lessc src/styles.less dist/styles.css && lessc src/theme/light.less dist/theme-light.css && lessc src/theme/interstellar.less dist/theme-interstellar.css",
82
+ "build:fonts": "mkdir -p dist/fonts && cp ../theme/fonts/*.woff2 dist/fonts/",
83
+ "test": "vitest run",
84
+ "test:watch": "vitest",
85
+ "test:smoke:consumer": "node scripts/smoke-consumer-bundle.mjs",
86
+ "lint": "biome check . && tsx scripts/check-class-prefix.ts",
87
+ "lint:fix": "biome check --write .",
88
+ "format": "biome format --write .",
89
+ "docs:dev": "vitepress dev docs",
90
+ "docs:build": "vitepress build docs",
91
+ "docs:preview": "vitepress preview docs"
92
+ },
60
93
  "peerDependencies": {
61
94
  "react": "^19.0.0",
62
95
  "react-dom": "^19.0.0"
@@ -72,28 +105,15 @@
72
105
  "@rollup/plugin-alias": "^6.0.0",
73
106
  "@testing-library/jest-dom": "^6.6.0",
74
107
  "@weasel-js/modes": "*",
108
+ "@weasel-js/theme": "*",
75
109
  "@weasel-js/ui": "*",
76
110
  "less": "^4.2.0",
77
111
  "rollup-plugin-dts": "^6.4.1",
78
112
  "tsx": "^4.19.0",
79
113
  "vitepress": "^1.6.4"
80
114
  },
81
- "scripts": {
82
- "dev": "vite",
83
- "dev:drag": "LABKIT_EXAMPLE=drag-lab vite",
84
- "dev:weasel": "LABKIT_EXAMPLE=weasel-lab vite",
85
- "build": "tsup && npm run build:dts && npm run build:css && npm run build:fonts",
86
- "build:dts": "tsx scripts/build-dts.mts",
87
- "build:css": "lessc src/styles.less dist/styles.css && lessc src/theme/light.less dist/theme-light.css && lessc src/theme/interstellar.less dist/theme-interstellar.css",
88
- "build:fonts": "mkdir -p dist/fonts && cp src/fonts/*.woff2 dist/fonts/",
89
- "test": "vitest run",
90
- "test:watch": "vitest",
91
- "test:smoke:consumer": "node scripts/smoke-consumer-bundle.mjs",
92
- "lint": "biome check . && tsx scripts/check-class-prefix.ts",
93
- "lint:fix": "biome check --write .",
94
- "format": "biome format --write .",
95
- "docs:dev": "vitepress dev docs",
96
- "docs:build": "vitepress build docs",
97
- "docs:preview": "vitepress preview docs"
115
+ "publishConfig": {
116
+ "access": "public",
117
+ "provenance": true
98
118
  }
99
- }
119
+ }
@@ -1,10 +1,11 @@
1
1
  @import './tokens.less';
2
2
 
3
- // Self-hosted Oswald (variable font, weights 100900) for the headline typeface.
3
+ // Self-hosted Oswald (variable font, wght axis 200700) for the headline
4
+ // typeface. Sourced from @weasel-js/theme; build:fonts copies it into dist/fonts.
4
5
  @font-face {
5
6
  font-family: 'Oswald';
6
7
  font-style: normal;
7
- font-weight: 100 900;
8
+ font-weight: 200 700;
8
9
  font-display: swap;
9
10
  // URL is resolved relative to the COMPILED stylesheet at dist/styles.css,
10
11
  // so this points to dist/fonts/. Source-tree usage (less compilation