@taskctrl/canvas-timeline 0.3.0 → 0.4.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/dist/types.d.ts
CHANGED
|
@@ -149,6 +149,9 @@ export interface CanvasTimelineProps {
|
|
|
149
149
|
selected?: number[];
|
|
150
150
|
/** Called when the timeline is ready, providing the capture API */
|
|
151
151
|
onReady?: (api: CanvasTimelineRef) => void;
|
|
152
|
+
/** Dev-only: show a version + build-time badge in the top-left corner.
|
|
153
|
+
* Wire to your app's dev flag, e.g. `devBadge={import.meta.env.DEV}`. */
|
|
154
|
+
devBadge?: boolean;
|
|
152
155
|
children?: React.ReactNode;
|
|
153
156
|
}
|
|
154
157
|
export interface CaptureOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskctrl/canvas-timeline",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "High-performance canvas-based timeline component for React",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf ./dist && tsc && vite build",
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"test:watch": "vitest",
|
|
9
9
|
"test:coverage": "vitest run --coverage",
|
|
10
10
|
"lint": "eslint --ext .ts --ext .tsx ./src",
|
|
11
|
+
"local": "LIB_DEV=1 yarn build && npx -y yalc push --sig",
|
|
12
|
+
"local:watch": "LOCAL_DEV=1 LIB_DEV=1 vite build --watch",
|
|
11
13
|
"prepublishOnly": "yarn build",
|
|
12
14
|
"release": "yarn release:patch",
|
|
13
15
|
"release:patch": "npm version patch -m \"chore: release v%s\" && git push origin HEAD --follow-tags",
|