@sunsama/event-calendar 0.2.0 → 0.2.2
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/lib/commonjs/components/all-day-events.js +2 -2
- package/lib/commonjs/components/background-hours-content.js +1 -1
- package/lib/commonjs/components/background-hours-content.js.map +1 -1
- package/lib/commonjs/components/background-hours-layout.js +1 -1
- package/lib/commonjs/components/background-hours-layout.js.map +1 -1
- package/lib/commonjs/components/edit-event-container.js +5 -5
- package/lib/commonjs/components/event-container.js +2 -2
- package/lib/commonjs/components/event-container.js.map +1 -1
- package/lib/commonjs/components/new-event-container.js +2 -2
- package/lib/commonjs/components/new-event-container.js.map +1 -1
- package/lib/commonjs/components/time-indicator.js +1 -1
- package/lib/commonjs/components/timed-event-container.js +5 -5
- package/lib/commonjs/components/timed-event-container.js.map +1 -1
- package/lib/commonjs/components/timed-events.js +8 -8
- package/lib/commonjs/components/timed-events.js.map +1 -1
- package/lib/commonjs/components/zoom-provider.js +3 -3
- package/lib/commonjs/components/zoom-provider.js.map +1 -1
- package/lib/commonjs/hooks/use-is-editing.js +3 -3
- package/lib/commonjs/hooks/use-is-editing.js.map +1 -1
- package/lib/commonjs/index.js +20 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/calendar-layout.js +1 -1
- package/lib/commonjs/utils/generate-event-layouts.js +4 -4
- package/lib/commonjs/utils/generate-event-layouts.js.map +1 -1
- package/lib/module/components/all-day-events.js +2 -2
- package/lib/module/components/all-day-events.js.map +1 -1
- package/lib/module/components/background-hours-content.js +1 -1
- package/lib/module/components/background-hours-content.js.map +1 -1
- package/lib/module/components/background-hours-layout.js +1 -1
- package/lib/module/components/background-hours-layout.js.map +1 -1
- package/lib/module/components/edit-event-container.js +5 -5
- package/lib/module/components/edit-event-container.js.map +1 -1
- package/lib/module/components/event-container.js +2 -2
- package/lib/module/components/event-container.js.map +1 -1
- package/lib/module/components/new-event-container.js +2 -2
- package/lib/module/components/new-event-container.js.map +1 -1
- package/lib/module/components/time-indicator.js +1 -1
- package/lib/module/components/time-indicator.js.map +1 -1
- package/lib/module/components/timed-event-container.js +5 -5
- package/lib/module/components/timed-event-container.js.map +1 -1
- package/lib/module/components/timed-events.js +8 -8
- package/lib/module/components/timed-events.js.map +1 -1
- package/lib/module/components/zoom-provider.js +3 -3
- package/lib/module/components/zoom-provider.js.map +1 -1
- package/lib/module/hooks/use-is-editing.js +3 -3
- package/lib/module/hooks/use-is-editing.js.map +1 -1
- package/lib/module/index.js +8 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/calendar-layout.js +1 -1
- package/lib/module/utils/calendar-layout.js.map +1 -1
- package/lib/module/utils/generate-event-layouts.js +4 -4
- package/lib/module/utils/generate-event-layouts.js.map +1 -1
- package/lib/typescript/commonjs/components/background-hours-content.d.ts +1 -1
- package/lib/typescript/commonjs/components/background-hours-content.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/background-hours-layout.d.ts +1 -1
- package/lib/typescript/commonjs/components/background-hours-layout.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/event-container.d.ts +1 -1
- package/lib/typescript/commonjs/components/event-container.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/timed-event-container.d.ts +1 -1
- package/lib/typescript/commonjs/components/timed-event-container.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/zoom-provider.d.ts +1 -2
- package/lib/typescript/commonjs/components/zoom-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/use-cloned-events.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/use-cloned-events.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/use-events-layout.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/use-events-layout.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/use-is-editing.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/use-is-editing.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/calendar-layout.d.ts +1 -1
- package/lib/typescript/commonjs/utils/calendar-layout.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/compute-positioning.d.ts +1 -1
- package/lib/typescript/commonjs/utils/compute-positioning.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/date-utils.d.ts +1 -1
- package/lib/typescript/commonjs/utils/date-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/double-tap-reset-zoom-gesture.d.ts +1 -1
- package/lib/typescript/commonjs/utils/double-tap-reset-zoom-gesture.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/generate-event-layouts.d.ts +1 -1
- package/lib/typescript/commonjs/utils/generate-event-layouts.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/globals.d.ts +1 -1
- package/lib/typescript/commonjs/utils/globals.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/pan-edit-event-gesture.d.ts +1 -1
- package/lib/typescript/commonjs/utils/pan-edit-event-gesture.d.ts.map +1 -1
- package/lib/typescript/module/components/background-hours-content.d.ts +1 -1
- package/lib/typescript/module/components/background-hours-content.d.ts.map +1 -1
- package/lib/typescript/module/components/background-hours-layout.d.ts +1 -1
- package/lib/typescript/module/components/background-hours-layout.d.ts.map +1 -1
- package/lib/typescript/module/components/event-container.d.ts +1 -1
- package/lib/typescript/module/components/event-container.d.ts.map +1 -1
- package/lib/typescript/module/components/timed-event-container.d.ts +1 -1
- package/lib/typescript/module/components/timed-event-container.d.ts.map +1 -1
- package/lib/typescript/module/components/zoom-provider.d.ts +1 -2
- package/lib/typescript/module/components/zoom-provider.d.ts.map +1 -1
- package/lib/typescript/module/hooks/use-cloned-events.d.ts +1 -1
- package/lib/typescript/module/hooks/use-cloned-events.d.ts.map +1 -1
- package/lib/typescript/module/hooks/use-events-layout.d.ts +1 -1
- package/lib/typescript/module/hooks/use-events-layout.d.ts.map +1 -1
- package/lib/typescript/module/hooks/use-is-editing.d.ts +1 -1
- package/lib/typescript/module/hooks/use-is-editing.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/utils/calendar-layout.d.ts +1 -1
- package/lib/typescript/module/utils/calendar-layout.d.ts.map +1 -1
- package/lib/typescript/module/utils/compute-positioning.d.ts +1 -1
- package/lib/typescript/module/utils/compute-positioning.d.ts.map +1 -1
- package/lib/typescript/module/utils/date-utils.d.ts +1 -1
- package/lib/typescript/module/utils/date-utils.d.ts.map +1 -1
- package/lib/typescript/module/utils/double-tap-reset-zoom-gesture.d.ts +1 -1
- package/lib/typescript/module/utils/double-tap-reset-zoom-gesture.d.ts.map +1 -1
- package/lib/typescript/module/utils/generate-event-layouts.d.ts +1 -1
- package/lib/typescript/module/utils/generate-event-layouts.d.ts.map +1 -1
- package/lib/typescript/module/utils/globals.d.ts +1 -1
- package/lib/typescript/module/utils/globals.d.ts.map +1 -1
- package/lib/typescript/module/utils/pan-edit-event-gesture.d.ts +1 -1
- package/lib/typescript/module/utils/pan-edit-event-gesture.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/components/all-day-events.tsx +2 -2
- package/src/components/background-hours-content.tsx +2 -2
- package/src/components/background-hours-layout.tsx +2 -2
- package/src/components/edit-event-container.tsx +5 -5
- package/src/components/event-container.tsx +2 -2
- package/src/components/new-event-container.tsx +2 -2
- package/src/components/time-indicator.tsx +1 -1
- package/src/components/timed-event-container.tsx +5 -5
- package/src/components/timed-events.tsx +8 -8
- package/src/components/zoom-provider.tsx +4 -5
- package/src/hooks/use-cloned-events.ts +1 -1
- package/src/hooks/use-events-layout.ts +1 -1
- package/src/hooks/use-is-editing.tsx +3 -3
- package/src/index.tsx +10 -13
- package/src/utils/__tests___/compute-positioning.test.ts +2 -2
- package/src/utils/__tests___/generate-event-layout.test.ts +1 -1
- package/src/utils/calendar-layout.ts +1 -1
- package/src/utils/compute-positioning.ts +1 -1
- package/src/utils/date-utils.ts +1 -1
- package/src/utils/double-tap-reset-zoom-gesture.ts +1 -1
- package/src/utils/generate-event-layouts.ts +4 -4
- package/src/utils/globals.ts +1 -1
- package/src/utils/pan-edit-event-gesture.ts +1 -1
- package/lib/commonjs/enums.js +0 -2
- package/lib/commonjs/enums.js.map +0 -1
- package/lib/module/enums.js +0 -2
- package/lib/module/enums.js.map +0 -1
- package/lib/typescript/commonjs/enums.d.ts +0 -2
- package/lib/typescript/commonjs/enums.d.ts.map +0 -1
- package/lib/typescript/module/enums.d.ts +0 -2
- package/lib/typescript/module/enums.d.ts.map +0 -1
- package/src/enums.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-events-layout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-events-layout.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,
|
|
1
|
+
{"version":3,"file":"use-events-layout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-events-layout.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAUlB,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CACjD,CAAC;AAkBF,QAAA,MAAM,eAAe,UAAW,WAAW,4BAQ1C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { SharedValue } from "react-native-reanimated";
|
|
3
|
-
import { PartDayEventLayoutType } from "
|
|
3
|
+
import { PartDayEventLayoutType } from "../types";
|
|
4
4
|
interface IsEditingType {
|
|
5
5
|
isEditing: null | PartDayEventLayoutType;
|
|
6
6
|
currentY: SharedValue<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-editing.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-is-editing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAc,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-is-editing.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-is-editing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAc,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE9D,UAAU,aAAa;IACrB,SAAS,EAAE,IAAI,GAAG,sBAAsB,CAAC;IACzC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,YAAY,EAAE,CACZ,QAAQ,EAAE,sBAAsB,GAAG,IAAI,EACvC,YAAY,CAAC,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;KACpB,KACE,IAAI,CAAC;CACX;AAID,eAAO,MAAM,YAAY,qBAOxB,CAAC;AAGF,eAAO,MAAM,iBAAiB,iBAAkB;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBAuEtE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CalendarEvent, Config, onCreateEvent, ThemeStyle } from "
|
|
1
|
+
import type { CalendarEvent, Config, onCreateEvent, ThemeStyle } from "./types";
|
|
2
|
+
export * from "./types";
|
|
2
3
|
type EventCalenderProps = {
|
|
3
4
|
canCreateEvents?: boolean;
|
|
4
5
|
canEditEvent?: Config["canEditEvent"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhF,cAAc,SAAS,CAAC;AAExB,KAAK,kBAAkB,GAAG;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACnC,uBAAuB,CAAC,EAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAC5D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEF,QAAA,MAAM,aAAa,8UAsBhB,kBAAkB,gCAwEpB,CAAC;AA0BF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-layout.d.ts","sourceRoot":"","sources":["../../../../src/utils/calendar-layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"calendar-layout.d.ts","sourceRoot":"","sources":["../../../../src/utils/calendar-layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAa,cAAc;IAIzB,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;gBAEf,EACV,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,GACnB,EAAE;QACD,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,gBAAgB,EAAE,OAAO,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;KAC5B;IAOD,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAI1B,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE;YAAE,CAAC,EAAE,GAAG,CAAA;SAAE,CAAA;KAAE;IASnE,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAM3D,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAS1C,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQnC,gBAAgB,CACd,eAAe,EAAE,MAAM,EACvB,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,GAAG;IAMZ,MAAM;IAMN,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;;;;;;;;;;;CA4D/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-positioning.d.ts","sourceRoot":"","sources":["../../../../src/utils/compute-positioning.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compute-positioning.d.ts","sourceRoot":"","sources":["../../../../src/utils/compute-positioning.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,KAAK,kBAAkB,GAAG;IAExB,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,kBAAkB,qDAIrB,kBAAkB,KAAG,aA2BvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import moment, { type Moment } from "moment-timezone";
|
|
2
|
-
import { CalendarEvent, PrefabHour } from "
|
|
2
|
+
import { CalendarEvent, PrefabHour } from "../types";
|
|
3
3
|
export declare const generatePrefabHours: (timeFormat?: string) => PrefabHour[];
|
|
4
4
|
export declare const startOfUserWeek: (startDayOfWeekOffset: number, dateOrMoment: Date | Moment | string, timezone: string) => moment.Moment;
|
|
5
5
|
export declare const isAllDayOrSpansMidnight: (calendarEvent: CalendarEvent, timezone: string) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,mBAAmB,gBAClB,MAAM,KACjB,UAAU,EAwBZ,CAAC;AAIF,eAAO,MAAM,eAAe,yBACJ,MAAM,gBACd,IAAI,GAAG,MAAM,GAAG,MAAM,YAC1B,MAAM,kBAejB,CAAC;AAEF,eAAO,MAAM,uBAAuB,kBACnB,aAAa,YAClB,MAAM,YAiBjB,CAAC;AAGF,eAAO,MAAM,iBAAiB,kBACb,aAAa,YAClB,MAAM,WAcjB,CAAC;AAGF,eAAO,MAAM,WAAW,sCAIrB;IACD,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,aAqBA,CAAC;AAEF,eAAO,MAAM,WAAW,kBACP,aAAa,iBACb,OAAO,WAWvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,SAC7B,MAAM,GAAG,IAAI,GAAG,MAAM,MACxB,MAAM,YACA,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,wBACnC,MAAM;;;;;;;;;CAiE7B,CAAC;AAGF,eAAO,MAAM,kBAAkB,yCACS;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,wCAClC;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,YAgBzE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SharedValue } from "react-native-reanimated";
|
|
2
|
-
import { Config } from "
|
|
2
|
+
import { Config } from "../types";
|
|
3
3
|
declare const doubleTapGesture: (zoomLevel: SharedValue<number>, initialZoomLevel: number, onZoomChange?: Config["onZoomChange"]) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/tapGesture").TapGesture;
|
|
4
4
|
export default doubleTapGesture;
|
|
5
5
|
//# sourceMappingURL=double-tap-reset-zoom-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"double-tap-reset-zoom-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/double-tap-reset-zoom-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"double-tap-reset-zoom-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/double-tap-reset-zoom-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,gBAAgB,cACT,WAAW,CAAC,MAAM,CAAC,oBACZ,MAAM,iBACT,MAAM,CAAC,cAAc,CAAC,kGAajC,CAAC;AAEP,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarViewIntervalType, FullCalendarEventLayout } from "
|
|
1
|
+
import { CalendarEvent, CalendarViewIntervalType, FullCalendarEventLayout } from "../types";
|
|
2
2
|
interface GenerateEventLayouts {
|
|
3
3
|
events: CalendarEvent[];
|
|
4
4
|
userCalendarId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-event-layouts.d.ts","sourceRoot":"","sources":["../../../../src/utils/generate-event-layouts.ts"],"names":[],"mappings":"AAeA,OAAO,EAEL,aAAa,EACb,wBAAwB,EAGxB,uBAAuB,EAExB,MAAM,
|
|
1
|
+
{"version":3,"file":"generate-event-layouts.d.ts","sourceRoot":"","sources":["../../../../src/utils/generate-event-layouts.ts"],"names":[],"mappings":"AAeA,OAAO,EAEL,aAAa,EACb,wBAAwB,EAGxB,uBAAuB,EAExB,MAAM,UAAU,CAAC;AAElB,UAAU,oBAAoB;IAC5B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CACjD;AAED,eAAO,MAAM,oBAAoB,0HAQ9B,oBAAoB;;CA8JtB,CAAC;AAgHF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/utils/globals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/utils/globals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,cAAc,iCAA4C,CAAC;AAExE,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,eAAO,MAAM,uBAAuB,IAAI,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SharedValue } from "react-native-reanimated";
|
|
2
2
|
import { RefObject } from "react";
|
|
3
|
-
import { PartDayEventLayoutType } from "
|
|
3
|
+
import { PartDayEventLayoutType } from "../types";
|
|
4
4
|
declare const gesturePan: (startY: SharedValue<number>, top: SharedValue<number>, currentY: SharedValue<number>, zoomLevel: SharedValue<number>, maximumHour: SharedValue<number>, height: SharedValue<number>, refNewEvent: RefObject<any>, fiveMinuteInterval?: boolean, isEditing?: null | PartDayEventLayoutType, startEditing?: () => void) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture;
|
|
5
5
|
export default gesturePan;
|
|
6
6
|
//# sourceMappingURL=pan-edit-event-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pan-edit-event-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/pan-edit-event-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pan-edit-event-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/pan-edit-event-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,QAAA,MAAM,UAAU,WACN,WAAW,CAAC,MAAM,CAAC,OACtB,WAAW,CAAC,MAAM,CAAC,YACd,WAAW,CAAC,MAAM,CAAC,aAClB,WAAW,CAAC,MAAM,CAAC,eACjB,WAAW,CAAC,MAAM,CAAC,UACxB,WAAW,CAAC,MAAM,CAAC,eACd,SAAS,CAAC,GAAG,CAAC,uBACN,OAAO,cAChB,IAAI,GAAG,sBAAsB,iBAC1B,MAAM,IAAI,kGA8CrB,CAAC;AAEP,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-hours-content.d.ts","sourceRoot":"","sources":["../../../../src/components/background-hours-content.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"background-hours-content.d.ts","sourceRoot":"","sources":["../../../../src/components/background-hours-content.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,sBAAsB,kDACd,2BAA2B,iCA0BxC,CAAC;AAaF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-hours-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/background-hours-layout.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"background-hours-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/background-hours-layout.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,qBAAqB,kDACb,0BAA0B,iCA2BvC,CAAC;AAsBF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/event-container.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/event-container.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAe,MAAM,UAAU,CAAC;AAE9D,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,qBAAqB,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,cAAc,eAAgB,mBAAmB,gCA+BtD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timed-event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/timed-event-container.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAC;AAMpE,OAAO,EAAe,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"timed-event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/timed-event-container.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAC;AAMpE,OAAO,EAAe,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE/D,KAAK,wBAAwB,GAAG;IAC9B,MAAM,EAAE,sBAAsB,CAAC;IAC/B,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,mBAAmB,6BAGtB,wBAAwB,gCA8F1B,CAAC;AAMF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GestureRef } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gesture";
|
|
2
1
|
type ZoomProviderProps = {
|
|
3
2
|
children: any;
|
|
4
3
|
};
|
|
5
|
-
declare const ZoomProvider: import("react").ForwardRefExoticComponent<ZoomProviderProps & import("react").RefAttributes<
|
|
4
|
+
declare const ZoomProvider: import("react").ForwardRefExoticComponent<ZoomProviderProps & import("react").RefAttributes<any>>;
|
|
6
5
|
export default ZoomProvider;
|
|
7
6
|
//# sourceMappingURL=zoom-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoom-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/zoom-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoom-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/zoom-provider.tsx"],"names":[],"mappings":"AAYA,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC;AAKF,QAAA,MAAM,YAAY,mGAqHjB,CAAC;AAQF,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from "react";
|
|
2
|
-
import { CalendarEvent } from "
|
|
2
|
+
import { CalendarEvent } from "../types";
|
|
3
3
|
export declare let updateClonedEvents: Dispatch<SetStateAction<CalendarEvent[]>>;
|
|
4
4
|
/**
|
|
5
5
|
* Returns a cloned version of the events array if the updateLocalStateAfterEdit is set to true.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cloned-events.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-cloned-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-cloned-events.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-cloned-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,IAAI,kBAAkB,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAEzE;;;;GAIG;AACH,QAAA,MAAM,eAAe,WACX,aAAa,EAAE,6BACI,OAAO,oBAUnC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-events-layout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-events-layout.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,
|
|
1
|
+
{"version":3,"file":"use-events-layout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-events-layout.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAUlB,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CACjD,CAAC;AAkBF,QAAA,MAAM,eAAe,UAAW,WAAW,4BAQ1C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { SharedValue } from "react-native-reanimated";
|
|
3
|
-
import { PartDayEventLayoutType } from "
|
|
3
|
+
import { PartDayEventLayoutType } from "../types";
|
|
4
4
|
interface IsEditingType {
|
|
5
5
|
isEditing: null | PartDayEventLayoutType;
|
|
6
6
|
currentY: SharedValue<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-editing.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-is-editing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAc,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-is-editing.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-is-editing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAc,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE9D,UAAU,aAAa;IACrB,SAAS,EAAE,IAAI,GAAG,sBAAsB,CAAC;IACzC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,YAAY,EAAE,CACZ,QAAQ,EAAE,sBAAsB,GAAG,IAAI,EACvC,YAAY,CAAC,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;KACpB,KACE,IAAI,CAAC;CACX;AAID,eAAO,MAAM,YAAY,qBAOxB,CAAC;AAGF,eAAO,MAAM,iBAAiB,iBAAkB;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBAuEtE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CalendarEvent, Config, onCreateEvent, ThemeStyle } from "
|
|
1
|
+
import type { CalendarEvent, Config, onCreateEvent, ThemeStyle } from "./types";
|
|
2
|
+
export * from "./types";
|
|
2
3
|
type EventCalenderProps = {
|
|
3
4
|
canCreateEvents?: boolean;
|
|
4
5
|
canEditEvent?: Config["canEditEvent"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhF,cAAc,SAAS,CAAC;AAExB,KAAK,kBAAkB,GAAG;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACnC,uBAAuB,CAAC,EAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAC5D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEF,QAAA,MAAM,aAAa,8UAsBhB,kBAAkB,gCAwEpB,CAAC;AA0BF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-layout.d.ts","sourceRoot":"","sources":["../../../../src/utils/calendar-layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"calendar-layout.d.ts","sourceRoot":"","sources":["../../../../src/utils/calendar-layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAa,cAAc;IAIzB,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;gBAEf,EACV,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,GACnB,EAAE;QACD,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,gBAAgB,EAAE,OAAO,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;KAC5B;IAOD,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAI1B,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE;YAAE,CAAC,EAAE,GAAG,CAAA;SAAE,CAAA;KAAE;IASnE,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAM3D,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAS1C,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQnC,gBAAgB,CACd,eAAe,EAAE,MAAM,EACvB,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,GAAG;IAMZ,MAAM;IAMN,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;;;;;;;;;;;CA4D/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-positioning.d.ts","sourceRoot":"","sources":["../../../../src/utils/compute-positioning.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compute-positioning.d.ts","sourceRoot":"","sources":["../../../../src/utils/compute-positioning.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,KAAK,kBAAkB,GAAG;IAExB,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,kBAAkB,qDAIrB,kBAAkB,KAAG,aA2BvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import moment, { type Moment } from "moment-timezone";
|
|
2
|
-
import { CalendarEvent, PrefabHour } from "
|
|
2
|
+
import { CalendarEvent, PrefabHour } from "../types";
|
|
3
3
|
export declare const generatePrefabHours: (timeFormat?: string) => PrefabHour[];
|
|
4
4
|
export declare const startOfUserWeek: (startDayOfWeekOffset: number, dateOrMoment: Date | Moment | string, timezone: string) => moment.Moment;
|
|
5
5
|
export declare const isAllDayOrSpansMidnight: (calendarEvent: CalendarEvent, timezone: string) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,mBAAmB,gBAClB,MAAM,KACjB,UAAU,EAwBZ,CAAC;AAIF,eAAO,MAAM,eAAe,yBACJ,MAAM,gBACd,IAAI,GAAG,MAAM,GAAG,MAAM,YAC1B,MAAM,kBAejB,CAAC;AAEF,eAAO,MAAM,uBAAuB,kBACnB,aAAa,YAClB,MAAM,YAiBjB,CAAC;AAGF,eAAO,MAAM,iBAAiB,kBACb,aAAa,YAClB,MAAM,WAcjB,CAAC;AAGF,eAAO,MAAM,WAAW,sCAIrB;IACD,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,aAqBA,CAAC;AAEF,eAAO,MAAM,WAAW,kBACP,aAAa,iBACb,OAAO,WAWvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,SAC7B,MAAM,GAAG,IAAI,GAAG,MAAM,MACxB,MAAM,YACA,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,wBACnC,MAAM;;;;;;;;;CAiE7B,CAAC;AAGF,eAAO,MAAM,kBAAkB,yCACS;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,wCAClC;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,YAgBzE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SharedValue } from "react-native-reanimated";
|
|
2
|
-
import { Config } from "
|
|
2
|
+
import { Config } from "../types";
|
|
3
3
|
declare const doubleTapGesture: (zoomLevel: SharedValue<number>, initialZoomLevel: number, onZoomChange?: Config["onZoomChange"]) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/tapGesture").TapGesture;
|
|
4
4
|
export default doubleTapGesture;
|
|
5
5
|
//# sourceMappingURL=double-tap-reset-zoom-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"double-tap-reset-zoom-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/double-tap-reset-zoom-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"double-tap-reset-zoom-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/double-tap-reset-zoom-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,gBAAgB,cACT,WAAW,CAAC,MAAM,CAAC,oBACZ,MAAM,iBACT,MAAM,CAAC,cAAc,CAAC,kGAajC,CAAC;AAEP,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarViewIntervalType, FullCalendarEventLayout } from "
|
|
1
|
+
import { CalendarEvent, CalendarViewIntervalType, FullCalendarEventLayout } from "../types";
|
|
2
2
|
interface GenerateEventLayouts {
|
|
3
3
|
events: CalendarEvent[];
|
|
4
4
|
userCalendarId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-event-layouts.d.ts","sourceRoot":"","sources":["../../../../src/utils/generate-event-layouts.ts"],"names":[],"mappings":"AAeA,OAAO,EAEL,aAAa,EACb,wBAAwB,EAGxB,uBAAuB,EAExB,MAAM,
|
|
1
|
+
{"version":3,"file":"generate-event-layouts.d.ts","sourceRoot":"","sources":["../../../../src/utils/generate-event-layouts.ts"],"names":[],"mappings":"AAeA,OAAO,EAEL,aAAa,EACb,wBAAwB,EAGxB,uBAAuB,EAExB,MAAM,UAAU,CAAC;AAElB,UAAU,oBAAoB;IAC5B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CACjD;AAED,eAAO,MAAM,oBAAoB,0HAQ9B,oBAAoB;;CA8JtB,CAAC;AAgHF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/utils/globals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/utils/globals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,cAAc,iCAA4C,CAAC;AAExE,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,eAAO,MAAM,uBAAuB,IAAI,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SharedValue } from "react-native-reanimated";
|
|
2
2
|
import { RefObject } from "react";
|
|
3
|
-
import { PartDayEventLayoutType } from "
|
|
3
|
+
import { PartDayEventLayoutType } from "../types";
|
|
4
4
|
declare const gesturePan: (startY: SharedValue<number>, top: SharedValue<number>, currentY: SharedValue<number>, zoomLevel: SharedValue<number>, maximumHour: SharedValue<number>, height: SharedValue<number>, refNewEvent: RefObject<any>, fiveMinuteInterval?: boolean, isEditing?: null | PartDayEventLayoutType, startEditing?: () => void) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture;
|
|
5
5
|
export default gesturePan;
|
|
6
6
|
//# sourceMappingURL=pan-edit-event-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pan-edit-event-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/pan-edit-event-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pan-edit-event-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/pan-edit-event-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,QAAA,MAAM,UAAU,WACN,WAAW,CAAC,MAAM,CAAC,OACtB,WAAW,CAAC,MAAM,CAAC,YACd,WAAW,CAAC,MAAM,CAAC,aAClB,WAAW,CAAC,MAAM,CAAC,eACjB,WAAW,CAAC,MAAM,CAAC,UACxB,WAAW,CAAC,MAAM,CAAC,eACd,SAAS,CAAC,GAAG,CAAC,uBACN,OAAO,cAChB,IAAI,GAAG,sBAAsB,iBAC1B,MAAM,IAAI,kGA8CrB,CAAC;AAEP,eAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunsama/event-calendar",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Event calendar.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
7
7
|
"module": "./lib/module/index.js",
|
|
8
|
+
"types": "./lib/typescript/module/index.d.ts",
|
|
9
|
+
"react-native": "src/index",
|
|
8
10
|
"exports": {
|
|
9
11
|
".": {
|
|
10
12
|
"import": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo, useCallback, useContext, useState } from "react";
|
|
2
|
-
import { ConfigProvider } from "
|
|
2
|
+
import { ConfigProvider } from "../utils/globals";
|
|
3
3
|
import { LayoutChangeEvent, StyleSheet, Text, View } from "react-native";
|
|
4
|
-
import EventContainer from "
|
|
4
|
+
import EventContainer from "../components/event-container";
|
|
5
5
|
import { Pressable } from "react-native-gesture-handler";
|
|
6
6
|
import Animated, {
|
|
7
7
|
runOnJS,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { memo, useContext } from "react";
|
|
2
2
|
import Animated, { useAnimatedStyle } from "react-native-reanimated";
|
|
3
3
|
import { StyleSheet } from "react-native";
|
|
4
|
-
import { ConfigProvider } from "
|
|
5
|
-
import { PrefabHour } from "
|
|
4
|
+
import { ConfigProvider } from "../utils/globals";
|
|
5
|
+
import { PrefabHour } from "../types";
|
|
6
6
|
|
|
7
7
|
type BackgroundHoursContentProps = {
|
|
8
8
|
hours: PrefabHour[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { memo, useContext } from "react";
|
|
2
2
|
import Animated, { useAnimatedStyle } from "react-native-reanimated";
|
|
3
3
|
import { StyleSheet, Text, View } from "react-native";
|
|
4
|
-
import { ConfigProvider } from "
|
|
5
|
-
import { PrefabHour } from "
|
|
4
|
+
import { ConfigProvider } from "../utils/globals";
|
|
5
|
+
import { PrefabHour } from "../types";
|
|
6
6
|
|
|
7
7
|
type BackgroundHoursLayoutProps = {
|
|
8
8
|
hours: PrefabHour[];
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
useEffect,
|
|
7
7
|
useRef,
|
|
8
8
|
} from "react";
|
|
9
|
-
import { useIsEditing } from "
|
|
10
|
-
import { ConfigProvider } from "
|
|
9
|
+
import { useIsEditing } from "../hooks/use-is-editing";
|
|
10
|
+
import { ConfigProvider } from "../utils/globals";
|
|
11
11
|
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
|
12
12
|
import Animated, {
|
|
13
13
|
runOnJS,
|
|
@@ -16,9 +16,9 @@ import Animated, {
|
|
|
16
16
|
useDerivedValue,
|
|
17
17
|
useSharedValue,
|
|
18
18
|
} from "react-native-reanimated";
|
|
19
|
-
import { EventExtend } from "
|
|
20
|
-
import gesturePan from "
|
|
21
|
-
import DragBar from "
|
|
19
|
+
import { EventExtend } from "../types";
|
|
20
|
+
import gesturePan from "../utils/pan-edit-event-gesture";
|
|
21
|
+
import DragBar from "../components/drag-bar";
|
|
22
22
|
import { StyleSheet } from "react-native";
|
|
23
23
|
import moment from "moment-timezone";
|
|
24
24
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigProvider } from "
|
|
1
|
+
import { ConfigProvider } from "../utils/globals";
|
|
2
2
|
import { useCallback, useContext, useMemo } from "react";
|
|
3
3
|
import { Pressable } from "react-native-gesture-handler";
|
|
4
4
|
import { View } from "react-native";
|
|
5
|
-
import { AllDayEventLayoutType, EventExtend } from "
|
|
5
|
+
import { AllDayEventLayoutType, EventExtend } from "../types";
|
|
6
6
|
|
|
7
7
|
type EventContainerProps = {
|
|
8
8
|
layout: AllDayEventLayoutType;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { memo, useContext, useMemo, useState } from "react";
|
|
2
|
-
import { ConfigProvider, TOP_MARGIN_PIXEL_OFFSET } from "
|
|
2
|
+
import { ConfigProvider, TOP_MARGIN_PIXEL_OFFSET } from "../utils/globals";
|
|
3
3
|
import Animated, {
|
|
4
4
|
runOnJS,
|
|
5
5
|
useAnimatedReaction,
|
|
6
6
|
useAnimatedStyle,
|
|
7
7
|
} from "react-native-reanimated";
|
|
8
8
|
import { StyleSheet, View } from "react-native";
|
|
9
|
-
import { useIsEditing } from "
|
|
9
|
+
import { useIsEditing } from "../hooks/use-is-editing";
|
|
10
10
|
|
|
11
11
|
const NewEventContainer = memo(
|
|
12
12
|
() => {
|
|
@@ -3,7 +3,7 @@ import Animated, {
|
|
|
3
3
|
useAnimatedStyle,
|
|
4
4
|
useSharedValue,
|
|
5
5
|
} from "react-native-reanimated";
|
|
6
|
-
import { ConfigProvider } from "
|
|
6
|
+
import { ConfigProvider } from "../utils/globals";
|
|
7
7
|
import moment from "moment-timezone";
|
|
8
8
|
import { AppState, StyleSheet } from "react-native";
|
|
9
9
|
|
|
@@ -4,14 +4,14 @@ import Animated, {
|
|
|
4
4
|
useAnimatedStyle,
|
|
5
5
|
useSharedValue,
|
|
6
6
|
} from "react-native-reanimated";
|
|
7
|
-
import { ConfigProvider } from "
|
|
7
|
+
import { ConfigProvider } from "../utils/globals";
|
|
8
8
|
import { RefObject, useCallback, useContext, useMemo } from "react";
|
|
9
9
|
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
|
10
10
|
import { StyleSheet, View } from "react-native";
|
|
11
|
-
import { useIsEditing } from "
|
|
12
|
-
import gesturePan from "
|
|
13
|
-
import doubleTapGesture from "
|
|
14
|
-
import { EventExtend, PartDayEventLayoutType } from "
|
|
11
|
+
import { useIsEditing } from "../hooks/use-is-editing";
|
|
12
|
+
import gesturePan from "../utils/pan-edit-event-gesture";
|
|
13
|
+
import doubleTapGesture from "../utils/double-tap-reset-zoom-gesture";
|
|
14
|
+
import { EventExtend, PartDayEventLayoutType } from "../types";
|
|
15
15
|
|
|
16
16
|
type TimedEventContainerProps = {
|
|
17
17
|
layout: PartDayEventLayoutType;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StyleSheet, View } from "react-native";
|
|
2
2
|
import { RefObject, useContext, useMemo } from "react";
|
|
3
|
-
import { ConfigProvider, TOP_MARGIN_PIXEL_OFFSET } from "
|
|
4
|
-
import BackgroundHoursLayout from "
|
|
5
|
-
import { generatePrefabHours } from "
|
|
6
|
-
import BackgroundHoursContent from "
|
|
7
|
-
import TimedEventContainer from "
|
|
8
|
-
import TimeIndicator from "
|
|
9
|
-
import NewEventContainer from "
|
|
10
|
-
import EditEventContainer from "
|
|
3
|
+
import { ConfigProvider, TOP_MARGIN_PIXEL_OFFSET } from "../utils/globals";
|
|
4
|
+
import BackgroundHoursLayout from "../components/background-hours-layout";
|
|
5
|
+
import { generatePrefabHours } from "../utils/date-utils";
|
|
6
|
+
import BackgroundHoursContent from "../components/background-hours-content";
|
|
7
|
+
import TimedEventContainer from "../components/timed-event-container";
|
|
8
|
+
import TimeIndicator from "../components/time-indicator";
|
|
9
|
+
import NewEventContainer from "../components/new-event-container";
|
|
10
|
+
import EditEventContainer from "../components/edit-event-container";
|
|
11
11
|
|
|
12
12
|
type TimedEventsProps = {
|
|
13
13
|
refNewEvent: RefObject<any>;
|
|
@@ -5,11 +5,10 @@ import Animated, {
|
|
|
5
5
|
} from "react-native-reanimated";
|
|
6
6
|
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
|
7
7
|
import { forwardRef, useContext, useEffect } from "react";
|
|
8
|
-
import { ConfigProvider, TOP_MARGIN_PIXEL_OFFSET } from "
|
|
8
|
+
import { ConfigProvider, TOP_MARGIN_PIXEL_OFFSET } from "../utils/globals";
|
|
9
9
|
import { StyleSheet } from "react-native";
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import doubleTapGesture from "src/utils/double-tap-reset-zoom-gesture";
|
|
10
|
+
import { useIsEditing } from "../hooks/use-is-editing";
|
|
11
|
+
import doubleTapGesture from "../utils/double-tap-reset-zoom-gesture";
|
|
13
12
|
|
|
14
13
|
type ZoomProviderProps = {
|
|
15
14
|
children: any;
|
|
@@ -18,7 +17,7 @@ type ZoomProviderProps = {
|
|
|
18
17
|
// This fraction determines how quickly zoom grows
|
|
19
18
|
const fraction = 0.1;
|
|
20
19
|
|
|
21
|
-
const ZoomProvider = forwardRef<
|
|
20
|
+
const ZoomProvider = forwardRef<any, ZoomProviderProps>(
|
|
22
21
|
({ children }, refNewEvent) => {
|
|
23
22
|
const {
|
|
24
23
|
canCreateEvents,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction, useEffect, useState } from "react";
|
|
2
2
|
import { cloneDeep } from "lodash";
|
|
3
|
-
import { CalendarEvent } from "
|
|
3
|
+
import { CalendarEvent } from "../types";
|
|
4
4
|
|
|
5
5
|
export let updateClonedEvents: Dispatch<SetStateAction<CalendarEvent[]>>;
|
|
6
6
|
|