@astryxdesign/charts 0.0.0-bootstrap.0 → 0.1.3-canary.e3beb97

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 @@
1
+ # @astryxdesign/charts
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Meta Platforms, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,33 @@
1
1
  # @astryxdesign/charts
2
2
 
3
- This is a `0.0.0-bootstrap.0` placeholder published only to claim the npm name while configuring npm trusted publishing. Do not install it; it will be superseded by the first real release.
3
+ Astryx chart components. This package provides thin, themeable wrappers over a peer charting engine — it owns the design-system surface while leaving the rendering engine as a peer dependency the consumer manages.
4
+
5
+ It ships to npm **only under the `@canary` dist-tag** — there is never a stable (`latest`) release yet.
6
+
7
+ ## Status
8
+
9
+ **Bootstrap scaffold.** The package is set up and building but ships no components yet. Add components under `src/` and export them from `src/index.ts`. The StyleX + Astryx-token build setup mirrors `@astryxdesign/lab`, so components can consume `@astryxdesign/core` theme tokens directly.
10
+
11
+ > When the first component adds StyleX styles, wire up a pre-compiled stylesheet the same way `lab` does: add a `charts` target to `scripts/build-css.mjs`, restore the `build:css` script and the `./charts.css` export in `package.json`, and document the `import '@astryxdesign/charts/charts.css'` step below.
12
+
13
+ ## Usage
14
+
15
+ Inside the monorepo (storybook/sandbox), imports resolve via pnpm workspaces:
16
+
17
+ ```tsx
18
+ import {} from /* ... */ '@astryxdesign/charts';
19
+ ```
20
+
21
+ ### Trying charts in your own project (canary)
22
+
23
+ `@astryxdesign/charts` is published **only** under the `@canary` dist-tag, so you must request that tag explicitly. There is no `latest` version to install.
24
+
25
+ ```bash
26
+ npm install @astryxdesign/charts@canary @astryxdesign/core@canary
27
+ ```
28
+
29
+ > Canary builds track the latest commit on `main` (`0.x.y-canary.<sha>`). They can break between any two versions — pin an exact version if you need stability.
30
+
31
+ ## Why no stable release?
32
+
33
+ `package.json` keeps `"private": true` plus an `"astryx": { "canaryOnly": true }` marker. The release workflow's stable (`latest`) job skips both private and `canaryOnly` packages, while the canary job strips `private` in its ephemeral CI checkout only (never in git) to publish the `@canary` tag. The committed `private: true` is npm's hard guarantee that no stable publish can ever happen — **do not remove it.**
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @astryxdesign/charts — Astryx chart components
3
+ *
4
+ * Thin, themeable wrappers over a peer charting engine. This package owns the
5
+ * design-system surface while leaving the rendering engine as a peer
6
+ * dependency the consumer manages.
7
+ *
8
+ * This package is published to npm ONLY under the @canary dist-tag
9
+ * (npm install @astryxdesign/charts@canary). It is never released as a
10
+ * stable (latest) version.
11
+ *
12
+ * Bootstrap scaffold — no components yet. Add exports here as components land.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @astryxdesign/charts — Astryx chart components
5
+ *
6
+ * Thin, themeable wrappers over a peer charting engine. This package owns the
7
+ * design-system surface while leaving the rendering engine as a peer
8
+ * dependency the consumer manages.
9
+ *
10
+ * This package is published to npm ONLY under the @canary dist-tag
11
+ * (npm install @astryxdesign/charts@canary). It is never released as a
12
+ * stable (latest) version.
13
+ *
14
+ * Bootstrap scaffold — no components yet. Add exports here as components land.
15
+ */
16
+
17
+ export {};
package/package.json CHANGED
@@ -1,11 +1,58 @@
1
1
  {
2
2
  "name": "@astryxdesign/charts",
3
- "version": "0.0.0-bootstrap.0",
4
- "description": "Placeholder published to claim the npm name during trusted publishing setup. Do not install.",
5
- "homepage": "https://github.com/facebook/astryx",
3
+ "version": "0.1.3-canary.e3beb97",
4
+ "description": "Astryx chart components — thin, themeable wrappers over a peer charting engine. Published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
5
+ "author": "Meta Open Source",
6
6
  "license": "MIT",
7
+ "homepage": "https://github.com/facebook/astryx#readme",
7
8
  "repository": {
8
9
  "type": "git",
9
- "url": "git+https://github.com/facebook/astryx.git"
10
+ "url": "git+https://github.com/facebook/astryx.git",
11
+ "directory": "packages/charts"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/facebook/astryx/issues"
15
+ },
16
+ "keywords": [
17
+ "astryx",
18
+ "charts",
19
+ "data-visualization",
20
+ "design-system"
21
+ ],
22
+ "astryx": {
23
+ "canaryOnly": true,
24
+ "_comment": "Published ONLY to the @canary dist-tag (see .github/workflows/release.yml). Never published as a stable `latest` release. `private: true` is intentional and must stay — it is npm's hard guarantee against an accidental stable publish."
25
+ },
26
+ "main": "./dist/index.js",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "sideEffects": false,
30
+ "files": [
31
+ "dist",
32
+ "src",
33
+ "README.md",
34
+ "CHANGELOG.md"
35
+ ],
36
+ "exports": {
37
+ ".": {
38
+ "source": "./src/index.ts",
39
+ "types": "./dist/index.d.ts",
40
+ "default": "./dist/index.js"
41
+ }
42
+ },
43
+ "peerDependencies": {
44
+ "@stylexjs/stylex": ">=0.10.0",
45
+ "@astryxdesign/core": "0.1.3-canary.e3beb97",
46
+ "react": ">=19.0.0",
47
+ "react-dom": ">=19.0.0"
48
+ },
49
+ "scripts": {
50
+ "build": "rm -rf dist && pnpm build:esm && tsc --project tsconfig.build.json",
51
+ "build:esm": "babel src --out-dir dist --extensions '.ts,.tsx' --out-file-extension '.js' --ignore '**/*.test.ts,**/*.test.tsx,**/__tests__/**,**/*.perf.test.*,**/*.doc.mjs,**/*.d.ts,**/*.css,**/*.css.d.ts' --config-file ./babel.config.js",
52
+ "dev": "babel src --watch --out-dir dist --extensions '.ts,.tsx' --out-file-extension '.js' --ignore '**/*.test.*,**/*.doc.mjs,**/*.d.ts,**/*.css*' --config-file ./babel.config.js",
53
+ "test": "vitest run --root ../..",
54
+ "test:watch": "vitest --root ../..",
55
+ "lint": "eslint src",
56
+ "typecheck": "tsc --project tsconfig.json --noEmit"
10
57
  }
11
- }
58
+ }
package/src/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @astryxdesign/charts — Astryx chart components
5
+ *
6
+ * Thin, themeable wrappers over a peer charting engine. This package owns the
7
+ * design-system surface while leaving the rendering engine as a peer
8
+ * dependency the consumer manages.
9
+ *
10
+ * This package is published to npm ONLY under the @canary dist-tag
11
+ * (npm install @astryxdesign/charts@canary). It is never released as a
12
+ * stable (latest) version.
13
+ *
14
+ * Bootstrap scaffold — no components yet. Add exports here as components land.
15
+ */
16
+
17
+ export {};