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 +1 -1
- package/README.md +6 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/LICENSE
CHANGED
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/
|
|
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/
|
|
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
|
|
726
|
+
get active() {
|
|
727
|
+
return isActive.current;
|
|
728
|
+
}
|
|
727
729
|
};
|
|
728
|
-
}, [disabled, isActive
|
|
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
|
}
|