@lwc-bolts/lightning-base-components 0.0.0-stage → 1.0.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.
@@ -0,0 +1,2 @@
1
+ export { LIGHTNING_COMPONENTS } from "./components.generated.ts";
2
+ export type { LightningComponent, LightningMember } from "./types.ts";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { LIGHTNING_COMPONENTS } from "./components.generated.js";
@@ -0,0 +1,13 @@
1
+ /** A property, method or event, with its TypeScript type. */
2
+ export interface LightningMember {
3
+ readonly type: string;
4
+ readonly description?: string;
5
+ }
6
+ export interface LightningComponent {
7
+ readonly description?: string;
8
+ /** Properties, by the name LWC sets (`max-length` sets `maxLength`), with the types they accept. */
9
+ readonly properties: Readonly<Record<string, LightningMember>>;
10
+ readonly methods: Readonly<Record<string, LightningMember>>;
11
+ /** Events, by the name `on<name>` handles, with the event's type. */
12
+ readonly events: Readonly<Record<string, LightningMember>>;
13
+ }
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ // The shape of the `lightning-*` base components' definitions in components.generated.ts.
2
+ export {};
package/package.json CHANGED
@@ -1,6 +1,44 @@
1
1
  {
2
2
  "name": "@lwc-bolts/lightning-base-components",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Definitions of the Salesforce lightning-* base components (properties, methods, events), consolidated from the LWC language server and the sfdx-lwc-jest stubs with manual overrides",
5
+ "type": "module",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "license": "MIT",
10
+ "author": {
11
+ "name": "Anthony Heber",
12
+ "email": "anthony@heber.dev",
13
+ "url": "https://github.com/aheber"
14
+ },
15
+ "engines": {
16
+ "node": ">=22.18"
17
+ },
18
+ "exports": {
19
+ ".": {
20
+ "@lwc-bolts/source": "./src/index.ts",
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "README.md"
28
+ ],
29
+ "scripts": {
30
+ "prebuild": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
31
+ "build": "tsc -p tsconfig.build.json",
32
+ "prepack": "npm run build",
33
+ "typecheck": "tsc -p tsconfig.json",
34
+ "test": "node --conditions=@lwc-bolts/source --test 'test/**/*.test.ts'",
35
+ "generate": "node scripts/generate.ts",
36
+ "compare-docs": "node scripts/compare-docs.ts"
37
+ },
38
+ "devDependencies": {
39
+ "@lwc/template-compiler": "~9.4.3",
40
+ "@types/node": "^22.20.5",
41
+ "jsonc-parser": "^3.3.1",
42
+ "typescript": "7.1.0-beta"
43
+ }
44
+ }