Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
940 changes: 940 additions & 0 deletions .yarn/releases/yarn-4.13.0.cjs

Large diffs are not rendered by default.

925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.5.0.cjs

This file was deleted.

7 changes: 6 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
npmMinimalAgeGate: 1440

npmPreapprovedPackages:
- "@lightsparkdev/*"

yarnPath: .yarn/releases/yarn-4.13.0.cjs
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build-sb": "turbo run build-sb",
"build": "turbo run build",
"build:watch": "turbo run build:watch",
"checks": "yarn deps:check && turbo gql-codegen && turbo run lint format circular-deps package:checks",
"checks": "yarn deps:check && turbo run gql-codegen lint format circular-deps package:checks",
"test-cmd": "turbo run test",
"circular-deps": "turbo run circular-deps",
"clean": "turbo run clean",
Expand Down Expand Up @@ -65,8 +65,11 @@
"built": false
}
},
"resolutions": {
"axios": "1.7.7"
},
"engines": {
"node": ">=18"
},
"packageManager": "yarn@4.5.0"
"packageManager": "yarn@4.13.0"
}
6 changes: 0 additions & 6 deletions packages/origin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Changelog

## 0.14.2

### Patch Changes

- 5ef5b36: - Add initialWidth prop to Origin charts for SSR support

## 0.14.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/origin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightsparkdev/origin",
"version": "0.14.2",
"version": "0.14.1",
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface InteractionInfo {
name: string;
component: string;
interaction: InteractionType;
metadata?: Record<string, unknown>;
metadata?: Record<string, unknown> | undefined;
}

export interface AnalyticsHandler {
Expand Down
16 changes: 8 additions & 8 deletions packages/origin/src/components/Chart/ChartWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import { Skeleton } from "../Skeleton";
import styles from "./Chart.module.scss";

export interface ChartWrapperProps {
ref?: React.Ref<HTMLDivElement>;
loading?: boolean;
empty?: React.ReactNode;
ref?: React.Ref<HTMLDivElement> | undefined;
loading?: boolean | undefined;
empty?: React.ReactNode | undefined;
dataLength: number;
isEmpty?: boolean;
isEmpty?: boolean | undefined;
height: number;
legend?: boolean;
series?: ResolvedSeries[];
legend?: boolean | undefined;
series?: ResolvedSeries[] | undefined;
children: React.ReactNode;
className?: string;
ariaLiveContent?: string;
className?: string | undefined;
ariaLiveContent?: string | undefined;
}

export function ChartWrapper({
Expand Down
6 changes: 4 additions & 2 deletions packages/origin/src/components/Chart/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ export interface ChartInteractionOptions {
tooltipMode: TooltipMode;
interpolatorsRef: React.RefObject<CurveInterpolator[]>;
data: ChartDatum[];
onActiveChange?: (index: number | null, datum: ChartDatum | null) => void;
onActivate?: (index: number, datum: ChartDatum) => void;
onActiveChange?:
| ((index: number | null, datum: ChartDatum | null) => void)
| undefined;
onActivate?: ((index: number, datum: ChartDatum) => void) | undefined;
}

export function useChartInteraction(opts: ChartInteractionOptions) {
Expand Down
2 changes: 1 addition & 1 deletion packages/origin/src/components/Command/parts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface CommandGroup {

interface CommandContextValue {
onSelect: (item: CommandItem) => void;
renderItem?: (item: CommandItem) => React.ReactNode;
renderItem?: ((item: CommandItem) => React.ReactNode) | undefined;
}

const CommandContext = React.createContext<CommandContextValue | null>(null);
Expand Down
4 changes: 2 additions & 2 deletions packages/origin/src/components/DatePicker/parts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@
setDate: (which: "start" | "end", date: Date) => void;
setTime: (which: "start" | "end", hours: number, minutes: number) => void;
isDateDisabled: (date: Date) => boolean;
min?: Date;
max?: Date;
min?: Date | undefined;
max?: Date | undefined;

locale: string;
weekStartsOn: 0 | 1;
Expand Down Expand Up @@ -1234,7 +1234,7 @@
const isFocused = isSameDay(date, ctx.focusedDate);
return (
<td key={date.getTime()} className={styles.dayCell}>
<button

Check warning on line 1237 in packages/origin/src/components/DatePicker/parts.tsx

View workflow job for this annotation

GitHub Actions / checks

The attribute aria-selected is not supported by the role button. This role is implicit on the element button
type="button"
className={styles.dayButton}
tabIndex={isFocused ? 0 : -1}
Expand Down
2 changes: 1 addition & 1 deletion packages/origin/src/lib/base-ui-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export interface ChangeEventDetails<E = Event> {
allowPropagation: () => void;
isCanceled: boolean;
isPropagationAllowed: boolean;
trigger?: HTMLElement;
trigger?: HTMLElement | undefined;
}

export function createChangeEventDetails<E = Event>(
Expand Down
2 changes: 1 addition & 1 deletion packages/origin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"target": "ES2017",
"isolatedModules": true,
"incremental": true,
"exactOptionalPropertyTypes": false,
"exactOptionalPropertyTypes": true,
"paths": {
"@/*": ["./src/*"],
"@test-utils": ["./test-utils"],
Expand Down
14 changes: 7 additions & 7 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"outputs": ["storybook-static/**"]
},
"circular-deps": {
"dependsOn": []
"dependsOn": ["gql-codegen"]
},
"clean": {
"cache": false
Expand All @@ -32,20 +32,20 @@
"outputs": ["docs/**"]
},
"format": {
"dependsOn": []
"dependsOn": ["gql-codegen"]
},
"format:fix": {
"dependsOn": []
"dependsOn": ["gql-codegen"]
},
"gql-codegen": {
/* Always run codegen since it depends on files external to the workspace: */
"cache": false
},
"lint": {
"dependsOn": ["^build"]
"dependsOn": ["^build", "gql-codegen"]
},
"lint:fix": {
"dependsOn": ["^build"]
"dependsOn": ["^build", "gql-codegen"]
},
"lint:watch": {
"cache": false,
Expand All @@ -64,7 +64,7 @@
"persistent": true
},
"test": {
"dependsOn": ["^build"]
"dependsOn": ["^build", "gql-codegen"]
},
"test:ui": {
"dependsOn": ["^build"]
Expand All @@ -73,7 +73,7 @@
"dependsOn": ["^build"]
},
"types": {
"dependsOn": ["^build"]
"dependsOn": ["^build", "gql-codegen"]
},
"types:watch": {
"cache": false,
Expand Down
Loading