tinacms 0.0.0-d524599-20241117111320 → 0.0.0-d7c5ec1-20250219020924

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
@@ -862,13 +862,23 @@ var __publicField = (obj, key, value) => {
862
862
  className,
863
863
  ...props
864
864
  }) => {
865
+ if (typeof children === "string") {
866
+ return /* @__PURE__ */ React__namespace.createElement(
867
+ "span",
868
+ {
869
+ className: `block font-sans text-xs italic font-light text-gray-400 pt-0.5 whitespace-normal m-0 ${className}`,
870
+ ...props,
871
+ dangerouslySetInnerHTML: { __html: children }
872
+ }
873
+ );
874
+ }
865
875
  return /* @__PURE__ */ React__namespace.createElement(
866
876
  "span",
867
877
  {
868
878
  className: `block font-sans text-xs italic font-light text-gray-400 pt-0.5 whitespace-normal m-0 ${className}`,
869
- ...props,
870
- dangerouslySetInnerHTML: { __html: children }
871
- }
879
+ ...props
880
+ },
881
+ children
872
882
  );
873
883
  };
874
884
  const FieldError = ({
@@ -2933,7 +2943,7 @@ flowchart TD
2933
2943
  ),
2934
2944
  [plate.MARK_CODE]: CodeLeaf,
2935
2945
  [plate.MARK_UNDERLINE]: cn$1.withProps(plateCommon.PlateLeaf, { as: "u" }),
2936
- [plate.MARK_STRIKETHROUGH]: cn$1.withProps(plateCommon.PlateLeaf, { as: "s" }),
2946
+ [plate.MARK_STRIKETHROUGH]: ({ editor, leaf, text, ...props }) => /* @__PURE__ */ React.createElement("s", { ...props.attributes, ...props }),
2937
2947
  [plate.MARK_ITALIC]: cn$1.withProps(plateCommon.PlateLeaf, { as: "em" }),
2938
2948
  [plate.MARK_BOLD]: ({ editor, leaf, text, ...props }) => /* @__PURE__ */ React.createElement("strong", { ...props.attributes, ...props }),
2939
2949
  [plate.ELEMENT_HR]: ({
@@ -3820,7 +3830,7 @@ flowchart TD
3820
3830
  function _objectWithoutProperties(source, excluded) {
3821
3831
  if (source == null)
3822
3832
  return {};
3823
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
3833
+ var target = _objectWithoutPropertiesLoose(source, excluded);
3824
3834
  var key, i;
3825
3835
  if (Object.getOwnPropertySymbols) {
3826
3836
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -3835,7 +3845,7 @@ flowchart TD
3835
3845
  }
3836
3846
  return target;
3837
3847
  }
3838
- function _objectWithoutPropertiesLoose$1(source, excluded) {
3848
+ function _objectWithoutPropertiesLoose(source, excluded) {
3839
3849
  if (source == null)
3840
3850
  return {};
3841
3851
  var target = {};
@@ -4925,7 +4935,28 @@ flowchart TD
4925
4935
  onChange,
4926
4936
  value,
4927
4937
  step
4928
- }) => /* @__PURE__ */ React__namespace.createElement(Input, { type: "number", step, value, onChange });
4938
+ }) => /* @__PURE__ */ React__namespace.createElement(
4939
+ Input,
4940
+ {
4941
+ type: "number",
4942
+ step,
4943
+ value,
4944
+ onChange: (event) => {
4945
+ const inputValue = event.target.value;
4946
+ const newValue = inputValue === "" ? void 0 : inputValue;
4947
+ if (onChange) {
4948
+ const syntheticEvent = {
4949
+ ...event,
4950
+ target: {
4951
+ ...event.target,
4952
+ value: newValue
4953
+ }
4954
+ };
4955
+ onChange(syntheticEvent);
4956
+ }
4957
+ }
4958
+ }
4959
+ );
4929
4960
  function useCMS() {
4930
4961
  return useCMS$1();
4931
4962
  }
@@ -5166,7 +5197,7 @@ flowchart TD
5166
5197
  side: "bottom",
5167
5198
  className: cn(
5168
5199
  "rounded-md border bg-white p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
5169
- "max-h-[30vh] max-w-[30vh] overflow-y-auto",
5200
+ "max-h-[30vh] max-w-[30vw] overflow-y-auto",
5170
5201
  className
5171
5202
  ),
5172
5203
  ...props
@@ -5258,11 +5289,7 @@ flowchart TD
5258
5289
  const node = nodes.find((node2) => node2.id === value);
5259
5290
  return node ? node._internalSys.filename : null;
5260
5291
  };
5261
- const ComboboxDemo = ({
5262
- cms,
5263
- input,
5264
- field
5265
- }) => {
5292
+ const Combobox = ({ cms, input, field }) => {
5266
5293
  const [open2, setOpen] = React__namespace.useState(false);
5267
5294
  const [value, setValue] = React__namespace.useState(input.value);
5268
5295
  const [displayText, setDisplayText] = React__namespace.useState(null);
@@ -5286,17 +5313,17 @@ flowchart TD
5286
5313
  if (loading === true) {
5287
5314
  return /* @__PURE__ */ React__namespace.createElement(LoadingDots, { color: "var(--tina-color-primary)" });
5288
5315
  }
5289
- return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement(Popover, { open: open2, onOpenChange: setOpen }, /* @__PURE__ */ React__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React__namespace.createElement(
5316
+ return /* @__PURE__ */ React__namespace.createElement(Popover, { open: open2, onOpenChange: setOpen }, /* @__PURE__ */ React__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React__namespace.createElement(
5290
5317
  Button,
5291
5318
  {
5292
5319
  variant: "outline",
5293
5320
  role: "combobox",
5294
5321
  "aria-expanded": open2,
5295
- className: "w-52 justify-between"
5322
+ className: "w-full justify-between"
5296
5323
  },
5297
5324
  /* @__PURE__ */ React__namespace.createElement("p", { className: "truncate" }, displayText ?? "Choose an option..."),
5298
5325
  open2 ? /* @__PURE__ */ React__namespace.createElement(IoMdArrowDropup, { size: 20 }) : /* @__PURE__ */ React__namespace.createElement(IoMdArrowDropdown, { size: 20 })
5299
- )), /* @__PURE__ */ React__namespace.createElement(PopoverContent, { className: "p-0 relative" }, /* @__PURE__ */ React__namespace.createElement(
5326
+ )), /* @__PURE__ */ React__namespace.createElement(PopoverContent, { className: "p-0 relative min-w-[var(--radix-popover-trigger-width)]" }, /* @__PURE__ */ React__namespace.createElement(
5300
5327
  Command,
5301
5328
  {
5302
5329
  shouldFilter: !field.experimental___filter,
@@ -5320,32 +5347,25 @@ flowchart TD
5320
5347
  }
5321
5348
  ),
5322
5349
  /* @__PURE__ */ React__namespace.createElement(CommandEmpty, null, "No reference found"),
5323
- /* @__PURE__ */ React__namespace.createElement(CommandList, null, filteredOptionsList.length > 0 && (filteredOptionsList == null ? void 0 : filteredOptionsList.map(({ collection, edges }) => /* @__PURE__ */ React__namespace.createElement(
5324
- CommandGroup,
5325
- {
5326
- key: `${collection}-group`,
5327
- heading: collection
5328
- },
5329
- /* @__PURE__ */ React__namespace.createElement(CommandList, null, edges == null ? void 0 : edges.map(({ node }) => {
5330
- const { id, _values } = node;
5331
- return /* @__PURE__ */ React__namespace.createElement(
5332
- OptionComponent,
5333
- {
5334
- id,
5335
- key: id,
5336
- value,
5337
- field,
5338
- _values,
5339
- node,
5340
- onSelect: (currentValue) => {
5341
- setValue(currentValue);
5342
- setOpen(false);
5343
- }
5350
+ /* @__PURE__ */ React__namespace.createElement(CommandList, null, filteredOptionsList.length > 0 && (filteredOptionsList == null ? void 0 : filteredOptionsList.map(({ collection, edges }) => /* @__PURE__ */ React__namespace.createElement(CommandGroup, { key: `${collection}-group`, heading: collection }, /* @__PURE__ */ React__namespace.createElement(CommandList, null, edges == null ? void 0 : edges.map(({ node }) => {
5351
+ const { id, _values } = node;
5352
+ return /* @__PURE__ */ React__namespace.createElement(
5353
+ OptionComponent,
5354
+ {
5355
+ id,
5356
+ key: id,
5357
+ value,
5358
+ field,
5359
+ _values,
5360
+ node,
5361
+ onSelect: (currentValue) => {
5362
+ setValue(currentValue);
5363
+ setOpen(false);
5344
5364
  }
5345
- );
5346
- }))
5347
- ))))
5348
- ))));
5365
+ }
5366
+ );
5367
+ }))))))
5368
+ )));
5349
5369
  };
5350
5370
  const useGetNode = (cms, id) => {
5351
5371
  const [document2, setDocument] = React__namespace.useState(
@@ -5418,7 +5438,7 @@ flowchart TD
5418
5438
  };
5419
5439
  const Reference = ({ input, field }) => {
5420
5440
  const cms = useCMS();
5421
- return /* @__PURE__ */ React__namespace.createElement("div", null, /* @__PURE__ */ React__namespace.createElement("div", { className: "relative group" }, /* @__PURE__ */ React__namespace.createElement(ComboboxDemo, { cms, input, field })), /* @__PURE__ */ React__namespace.createElement(ReferenceLink, { cms, input }));
5441
+ return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement("div", { className: "relative group" }, /* @__PURE__ */ React__namespace.createElement(Combobox, { cms, input, field })), /* @__PURE__ */ React__namespace.createElement(ReferenceLink, { cms, input }));
5422
5442
  };
5423
5443
  const ButtonToggle = ({
5424
5444
  input,
@@ -7178,244 +7198,65 @@ flowchart TD
7178
7198
  str = "0" + str;
7179
7199
  return str;
7180
7200
  }
7181
- function _inheritsLoose(subClass, superClass) {
7182
- subClass.prototype = Object.create(superClass.prototype);
7183
- subClass.prototype.constructor = subClass;
7184
- _setPrototypeOf(subClass, superClass);
7185
- }
7186
- function _setPrototypeOf(o, p) {
7187
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
7188
- o2.__proto__ = p2;
7189
- return o2;
7190
- };
7191
- return _setPrototypeOf(o, p);
7192
- }
7193
- function _objectWithoutPropertiesLoose(source, excluded) {
7194
- if (source == null)
7195
- return {};
7196
- var target = {};
7197
- var sourceKeys = Object.keys(source);
7198
- var key, i;
7199
- for (i = 0; i < sourceKeys.length; i++) {
7200
- key = sourceKeys[i];
7201
- if (excluded.indexOf(key) >= 0)
7202
- continue;
7203
- target[key] = source[key];
7204
- }
7205
- return target;
7206
- }
7207
- function _assertThisInitialized(self2) {
7208
- if (self2 === void 0) {
7209
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7210
- }
7211
- return self2;
7212
- }
7213
- function isNodeFound(current, componentNode, ignoreClass) {
7214
- if (current === componentNode) {
7215
- return true;
7216
- }
7217
- if (current.correspondingElement) {
7218
- return current.correspondingElement.classList.contains(ignoreClass);
7219
- }
7220
- return current.classList.contains(ignoreClass);
7221
- }
7222
- function findHighest(current, componentNode, ignoreClass) {
7223
- if (current === componentNode) {
7224
- return true;
7201
+ var useClickAway$1 = {};
7202
+ var util = {};
7203
+ Object.defineProperty(util, "__esModule", { value: true });
7204
+ util.isNavigator = util.isBrowser = util.off = util.on = util.noop = void 0;
7205
+ var noop = function() {
7206
+ };
7207
+ util.noop = noop;
7208
+ function on(obj) {
7209
+ var args = [];
7210
+ for (var _i = 1; _i < arguments.length; _i++) {
7211
+ args[_i - 1] = arguments[_i];
7225
7212
  }
7226
- while (current.parentNode || current.host) {
7227
- if (current.parentNode && isNodeFound(current, componentNode, ignoreClass)) {
7228
- return true;
7229
- }
7230
- current = current.parentNode || current.host;
7213
+ if (obj && obj.addEventListener) {
7214
+ obj.addEventListener.apply(obj, args);
7231
7215
  }
7232
- return current;
7233
- }
7234
- function clickedScrollbar(evt) {
7235
- return document.documentElement.clientWidth <= evt.clientX || document.documentElement.clientHeight <= evt.clientY;
7236
7216
  }
7237
- var testPassiveEventSupport = function testPassiveEventSupport2() {
7238
- if (typeof window === "undefined" || typeof window.addEventListener !== "function") {
7239
- return;
7217
+ util.on = on;
7218
+ function off(obj) {
7219
+ var args = [];
7220
+ for (var _i = 1; _i < arguments.length; _i++) {
7221
+ args[_i - 1] = arguments[_i];
7240
7222
  }
7241
- var passive = false;
7242
- var options = Object.defineProperty({}, "passive", {
7243
- get: function get2() {
7244
- passive = true;
7245
- }
7246
- });
7247
- var noop = function noop2() {
7248
- };
7249
- window.addEventListener("testPassiveEventSupport", noop, options);
7250
- window.removeEventListener("testPassiveEventSupport", noop, options);
7251
- return passive;
7252
- };
7253
- function autoInc(seed) {
7254
- if (seed === void 0) {
7255
- seed = 0;
7223
+ if (obj && obj.removeEventListener) {
7224
+ obj.removeEventListener.apply(obj, args);
7256
7225
  }
7257
- return function() {
7258
- return ++seed;
7259
- };
7260
- }
7261
- var uid = autoInc();
7262
- var passiveEventSupport;
7263
- var handlersMap = {};
7264
- var enabledInstances = {};
7265
- var touchEvents = ["touchstart", "touchmove"];
7266
- var IGNORE_CLASS_NAME = "ignore-react-onclickoutside";
7267
- function getEventHandlerOptions(instance, eventName) {
7268
- var handlerOptions = {};
7269
- var isTouchEvent = touchEvents.indexOf(eventName) !== -1;
7270
- if (isTouchEvent && passiveEventSupport) {
7271
- handlerOptions.passive = !instance.props.preventDefault;
7272
- }
7273
- return handlerOptions;
7274
7226
  }
7275
- function onClickOutsideHOC(WrappedComponent, config) {
7276
- var _class, _temp;
7277
- var componentName = WrappedComponent.displayName || WrappedComponent.name || "Component";
7278
- return _temp = _class = /* @__PURE__ */ function(_Component) {
7279
- _inheritsLoose(onClickOutside, _Component);
7280
- function onClickOutside(props) {
7281
- var _this;
7282
- _this = _Component.call(this, props) || this;
7283
- _this.__outsideClickHandler = function(event) {
7284
- if (typeof _this.__clickOutsideHandlerProp === "function") {
7285
- _this.__clickOutsideHandlerProp(event);
7286
- return;
7287
- }
7288
- var instance = _this.getInstance();
7289
- if (typeof instance.props.handleClickOutside === "function") {
7290
- instance.props.handleClickOutside(event);
7291
- return;
7292
- }
7293
- if (typeof instance.handleClickOutside === "function") {
7294
- instance.handleClickOutside(event);
7295
- return;
7296
- }
7297
- throw new Error("WrappedComponent: " + componentName + " lacks a handleClickOutside(event) function for processing outside click events.");
7298
- };
7299
- _this.__getComponentNode = function() {
7300
- var instance = _this.getInstance();
7301
- if (config && typeof config.setClickOutsideRef === "function") {
7302
- return config.setClickOutsideRef()(instance);
7303
- }
7304
- if (typeof instance.setClickOutsideRef === "function") {
7305
- return instance.setClickOutsideRef();
7306
- }
7307
- return reactDom.findDOMNode(instance);
7308
- };
7309
- _this.enableOnClickOutside = function() {
7310
- if (typeof document === "undefined" || enabledInstances[_this._uid]) {
7311
- return;
7312
- }
7313
- if (typeof passiveEventSupport === "undefined") {
7314
- passiveEventSupport = testPassiveEventSupport();
7315
- }
7316
- enabledInstances[_this._uid] = true;
7317
- var events = _this.props.eventTypes;
7318
- if (!events.forEach) {
7319
- events = [events];
7320
- }
7321
- handlersMap[_this._uid] = function(event) {
7322
- if (_this.componentNode === null)
7323
- return;
7324
- if (_this.initTimeStamp > event.timeStamp)
7325
- return;
7326
- if (_this.props.preventDefault) {
7327
- event.preventDefault();
7328
- }
7329
- if (_this.props.stopPropagation) {
7330
- event.stopPropagation();
7331
- }
7332
- if (_this.props.excludeScrollbar && clickedScrollbar(event))
7333
- return;
7334
- var current = event.composed && event.composedPath && event.composedPath().shift() || event.target;
7335
- if (findHighest(current, _this.componentNode, _this.props.outsideClickIgnoreClass) !== document) {
7336
- return;
7337
- }
7338
- _this.__outsideClickHandler(event);
7339
- };
7340
- events.forEach(function(eventName) {
7341
- document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_assertThisInitialized(_this), eventName));
7342
- });
7343
- };
7344
- _this.disableOnClickOutside = function() {
7345
- delete enabledInstances[_this._uid];
7346
- var fn = handlersMap[_this._uid];
7347
- if (fn && typeof document !== "undefined") {
7348
- var events = _this.props.eventTypes;
7349
- if (!events.forEach) {
7350
- events = [events];
7351
- }
7352
- events.forEach(function(eventName) {
7353
- return document.removeEventListener(eventName, fn, getEventHandlerOptions(_assertThisInitialized(_this), eventName));
7354
- });
7355
- delete handlersMap[_this._uid];
7356
- }
7357
- };
7358
- _this.getRef = function(ref) {
7359
- return _this.instanceRef = ref;
7360
- };
7361
- _this._uid = uid();
7362
- _this.initTimeStamp = performance.now();
7363
- return _this;
7364
- }
7365
- var _proto = onClickOutside.prototype;
7366
- _proto.getInstance = function getInstance() {
7367
- if (WrappedComponent.prototype && !WrappedComponent.prototype.isReactComponent) {
7368
- return this;
7369
- }
7370
- var ref = this.instanceRef;
7371
- return ref.getInstance ? ref.getInstance() : ref;
7372
- };
7373
- _proto.componentDidMount = function componentDidMount() {
7374
- if (typeof document === "undefined" || !document.createElement) {
7375
- return;
7376
- }
7377
- var instance = this.getInstance();
7378
- if (config && typeof config.handleClickOutside === "function") {
7379
- this.__clickOutsideHandlerProp = config.handleClickOutside(instance);
7380
- if (typeof this.__clickOutsideHandlerProp !== "function") {
7381
- throw new Error("WrappedComponent: " + componentName + " lacks a function for processing outside click events specified by the handleClickOutside config option.");
7382
- }
7383
- }
7384
- this.componentNode = this.__getComponentNode();
7385
- if (this.props.disableOnClickOutside)
7386
- return;
7387
- this.enableOnClickOutside();
7227
+ util.off = off;
7228
+ util.isBrowser = typeof window !== "undefined";
7229
+ util.isNavigator = typeof navigator !== "undefined";
7230
+ Object.defineProperty(useClickAway$1, "__esModule", { value: true });
7231
+ var react_1 = React;
7232
+ var util_1 = util;
7233
+ var defaultEvents = ["mousedown", "touchstart"];
7234
+ var useClickAway = function(ref, onClickAway, events) {
7235
+ if (events === void 0) {
7236
+ events = defaultEvents;
7237
+ }
7238
+ var savedCallback = react_1.useRef(onClickAway);
7239
+ react_1.useEffect(function() {
7240
+ savedCallback.current = onClickAway;
7241
+ }, [onClickAway]);
7242
+ react_1.useEffect(function() {
7243
+ var handler = function(event) {
7244
+ var el = ref.current;
7245
+ el && !el.contains(event.target) && savedCallback.current(event);
7388
7246
  };
7389
- _proto.componentDidUpdate = function componentDidUpdate() {
7390
- this.componentNode = this.__getComponentNode();
7391
- };
7392
- _proto.componentWillUnmount = function componentWillUnmount() {
7393
- this.disableOnClickOutside();
7394
- };
7395
- _proto.render = function render() {
7396
- var _this$props = this.props;
7397
- _this$props.excludeScrollbar;
7398
- var props = _objectWithoutPropertiesLoose(_this$props, ["excludeScrollbar"]);
7399
- if (WrappedComponent.prototype && WrappedComponent.prototype.isReactComponent) {
7400
- props.ref = this.getRef;
7401
- } else {
7402
- props.wrappedRef = this.getRef;
7247
+ for (var _i = 0, events_1 = events; _i < events_1.length; _i++) {
7248
+ var eventName = events_1[_i];
7249
+ util_1.on(document, eventName, handler);
7250
+ }
7251
+ return function() {
7252
+ for (var _i2 = 0, events_2 = events; _i2 < events_2.length; _i2++) {
7253
+ var eventName2 = events_2[_i2];
7254
+ util_1.off(document, eventName2, handler);
7403
7255
  }
7404
- props.disableOnClickOutside = this.disableOnClickOutside;
7405
- props.enableOnClickOutside = this.enableOnClickOutside;
7406
- return React.createElement(WrappedComponent, props);
7407
7256
  };
7408
- return onClickOutside;
7409
- }(React.Component), _class.displayName = "OnClickOutside(" + componentName + ")", _class.defaultProps = {
7410
- eventTypes: ["mousedown", "touchstart"],
7411
- excludeScrollbar: config && config.excludeScrollbar || false,
7412
- outsideClickIgnoreClass: IGNORE_CLASS_NAME,
7413
- preventDefault: false,
7414
- stopPropagation: false
7415
- }, _class.getClass = function() {
7416
- return WrappedComponent.getClass ? WrappedComponent.getClass() : WrappedComponent;
7417
- }, _temp;
7418
- }
7257
+ }, [events, ref]);
7258
+ };
7259
+ var _default = useClickAway$1.default = useClickAway;
7419
7260
  const viewModes = {
7420
7261
  YEARS: "years",
7421
7262
  MONTHS: "months",
@@ -7944,22 +7785,13 @@ flowchart TD
7944
7785
  }
7945
7786
  con[method]("***react-datetime:" + message);
7946
7787
  }
7947
- class ClickOutBase extends React.Component {
7948
- constructor() {
7949
- super(...arguments);
7950
- __publicField(this, "container", React.createRef());
7951
- }
7952
- render() {
7953
- return /* @__PURE__ */ React.createElement("div", { className: this.props.className, ref: this.container }, this.props.children);
7954
- }
7955
- handleClickOutside(e) {
7956
- this.props.onClickOut(e);
7957
- }
7958
- setClickOutsideRef() {
7959
- return this.container.current;
7960
- }
7788
+ function ClickableWrapper({ className, onClickOut, children }) {
7789
+ const containerRef = React.useRef(null);
7790
+ _default(containerRef, (event) => {
7791
+ onClickOut(event);
7792
+ });
7793
+ return /* @__PURE__ */ React.createElement("div", { className, ref: containerRef }, children);
7961
7794
  }
7962
- const ClickableWrapper = onClickOutsideHOC(ClickOutBase);
7963
7795
  const DEFAULT_DATE_DISPLAY_FORMAT = "MMM DD, YYYY";
7964
7796
  const DEFAULT_TIME_DISPLAY_FORMAT = "h:mm A";
7965
7797
  const format$1 = (val, _name, field) => {
@@ -8002,7 +7834,10 @@ flowchart TD
8002
7834
  ReactDateTimeWithStyles,
8003
7835
  {
8004
7836
  value: input.value,
8005
- onChange: input.onChange,
7837
+ onChange: (value) => {
7838
+ const newValue = value === "" ? void 0 : value;
7839
+ input.onChange(newValue);
7840
+ },
8006
7841
  dateFormat: dateFormat || DEFAULT_DATE_DISPLAY_FORMAT,
8007
7842
  timeFormat: timeFormat || false,
8008
7843
  inputProps: { className: textFieldClasses },
@@ -9454,6 +9289,19 @@ flowchart TD
9454
9289
  }
9455
9290
  }
9456
9291
  }
9292
+ const encodeUrlIfNeeded = (url) => {
9293
+ if (url) {
9294
+ try {
9295
+ const parsed = new URL(url);
9296
+ parsed.pathname = parsed.pathname.split("/").filter((part) => part !== "").map(encodeURIComponent).join("/");
9297
+ return parsed.toString();
9298
+ } catch (e) {
9299
+ return url;
9300
+ }
9301
+ } else {
9302
+ return url;
9303
+ }
9304
+ };
9457
9305
  let MediaManager$1 = class MediaManager {
9458
9306
  constructor(store, events) {
9459
9307
  this.store = store;
@@ -9526,6 +9374,20 @@ flowchart TD
9526
9374
  try {
9527
9375
  this.events.dispatch({ type: "media:list:start", ...options });
9528
9376
  const media = await this.store.list(options);
9377
+ media.items = media.items.map((item) => {
9378
+ if (item.type === "dir") {
9379
+ return item;
9380
+ }
9381
+ if (item.thumbnails) {
9382
+ for (const [size, src] of Object.entries(item.thumbnails)) {
9383
+ item.thumbnails[size] = encodeUrlIfNeeded(src);
9384
+ }
9385
+ }
9386
+ return {
9387
+ ...item,
9388
+ src: encodeUrlIfNeeded(item.src)
9389
+ };
9390
+ });
9529
9391
  this.events.dispatch({ type: "media:list:success", ...options, media });
9530
9392
  return media;
9531
9393
  } catch (error) {
@@ -10333,7 +10195,7 @@ flowchart TD
10333
10195
  "Event Log"
10334
10196
  ));
10335
10197
  };
10336
- const version = "2.4.0";
10198
+ const version = "2.6.4";
10337
10199
  const Nav = ({
10338
10200
  isLocalMode,
10339
10201
  className = "",
@@ -13834,6 +13696,7 @@ flowchart TD
13834
13696
  createHTMLInlinePlugin(),
13835
13697
  plate.createBlockquotePlugin(),
13836
13698
  plate.createBoldPlugin(),
13699
+ plate.createStrikethroughPlugin(),
13837
13700
  plate.createItalicPlugin(),
13838
13701
  plate.createUnderlinePlugin(),
13839
13702
  plate.createCodePlugin(),
@@ -14653,7 +14516,7 @@ flowchart TD
14653
14516
  key: template.name,
14654
14517
  onMouseDown: (e) => {
14655
14518
  e.preventDefault();
14656
- close();
14519
+ setOpen(false);
14657
14520
  insertMDX(editor, template);
14658
14521
  },
14659
14522
  className: ""
@@ -14698,6 +14561,11 @@ flowchart TD
14698
14561
  width: () => STANDARD_ICON_WIDTH,
14699
14562
  Component: /* @__PURE__ */ React.createElement(MarkToolbarButton, { tooltip: "Bold (⌘+B)", nodeType: plate.MARK_BOLD }, /* @__PURE__ */ React.createElement(Icons.bold, null))
14700
14563
  },
14564
+ strikethrough: {
14565
+ label: "Strikethrough",
14566
+ width: () => STANDARD_ICON_WIDTH,
14567
+ Component: /* @__PURE__ */ React.createElement(MarkToolbarButton, { tooltip: "Strikethrough ", nodeType: plate.MARK_STRIKETHROUGH }, /* @__PURE__ */ React.createElement(Icons.strikethrough, null))
14568
+ },
14701
14569
  italic: {
14702
14570
  label: "Italic",
14703
14571
  width: () => STANDARD_ICON_WIDTH,
@@ -14739,7 +14607,12 @@ flowchart TD
14739
14607
  const [itemsShown, setItemsShown] = React.useState(11);
14740
14608
  const { overrides, templates } = useToolbarContext();
14741
14609
  const showEmbedButton = templates.length > 0;
14742
- let items2 = overrides === void 0 ? Object.values(toolbarItems) : overrides.map((item) => toolbarItems[item]).filter((item) => item !== void 0);
14610
+ let items2 = [];
14611
+ if (Array.isArray(overrides)) {
14612
+ items2 = overrides === void 0 ? Object.values(toolbarItems) : overrides.map((item) => toolbarItems[item]).filter((item) => item !== void 0);
14613
+ } else {
14614
+ items2 = (overrides == null ? void 0 : overrides.toolbar) === void 0 ? Object.values(toolbarItems) : overrides.toolbar.map((item) => toolbarItems[item]).filter((item) => item !== void 0);
14615
+ }
14743
14616
  if (!showEmbedButton) {
14744
14617
  items2 = items2.filter((item) => item.label !== toolbarItems.embed.label);
14745
14618
  }
@@ -15067,6 +14940,9 @@ flowchart TD
15067
14940
  if (typeof string !== "string") {
15068
14941
  return false;
15069
14942
  }
14943
+ if (string.startsWith("#")) {
14944
+ return true;
14945
+ }
15070
14946
  const generalMatch = string.match(protocolAndDomainRE);
15071
14947
  const emailLinkMatch = string.match(emailLintRE);
15072
14948
  const localUrlMatch = string.match(localUrlRE);
@@ -15088,12 +14964,12 @@ flowchart TD
15088
14964
  }
15089
14965
  return localhostDomainRE.test(everythingAfterProtocol) || nonLocalhostDomainRE.test(everythingAfterProtocol);
15090
14966
  };
15091
- const RichEditor = (props) => {
14967
+ const RichEditor = ({ input, tinaForm, field }) => {
15092
14968
  var _a;
15093
14969
  const initialValue = React.useMemo(
15094
14970
  () => {
15095
14971
  var _a2, _b;
15096
- return ((_b = (_a2 = props.input.value) == null ? void 0 : _a2.children) == null ? void 0 : _b.length) ? props.input.value.children.map(helpers.normalize) : [{ type: "p", children: [{ type: "text", text: "" }] }];
14972
+ return ((_b = (_a2 = input.value) == null ? void 0 : _a2.children) == null ? void 0 : _b.length) ? input.value.children.map(helpers.normalize) : [{ type: "p", children: [{ type: "text", text: "" }] }];
15097
14973
  },
15098
14974
  []
15099
14975
  );
@@ -15121,7 +14997,7 @@ flowchart TD
15121
14997
  ),
15122
14998
  []
15123
14999
  );
15124
- const tempId = [props.tinaForm.id, props.input.name].join(".");
15000
+ const tempId = [tinaForm.id, input.name].join(".");
15125
15001
  const id = React.useMemo(() => uuid() + tempId, [tempId]);
15126
15002
  const ref = React.useRef(null);
15127
15003
  React.useEffect(() => {
@@ -15131,13 +15007,13 @@ flowchart TD
15131
15007
  const plateElement = (_a2 = ref.current) == null ? void 0 : _a2.querySelector(
15132
15008
  '[role="textbox"]'
15133
15009
  );
15134
- if (props.field.experimental_focusIntent && plateElement) {
15010
+ if (field.experimental_focusIntent && plateElement) {
15135
15011
  if (plateElement)
15136
15012
  plateElement.focus();
15137
15013
  }
15138
15014
  }, 100);
15139
15015
  }
15140
- }, [props.field.experimental_focusIntent, ref]);
15016
+ }, [field.experimental_focusIntent, ref]);
15141
15017
  return /* @__PURE__ */ React.createElement("div", { ref }, /* @__PURE__ */ React.createElement(
15142
15018
  plateCommon.Plate,
15143
15019
  {
@@ -15145,7 +15021,7 @@ flowchart TD
15145
15021
  initialValue,
15146
15022
  plugins: plugins$2,
15147
15023
  onChange: (value) => {
15148
- props.input.onChange({
15024
+ input.onChange({
15149
15025
  type: "root",
15150
15026
  children: value
15151
15027
  });
@@ -15154,12 +15030,12 @@ flowchart TD
15154
15030
  /* @__PURE__ */ React.createElement(TooltipProvider, null, /* @__PURE__ */ React.createElement(
15155
15031
  ToolbarProvider,
15156
15032
  {
15157
- tinaForm: props.tinaForm,
15158
- templates: props.field.templates,
15159
- overrides: (_a = props.field) == null ? void 0 : _a.toolbarOverride
15033
+ tinaForm,
15034
+ templates: field.templates,
15035
+ overrides: (field == null ? void 0 : field.toolbarOverride) ? field.toolbarOverride : field.overrides
15160
15036
  },
15161
15037
  /* @__PURE__ */ React.createElement(FixedToolbar, null, /* @__PURE__ */ React.createElement(FixedToolbarButtons, null)),
15162
- /* @__PURE__ */ React.createElement(FloatingToolbar, null, /* @__PURE__ */ React.createElement(FloatingToolbarButtons, null))
15038
+ ((_a = field == null ? void 0 : field.overrides) == null ? void 0 : _a.showFloatingToolbar) !== false ? /* @__PURE__ */ React.createElement(FloatingToolbar, null, /* @__PURE__ */ React.createElement(FloatingToolbarButtons, null)) : null
15163
15039
  ), /* @__PURE__ */ React.createElement(Editor, null))
15164
15040
  ));
15165
15041
  };
@@ -16347,132 +16223,1209 @@ flowchart TD
16347
16223
  "হয়"
16348
16224
  ];
16349
16225
  const bre = [
16226
+ "'blam",
16227
+ "'d",
16228
+ "'m",
16229
+ "'r",
16230
+ "'ta",
16231
+ "'vat",
16232
+ "'z",
16233
+ "'zo",
16350
16234
  "a",
16351
- "ainda",
16352
- "alem",
16353
- "ambas",
16354
- "ambos",
16355
- "antes",
16356
- "ao",
16357
- "aonde",
16358
- "aos",
16359
- "apos",
16360
- "aquele",
16361
- "aqueles",
16362
- "as",
16363
- "assim",
16364
- "com",
16365
- "como",
16366
- "contra",
16367
- "contudo",
16368
- "cuja",
16369
- "cujas",
16370
- "cujo",
16371
- "cujos",
16235
+ "a:",
16236
+ "aba",
16237
+ "abalamour",
16238
+ "abaoe",
16239
+ "ac'hane",
16240
+ "ac'hanoc'h",
16241
+ "ac'hanomp",
16242
+ "ac'hanon",
16243
+ "ac'hanout",
16244
+ "adal",
16245
+ "adalek",
16246
+ "adarre",
16247
+ "ae",
16248
+ "aec'h",
16249
+ "aed",
16250
+ "aemp",
16251
+ "aen",
16252
+ "aent",
16253
+ "aes",
16254
+ "afe",
16255
+ "afec'h",
16256
+ "afed",
16257
+ "afemp",
16258
+ "afen",
16259
+ "afent",
16260
+ "afes",
16261
+ "ag",
16262
+ "ah",
16263
+ "aimp",
16264
+ "aint",
16265
+ "aio",
16266
+ "aiou",
16267
+ "aje",
16268
+ "ajec'h",
16269
+ "ajed",
16270
+ "ajemp",
16271
+ "ajen",
16272
+ "ajent",
16273
+ "ajes",
16274
+ "al",
16275
+ "alato",
16276
+ "alies",
16277
+ "aliesañ",
16278
+ "alkent",
16279
+ "all",
16280
+ "allas",
16281
+ "allo",
16282
+ "allô",
16283
+ "am",
16284
+ "amañ",
16285
+ "amzer",
16286
+ "an",
16287
+ "anezhañ",
16288
+ "anezhe",
16289
+ "anezhi",
16290
+ "anezho",
16291
+ "anvet",
16292
+ "aon",
16293
+ "aotren",
16294
+ "ar",
16295
+ "arall",
16296
+ "araok",
16297
+ "araoki",
16298
+ "araozañ",
16299
+ "araozo",
16300
+ "araozoc'h",
16301
+ "araozomp",
16302
+ "araozon",
16303
+ "araozor",
16304
+ "araozout",
16305
+ "arbenn",
16306
+ "arre",
16307
+ "atalek",
16308
+ "atav",
16309
+ "az",
16310
+ "azalek",
16311
+ "azirazañ",
16312
+ "azirazi",
16313
+ "azirazo",
16314
+ "azirazoc'h",
16315
+ "azirazomp",
16316
+ "azirazon",
16317
+ "azirazor",
16318
+ "azirazout",
16319
+ "b:",
16320
+ "ba",
16321
+ "ba'l",
16322
+ "ba'n",
16323
+ "ba'r",
16324
+ "bad",
16325
+ "bah",
16326
+ "bal",
16327
+ "ban",
16328
+ "bar",
16329
+ "bastañ",
16330
+ "befe",
16331
+ "bell",
16332
+ "benaos",
16333
+ "benn",
16334
+ "bennag",
16335
+ "bennak",
16336
+ "bennozh",
16337
+ "bep",
16338
+ "bepred",
16339
+ "berr",
16340
+ "berzh",
16341
+ "bet",
16342
+ "betek",
16343
+ "betra",
16344
+ "bev",
16345
+ "bevet",
16346
+ "bez",
16347
+ "bezañ",
16348
+ "beze",
16349
+ "bezent",
16350
+ "bezet",
16351
+ "bezh",
16352
+ "bezit",
16353
+ "bezomp",
16354
+ "bihan",
16355
+ "bije",
16356
+ "biou",
16357
+ "biskoazh",
16358
+ "blam",
16359
+ "bo",
16360
+ "boa",
16361
+ "bominapl",
16362
+ "boudoudom",
16363
+ "bouez",
16364
+ "boull",
16365
+ "boum",
16366
+ "bout",
16367
+ "bras",
16368
+ "brasañ",
16369
+ "brav",
16370
+ "bravo",
16371
+ "bremañ",
16372
+ "bres",
16373
+ "brokenn",
16374
+ "bronn",
16375
+ "brrr",
16376
+ "brutal",
16377
+ "buhezek",
16378
+ "c'h:",
16379
+ "c'haout",
16380
+ "c'he",
16381
+ "c'hem",
16382
+ "c'herz",
16383
+ "c'heñver",
16384
+ "c'hichen",
16385
+ "c'hiz",
16386
+ "c'hoazh",
16387
+ "c'horre",
16388
+ "c'houde",
16389
+ "c'houst",
16390
+ "c'hreiz",
16391
+ "c'hwec'h",
16392
+ "c'hwec'hvet",
16393
+ "c'hwezek",
16394
+ "c'hwi",
16395
+ "ch:",
16396
+ "chaous",
16397
+ "chik",
16398
+ "chit",
16399
+ "chom",
16400
+ "chut",
16401
+ "d'",
16402
+ "d'al",
16403
+ "d'an",
16404
+ "d'ar",
16405
+ "d'az",
16406
+ "d'e",
16407
+ "d'he",
16408
+ "d'ho",
16409
+ "d'hol",
16410
+ "d'hon",
16411
+ "d'hor",
16412
+ "d'o",
16413
+ "d'ober",
16414
+ "d'ul",
16415
+ "d'un",
16416
+ "d'ur",
16417
+ "d:",
16372
16418
  "da",
16373
- "das",
16374
- "de",
16375
- "dela",
16376
- "dele",
16377
- "deles",
16378
- "demais",
16379
- "depois",
16380
- "desde",
16381
- "desta",
16382
- "deste",
16383
- "dispoe",
16384
- "dispoem",
16385
- "diversa",
16386
- "diversas",
16387
- "diversos",
16419
+ "dak",
16420
+ "daka",
16421
+ "dal",
16422
+ "dalbezh",
16423
+ "dalc'hmat",
16424
+ "dalit",
16425
+ "damdost",
16426
+ "damheñvel",
16427
+ "damm",
16428
+ "dan",
16429
+ "danvez",
16430
+ "dao",
16431
+ "daol",
16432
+ "daonet",
16433
+ "daou",
16434
+ "daoust",
16435
+ "daouzek",
16436
+ "daouzekvet",
16437
+ "darn",
16438
+ "dastrewiñ",
16439
+ "dav",
16440
+ "davedoc'h",
16441
+ "davedomp",
16442
+ "davedon",
16443
+ "davedor",
16444
+ "davedout",
16445
+ "davet",
16446
+ "davetañ",
16447
+ "davete",
16448
+ "daveti",
16449
+ "daveto",
16450
+ "defe",
16451
+ "dehou",
16452
+ "dek",
16453
+ "dekvet",
16454
+ "den",
16455
+ "deoc'h",
16456
+ "deomp",
16457
+ "deor",
16458
+ "derc'hel",
16459
+ "deus",
16460
+ "dez",
16461
+ "deze",
16462
+ "dezhañ",
16463
+ "dezhe",
16464
+ "dezhi",
16465
+ "dezho",
16466
+ "di",
16467
+ "diabarzh",
16468
+ "diagent",
16469
+ "diar",
16470
+ "diaraok",
16471
+ "diavaez",
16472
+ "dibaoe",
16473
+ "dibaot",
16474
+ "dibar",
16475
+ "dic'halañ",
16476
+ "didiac'h",
16477
+ "dienn",
16478
+ "difer",
16479
+ "diganeoc'h",
16480
+ "diganeomp",
16481
+ "diganeor",
16482
+ "diganimp",
16483
+ "diganin",
16484
+ "diganit",
16485
+ "digant",
16486
+ "digantañ",
16487
+ "digante",
16488
+ "diganti",
16489
+ "diganto",
16490
+ "digemmesk",
16491
+ "diget",
16492
+ "digor",
16493
+ "digoret",
16494
+ "dija",
16495
+ "dije",
16496
+ "dimp",
16497
+ "din",
16498
+ "dinaou",
16499
+ "dindan",
16500
+ "dindanañ",
16501
+ "dindani",
16502
+ "dindano",
16503
+ "dindanoc'h",
16504
+ "dindanomp",
16505
+ "dindanon",
16506
+ "dindanor",
16507
+ "dindanout",
16508
+ "dioutañ",
16509
+ "dioute",
16510
+ "diouti",
16511
+ "diouto",
16512
+ "diouzh",
16513
+ "diouzhin",
16514
+ "diouzhit",
16515
+ "diouzhoc'h",
16516
+ "diouzhomp",
16517
+ "diouzhor",
16518
+ "dirak",
16519
+ "dirazañ",
16520
+ "dirazi",
16521
+ "dirazo",
16522
+ "dirazoc'h",
16523
+ "dirazomp",
16524
+ "dirazon",
16525
+ "dirazor",
16526
+ "dirazout",
16527
+ "disheñvel",
16528
+ "dispar",
16529
+ "distank",
16530
+ "dister",
16531
+ "disterañ",
16532
+ "disterig",
16533
+ "distro",
16534
+ "dit",
16535
+ "divaez",
16536
+ "diwar",
16537
+ "diwezhat",
16538
+ "diwezhañ",
16388
16539
  "do",
16389
- "dos",
16390
- "durante",
16540
+ "doa",
16541
+ "doare",
16542
+ "dont",
16543
+ "dost",
16544
+ "doue",
16545
+ "douetus",
16546
+ "douez",
16547
+ "doug",
16548
+ "draou",
16549
+ "draoñ",
16550
+ "dre",
16551
+ "drede",
16552
+ "dreist",
16553
+ "dreistañ",
16554
+ "dreisti",
16555
+ "dreisto",
16556
+ "dreistoc'h",
16557
+ "dreistomp",
16558
+ "dreiston",
16559
+ "dreistor",
16560
+ "dreistout",
16561
+ "drek",
16562
+ "dreñv",
16563
+ "dring",
16564
+ "dro",
16565
+ "du",
16391
16566
  "e",
16392
- "ela",
16393
- "elas",
16394
- "ele",
16395
- "eles",
16567
+ "e:",
16568
+ "eas",
16569
+ "ebet",
16570
+ "ec'h",
16571
+ "edo",
16572
+ "edoc'h",
16573
+ "edod",
16574
+ "edomp",
16575
+ "edon",
16576
+ "edont",
16577
+ "edos",
16578
+ "eer",
16579
+ "eeun",
16580
+ "efed",
16581
+ "egedoc'h",
16582
+ "egedomp",
16583
+ "egedon",
16584
+ "egedor",
16585
+ "egedout",
16586
+ "eget",
16587
+ "egetañ",
16588
+ "egete",
16589
+ "egeti",
16590
+ "egeto",
16591
+ "eh",
16592
+ "eil",
16593
+ "eilvet",
16594
+ "eizh",
16595
+ "eizhvet",
16596
+ "ejoc'h",
16597
+ "ejod",
16598
+ "ejomp",
16599
+ "ejont",
16600
+ "ejout",
16601
+ "el",
16396
16602
  "em",
16397
- "entao",
16398
- "entre",
16399
- "essa",
16400
- "essas",
16401
- "esse",
16402
- "esses",
16403
- "esta",
16404
- "estas",
16405
- "este",
16406
- "estes",
16603
+ "emaint",
16604
+ "emaoc'h",
16605
+ "emaomp",
16606
+ "emaon",
16607
+ "emaout",
16608
+ "emañ",
16609
+ "eme",
16610
+ "emeur",
16611
+ "emezañ",
16612
+ "emezi",
16613
+ "emezo",
16614
+ "emezoc'h",
16615
+ "emezomp",
16616
+ "emezon",
16617
+ "emezout",
16618
+ "emporzhiañ",
16619
+ "en",
16620
+ "end",
16621
+ "endan",
16622
+ "endra",
16623
+ "enep",
16624
+ "ennañ",
16625
+ "enni",
16626
+ "enno",
16627
+ "ennoc'h",
16628
+ "ennomp",
16629
+ "ennon",
16630
+ "ennor",
16631
+ "ennout",
16632
+ "enta",
16633
+ "eo",
16634
+ "eomp",
16635
+ "eont",
16636
+ "eor",
16637
+ "eot",
16638
+ "er",
16639
+ "erbet",
16640
+ "erfin",
16641
+ "esa",
16642
+ "esae",
16643
+ "espar",
16644
+ "estlamm",
16645
+ "estrañj",
16646
+ "eta",
16647
+ "etre",
16648
+ "etreoc'h",
16649
+ "etrezo",
16650
+ "etrezoc'h",
16651
+ "etrezomp",
16652
+ "etrezor",
16653
+ "euh",
16654
+ "eur",
16655
+ "eus",
16656
+ "evel",
16657
+ "evelato",
16658
+ "eveldoc'h",
16659
+ "eveldomp",
16660
+ "eveldon",
16661
+ "eveldor",
16662
+ "eveldout",
16663
+ "evelkent",
16664
+ "eveltañ",
16665
+ "evelte",
16666
+ "evelti",
16667
+ "evelto",
16668
+ "evidoc'h",
16669
+ "evidomp",
16670
+ "evidon",
16671
+ "evidor",
16672
+ "evidout",
16673
+ "evit",
16674
+ "evitañ",
16675
+ "evite",
16676
+ "eviti",
16677
+ "evito",
16678
+ "ez",
16679
+ "eñ",
16680
+ "f:",
16681
+ "fac'h",
16682
+ "fall",
16683
+ "fed",
16684
+ "feiz",
16685
+ "fenn",
16686
+ "fezh",
16687
+ "fin",
16688
+ "finsalvet",
16689
+ "foei",
16690
+ "fouilhezañ",
16691
+ "g:",
16692
+ "gallout",
16693
+ "ganeoc'h",
16694
+ "ganeomp",
16695
+ "ganin",
16696
+ "ganit",
16697
+ "gant",
16698
+ "gantañ",
16699
+ "ganti",
16700
+ "ganto",
16701
+ "gaout",
16702
+ "gast",
16703
+ "gein",
16704
+ "gellout",
16705
+ "genndost",
16706
+ "gentañ",
16707
+ "ger",
16708
+ "gerz",
16709
+ "get",
16710
+ "geñver",
16711
+ "gichen",
16712
+ "gin",
16713
+ "giz",
16714
+ "glan",
16715
+ "gloev",
16716
+ "goll",
16717
+ "gorre",
16718
+ "goude",
16719
+ "gouez",
16720
+ "gouezit",
16721
+ "gouezomp",
16722
+ "goulz",
16723
+ "gounnar",
16724
+ "gour",
16725
+ "goust",
16726
+ "gouze",
16727
+ "gouzout",
16728
+ "gra",
16729
+ "grak",
16730
+ "grec'h",
16731
+ "greiz",
16732
+ "grenn",
16733
+ "greomp",
16734
+ "grit",
16735
+ "groñs",
16736
+ "gutez",
16737
+ "gwall",
16738
+ "gwashoc'h",
16739
+ "gwazh",
16740
+ "gwech",
16741
+ "gwechall",
16742
+ "gwechoù",
16743
+ "gwell",
16744
+ "gwezh",
16745
+ "gwezhall",
16746
+ "gwezharall",
16747
+ "gwezhoù",
16748
+ "gwig",
16749
+ "gwirionez",
16750
+ "gwitibunan",
16751
+ "gêr",
16752
+ "h:",
16407
16753
  "ha",
16408
- "isso",
16409
- "isto",
16410
- "logo",
16411
- "mais",
16412
- "mas",
16413
- "mediante",
16414
- "menos",
16415
- "mesma",
16416
- "mesmas",
16417
- "mesmo",
16418
- "mesmos",
16754
+ "hag",
16755
+ "han",
16756
+ "hanter",
16757
+ "hanterc'hantad",
16758
+ "hanterkantved",
16759
+ "harz",
16760
+ "hañ",
16761
+ "hañval",
16762
+ "he",
16763
+ "hebioù",
16764
+ "hec'h",
16765
+ "hei",
16766
+ "hein",
16767
+ "hem",
16768
+ "hemañ",
16769
+ "hen",
16770
+ "hend",
16771
+ "henhont",
16772
+ "henn",
16773
+ "hennezh",
16774
+ "hent",
16775
+ "hep",
16776
+ "hervez",
16777
+ "hervezañ",
16778
+ "hervezi",
16779
+ "hervezo",
16780
+ "hervezoc'h",
16781
+ "hervezomp",
16782
+ "hervezon",
16783
+ "hervezor",
16784
+ "hervezout",
16785
+ "heul",
16786
+ "heuliañ",
16787
+ "hevelep",
16788
+ "heverk",
16789
+ "heñvel",
16790
+ "heñvelat",
16791
+ "heñvelañ",
16792
+ "heñveliñ",
16793
+ "heñveloc'h",
16794
+ "heñvelout",
16795
+ "hi",
16796
+ "hilh",
16797
+ "hini",
16798
+ "hirie",
16799
+ "hirio",
16800
+ "hiziv",
16801
+ "hiziviken",
16802
+ "ho",
16803
+ "hoaliñ",
16804
+ "hoc'h",
16805
+ "hogen",
16806
+ "hogos",
16807
+ "hogozik",
16808
+ "hol",
16809
+ "holl",
16810
+ "holà",
16811
+ "homañ",
16812
+ "hon",
16813
+ "honhont",
16814
+ "honnezh",
16815
+ "hont",
16816
+ "hop",
16817
+ "hopala",
16818
+ "hor",
16819
+ "hou",
16820
+ "houp",
16821
+ "hudu",
16822
+ "hue",
16823
+ "hui",
16824
+ "hum",
16825
+ "hurrah",
16826
+ "i",
16827
+ "i:",
16828
+ "in",
16829
+ "int",
16830
+ "is",
16831
+ "ispisial",
16832
+ "isurzhiet",
16833
+ "it",
16834
+ "ivez",
16835
+ "izelañ",
16836
+ "j:",
16837
+ "just",
16838
+ "k:",
16839
+ "kae",
16840
+ "kaer",
16841
+ "kalon",
16842
+ "kalz",
16843
+ "kant",
16844
+ "kaout",
16845
+ "kar",
16846
+ "kazi",
16847
+ "keid",
16848
+ "kein",
16849
+ "keit",
16850
+ "kel",
16851
+ "kellies",
16852
+ "keloù",
16853
+ "kement",
16854
+ "ken",
16855
+ "kenkent",
16856
+ "kenkoulz",
16857
+ "kenment",
16858
+ "kent",
16859
+ "kentañ",
16860
+ "kentizh",
16861
+ "kentoc'h",
16862
+ "kentre",
16863
+ "ker",
16864
+ "kerkent",
16865
+ "kerz",
16866
+ "kerzh",
16867
+ "ket",
16868
+ "keta",
16869
+ "keñver",
16870
+ "keñverel",
16871
+ "keñverius",
16872
+ "kichen",
16873
+ "kichenik",
16874
+ "kit",
16875
+ "kiz",
16876
+ "klak",
16877
+ "klek",
16878
+ "klik",
16879
+ "komprenet",
16880
+ "komz",
16881
+ "kont",
16882
+ "korf",
16883
+ "korre",
16884
+ "koulskoude",
16885
+ "koulz",
16886
+ "koust",
16887
+ "krak",
16888
+ "krampouezh",
16889
+ "krec'h",
16890
+ "kreiz",
16891
+ "kuit",
16892
+ "kwir",
16893
+ "l:",
16894
+ "la",
16895
+ "laez",
16896
+ "laoskel",
16897
+ "laouen",
16898
+ "lavar",
16899
+ "lavaret",
16900
+ "lavarout",
16901
+ "lec'h",
16902
+ "lein",
16903
+ "leizh",
16904
+ "lerc'h",
16905
+ "leun",
16906
+ "leuskel",
16907
+ "lew",
16908
+ "lies",
16909
+ "liesañ",
16910
+ "lod",
16911
+ "lusk",
16912
+ "lâr",
16913
+ "lârout",
16914
+ "m:",
16915
+ "ma",
16916
+ "ma'z",
16917
+ "mac'h",
16918
+ "mac'hat",
16919
+ "mac'hañ",
16920
+ "mac'hoc'h",
16921
+ "mad",
16922
+ "maez",
16923
+ "maksimal",
16924
+ "mann",
16925
+ "mar",
16926
+ "mard",
16927
+ "marg",
16928
+ "marzh",
16929
+ "mat",
16930
+ "mañ",
16931
+ "me",
16932
+ "memes",
16933
+ "memestra",
16934
+ "merkapl",
16935
+ "mersi",
16936
+ "mes",
16937
+ "mesk",
16938
+ "met",
16939
+ "meur",
16940
+ "mil",
16941
+ "minimal",
16942
+ "moan",
16943
+ "moaniaat",
16944
+ "mod",
16945
+ "mont",
16946
+ "mout",
16947
+ "mui",
16948
+ "muiañ",
16949
+ "muioc'h",
16950
+ "n",
16951
+ "n'",
16952
+ "n:",
16419
16953
  "na",
16420
- "nao",
16421
- "nas",
16422
- "nem",
16423
- "nesse",
16424
- "neste",
16425
- "nos",
16954
+ "nag",
16955
+ "naontek",
16956
+ "naturel",
16957
+ "nav",
16958
+ "navet",
16959
+ "ne",
16960
+ "nebeudig",
16961
+ "nebeut",
16962
+ "nebeutañ",
16963
+ "nebeutoc'h",
16964
+ "neketa",
16965
+ "nemedoc'h",
16966
+ "nemedomp",
16967
+ "nemedon",
16968
+ "nemedor",
16969
+ "nemedout",
16970
+ "nemet",
16971
+ "nemetañ",
16972
+ "nemete",
16973
+ "nemeti",
16974
+ "nemeto",
16975
+ "nemeur",
16976
+ "neoac'h",
16977
+ "nepell",
16978
+ "nerzh",
16979
+ "nes",
16980
+ "neseser",
16981
+ "netra",
16982
+ "neubeudoù",
16983
+ "neuhe",
16984
+ "neuze",
16985
+ "nevez",
16986
+ "newazh",
16987
+ "nez",
16988
+ "ni",
16989
+ "nikun",
16990
+ "niverus",
16991
+ "nul",
16426
16992
  "o",
16427
- "os",
16428
- "ou",
16429
- "outra",
16430
- "outras",
16431
- "outro",
16432
- "outros",
16433
- "pelas",
16434
- "pelo",
16435
- "pelos",
16436
- "perante",
16437
- "pois",
16438
- "por",
16439
- "porque",
16440
- "portanto",
16441
- "propios",
16442
- "proprio",
16443
- "quais",
16444
- "qual",
16445
- "qualquer",
16446
- "quando",
16447
- "quanto",
16448
- "que",
16449
- "quem",
16450
- "quer",
16993
+ "o:",
16994
+ "oa",
16995
+ "oac'h",
16996
+ "oad",
16997
+ "oamp",
16998
+ "oan",
16999
+ "oant",
17000
+ "oar",
17001
+ "oas",
17002
+ "ober",
17003
+ "oc'h",
17004
+ "oc'ho",
17005
+ "oc'hola",
17006
+ "oc'hpenn",
17007
+ "oh",
17008
+ "ohe",
17009
+ "ollé",
17010
+ "olole",
17011
+ "olé",
17012
+ "omp",
17013
+ "on",
17014
+ "ordin",
17015
+ "ordinal",
17016
+ "ouejoc'h",
17017
+ "ouejod",
17018
+ "ouejomp",
17019
+ "ouejont",
17020
+ "ouejout",
17021
+ "ouek",
17022
+ "ouezas",
17023
+ "ouezi",
17024
+ "ouezimp",
17025
+ "ouezin",
17026
+ "ouezint",
17027
+ "ouezis",
17028
+ "ouezo",
17029
+ "ouezoc'h",
17030
+ "ouezor",
17031
+ "ouf",
17032
+ "oufe",
17033
+ "oufec'h",
17034
+ "oufed",
17035
+ "oufemp",
17036
+ "oufen",
17037
+ "oufent",
17038
+ "oufes",
17039
+ "ouie",
17040
+ "ouiec'h",
17041
+ "ouied",
17042
+ "ouiemp",
17043
+ "ouien",
17044
+ "ouient",
17045
+ "ouies",
17046
+ "ouije",
17047
+ "ouijec'h",
17048
+ "ouijed",
17049
+ "ouijemp",
17050
+ "ouijen",
17051
+ "ouijent",
17052
+ "ouijes",
17053
+ "out",
17054
+ "outañ",
17055
+ "outi",
17056
+ "outo",
17057
+ "ouzer",
17058
+ "ouzh",
17059
+ "ouzhin",
17060
+ "ouzhit",
17061
+ "ouzhoc'h",
17062
+ "ouzhomp",
17063
+ "ouzhor",
17064
+ "ouzhpenn",
17065
+ "ouzhpennik",
17066
+ "ouzoc'h",
17067
+ "ouzomp",
17068
+ "ouzon",
17069
+ "ouzont",
17070
+ "ouzout",
17071
+ "p'",
17072
+ "p:",
17073
+ "pa",
17074
+ "pad",
17075
+ "padal",
17076
+ "paf",
17077
+ "pan",
17078
+ "panevedeoc'h",
17079
+ "panevedo",
17080
+ "panevedomp",
17081
+ "panevedon",
17082
+ "panevedout",
17083
+ "panevet",
17084
+ "panevetañ",
17085
+ "paneveti",
17086
+ "pas",
17087
+ "paseet",
17088
+ "pe",
17089
+ "peadra",
17090
+ "peder",
17091
+ "pedervet",
17092
+ "pedervetvet",
17093
+ "pefe",
17094
+ "pegeit",
17095
+ "pegement",
17096
+ "pegen",
17097
+ "pegiz",
17098
+ "pegoulz",
17099
+ "pehini",
17100
+ "pelec'h",
17101
+ "pell",
17102
+ "pemod",
17103
+ "pemp",
17104
+ "pempved",
17105
+ "pemzek",
17106
+ "penaos",
17107
+ "penn",
17108
+ "peogwir",
17109
+ "peotramant",
17110
+ "pep",
17111
+ "perak",
17112
+ "perc'hennañ",
17113
+ "pergen",
17114
+ "permetiñ",
17115
+ "peseurt",
17116
+ "pet",
17117
+ "petiaoul",
17118
+ "petoare",
17119
+ "petra",
17120
+ "peur",
17121
+ "peurgetket",
17122
+ "peurheñvel",
17123
+ "peurliesañ",
17124
+ "peurvuiañ",
17125
+ "peus",
17126
+ "peustost",
17127
+ "peuz",
17128
+ "pevar",
17129
+ "pevare",
17130
+ "pevarevet",
17131
+ "pevarzek",
17132
+ "pez",
17133
+ "peze",
17134
+ "pezh",
17135
+ "pff",
17136
+ "pfft",
17137
+ "pfut",
17138
+ "picher",
17139
+ "pif",
17140
+ "pife",
17141
+ "pign",
17142
+ "pije",
17143
+ "pikol",
17144
+ "pitiaoul",
17145
+ "piv",
17146
+ "plaouf",
17147
+ "plok",
17148
+ "plouf",
17149
+ "po",
17150
+ "poa",
17151
+ "poelladus",
17152
+ "pof",
17153
+ "pok",
17154
+ "posupl",
17155
+ "pouah",
17156
+ "pourc'henn",
17157
+ "prest",
17158
+ "prestik",
17159
+ "prim",
17160
+ "prin",
17161
+ "provostapl",
17162
+ "pst",
17163
+ "pu",
17164
+ "pur",
17165
+ "r:",
17166
+ "ra",
17167
+ "rae",
17168
+ "raec'h",
17169
+ "raed",
17170
+ "raemp",
17171
+ "raen",
17172
+ "raent",
17173
+ "raes",
17174
+ "rafe",
17175
+ "rafec'h",
17176
+ "rafed",
17177
+ "rafemp",
17178
+ "rafen",
17179
+ "rafent",
17180
+ "rafes",
17181
+ "rag",
17182
+ "raimp",
17183
+ "raint",
17184
+ "raio",
17185
+ "raje",
17186
+ "rajec'h",
17187
+ "rajed",
17188
+ "rajemp",
17189
+ "rajen",
17190
+ "rajent",
17191
+ "rajes",
17192
+ "rak",
17193
+ "ral",
17194
+ "ran",
17195
+ "rankout",
17196
+ "raok",
17197
+ "razh",
17198
+ "re",
17199
+ "reas",
17200
+ "reer",
17201
+ "regennoù",
17202
+ "reiñ",
17203
+ "rejoc'h",
17204
+ "rejod",
17205
+ "rejomp",
17206
+ "rejont",
17207
+ "rejout",
17208
+ "rener",
17209
+ "rentañ",
17210
+ "reoc'h",
17211
+ "reomp",
17212
+ "reont",
17213
+ "reor",
17214
+ "reot",
17215
+ "resis",
17216
+ "ret",
17217
+ "reve",
17218
+ "rez",
17219
+ "ri",
17220
+ "rik",
17221
+ "rin",
17222
+ "ris",
17223
+ "rit",
17224
+ "rouez",
17225
+ "s:",
17226
+ "sac'h",
17227
+ "sant",
17228
+ "sav",
17229
+ "sañset",
16451
17230
  "se",
16452
- "seja",
16453
- "sem",
16454
- "sendo",
16455
- "seu",
16456
- "seus",
16457
- "sob",
16458
- "sobre",
16459
- "sua",
16460
- "suas",
17231
+ "sed",
17232
+ "seitek",
17233
+ "seizh",
17234
+ "seizhvet",
17235
+ "sell",
17236
+ "sellit",
17237
+ "ser",
17238
+ "setu",
17239
+ "seul",
17240
+ "seurt",
17241
+ "siwazh",
17242
+ "skignañ",
17243
+ "skoaz",
17244
+ "skouer",
17245
+ "sort",
17246
+ "souden",
17247
+ "souvitañ",
17248
+ "soñj",
17249
+ "speriañ",
17250
+ "spririñ",
17251
+ "stad",
17252
+ "stlabezañ",
17253
+ "stop",
17254
+ "stranañ",
17255
+ "strewiñ",
17256
+ "strishaat",
17257
+ "stumm",
17258
+ "sujed",
17259
+ "surtoud",
17260
+ "t:",
17261
+ "ta",
17262
+ "taer",
17263
+ "tailh",
17264
+ "tak",
16461
17265
  "tal",
16462
- "tambem",
16463
- "teu",
17266
+ "talvoudegezh",
17267
+ "tamm",
17268
+ "tanav",
17269
+ "taol",
17270
+ "te",
17271
+ "techet",
17272
+ "teir",
17273
+ "teirvet",
17274
+ "telt",
17275
+ "teltenn",
16464
17276
  "teus",
16465
- "toda",
16466
- "todas",
16467
- "todo",
16468
- "todos",
16469
- "tua",
16470
- "tuas",
16471
- "tudo",
16472
- "um",
16473
- "uma",
16474
- "umas",
16475
- "uns"
17277
+ "teut",
17278
+ "teuteu",
17279
+ "ti",
17280
+ "tik",
17281
+ "toa",
17282
+ "tok",
17283
+ "tost",
17284
+ "tostig",
17285
+ "toud",
17286
+ "touesk",
17287
+ "touez",
17288
+ "toull",
17289
+ "tra",
17290
+ "trantenn",
17291
+ "traoñ",
17292
+ "trawalc'h",
17293
+ "tre",
17294
+ "trede",
17295
+ "tregont",
17296
+ "tremenet",
17297
+ "tri",
17298
+ "trivet",
17299
+ "triwec'h",
17300
+ "trizek",
17301
+ "tro",
17302
+ "trugarez",
17303
+ "trumm",
17304
+ "tsoin",
17305
+ "tsouin",
17306
+ "tu",
17307
+ "tud",
17308
+ "u:",
17309
+ "ugent",
17310
+ "uhel",
17311
+ "uhelañ",
17312
+ "ul",
17313
+ "un",
17314
+ "unan",
17315
+ "unanez",
17316
+ "unanig",
17317
+ "unnek",
17318
+ "unnekvet",
17319
+ "ur",
17320
+ "urzh",
17321
+ "us",
17322
+ "v:",
17323
+ "va",
17324
+ "vale",
17325
+ "van",
17326
+ "vare",
17327
+ "vat",
17328
+ "vefe",
17329
+ "vefec'h",
17330
+ "vefed",
17331
+ "vefemp",
17332
+ "vefen",
17333
+ "vefent",
17334
+ "vefes",
17335
+ "vesk",
17336
+ "vete",
17337
+ "vez",
17338
+ "vezan",
17339
+ "vezañ",
17340
+ "veze",
17341
+ "vezec'h",
17342
+ "vezed",
17343
+ "vezemp",
17344
+ "vezen",
17345
+ "vezent",
17346
+ "vezer",
17347
+ "vezes",
17348
+ "vezez",
17349
+ "vezit",
17350
+ "vezomp",
17351
+ "vezont",
17352
+ "vi",
17353
+ "vihan",
17354
+ "vihanañ",
17355
+ "vije",
17356
+ "vijec'h",
17357
+ "vijed",
17358
+ "vijemp",
17359
+ "vijen",
17360
+ "vijent",
17361
+ "vijes",
17362
+ "viken",
17363
+ "vimp",
17364
+ "vin",
17365
+ "vint",
17366
+ "vior",
17367
+ "viot",
17368
+ "virviken",
17369
+ "viskoazh",
17370
+ "vlan",
17371
+ "vlaou",
17372
+ "vo",
17373
+ "vod",
17374
+ "voe",
17375
+ "voec'h",
17376
+ "voed",
17377
+ "voemp",
17378
+ "voen",
17379
+ "voent",
17380
+ "voes",
17381
+ "vont",
17382
+ "vostapl",
17383
+ "vrac'h",
17384
+ "vrasañ",
17385
+ "vremañ",
17386
+ "w:",
17387
+ "walc'h",
17388
+ "war",
17389
+ "warnañ",
17390
+ "warni",
17391
+ "warno",
17392
+ "warnoc'h",
17393
+ "warnomp",
17394
+ "warnon",
17395
+ "warnor",
17396
+ "warnout",
17397
+ "wazh",
17398
+ "wech",
17399
+ "wechoù",
17400
+ "well",
17401
+ "y:",
17402
+ "you",
17403
+ "youadenn",
17404
+ "youc'hadenn",
17405
+ "youc'hou",
17406
+ "z:",
17407
+ "za",
17408
+ "zan",
17409
+ "zaw",
17410
+ "zeu",
17411
+ "zi",
17412
+ "ziar",
17413
+ "zigarez",
17414
+ "ziget",
17415
+ "zindan",
17416
+ "zioc'h",
17417
+ "ziouzh",
17418
+ "zirak",
17419
+ "zivout",
17420
+ "ziwar",
17421
+ "ziwezhañ",
17422
+ "zo",
17423
+ "zoken",
17424
+ "zokenoc'h",
17425
+ "zouesk",
17426
+ "zouez",
17427
+ "zro",
17428
+ "zu"
16476
17429
  ];
16477
17430
  const bul = [
16478
17431
  "а",
@@ -28128,22 +29081,32 @@ flowchart TD
28128
29081
  "şöyle"
28129
29082
  ];
28130
29083
  const ukr = [
29084
+ "а",
29085
+ "або",
28131
29086
  "авжеж",
28132
29087
  "адже",
29088
+ "аж",
28133
29089
  "але",
29090
+ "ані",
28134
29091
  "б",
28135
29092
  "без",
29093
+ "би",
29094
+ "бо",
28136
29095
  "був",
28137
29096
  "була",
28138
29097
  "були",
28139
29098
  "було",
28140
29099
  "бути",
28141
29100
  "більш",
29101
+ "в",
28142
29102
  "вам",
29103
+ "вами",
28143
29104
  "вас",
28144
29105
  "весь",
29106
+ "вже",
28145
29107
  "вздовж",
28146
29108
  "ви",
29109
+ "від",
28147
29110
  "вниз",
28148
29111
  "внизу",
28149
29112
  "вона",
@@ -28152,55 +29115,138 @@ flowchart TD
28152
29115
  "все",
28153
29116
  "всередині",
28154
29117
  "всіх",
29118
+ "вся",
28155
29119
  "від",
28156
29120
  "він",
28157
29121
  "да",
28158
29122
  "давай",
28159
29123
  "давати",
28160
29124
  "де",
29125
+ "десь",
28161
29126
  "дещо",
28162
29127
  "для",
28163
29128
  "до",
29129
+ "є",
29130
+ "ж",
29131
+ "же",
28164
29132
  "з",
29133
+ "за",
28165
29134
  "завжди",
28166
29135
  "замість",
29136
+ "зі",
29137
+ "і",
29138
+ "із",
29139
+ "інших",
29140
+ "її",
29141
+ "їй",
29142
+ "їм",
29143
+ "їх",
28167
29144
  "й",
29145
+ "його",
29146
+ "йому",
28168
29147
  "коли",
28169
29148
  "ледве",
29149
+ "лиш",
28170
29150
  "майже",
29151
+ "мене",
29152
+ "мені",
28171
29153
  "ми",
29154
+ "між",
29155
+ "мій",
29156
+ "мною",
29157
+ "мов",
29158
+ "мого",
29159
+ "моєї",
29160
+ "моє",
29161
+ "може",
29162
+ "мої",
29163
+ "моїх",
29164
+ "моя",
29165
+ "на",
29166
+ "над",
28172
29167
  "навколо",
28173
29168
  "навіть",
28174
29169
  "нам",
29170
+ "нами",
29171
+ "нас",
29172
+ "наче",
29173
+ "наш",
29174
+ "не",
29175
+ "нє",
29176
+ "неї",
29177
+ "нема",
29178
+ "немов",
29179
+ "неначе",
29180
+ "нею",
29181
+ "ним",
29182
+ "ними",
29183
+ "них",
29184
+ "ні",
29185
+ "ніби",
29186
+ "ніщо",
29187
+ "нього",
29188
+ "о",
29189
+ "ось",
28175
29190
  "от",
28176
29191
  "отже",
28177
29192
  "отож",
29193
+ "під",
29194
+ "по",
28178
29195
  "поза",
28179
29196
  "про",
28180
29197
  "під",
29198
+ "сам",
29199
+ "сама",
29200
+ "свій",
29201
+ "свої",
29202
+ "своя",
29203
+ "свою",
29204
+ "себе",
29205
+ "собі",
28181
29206
  "та",
29207
+ "там",
28182
29208
  "так",
29209
+ "така",
28183
29210
  "такий",
28184
29211
  "також",
29212
+ "твій",
29213
+ "твого",
29214
+ "твоєї",
29215
+ "твої",
29216
+ "твоя",
28185
29217
  "те",
29218
+ "тебе",
28186
29219
  "ти",
29220
+ "ті",
29221
+ "тільки",
29222
+ "то",
29223
+ "тобі",
29224
+ "тобою",
28187
29225
  "тобто",
29226
+ "тоді",
28188
29227
  "тож",
29228
+ "той",
28189
29229
  "тощо",
29230
+ "тут",
29231
+ "у",
29232
+ "хіба",
29233
+ "хоч",
28190
29234
  "хоча",
28191
29235
  "це",
28192
29236
  "цей",
29237
+ "ці",
29238
+ "ця",
28193
29239
  "чи",
28194
29240
  "чого",
29241
+ "ще",
28195
29242
  "що",
29243
+ "щоб",
29244
+ "щось",
29245
+ "я",
28196
29246
  "як",
29247
+ "яка",
28197
29248
  "який",
28198
- "якої",
28199
- "є",
28200
- "із",
28201
- "інших",
28202
- "їх",
28203
- "її"
29249
+ "якої"
28204
29250
  ];
28205
29251
  const urd = [
28206
29252
  "آئی",
@@ -31831,6 +32877,7 @@ This will work when developing locally but NOT when deployed to production.
31831
32877
  const [vars, setVars] = React.useState({
31832
32878
  collection: collectionName,
31833
32879
  relativePath: "",
32880
+ relativePathWithoutExtension: "",
31834
32881
  newRelativePath: "",
31835
32882
  filterField: "",
31836
32883
  folderName: "",
@@ -31872,6 +32919,7 @@ This will work when developing locally but NOT when deployed to production.
31872
32919
  ...old,
31873
32920
  collection: collectionName,
31874
32921
  relativePath: "",
32922
+ relativePathWithoutExtension: "",
31875
32923
  newRelativePath: "",
31876
32924
  filterField: "",
31877
32925
  startsWith: "",
@@ -31897,6 +32945,7 @@ This will work when developing locally but NOT when deployed to production.
31897
32945
  collectionName === vars.collection ? vars : {
31898
32946
  collection: collectionName,
31899
32947
  relativePath: "",
32948
+ relativePathWithoutExtension: "",
31900
32949
  newRelativePath: "",
31901
32950
  filterField: "",
31902
32951
  startsWith: "",
@@ -31998,7 +33047,7 @@ This will work when developing locally but NOT when deployed to production.
31998
33047
  ), renameModalOpen && /* @__PURE__ */ React.createElement(
31999
33048
  RenameModal,
32000
33049
  {
32001
- filename: vars.relativePath,
33050
+ filename: vars.relativePathWithoutExtension,
32002
33051
  newRelativePath: vars.newRelativePath,
32003
33052
  setNewRelativePath: (newRelativePath) => {
32004
33053
  setVars((vars2) => {
@@ -32319,6 +33368,9 @@ This will work when developing locally but NOT when deployed to production.
32319
33368
  setVars((old) => ({
32320
33369
  ...old,
32321
33370
  collection: collectionName,
33371
+ relativePathWithoutExtension: document2.node._sys.breadcrumbs.join(
33372
+ "/"
33373
+ ),
32322
33374
  relativePath: document2.node._sys.breadcrumbs.join(
32323
33375
  "/"
32324
33376
  ) + document2.node._sys.extension,
@@ -32341,6 +33393,9 @@ This will work when developing locally but NOT when deployed to production.
32341
33393
  setVars((old) => ({
32342
33394
  ...old,
32343
33395
  collection: collectionName,
33396
+ relativePathWithoutExtension: document2.node._sys.breadcrumbs.join(
33397
+ "/"
33398
+ ),
32344
33399
  relativePath: document2.node._sys.breadcrumbs.join(
32345
33400
  "/"
32346
33401
  ) + document2.node._sys.extension,
@@ -32553,7 +33608,7 @@ This will work when developing locally but NOT when deployed to production.
32553
33608
  newRelativePath,
32554
33609
  setNewRelativePath
32555
33610
  }) => {
32556
- return /* @__PURE__ */ React.createElement(Modal, null, /* @__PURE__ */ React.createElement(PopupModal, null, /* @__PURE__ */ React.createElement(ModalHeader, { close: close2 }, "Rename ", filename), /* @__PURE__ */ React.createElement(ModalBody, { padded: true }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: "mb-4" }, "Are you sure you want to rename ", /* @__PURE__ */ React.createElement("strong", null, filename), "? TinaCMS uses the filename as the ID; renaming this file could result in unresolved references."), /* @__PURE__ */ React.createElement(
33611
+ return /* @__PURE__ */ React.createElement(Modal, null, /* @__PURE__ */ React.createElement(PopupModal, null, /* @__PURE__ */ React.createElement(ModalHeader, { close: close2 }, "Rename ", filename), /* @__PURE__ */ React.createElement(ModalBody, { padded: true }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: "mb-4" }, "Are you sure you want to rename ", /* @__PURE__ */ React.createElement("strong", null, filename), "?"), /* @__PURE__ */ React.createElement(
32557
33612
  BaseTextField,
32558
33613
  {
32559
33614
  placeholder: "Enter a new name for the document's file",
@@ -32568,7 +33623,8 @@ This will work when developing locally but NOT when deployed to production.
32568
33623
  onClick: async () => {
32569
33624
  await renameFunc();
32570
33625
  close2();
32571
- }
33626
+ },
33627
+ disabled: !newRelativePath || newRelativePath === filename
32572
33628
  },
32573
33629
  "Rename"
32574
33630
  ))));
@@ -33239,15 +34295,24 @@ This will work when developing locally but NOT when deployed to production.
33239
34295
  }
33240
34296
  }
33241
34297
  if (state === "creatingPR") {
33242
- const foo = await tinaApi.createPullRequest({
33243
- baseBranch,
33244
- branch,
33245
- title: `${branch.replace("tina/", "").replace("-", " ")} (PR from TinaCMS)`
33246
- });
33247
- console.log("PR created", foo);
33248
- cms.alerts.success("Pull request created.");
33249
- localStorage.setItem("tina.createBranchState", "done");
33250
- setState("done");
34298
+ try {
34299
+ const foo = await tinaApi.createPullRequest({
34300
+ baseBranch,
34301
+ branch,
34302
+ title: `${branch.replace("tina/", "").replace("-", " ")} (PR from TinaCMS)`
34303
+ });
34304
+ console.log("PR created", foo);
34305
+ cms.alerts.success("Pull request created.");
34306
+ localStorage.setItem("tina.createBranchState", "done");
34307
+ setState("done");
34308
+ } catch (e) {
34309
+ console.error(e);
34310
+ cms.alerts.error("Failed to create PR");
34311
+ setErrorMessage(
34312
+ "Failed to create PR, please try again. If the problem persists please contact support."
34313
+ );
34314
+ setState("error");
34315
+ }
33251
34316
  }
33252
34317
  if (state === "done") {
33253
34318
  window.location.href = back;