sanity-plugin-recurring-dates 2.0.0 → 2.0.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Tom Smith
3
+ Copyright (c) 2026 Tom Smith
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -64,9 +64,11 @@ export default defineConfig({
64
64
  // Configure the datepickers
65
65
  // See https://www.sanity.io/docs/datetime-type#options
66
66
  dateTimeOptions: {
67
- dateFormat: 'DD/MM/yyyy',
67
+ dateFormat: 'DD/MM/YYYY',
68
68
  timeFormat: 'HH:mm',
69
69
  timeStep: 15,
70
+ displayTimeZone: 'Europe/London',
71
+ allowTimeZoneSwitch: false,
70
72
  },
71
73
 
72
74
  // Changes the date picker to date only, no time
@@ -112,9 +114,11 @@ defineField({
112
114
  // Configure the datepickers
113
115
  // See https://www.sanity.io/docs/datetime-type#options
114
116
  dateTimeOptions: {
115
- dateFormat: 'DD/MM/yyyy',
117
+ dateFormat: 'DD/MM/YYYY',
116
118
  timeFormat: 'HH:mm',
117
119
  timeStep: 15,
120
+ displayTimeZone: 'Europe/London',
121
+ allowTimeZoneSwitch: false,
118
122
  },
119
123
 
120
124
  // Changes the date picker to date only, no time
package/dist/index.js CHANGED
@@ -723,9 +723,11 @@ var mediumFocus = createMedium({}, function(_ref2) {
723
723
  observed,
724
724
  shards,
725
725
  enabled: !disabled,
726
- active: isActive.current
726
+ get active() {
727
+ return isActive.current;
728
+ }
727
729
  };
728
- }, [disabled, isActive.current, shards, realObserved]);
730
+ }, [disabled, isActive, shards, observed]);
729
731
  return /* @__PURE__ */ React__namespace.default.createElement(React.Fragment, null, hasLeadingGuards && [
730
732
  /* @__PURE__ */ React__namespace.default.createElement("div", {
731
733
  key: "guard-first",
@@ -846,7 +848,7 @@ function withSideEffect(reducePropsToState2, handleStateChangeOnClient2) {
846
848
  return instance.props;
847
849
  })), handleStateChangeOnClient2(state);
848
850
  }
849
- var SideEffect = /* @__PURE__ */ function(_PureComponent) {
851
+ var SideEffect = /* @__PURE__ */ (function(_PureComponent) {
850
852
  _inheritsLoose(SideEffect2, _PureComponent);
851
853
  function SideEffect2() {
852
854
  return _PureComponent.apply(this, arguments) || this;
@@ -865,7 +867,7 @@ function withSideEffect(reducePropsToState2, handleStateChangeOnClient2) {
865
867
  }, _proto.render = function() {
866
868
  return /* @__PURE__ */ React__namespace.default.createElement(WrappedComponent, this.props);
867
869
  }, SideEffect2;
868
- }(React.PureComponent);
870
+ })(React.PureComponent);
869
871
  return _defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")"), SideEffect;
870
872
  };
871
873
  }