sanity-plugin-recurring-dates 1.3.1 → 1.3.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/dist/index.js
CHANGED
|
@@ -4802,6 +4802,7 @@ function RecurringDates(props) {
|
|
|
4802
4802
|
return null;
|
|
4803
4803
|
}
|
|
4804
4804
|
const rule = rrule.rrulestr(recurrence);
|
|
4805
|
+
rule.options.until = rule?.options?.until && rrule.datetime(rule?.options?.until?.getFullYear(), rule?.options?.until?.getMonth() + 1, rule?.options?.until?.getDate(), rule?.options?.until?.getHours(), rule?.options?.until?.getMinutes(), rule?.options?.until?.getSeconds());
|
|
4805
4806
|
return /* @__PURE__ */jsxRuntime.jsx("option", {
|
|
4806
4807
|
value: recurrence,
|
|
4807
4808
|
children: lodash.upperFirst(rule.toText())
|
|
@@ -4840,6 +4841,9 @@ function RecurringDatesPreview(props) {
|
|
|
4840
4841
|
...options
|
|
4841
4842
|
};
|
|
4842
4843
|
const rule = rrule$1 && rrule.rrulestr(rrule$1);
|
|
4844
|
+
if (rule) {
|
|
4845
|
+
rule.options.until = rule?.options?.until && rrule.datetime(rule?.options?.until?.getFullYear(), rule?.options?.until?.getMonth() + 1, rule?.options?.until?.getDate(), rule?.options?.until?.getHours(), rule?.options?.until?.getMinutes(), rule?.options?.until?.getSeconds());
|
|
4846
|
+
}
|
|
4843
4847
|
const dateFormat = dateTimeOptions?.dateFormat || legacyDateFormat.DEFAULT_DATE_FORMAT;
|
|
4844
4848
|
const timeFormat = dateTimeOptions?.timeFormat || legacyDateFormat.DEFAULT_TIME_FORMAT;
|
|
4845
4849
|
const start = startDate ? new Date(startDate) : void 0;
|