Skip to content

Commit 1bea495

Browse files
Merge pull request #110 from linked-planet/dev
Dev
2 parents a35bf5e + e2675de commit 1bea495

23 files changed

+158
-2112
lines changed

.github/workflows/default.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ jobs:
5252
- uses: actions/checkout@v4
5353
- uses: actions/setup-node@v4
5454
with:
55-
node-version: "21"
56-
- uses: oven-sh/setup-bun@v2
55+
node-version: "22"
5756

5857
- name: Get release version
5958
id: release
@@ -71,12 +70,12 @@ jobs:
7170
run: npm version --no-git-tag-version ${{ steps.release.outputs.short_version }}
7271

7372
- name: Install Dependencies
74-
run: bun install
73+
run: npm install
7574

7675
- name: Build Release
77-
run: bun run build:lib
76+
run: npm run build:lib
7877

7978
- name: Publish to npmjs
80-
run: bun publish --access public
79+
run: npm publish --access public
8180
env:
8281
NPM_CONFIG_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

bun.lock

Lines changed: 0 additions & 2071 deletions
This file was deleted.

library/src/components/Calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020

2121
import ChevronLeftLargeIcon from "@atlaskit/icon/glyph/chevron-left-large"
2222
import ChevronRightLargeIcon from "@atlaskit/icon/glyph/chevron-right-large"
23-
import dayjs, { type Dayjs } from "dayjs"
23+
import dayjs, { type Dayjs } from "dayjs/esm"
2424
import {
2525
type Control,
2626
Controller,

library/src/components/EventList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMemo } from "react"
2-
import type { Dayjs } from "dayjs"
2+
import type { Dayjs } from "dayjs/esm"
33
import { twMerge } from "tailwind-merge"
44
import type { TimeType } from "../utils"
55

library/src/components/inputs/datetimepicker/TimePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "react"
88
import type { TimeType } from "../../../utils/DateUtils"
99
import { DateUtils } from "../../../utils"
10-
import dayjs from "dayjs"
10+
import dayjs from "dayjs/esm"
1111
import type { FieldValues } from "react-hook-form"
1212
import { Select, type SelectInFormProps, type SelectProps } from "../Select"
1313
import { twMerge } from "tailwind-merge"

library/src/components/timetable/CreateNewItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import dayjs, { type Dayjs } from "dayjs"
1+
import dayjs, { type Dayjs } from "dayjs/esm"
22
import { useState } from "react"
33
import type { TimeSlotBooking, TimeTableGroup } from "./TimeTable"
44
import { Modal } from "../Modal"

library/src/components/timetable/PlaceholderItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Dayjs } from "dayjs"
1+
import type { Dayjs } from "dayjs/esm"
22
import type { TimeTableGroup } from "./TimeTable"
33
import { usePlaceHolderItemComponent } from "./TimeTableComponentStore"
44
import { useTimeTableIdent } from "./TimeTableIdentContext"

library/src/components/timetable/TimeTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import dayjs, { type Dayjs } from "dayjs"
1+
import dayjs, { type Dayjs } from "dayjs/esm"
22
import type React from "react"
33
import { type MutableRefObject, useCallback, useEffect, useRef } from "react"
44
import { InlineMessage } from "../InlineMessage"

library/src/components/timetable/TimeTableConfigStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { proxy, snapshot, useSnapshot } from "valtio"
22
import type { TimeTableGroup, TimeTableViewType } from "./TimeTable"
33
import { calculateTimeSlotPropertiesForView } from "./timeTableUtils"
4-
import type { Dayjs } from "dayjs"
4+
import type { Dayjs } from "dayjs/esm"
55
import { clearTimeSlotSelection } from "./TimeTableSelectionStore"
66

77
export type TimeTableConfig<G extends TimeTableGroup> = {

library/src/components/timetable/TimeTableHeader.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import dayjs, { type Dayjs } from "dayjs"
2-
import weekOfYear from "dayjs/plugin/weekOfYear"
3-
import weekYear from "dayjs/plugin/weekYear"
4-
import localeData from "dayjs/plugin/localeData"
5-
import utc from "dayjs/plugin/utc"
1+
import dayjs, { type Dayjs } from "dayjs/esm"
2+
import weekOfYear from "dayjs/esm/plugin/weekOfYear"
3+
import weekYear from "dayjs/esm/plugin/weekYear"
4+
import localeData from "dayjs/esm/plugin/localeData"
5+
import utc from "dayjs/esm/plugin/utc"
66
dayjs.extend(weekOfYear)
77
dayjs.extend(weekYear)
88
dayjs.extend(localeData)
@@ -11,11 +11,11 @@ import type React from "react"
1111
import { Fragment, type RefObject, useCallback, useRef, useState } from "react"
1212

1313
// if more locales then english and germans are needed, we need to enable them first here
14-
import "dayjs/locale/de"
15-
//import "dayjs/locale/es"
16-
//import "dayjs/locale/fr"
17-
//import "dayjs/locale/it"
18-
//import "dayjs/locale/nl"
14+
import "dayjs/esm/locale/de"
15+
//import "dayjs/esm/locale/es"
16+
//import "dayjs/esm/locale/fr"
17+
//import "dayjs/esm/locale/it"
18+
//import "dayjs/esm/locale/nl"
1919

2020
import type {
2121
TimeSlotBooking,

0 commit comments

Comments
 (0)