tinacms 0.0.0-c852462-20250131014229 → 0.0.0-cacbd0e-20250306051805
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/admin/api.d.ts +1 -0
- package/dist/hooks/create-page-plugin.d.ts +1 -1
- package/dist/index.js +1537 -298
- package/dist/index.mjs +1543 -304
- package/dist/react.d.ts +1 -0
- package/dist/react.js +10 -1
- package/dist/react.mjs +10 -1
- package/dist/toolkit/fields/components/reference/reference-select.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +17 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mark-toolbar-button.d.ts +4 -18
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +6 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +1 -1
- package/package.json +34 -34
package/dist/index.js
CHANGED
|
@@ -2943,7 +2943,7 @@ flowchart TD
|
|
|
2943
2943
|
),
|
|
2944
2944
|
[plate.MARK_CODE]: CodeLeaf,
|
|
2945
2945
|
[plate.MARK_UNDERLINE]: cn$1.withProps(plateCommon.PlateLeaf, { as: "u" }),
|
|
2946
|
-
[plate.MARK_STRIKETHROUGH]:
|
|
2946
|
+
[plate.MARK_STRIKETHROUGH]: ({ editor, leaf, text, ...props }) => /* @__PURE__ */ React.createElement("s", { ...props.attributes, ...props }),
|
|
2947
2947
|
[plate.MARK_ITALIC]: cn$1.withProps(plateCommon.PlateLeaf, { as: "em" }),
|
|
2948
2948
|
[plate.MARK_BOLD]: ({ editor, leaf, text, ...props }) => /* @__PURE__ */ React.createElement("strong", { ...props.attributes, ...props }),
|
|
2949
2949
|
[plate.ELEMENT_HR]: ({
|
|
@@ -5197,7 +5197,7 @@ flowchart TD
|
|
|
5197
5197
|
side: "bottom",
|
|
5198
5198
|
className: cn(
|
|
5199
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",
|
|
5200
|
-
"max-h-[30vh] max-w-[
|
|
5200
|
+
"max-h-[30vh] max-w-[30vw] overflow-y-auto",
|
|
5201
5201
|
className
|
|
5202
5202
|
),
|
|
5203
5203
|
...props
|
|
@@ -5289,11 +5289,7 @@ flowchart TD
|
|
|
5289
5289
|
const node = nodes.find((node2) => node2.id === value);
|
|
5290
5290
|
return node ? node._internalSys.filename : null;
|
|
5291
5291
|
};
|
|
5292
|
-
const
|
|
5293
|
-
cms,
|
|
5294
|
-
input,
|
|
5295
|
-
field
|
|
5296
|
-
}) => {
|
|
5292
|
+
const Combobox = ({ cms, input, field }) => {
|
|
5297
5293
|
const [open2, setOpen] = React__namespace.useState(false);
|
|
5298
5294
|
const [value, setValue] = React__namespace.useState(input.value);
|
|
5299
5295
|
const [displayText, setDisplayText] = React__namespace.useState(null);
|
|
@@ -5309,7 +5305,9 @@ flowchart TD
|
|
|
5309
5305
|
}, [value, input, optionSets]);
|
|
5310
5306
|
React__namespace.useEffect(() => {
|
|
5311
5307
|
if (field.experimental___filter && optionSets.length > 0) {
|
|
5312
|
-
setFilteredOptionsList(
|
|
5308
|
+
setFilteredOptionsList(
|
|
5309
|
+
field.experimental___filter(optionSets, void 0)
|
|
5310
|
+
);
|
|
5313
5311
|
} else {
|
|
5314
5312
|
setFilteredOptionsList(optionSets);
|
|
5315
5313
|
}
|
|
@@ -5317,17 +5315,17 @@ flowchart TD
|
|
|
5317
5315
|
if (loading === true) {
|
|
5318
5316
|
return /* @__PURE__ */ React__namespace.createElement(LoadingDots, { color: "var(--tina-color-primary)" });
|
|
5319
5317
|
}
|
|
5320
|
-
return /* @__PURE__ */ React__namespace.createElement(
|
|
5318
|
+
return /* @__PURE__ */ React__namespace.createElement(Popover, { open: open2, onOpenChange: setOpen }, /* @__PURE__ */ React__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React__namespace.createElement(
|
|
5321
5319
|
Button,
|
|
5322
5320
|
{
|
|
5323
5321
|
variant: "outline",
|
|
5324
5322
|
role: "combobox",
|
|
5325
5323
|
"aria-expanded": open2,
|
|
5326
|
-
className: "w-
|
|
5324
|
+
className: "w-full justify-between"
|
|
5327
5325
|
},
|
|
5328
5326
|
/* @__PURE__ */ React__namespace.createElement("p", { className: "truncate" }, displayText ?? "Choose an option..."),
|
|
5329
5327
|
open2 ? /* @__PURE__ */ React__namespace.createElement(IoMdArrowDropup, { size: 20 }) : /* @__PURE__ */ React__namespace.createElement(IoMdArrowDropdown, { size: 20 })
|
|
5330
|
-
)), /* @__PURE__ */ React__namespace.createElement(PopoverContent, { className: "p-0 relative" }, /* @__PURE__ */ React__namespace.createElement(
|
|
5328
|
+
)), /* @__PURE__ */ React__namespace.createElement(PopoverContent, { className: "p-0 relative min-w-[var(--radix-popover-trigger-width)]" }, /* @__PURE__ */ React__namespace.createElement(
|
|
5331
5329
|
Command,
|
|
5332
5330
|
{
|
|
5333
5331
|
shouldFilter: !field.experimental___filter,
|
|
@@ -5351,32 +5349,25 @@ flowchart TD
|
|
|
5351
5349
|
}
|
|
5352
5350
|
),
|
|
5353
5351
|
/* @__PURE__ */ React__namespace.createElement(CommandEmpty, null, "No reference found"),
|
|
5354
|
-
/* @__PURE__ */ React__namespace.createElement(CommandList, null, filteredOptionsList.length > 0 && (filteredOptionsList == null ? void 0 : filteredOptionsList.map(({ collection, edges }) => /* @__PURE__ */ React__namespace.createElement(
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
field,
|
|
5369
|
-
_values,
|
|
5370
|
-
node,
|
|
5371
|
-
onSelect: (currentValue) => {
|
|
5372
|
-
setValue(currentValue);
|
|
5373
|
-
setOpen(false);
|
|
5374
|
-
}
|
|
5352
|
+
/* @__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 }) => {
|
|
5353
|
+
const { id, _values } = node;
|
|
5354
|
+
return /* @__PURE__ */ React__namespace.createElement(
|
|
5355
|
+
OptionComponent,
|
|
5356
|
+
{
|
|
5357
|
+
id,
|
|
5358
|
+
key: id,
|
|
5359
|
+
value,
|
|
5360
|
+
field,
|
|
5361
|
+
_values,
|
|
5362
|
+
node,
|
|
5363
|
+
onSelect: (currentValue) => {
|
|
5364
|
+
setValue(currentValue);
|
|
5365
|
+
setOpen(false);
|
|
5375
5366
|
}
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
))))
|
|
5379
|
-
)))
|
|
5367
|
+
}
|
|
5368
|
+
);
|
|
5369
|
+
}))))))
|
|
5370
|
+
)));
|
|
5380
5371
|
};
|
|
5381
5372
|
const useGetNode = (cms, id) => {
|
|
5382
5373
|
const [document2, setDocument] = React__namespace.useState(
|
|
@@ -5449,7 +5440,7 @@ flowchart TD
|
|
|
5449
5440
|
};
|
|
5450
5441
|
const Reference = ({ input, field }) => {
|
|
5451
5442
|
const cms = useCMS();
|
|
5452
|
-
return /* @__PURE__ */ React__namespace.createElement(
|
|
5443
|
+
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 }));
|
|
5453
5444
|
};
|
|
5454
5445
|
const ButtonToggle = ({
|
|
5455
5446
|
input,
|
|
@@ -5686,7 +5677,9 @@ flowchart TD
|
|
|
5686
5677
|
onClick: () => {
|
|
5687
5678
|
const state = tinaForm.finalForm.getState();
|
|
5688
5679
|
if (state.invalid === true) {
|
|
5689
|
-
cms.alerts.error(
|
|
5680
|
+
cms.alerts.error(
|
|
5681
|
+
"Cannot navigate away from an invalid form."
|
|
5682
|
+
);
|
|
5690
5683
|
return;
|
|
5691
5684
|
}
|
|
5692
5685
|
cms.dispatch({
|
|
@@ -6270,7 +6263,9 @@ flowchart TD
|
|
|
6270
6263
|
onClick: () => {
|
|
6271
6264
|
const state = tinaForm.finalForm.getState();
|
|
6272
6265
|
if (state.invalid === true) {
|
|
6273
|
-
cms.alerts.error(
|
|
6266
|
+
cms.alerts.error(
|
|
6267
|
+
"Cannot navigate away from an invalid form."
|
|
6268
|
+
);
|
|
6274
6269
|
return;
|
|
6275
6270
|
}
|
|
6276
6271
|
cms.dispatch({
|
|
@@ -6752,28 +6747,28 @@ flowchart TD
|
|
|
6752
6747
|
}
|
|
6753
6748
|
renderDayHeaders() {
|
|
6754
6749
|
const locale = this.props.viewDate.localeData();
|
|
6755
|
-
|
|
6750
|
+
const dayItems = getDaysOfWeek(locale).map((day, index) => /* @__PURE__ */ React.createElement("th", { key: day + index, className: "dow" }, day));
|
|
6756
6751
|
return /* @__PURE__ */ React.createElement("tr", null, dayItems);
|
|
6757
6752
|
}
|
|
6758
6753
|
renderDays() {
|
|
6759
6754
|
const date = this.props.viewDate;
|
|
6760
6755
|
const startOfMonth = date.clone().startOf("month");
|
|
6761
6756
|
const endOfMonth = date.clone().endOf("month");
|
|
6762
|
-
|
|
6763
|
-
|
|
6757
|
+
const rows = [[], [], [], [], [], []];
|
|
6758
|
+
const startDate = date.clone().subtract(1, "months");
|
|
6764
6759
|
startDate.date(startDate.daysInMonth()).startOf("week");
|
|
6765
|
-
|
|
6760
|
+
const endDate = startDate.clone().add(42, "d");
|
|
6766
6761
|
let i = 0;
|
|
6767
6762
|
while (startDate.isBefore(endDate)) {
|
|
6768
|
-
|
|
6763
|
+
const row = getRow$2(rows, i++);
|
|
6769
6764
|
row.push(this.renderDay(startDate, startOfMonth, endOfMonth));
|
|
6770
6765
|
startDate.add(1, "d");
|
|
6771
6766
|
}
|
|
6772
6767
|
return rows.map((r, i2) => /* @__PURE__ */ React.createElement("tr", { key: `${endDate.month()}_${i2}` }, r));
|
|
6773
6768
|
}
|
|
6774
6769
|
renderDay(date, startOfMonth, endOfMonth) {
|
|
6775
|
-
|
|
6776
|
-
|
|
6770
|
+
const selectedDate = this.props.selectedDate;
|
|
6771
|
+
const dayProps = {
|
|
6777
6772
|
key: date.format("M_D"),
|
|
6778
6773
|
"data-value": date.date(),
|
|
6779
6774
|
"data-month": date.month(),
|
|
@@ -6827,7 +6822,7 @@ flowchart TD
|
|
|
6827
6822
|
}
|
|
6828
6823
|
function getDaysOfWeek(locale) {
|
|
6829
6824
|
const first = locale.firstDayOfWeek();
|
|
6830
|
-
|
|
6825
|
+
const dow = [];
|
|
6831
6826
|
let i = 0;
|
|
6832
6827
|
locale._weekdaysMin.forEach(function(day) {
|
|
6833
6828
|
dow[(7 + i++ - first) % 7] = day;
|
|
@@ -6845,7 +6840,7 @@ flowchart TD
|
|
|
6845
6840
|
return /* @__PURE__ */ React.createElement("div", { className: "rdtMonths" }, /* @__PURE__ */ React.createElement("table", null, /* @__PURE__ */ React.createElement("thead", null, this.renderNavigation())), /* @__PURE__ */ React.createElement("table", null, /* @__PURE__ */ React.createElement("tbody", null, this.renderMonths())));
|
|
6846
6841
|
}
|
|
6847
6842
|
renderNavigation() {
|
|
6848
|
-
|
|
6843
|
+
const year = this.props.viewDate.year();
|
|
6849
6844
|
return /* @__PURE__ */ React.createElement(
|
|
6850
6845
|
ViewNavigation,
|
|
6851
6846
|
{
|
|
@@ -6858,9 +6853,9 @@ flowchart TD
|
|
|
6858
6853
|
);
|
|
6859
6854
|
}
|
|
6860
6855
|
renderMonths() {
|
|
6861
|
-
|
|
6856
|
+
const rows = [[], [], []];
|
|
6862
6857
|
for (let month = 0; month < 12; month++) {
|
|
6863
|
-
|
|
6858
|
+
const row = getRow$1(rows, month);
|
|
6864
6859
|
row.push(this.renderMonth(month));
|
|
6865
6860
|
}
|
|
6866
6861
|
return rows.map((months, i) => /* @__PURE__ */ React.createElement("tr", { key: i }, months));
|
|
@@ -6877,7 +6872,7 @@ flowchart TD
|
|
|
6877
6872
|
if (selectedDate && selectedDate.year() === this.props.viewDate.year() && selectedDate.month() === month) {
|
|
6878
6873
|
className += " rdtActive";
|
|
6879
6874
|
}
|
|
6880
|
-
|
|
6875
|
+
const props = { key: month, className, "data-value": month, onClick };
|
|
6881
6876
|
if (this.props.renderMonth) {
|
|
6882
6877
|
return this.props.renderMonth(
|
|
6883
6878
|
props,
|
|
@@ -6889,11 +6884,11 @@ flowchart TD
|
|
|
6889
6884
|
return /* @__PURE__ */ React.createElement("td", { ...props }, this.getMonthText(month));
|
|
6890
6885
|
}
|
|
6891
6886
|
isDisabledMonth(month) {
|
|
6892
|
-
|
|
6887
|
+
const isValidDate = this.props.isValidDate;
|
|
6893
6888
|
if (!isValidDate) {
|
|
6894
6889
|
return false;
|
|
6895
6890
|
}
|
|
6896
|
-
|
|
6891
|
+
const date = this.props.viewDate.clone().set({ month });
|
|
6897
6892
|
let day = date.endOf("month").date() + 1;
|
|
6898
6893
|
while (day-- > 1) {
|
|
6899
6894
|
if (isValidDate(date.date(day))) {
|
|
@@ -6945,9 +6940,9 @@ flowchart TD
|
|
|
6945
6940
|
}
|
|
6946
6941
|
renderYears() {
|
|
6947
6942
|
const viewYear = this.getViewYear();
|
|
6948
|
-
|
|
6943
|
+
const rows = [[], [], []];
|
|
6949
6944
|
for (let year = viewYear - 1; year < viewYear + 11; year++) {
|
|
6950
|
-
|
|
6945
|
+
const row = getRow(rows, year - viewYear);
|
|
6951
6946
|
row.push(this.renderYear(year));
|
|
6952
6947
|
}
|
|
6953
6948
|
return rows.map((years, i) => /* @__PURE__ */ React.createElement("tr", { key: i }, years));
|
|
@@ -6964,7 +6959,7 @@ flowchart TD
|
|
|
6964
6959
|
if (selectedYear === year) {
|
|
6965
6960
|
className += " rdtActive";
|
|
6966
6961
|
}
|
|
6967
|
-
|
|
6962
|
+
const props = { key: year, className, "data-value": year, onClick };
|
|
6968
6963
|
return this.props.renderYear(
|
|
6969
6964
|
props,
|
|
6970
6965
|
year,
|
|
@@ -6978,15 +6973,15 @@ flowchart TD
|
|
|
6978
6973
|
return this.props.selectedDate && this.props.selectedDate.year();
|
|
6979
6974
|
}
|
|
6980
6975
|
isDisabledYear(year) {
|
|
6981
|
-
|
|
6976
|
+
const cache = this.disabledYearsCache;
|
|
6982
6977
|
if (cache[year] !== void 0) {
|
|
6983
6978
|
return cache[year];
|
|
6984
6979
|
}
|
|
6985
|
-
|
|
6980
|
+
const isValidDate = this.props.isValidDate;
|
|
6986
6981
|
if (!isValidDate) {
|
|
6987
6982
|
return false;
|
|
6988
6983
|
}
|
|
6989
|
-
|
|
6984
|
+
const date = this.props.viewDate.clone().set({ year });
|
|
6990
6985
|
let day = date.endOf("year").dayOfYear() + 1;
|
|
6991
6986
|
while (day-- > 1) {
|
|
6992
6987
|
if (isValidDate(date.dayOfYear(day))) {
|
|
@@ -7033,7 +7028,7 @@ flowchart TD
|
|
|
7033
7028
|
}
|
|
7034
7029
|
};
|
|
7035
7030
|
function createConstraints(overrideTimeConstraints) {
|
|
7036
|
-
|
|
7031
|
+
const constraints = {};
|
|
7037
7032
|
Object.keys(timeConstraints).forEach((type) => {
|
|
7038
7033
|
constraints[type] = {
|
|
7039
7034
|
...timeConstraints[type],
|
|
@@ -7049,7 +7044,7 @@ flowchart TD
|
|
|
7049
7044
|
this.state = this.getTimeParts(props.selectedDate || props.viewDate);
|
|
7050
7045
|
}
|
|
7051
7046
|
render() {
|
|
7052
|
-
|
|
7047
|
+
const items2 = [];
|
|
7053
7048
|
const timeParts = this.state;
|
|
7054
7049
|
this.getCounters().forEach((c, i) => {
|
|
7055
7050
|
if (i && c !== "ampm") {
|
|
@@ -7111,8 +7106,8 @@ flowchart TD
|
|
|
7111
7106
|
}
|
|
7112
7107
|
if (type === "ampm")
|
|
7113
7108
|
return this.toggleDayPart();
|
|
7114
|
-
|
|
7115
|
-
|
|
7109
|
+
const update = {};
|
|
7110
|
+
const body = document.body;
|
|
7116
7111
|
update[type] = this[action](type);
|
|
7117
7112
|
this.setState(update);
|
|
7118
7113
|
this.timer = setTimeout(() => {
|
|
@@ -7155,8 +7150,8 @@ flowchart TD
|
|
|
7155
7150
|
return pad(type, value);
|
|
7156
7151
|
}
|
|
7157
7152
|
getCounters() {
|
|
7158
|
-
|
|
7159
|
-
|
|
7153
|
+
const counters = [];
|
|
7154
|
+
const format2 = this.props.timeFormat;
|
|
7160
7155
|
if (format2.toLowerCase().indexOf("h") !== -1) {
|
|
7161
7156
|
counters.push("hours");
|
|
7162
7157
|
if (format2.indexOf("m") !== -1) {
|
|
@@ -7288,7 +7283,7 @@ flowchart TD
|
|
|
7288
7283
|
__publicField(this, "_renderCalendar", () => {
|
|
7289
7284
|
const props = this.props;
|
|
7290
7285
|
const state = this.state;
|
|
7291
|
-
|
|
7286
|
+
const viewProps = {
|
|
7292
7287
|
viewDate: state.viewDate.clone(),
|
|
7293
7288
|
selectedDate: this.getSelectedDate(),
|
|
7294
7289
|
isValidDate: props.isValidDate,
|
|
@@ -7331,10 +7326,10 @@ flowchart TD
|
|
|
7331
7326
|
__publicField(this, "viewToMethod", { days: "date", months: "month", years: "year" });
|
|
7332
7327
|
__publicField(this, "nextView", { days: "time", months: "days", years: "months" });
|
|
7333
7328
|
__publicField(this, "_updateDate", (e) => {
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7329
|
+
const state = this.state;
|
|
7330
|
+
const currentView = state.currentView;
|
|
7331
|
+
const updateOnView = this.getUpdateOn(this.getFormat("date"));
|
|
7332
|
+
const viewDate = this.state.viewDate.clone();
|
|
7338
7333
|
viewDate[this.viewToMethod[currentView]](
|
|
7339
7334
|
parseInt(e.target.getAttribute("data-value"), 10)
|
|
7340
7335
|
);
|
|
@@ -7342,7 +7337,7 @@ flowchart TD
|
|
|
7342
7337
|
viewDate.month(parseInt(e.target.getAttribute("data-month"), 10));
|
|
7343
7338
|
viewDate.year(parseInt(e.target.getAttribute("data-year"), 10));
|
|
7344
7339
|
}
|
|
7345
|
-
|
|
7340
|
+
const update = { viewDate };
|
|
7346
7341
|
if (currentView === updateOnView) {
|
|
7347
7342
|
update.selectedDate = viewDate.clone();
|
|
7348
7343
|
update.inputValue = viewDate.format(this.getFormat("datetime"));
|
|
@@ -7356,7 +7351,7 @@ flowchart TD
|
|
|
7356
7351
|
this.setState(update);
|
|
7357
7352
|
});
|
|
7358
7353
|
__publicField(this, "_viewNavigate", (modifier, unit) => {
|
|
7359
|
-
|
|
7354
|
+
const viewDate = this.state.viewDate.clone();
|
|
7360
7355
|
viewDate.add(modifier, unit);
|
|
7361
7356
|
if (modifier > 0) {
|
|
7362
7357
|
this.props.onNavigateForward(modifier, unit);
|
|
@@ -7366,7 +7361,7 @@ flowchart TD
|
|
|
7366
7361
|
this.setState({ viewDate });
|
|
7367
7362
|
});
|
|
7368
7363
|
__publicField(this, "_setTime", (type, value) => {
|
|
7369
|
-
|
|
7364
|
+
const date = (this.getSelectedDate() || this.state.viewDate).clone();
|
|
7370
7365
|
date[type](value);
|
|
7371
7366
|
if (!this.props.value) {
|
|
7372
7367
|
this.setState({
|
|
@@ -7390,7 +7385,7 @@ flowchart TD
|
|
|
7390
7385
|
});
|
|
7391
7386
|
});
|
|
7392
7387
|
__publicField(this, "_handleClickOutside", () => {
|
|
7393
|
-
|
|
7388
|
+
const props = this.props;
|
|
7394
7389
|
if (props.input && this.state.open && props.open === void 0 && props.closeOnClickOutside) {
|
|
7395
7390
|
this._closeCalendar();
|
|
7396
7391
|
}
|
|
@@ -7405,7 +7400,7 @@ flowchart TD
|
|
|
7405
7400
|
return;
|
|
7406
7401
|
const value = e.target ? e.target.value : e;
|
|
7407
7402
|
const localMoment = this.localMoment(value, this.getFormat("datetime"));
|
|
7408
|
-
|
|
7403
|
+
const update = { inputValue: value };
|
|
7409
7404
|
if (localMoment.isValid()) {
|
|
7410
7405
|
update.selectedDate = localMoment;
|
|
7411
7406
|
update.viewDate = localMoment.clone().startOf("month");
|
|
@@ -7469,9 +7464,9 @@ flowchart TD
|
|
|
7469
7464
|
return this.props.renderView(this.state.currentView, this._renderCalendar);
|
|
7470
7465
|
}
|
|
7471
7466
|
getInitialState() {
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7467
|
+
const props = this.props;
|
|
7468
|
+
const inputFormat = this.getFormat("datetime");
|
|
7469
|
+
const selectedDate = this.parseDate(
|
|
7475
7470
|
props.value || props.initialValue,
|
|
7476
7471
|
inputFormat
|
|
7477
7472
|
);
|
|
@@ -7502,7 +7497,7 @@ flowchart TD
|
|
|
7502
7497
|
return this.getInitialDate();
|
|
7503
7498
|
}
|
|
7504
7499
|
getInitialDate() {
|
|
7505
|
-
|
|
7500
|
+
const m = this.localMoment();
|
|
7506
7501
|
m.hour(0).minute(0).second(0).millisecond(0);
|
|
7507
7502
|
return m;
|
|
7508
7503
|
}
|
|
@@ -7522,8 +7517,8 @@ flowchart TD
|
|
|
7522
7517
|
}
|
|
7523
7518
|
getClassName() {
|
|
7524
7519
|
let cn2 = "rdt";
|
|
7525
|
-
|
|
7526
|
-
|
|
7520
|
+
const props = this.props;
|
|
7521
|
+
const propCn = props.className;
|
|
7527
7522
|
if (Array.isArray(propCn)) {
|
|
7528
7523
|
cn2 += " " + propCn.join(" ");
|
|
7529
7524
|
} else if (propCn) {
|
|
@@ -7556,14 +7551,14 @@ flowchart TD
|
|
|
7556
7551
|
return viewModes.DAYS;
|
|
7557
7552
|
}
|
|
7558
7553
|
getLocaleData() {
|
|
7559
|
-
|
|
7554
|
+
const p = this.props;
|
|
7560
7555
|
return this.localMoment(
|
|
7561
7556
|
p.value || p.defaultValue || /* @__PURE__ */ new Date()
|
|
7562
7557
|
).localeData();
|
|
7563
7558
|
}
|
|
7564
7559
|
getDateFormat() {
|
|
7565
7560
|
const locale = this.getLocaleData();
|
|
7566
|
-
|
|
7561
|
+
const format2 = this.props.dateFormat;
|
|
7567
7562
|
if (format2 === true)
|
|
7568
7563
|
return locale.longDateFormat("L");
|
|
7569
7564
|
if (format2)
|
|
@@ -7572,7 +7567,7 @@ flowchart TD
|
|
|
7572
7567
|
}
|
|
7573
7568
|
getTimeFormat() {
|
|
7574
7569
|
const locale = this.getLocaleData();
|
|
7575
|
-
|
|
7570
|
+
const format2 = this.props.timeFormat;
|
|
7576
7571
|
if (format2 === true) {
|
|
7577
7572
|
return locale.longDateFormat("LT");
|
|
7578
7573
|
}
|
|
@@ -7584,12 +7579,12 @@ flowchart TD
|
|
|
7584
7579
|
} else if (type === "time") {
|
|
7585
7580
|
return this.getTimeFormat();
|
|
7586
7581
|
}
|
|
7587
|
-
|
|
7588
|
-
|
|
7582
|
+
const dateFormat = this.getDateFormat();
|
|
7583
|
+
const timeFormat = this.getTimeFormat();
|
|
7589
7584
|
return dateFormat && timeFormat ? dateFormat + " " + timeFormat : dateFormat || timeFormat;
|
|
7590
7585
|
}
|
|
7591
7586
|
updateTime(op, amount, type, toSelected) {
|
|
7592
|
-
|
|
7587
|
+
const update = {};
|
|
7593
7588
|
const date = toSelected ? "selectedDate" : "viewDate";
|
|
7594
7589
|
update[date] = this.state[date].clone()[op](amount, type);
|
|
7595
7590
|
this.setState(update);
|
|
@@ -7622,7 +7617,7 @@ flowchart TD
|
|
|
7622
7617
|
if (prevProps === this.props)
|
|
7623
7618
|
return;
|
|
7624
7619
|
let needsUpdate = false;
|
|
7625
|
-
|
|
7620
|
+
const thisProps = this.props;
|
|
7626
7621
|
["locale", "utc", "displayZone", "dateFormat", "timeFormat"].forEach(
|
|
7627
7622
|
function(p) {
|
|
7628
7623
|
prevProps[p] !== thisProps[p] && (needsUpdate = true);
|
|
@@ -7638,8 +7633,8 @@ flowchart TD
|
|
|
7638
7633
|
}
|
|
7639
7634
|
regenerateDates() {
|
|
7640
7635
|
const props = this.props;
|
|
7641
|
-
|
|
7642
|
-
|
|
7636
|
+
const viewDate = this.state.viewDate.clone();
|
|
7637
|
+
const selectedDate = this.state.selectedDate && this.state.selectedDate.clone();
|
|
7643
7638
|
if (props.locale) {
|
|
7644
7639
|
viewDate.locale(props.locale);
|
|
7645
7640
|
selectedDate && selectedDate.locale(props.locale);
|
|
@@ -7654,7 +7649,7 @@ flowchart TD
|
|
|
7654
7649
|
viewDate.locale();
|
|
7655
7650
|
selectedDate && selectedDate.locale();
|
|
7656
7651
|
}
|
|
7657
|
-
|
|
7652
|
+
const update = { viewDate, selectedDate };
|
|
7658
7653
|
if (selectedDate && selectedDate.isValid()) {
|
|
7659
7654
|
update.inputValue = selectedDate.format(this.getFormat("datetime"));
|
|
7660
7655
|
}
|
|
@@ -7663,7 +7658,7 @@ flowchart TD
|
|
|
7663
7658
|
getSelectedDate() {
|
|
7664
7659
|
if (this.props.value === void 0)
|
|
7665
7660
|
return this.state.selectedDate;
|
|
7666
|
-
|
|
7661
|
+
const selectedDate = this.parseDate(
|
|
7667
7662
|
this.props.value,
|
|
7668
7663
|
this.getFormat("datetime")
|
|
7669
7664
|
);
|
|
@@ -7682,7 +7677,7 @@ flowchart TD
|
|
|
7682
7677
|
return "";
|
|
7683
7678
|
}
|
|
7684
7679
|
getInputValue() {
|
|
7685
|
-
|
|
7680
|
+
const selectedDate = this.getSelectedDate();
|
|
7686
7681
|
return selectedDate ? selectedDate.format(this.getFormat("datetime")) : this.state.inputValue;
|
|
7687
7682
|
}
|
|
7688
7683
|
/**
|
|
@@ -7692,7 +7687,7 @@ flowchart TD
|
|
|
7692
7687
|
* @public
|
|
7693
7688
|
*/
|
|
7694
7689
|
setViewDate(date) {
|
|
7695
|
-
|
|
7690
|
+
const logError = function() {
|
|
7696
7691
|
return log("Invalid date passed to the `setViewDate` method: " + date);
|
|
7697
7692
|
};
|
|
7698
7693
|
if (!date)
|
|
@@ -7788,7 +7783,7 @@ flowchart TD
|
|
|
7788
7783
|
// Make moment accessible through the Datetime class
|
|
7789
7784
|
__publicField(Datetime, "moment", moment);
|
|
7790
7785
|
function log(message, method) {
|
|
7791
|
-
|
|
7786
|
+
const con = typeof window !== "undefined" && window.console;
|
|
7792
7787
|
if (!con)
|
|
7793
7788
|
return;
|
|
7794
7789
|
if (!method) {
|
|
@@ -8611,7 +8606,10 @@ flowchart TD
|
|
|
8611
8606
|
label: "View in GitHub",
|
|
8612
8607
|
Icon: /* @__PURE__ */ React__namespace.createElement(BiLinkExternal, { className: "w-5 h-auto text-blue-500 opacity-70" }),
|
|
8613
8608
|
onMouseDown: () => {
|
|
8614
|
-
window.open(
|
|
8609
|
+
window.open(
|
|
8610
|
+
branch.githubPullRequestUrl,
|
|
8611
|
+
"_blank"
|
|
8612
|
+
);
|
|
8615
8613
|
}
|
|
8616
8614
|
},
|
|
8617
8615
|
typeof previewFunction === "function" && ((_b2 = previewFunction({ branch: branch.name })) == null ? void 0 : _b2.url) && {
|
|
@@ -8917,7 +8915,9 @@ flowchart TD
|
|
|
8917
8915
|
} else {
|
|
8918
8916
|
events = event;
|
|
8919
8917
|
}
|
|
8920
|
-
const newListeners = events.map(
|
|
8918
|
+
const newListeners = events.map(
|
|
8919
|
+
(event2) => new Listener(event2, callback)
|
|
8920
|
+
);
|
|
8921
8921
|
newListeners.forEach((newListener) => this.listeners.add(newListener));
|
|
8922
8922
|
return () => {
|
|
8923
8923
|
newListeners.forEach((listener) => this.listeners.delete(listener));
|
|
@@ -9273,9 +9273,7 @@ flowchart TD
|
|
|
9273
9273
|
const deleteStartTime = Date.now();
|
|
9274
9274
|
while (true) {
|
|
9275
9275
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
9276
|
-
const { error, message } = await this.api.getRequestStatus(
|
|
9277
|
-
requestId
|
|
9278
|
-
);
|
|
9276
|
+
const { error, message } = await this.api.getRequestStatus(requestId);
|
|
9279
9277
|
if (error !== void 0) {
|
|
9280
9278
|
if (error) {
|
|
9281
9279
|
throw new Error(message);
|
|
@@ -9303,11 +9301,8 @@ flowchart TD
|
|
|
9303
9301
|
const encodeUrlIfNeeded = (url) => {
|
|
9304
9302
|
if (url) {
|
|
9305
9303
|
try {
|
|
9306
|
-
|
|
9307
|
-
parsed.pathname = parsed.pathname.split("/").filter((part) => part !== "").map(encodeURIComponent).join("/");
|
|
9308
|
-
return parsed.toString();
|
|
9304
|
+
return new URL(url).toString();
|
|
9309
9305
|
} catch (e) {
|
|
9310
|
-
console.error("Failed to parse URL:", e);
|
|
9311
9306
|
return url;
|
|
9312
9307
|
}
|
|
9313
9308
|
} else {
|
|
@@ -10207,7 +10202,7 @@ flowchart TD
|
|
|
10207
10202
|
"Event Log"
|
|
10208
10203
|
));
|
|
10209
10204
|
};
|
|
10210
|
-
const version = "2.
|
|
10205
|
+
const version = "2.7.2";
|
|
10211
10206
|
const Nav = ({
|
|
10212
10207
|
isLocalMode,
|
|
10213
10208
|
className = "",
|
|
@@ -10843,7 +10838,7 @@ flowchart TD
|
|
|
10843
10838
|
className: "h-5 w-auto -mx-1 text-blue-500",
|
|
10844
10839
|
stroke: "currentColor",
|
|
10845
10840
|
fill: "currentColor",
|
|
10846
|
-
|
|
10841
|
+
strokeWidth: "0",
|
|
10847
10842
|
viewBox: "0 0 24 24",
|
|
10848
10843
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10849
10844
|
},
|
|
@@ -11433,7 +11428,10 @@ flowchart TD
|
|
|
11433
11428
|
const observer = new IntersectionObserver((entries) => {
|
|
11434
11429
|
const target = entries[0];
|
|
11435
11430
|
if (target.isIntersecting && list.nextOffset) {
|
|
11436
|
-
setOffsetHistory((offsetHistory2) => [
|
|
11431
|
+
setOffsetHistory((offsetHistory2) => [
|
|
11432
|
+
...offsetHistory2,
|
|
11433
|
+
list.nextOffset
|
|
11434
|
+
]);
|
|
11437
11435
|
}
|
|
11438
11436
|
});
|
|
11439
11437
|
if (loaderRef.current) {
|
|
@@ -12397,7 +12395,9 @@ flowchart TD
|
|
|
12397
12395
|
if (activeEle) {
|
|
12398
12396
|
setDisplay(true);
|
|
12399
12397
|
setPosition(activeEle.getBoundingClientRect());
|
|
12400
|
-
const iframe = document.getElementById(
|
|
12398
|
+
const iframe = document.getElementById(
|
|
12399
|
+
"tina-iframe"
|
|
12400
|
+
);
|
|
12401
12401
|
if (iframe) {
|
|
12402
12402
|
setIframePosition(iframe.getBoundingClientRect());
|
|
12403
12403
|
}
|
|
@@ -13015,7 +13015,9 @@ flowchart TD
|
|
|
13015
13015
|
const { fieldName } = useTemplates();
|
|
13016
13016
|
const { handleClose, handleRemove, handleSelect, isExpanded } = useEmbedHandles(editor, element, fieldName);
|
|
13017
13017
|
useHotkey("enter", () => {
|
|
13018
|
-
plateCommon.insertNodes(editor, [
|
|
13018
|
+
plateCommon.insertNodes(editor, [
|
|
13019
|
+
{ type: plate.ELEMENT_PARAGRAPH, children: [{ text: "" }] }
|
|
13020
|
+
]);
|
|
13019
13021
|
});
|
|
13020
13022
|
return /* @__PURE__ */ React.createElement("span", { ...attributes, className: "" }, children, element.url ? /* @__PURE__ */ React.createElement(
|
|
13021
13023
|
"div",
|
|
@@ -13158,7 +13160,9 @@ flowchart TD
|
|
|
13158
13160
|
const { templates, fieldName } = useTemplates();
|
|
13159
13161
|
const { handleClose, handleRemove, handleSelect, isExpanded } = useEmbedHandles(editor, element, fieldName);
|
|
13160
13162
|
useHotkey("enter", () => {
|
|
13161
|
-
plateCommon.insertNodes(editor, [
|
|
13163
|
+
plateCommon.insertNodes(editor, [
|
|
13164
|
+
{ type: plate.ELEMENT_PARAGRAPH, children: [{ text: "" }] }
|
|
13165
|
+
]);
|
|
13162
13166
|
});
|
|
13163
13167
|
useHotkey("space", () => {
|
|
13164
13168
|
plateCommon.insertNodes(editor, [{ text: " " }], {
|
|
@@ -13214,7 +13218,9 @@ flowchart TD
|
|
|
13214
13218
|
const { templates, fieldName } = useTemplates();
|
|
13215
13219
|
const { handleClose, handleRemove, handleSelect, isExpanded } = useEmbedHandles(editor, element, fieldName);
|
|
13216
13220
|
useHotkey("enter", () => {
|
|
13217
|
-
plateCommon.insertNodes(editor, [
|
|
13221
|
+
plateCommon.insertNodes(editor, [
|
|
13222
|
+
{ type: plate.ELEMENT_PARAGRAPH, children: [{ text: "" }] }
|
|
13223
|
+
]);
|
|
13218
13224
|
});
|
|
13219
13225
|
const activeTemplate = templates.find(
|
|
13220
13226
|
(template) => template.name === element.name
|
|
@@ -13560,6 +13566,11 @@ flowchart TD
|
|
|
13560
13566
|
mode: "mark",
|
|
13561
13567
|
type: plate.MARK_CODE,
|
|
13562
13568
|
match: "`"
|
|
13569
|
+
},
|
|
13570
|
+
{
|
|
13571
|
+
mode: "mark",
|
|
13572
|
+
type: plate.MARK_STRIKETHROUGH,
|
|
13573
|
+
match: ["~~", "~"]
|
|
13563
13574
|
}
|
|
13564
13575
|
];
|
|
13565
13576
|
const autoformatRules = [
|
|
@@ -13701,16 +13712,14 @@ flowchart TD
|
|
|
13701
13712
|
})
|
|
13702
13713
|
];
|
|
13703
13714
|
const plugins = [
|
|
13715
|
+
plate.createBasicMarksPlugin(),
|
|
13704
13716
|
plate.createHeadingPlugin(),
|
|
13705
13717
|
plate.createParagraphPlugin(),
|
|
13706
13718
|
createCodeBlockPlugin(),
|
|
13707
13719
|
createHTMLBlockPlugin(),
|
|
13708
13720
|
createHTMLInlinePlugin(),
|
|
13709
13721
|
plate.createBlockquotePlugin(),
|
|
13710
|
-
plate.createBoldPlugin(),
|
|
13711
|
-
plate.createItalicPlugin(),
|
|
13712
13722
|
plate.createUnderlinePlugin(),
|
|
13713
|
-
plate.createCodePlugin(),
|
|
13714
13723
|
plate.createListPlugin(),
|
|
13715
13724
|
plate.createIndentListPlugin(),
|
|
13716
13725
|
plate.createHorizontalRulePlugin(),
|
|
@@ -14070,7 +14079,9 @@ flowchart TD
|
|
|
14070
14079
|
const CONTAINER_MD_BREAKPOINT = 448;
|
|
14071
14080
|
const FLOAT_BUTTON_WIDTH = 25;
|
|
14072
14081
|
const HEADING_LABEL = "Headings";
|
|
14073
|
-
const ToolbarContext = React.createContext(
|
|
14082
|
+
const ToolbarContext = React.createContext(
|
|
14083
|
+
void 0
|
|
14084
|
+
);
|
|
14074
14085
|
const ToolbarProvider = ({
|
|
14075
14086
|
tinaForm,
|
|
14076
14087
|
templates,
|
|
@@ -14220,7 +14231,7 @@ flowchart TD
|
|
|
14220
14231
|
const CodeBlockToolbarButton = cn$1.withRef(({ clear, ...rest }, ref) => {
|
|
14221
14232
|
const state = useCodeBlockToolbarButtonState();
|
|
14222
14233
|
const { props } = useCodeBlockToolbarButton(state);
|
|
14223
|
-
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, tooltip: "
|
|
14234
|
+
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, tooltip: "Code Block", ...rest, ...props }, /* @__PURE__ */ React.createElement(Icons.codeBlock, null));
|
|
14224
14235
|
});
|
|
14225
14236
|
const useImageToolbarButtonState = () => {
|
|
14226
14237
|
const editor = plateCommon.useEditorState();
|
|
@@ -14252,36 +14263,54 @@ flowchart TD
|
|
|
14252
14263
|
const ImageToolbarButton = cn$1.withRef(({ clear, ...rest }, ref) => {
|
|
14253
14264
|
const state = useImageToolbarButtonState();
|
|
14254
14265
|
const { props } = useImageToolbarButton(state);
|
|
14255
|
-
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, tooltip: "
|
|
14256
|
-
});
|
|
14257
|
-
const IndentListToolbarButton = cn$1.withRef(({ nodeType = plate.ELEMENT_UL }, ref) => {
|
|
14258
|
-
const editor = plateCommon.useEditorState();
|
|
14259
|
-
const state = plate.useListToolbarButtonState({ nodeType });
|
|
14260
|
-
const { props } = plate.useListToolbarButton(state);
|
|
14261
|
-
return /* @__PURE__ */ React.createElement(
|
|
14262
|
-
ToolbarButton,
|
|
14263
|
-
{
|
|
14264
|
-
ref,
|
|
14265
|
-
tooltip: nodeType === plate.ELEMENT_UL ? "Bulleted List" : "Numbered List",
|
|
14266
|
-
...props,
|
|
14267
|
-
onClick: (e) => {
|
|
14268
|
-
e.preventDefault();
|
|
14269
|
-
e.stopPropagation();
|
|
14270
|
-
plate.toggleList(editor, { type: nodeType });
|
|
14271
|
-
}
|
|
14272
|
-
},
|
|
14273
|
-
nodeType === plate.ELEMENT_UL ? /* @__PURE__ */ React.createElement(Icons.ul, null) : /* @__PURE__ */ React.createElement(Icons.ol, null)
|
|
14274
|
-
);
|
|
14266
|
+
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, tooltip: "Image", ...rest, ...props }, /* @__PURE__ */ React.createElement(Icons.image, null));
|
|
14275
14267
|
});
|
|
14268
|
+
const UnorderedListToolbarButton = cn$1.withRef(
|
|
14269
|
+
(props, ref) => {
|
|
14270
|
+
const editor = plateCommon.useEditorState();
|
|
14271
|
+
const state = plate.useListToolbarButtonState({ nodeType: plate.ELEMENT_UL });
|
|
14272
|
+
const { props: buttonProps } = plate.useListToolbarButton(state);
|
|
14273
|
+
return /* @__PURE__ */ React.createElement(
|
|
14274
|
+
ToolbarButton,
|
|
14275
|
+
{
|
|
14276
|
+
ref,
|
|
14277
|
+
tooltip: "Bulleted List",
|
|
14278
|
+
...buttonProps,
|
|
14279
|
+
onClick: (e) => {
|
|
14280
|
+
e.preventDefault();
|
|
14281
|
+
e.stopPropagation();
|
|
14282
|
+
plate.toggleList(editor, { type: plate.ELEMENT_UL });
|
|
14283
|
+
}
|
|
14284
|
+
},
|
|
14285
|
+
/* @__PURE__ */ React.createElement(Icons.ul, null)
|
|
14286
|
+
);
|
|
14287
|
+
}
|
|
14288
|
+
);
|
|
14289
|
+
const OrderedListToolbarButton = cn$1.withRef(
|
|
14290
|
+
(props, ref) => {
|
|
14291
|
+
const editor = plateCommon.useEditorState();
|
|
14292
|
+
const state = plate.useListToolbarButtonState({ nodeType: plate.ELEMENT_OL });
|
|
14293
|
+
const { props: buttonProps } = plate.useListToolbarButton(state);
|
|
14294
|
+
return /* @__PURE__ */ React.createElement(
|
|
14295
|
+
ToolbarButton,
|
|
14296
|
+
{
|
|
14297
|
+
ref,
|
|
14298
|
+
tooltip: "Numbered List",
|
|
14299
|
+
...buttonProps,
|
|
14300
|
+
onClick: (e) => {
|
|
14301
|
+
e.preventDefault();
|
|
14302
|
+
e.stopPropagation();
|
|
14303
|
+
plate.toggleList(editor, { type: plate.ELEMENT_OL });
|
|
14304
|
+
}
|
|
14305
|
+
},
|
|
14306
|
+
/* @__PURE__ */ React.createElement(Icons.ol, null)
|
|
14307
|
+
);
|
|
14308
|
+
}
|
|
14309
|
+
);
|
|
14276
14310
|
const LinkToolbarButton = cn$1.withRef((rest, ref) => {
|
|
14277
14311
|
const state = plateLink.useLinkToolbarButtonState();
|
|
14278
14312
|
const { props } = plateLink.useLinkToolbarButton(state);
|
|
14279
|
-
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, tooltip: "Link"
|
|
14280
|
-
});
|
|
14281
|
-
const MarkToolbarButton = cn$1.withRef(({ clear, nodeType, ...rest }, ref) => {
|
|
14282
|
-
const state = plateCommon.useMarkToolbarButtonState({ clear, nodeType });
|
|
14283
|
-
const { props } = plateCommon.useMarkToolbarButton(state);
|
|
14284
|
-
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, ...props, ...rest });
|
|
14313
|
+
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, ...props, ...rest, tooltip: "Link" }, /* @__PURE__ */ React.createElement(Icons.link, null));
|
|
14285
14314
|
});
|
|
14286
14315
|
const useMermaidToolbarButtonState = () => {
|
|
14287
14316
|
const editor = plateCommon.useEditorState();
|
|
@@ -14362,7 +14391,7 @@ flowchart TD
|
|
|
14362
14391
|
const QuoteToolbarButton = cn$1.withRef(({ clear, ...rest }, ref) => {
|
|
14363
14392
|
const state = useBlockQuoteToolbarButtonState();
|
|
14364
14393
|
const { props } = useBlockQuoteToolbarButton(state);
|
|
14365
|
-
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, tooltip: "
|
|
14394
|
+
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, tooltip: "Quote (⌘+⇧+.)", ...rest, ...props }, /* @__PURE__ */ React.createElement(Icons.quote, null));
|
|
14366
14395
|
});
|
|
14367
14396
|
const useRawMarkdownToolbarButton = () => {
|
|
14368
14397
|
const { setRawMode } = useEditorContext();
|
|
@@ -14382,7 +14411,7 @@ flowchart TD
|
|
|
14382
14411
|
ToolbarButton,
|
|
14383
14412
|
{
|
|
14384
14413
|
ref,
|
|
14385
|
-
tooltip: "
|
|
14414
|
+
tooltip: "Raw Markdown",
|
|
14386
14415
|
...rest,
|
|
14387
14416
|
...props,
|
|
14388
14417
|
"data-testid": "markdown-button"
|
|
@@ -14535,6 +14564,15 @@ flowchart TD
|
|
|
14535
14564
|
template.label || template.name
|
|
14536
14565
|
))));
|
|
14537
14566
|
};
|
|
14567
|
+
const MarkToolbarButton = cn$1.withRef(({ clear, nodeType, ...rest }, ref) => {
|
|
14568
|
+
const state = plateCommon.useMarkToolbarButtonState({ clear, nodeType });
|
|
14569
|
+
const { props } = plateCommon.useMarkToolbarButton(state);
|
|
14570
|
+
return /* @__PURE__ */ React.createElement(ToolbarButton, { ref, ...props, ...rest });
|
|
14571
|
+
});
|
|
14572
|
+
const BoldToolbarButton = () => /* @__PURE__ */ React.createElement(MarkToolbarButton, { tooltip: "Bold (⌘+B)", nodeType: plate.MARK_BOLD }, /* @__PURE__ */ React.createElement(Icons.bold, null));
|
|
14573
|
+
const StrikethroughToolbarButton = () => /* @__PURE__ */ React.createElement(MarkToolbarButton, { tooltip: "Strikethrough", nodeType: plate.MARK_STRIKETHROUGH }, /* @__PURE__ */ React.createElement(Icons.strikethrough, null));
|
|
14574
|
+
const ItalicToolbarButton = () => /* @__PURE__ */ React.createElement(MarkToolbarButton, { tooltip: "Italic (⌘+I)", nodeType: plate.MARK_ITALIC }, /* @__PURE__ */ React.createElement(Icons.italic, null));
|
|
14575
|
+
const CodeToolbarButton = () => /* @__PURE__ */ React.createElement(MarkToolbarButton, { tooltip: "Code (⌘+E)", nodeType: plate.MARK_CODE }, /* @__PURE__ */ React.createElement(Icons.code, null));
|
|
14538
14576
|
const toolbarItems = {
|
|
14539
14577
|
heading: {
|
|
14540
14578
|
label: HEADING_LABEL,
|
|
@@ -14555,32 +14593,37 @@ flowchart TD
|
|
|
14555
14593
|
quote: {
|
|
14556
14594
|
label: "Quote",
|
|
14557
14595
|
width: () => STANDARD_ICON_WIDTH,
|
|
14558
|
-
Component: /* @__PURE__ */ React.createElement(QuoteToolbarButton,
|
|
14596
|
+
Component: /* @__PURE__ */ React.createElement(QuoteToolbarButton, null)
|
|
14559
14597
|
},
|
|
14560
14598
|
ul: {
|
|
14561
14599
|
label: "Unordered List",
|
|
14562
14600
|
width: () => STANDARD_ICON_WIDTH,
|
|
14563
|
-
Component: /* @__PURE__ */ React.createElement(
|
|
14601
|
+
Component: /* @__PURE__ */ React.createElement(UnorderedListToolbarButton, null)
|
|
14564
14602
|
},
|
|
14565
14603
|
ol: {
|
|
14566
14604
|
label: "Ordered List",
|
|
14567
14605
|
width: () => STANDARD_ICON_WIDTH,
|
|
14568
|
-
Component: /* @__PURE__ */ React.createElement(
|
|
14606
|
+
Component: /* @__PURE__ */ React.createElement(OrderedListToolbarButton, null)
|
|
14569
14607
|
},
|
|
14570
14608
|
bold: {
|
|
14571
14609
|
label: "Bold",
|
|
14572
14610
|
width: () => STANDARD_ICON_WIDTH,
|
|
14573
|
-
Component: /* @__PURE__ */ React.createElement(
|
|
14611
|
+
Component: /* @__PURE__ */ React.createElement(BoldToolbarButton, null)
|
|
14612
|
+
},
|
|
14613
|
+
strikethrough: {
|
|
14614
|
+
label: "Strikethrough",
|
|
14615
|
+
width: () => STANDARD_ICON_WIDTH,
|
|
14616
|
+
Component: /* @__PURE__ */ React.createElement(StrikethroughToolbarButton, null)
|
|
14574
14617
|
},
|
|
14575
14618
|
italic: {
|
|
14576
14619
|
label: "Italic",
|
|
14577
14620
|
width: () => STANDARD_ICON_WIDTH,
|
|
14578
|
-
Component: /* @__PURE__ */ React.createElement(
|
|
14621
|
+
Component: /* @__PURE__ */ React.createElement(ItalicToolbarButton, null)
|
|
14579
14622
|
},
|
|
14580
14623
|
code: {
|
|
14581
14624
|
label: "Code",
|
|
14582
14625
|
width: () => STANDARD_ICON_WIDTH,
|
|
14583
|
-
Component: /* @__PURE__ */ React.createElement(
|
|
14626
|
+
Component: /* @__PURE__ */ React.createElement(CodeToolbarButton, null)
|
|
14584
14627
|
},
|
|
14585
14628
|
codeBlock: {
|
|
14586
14629
|
label: "Code Block",
|
|
@@ -15029,8 +15072,7 @@ flowchart TD
|
|
|
15029
15072
|
onChange: (value) => {
|
|
15030
15073
|
input.onChange({
|
|
15031
15074
|
type: "root",
|
|
15032
|
-
children: value
|
|
15033
|
-
embedCode: input.value.embedCode
|
|
15075
|
+
children: value
|
|
15034
15076
|
});
|
|
15035
15077
|
}
|
|
15036
15078
|
},
|
|
@@ -16230,132 +16272,1209 @@ flowchart TD
|
|
|
16230
16272
|
"হয়"
|
|
16231
16273
|
];
|
|
16232
16274
|
const bre = [
|
|
16275
|
+
"'blam",
|
|
16276
|
+
"'d",
|
|
16277
|
+
"'m",
|
|
16278
|
+
"'r",
|
|
16279
|
+
"'ta",
|
|
16280
|
+
"'vat",
|
|
16281
|
+
"'z",
|
|
16282
|
+
"'zo",
|
|
16233
16283
|
"a",
|
|
16234
|
-
"
|
|
16235
|
-
"
|
|
16236
|
-
"
|
|
16237
|
-
"
|
|
16238
|
-
"
|
|
16239
|
-
"
|
|
16240
|
-
"
|
|
16241
|
-
"
|
|
16242
|
-
"
|
|
16243
|
-
"
|
|
16244
|
-
"
|
|
16245
|
-
"
|
|
16246
|
-
"
|
|
16247
|
-
"
|
|
16248
|
-
"
|
|
16249
|
-
"
|
|
16250
|
-
"
|
|
16251
|
-
"
|
|
16252
|
-
"
|
|
16253
|
-
"
|
|
16254
|
-
"
|
|
16284
|
+
"a:",
|
|
16285
|
+
"aba",
|
|
16286
|
+
"abalamour",
|
|
16287
|
+
"abaoe",
|
|
16288
|
+
"ac'hane",
|
|
16289
|
+
"ac'hanoc'h",
|
|
16290
|
+
"ac'hanomp",
|
|
16291
|
+
"ac'hanon",
|
|
16292
|
+
"ac'hanout",
|
|
16293
|
+
"adal",
|
|
16294
|
+
"adalek",
|
|
16295
|
+
"adarre",
|
|
16296
|
+
"ae",
|
|
16297
|
+
"aec'h",
|
|
16298
|
+
"aed",
|
|
16299
|
+
"aemp",
|
|
16300
|
+
"aen",
|
|
16301
|
+
"aent",
|
|
16302
|
+
"aes",
|
|
16303
|
+
"afe",
|
|
16304
|
+
"afec'h",
|
|
16305
|
+
"afed",
|
|
16306
|
+
"afemp",
|
|
16307
|
+
"afen",
|
|
16308
|
+
"afent",
|
|
16309
|
+
"afes",
|
|
16310
|
+
"ag",
|
|
16311
|
+
"ah",
|
|
16312
|
+
"aimp",
|
|
16313
|
+
"aint",
|
|
16314
|
+
"aio",
|
|
16315
|
+
"aiou",
|
|
16316
|
+
"aje",
|
|
16317
|
+
"ajec'h",
|
|
16318
|
+
"ajed",
|
|
16319
|
+
"ajemp",
|
|
16320
|
+
"ajen",
|
|
16321
|
+
"ajent",
|
|
16322
|
+
"ajes",
|
|
16323
|
+
"al",
|
|
16324
|
+
"alato",
|
|
16325
|
+
"alies",
|
|
16326
|
+
"aliesañ",
|
|
16327
|
+
"alkent",
|
|
16328
|
+
"all",
|
|
16329
|
+
"allas",
|
|
16330
|
+
"allo",
|
|
16331
|
+
"allô",
|
|
16332
|
+
"am",
|
|
16333
|
+
"amañ",
|
|
16334
|
+
"amzer",
|
|
16335
|
+
"an",
|
|
16336
|
+
"anezhañ",
|
|
16337
|
+
"anezhe",
|
|
16338
|
+
"anezhi",
|
|
16339
|
+
"anezho",
|
|
16340
|
+
"anvet",
|
|
16341
|
+
"aon",
|
|
16342
|
+
"aotren",
|
|
16343
|
+
"ar",
|
|
16344
|
+
"arall",
|
|
16345
|
+
"araok",
|
|
16346
|
+
"araoki",
|
|
16347
|
+
"araozañ",
|
|
16348
|
+
"araozo",
|
|
16349
|
+
"araozoc'h",
|
|
16350
|
+
"araozomp",
|
|
16351
|
+
"araozon",
|
|
16352
|
+
"araozor",
|
|
16353
|
+
"araozout",
|
|
16354
|
+
"arbenn",
|
|
16355
|
+
"arre",
|
|
16356
|
+
"atalek",
|
|
16357
|
+
"atav",
|
|
16358
|
+
"az",
|
|
16359
|
+
"azalek",
|
|
16360
|
+
"azirazañ",
|
|
16361
|
+
"azirazi",
|
|
16362
|
+
"azirazo",
|
|
16363
|
+
"azirazoc'h",
|
|
16364
|
+
"azirazomp",
|
|
16365
|
+
"azirazon",
|
|
16366
|
+
"azirazor",
|
|
16367
|
+
"azirazout",
|
|
16368
|
+
"b:",
|
|
16369
|
+
"ba",
|
|
16370
|
+
"ba'l",
|
|
16371
|
+
"ba'n",
|
|
16372
|
+
"ba'r",
|
|
16373
|
+
"bad",
|
|
16374
|
+
"bah",
|
|
16375
|
+
"bal",
|
|
16376
|
+
"ban",
|
|
16377
|
+
"bar",
|
|
16378
|
+
"bastañ",
|
|
16379
|
+
"befe",
|
|
16380
|
+
"bell",
|
|
16381
|
+
"benaos",
|
|
16382
|
+
"benn",
|
|
16383
|
+
"bennag",
|
|
16384
|
+
"bennak",
|
|
16385
|
+
"bennozh",
|
|
16386
|
+
"bep",
|
|
16387
|
+
"bepred",
|
|
16388
|
+
"berr",
|
|
16389
|
+
"berzh",
|
|
16390
|
+
"bet",
|
|
16391
|
+
"betek",
|
|
16392
|
+
"betra",
|
|
16393
|
+
"bev",
|
|
16394
|
+
"bevet",
|
|
16395
|
+
"bez",
|
|
16396
|
+
"bezañ",
|
|
16397
|
+
"beze",
|
|
16398
|
+
"bezent",
|
|
16399
|
+
"bezet",
|
|
16400
|
+
"bezh",
|
|
16401
|
+
"bezit",
|
|
16402
|
+
"bezomp",
|
|
16403
|
+
"bihan",
|
|
16404
|
+
"bije",
|
|
16405
|
+
"biou",
|
|
16406
|
+
"biskoazh",
|
|
16407
|
+
"blam",
|
|
16408
|
+
"bo",
|
|
16409
|
+
"boa",
|
|
16410
|
+
"bominapl",
|
|
16411
|
+
"boudoudom",
|
|
16412
|
+
"bouez",
|
|
16413
|
+
"boull",
|
|
16414
|
+
"boum",
|
|
16415
|
+
"bout",
|
|
16416
|
+
"bras",
|
|
16417
|
+
"brasañ",
|
|
16418
|
+
"brav",
|
|
16419
|
+
"bravo",
|
|
16420
|
+
"bremañ",
|
|
16421
|
+
"bres",
|
|
16422
|
+
"brokenn",
|
|
16423
|
+
"bronn",
|
|
16424
|
+
"brrr",
|
|
16425
|
+
"brutal",
|
|
16426
|
+
"buhezek",
|
|
16427
|
+
"c'h:",
|
|
16428
|
+
"c'haout",
|
|
16429
|
+
"c'he",
|
|
16430
|
+
"c'hem",
|
|
16431
|
+
"c'herz",
|
|
16432
|
+
"c'heñver",
|
|
16433
|
+
"c'hichen",
|
|
16434
|
+
"c'hiz",
|
|
16435
|
+
"c'hoazh",
|
|
16436
|
+
"c'horre",
|
|
16437
|
+
"c'houde",
|
|
16438
|
+
"c'houst",
|
|
16439
|
+
"c'hreiz",
|
|
16440
|
+
"c'hwec'h",
|
|
16441
|
+
"c'hwec'hvet",
|
|
16442
|
+
"c'hwezek",
|
|
16443
|
+
"c'hwi",
|
|
16444
|
+
"ch:",
|
|
16445
|
+
"chaous",
|
|
16446
|
+
"chik",
|
|
16447
|
+
"chit",
|
|
16448
|
+
"chom",
|
|
16449
|
+
"chut",
|
|
16450
|
+
"d'",
|
|
16451
|
+
"d'al",
|
|
16452
|
+
"d'an",
|
|
16453
|
+
"d'ar",
|
|
16454
|
+
"d'az",
|
|
16455
|
+
"d'e",
|
|
16456
|
+
"d'he",
|
|
16457
|
+
"d'ho",
|
|
16458
|
+
"d'hol",
|
|
16459
|
+
"d'hon",
|
|
16460
|
+
"d'hor",
|
|
16461
|
+
"d'o",
|
|
16462
|
+
"d'ober",
|
|
16463
|
+
"d'ul",
|
|
16464
|
+
"d'un",
|
|
16465
|
+
"d'ur",
|
|
16466
|
+
"d:",
|
|
16255
16467
|
"da",
|
|
16256
|
-
"
|
|
16257
|
-
"
|
|
16258
|
-
"
|
|
16259
|
-
"
|
|
16260
|
-
"
|
|
16261
|
-
"
|
|
16262
|
-
"
|
|
16263
|
-
"
|
|
16264
|
-
"
|
|
16265
|
-
"
|
|
16266
|
-
"
|
|
16267
|
-
"
|
|
16268
|
-
"
|
|
16269
|
-
"
|
|
16270
|
-
"
|
|
16468
|
+
"dak",
|
|
16469
|
+
"daka",
|
|
16470
|
+
"dal",
|
|
16471
|
+
"dalbezh",
|
|
16472
|
+
"dalc'hmat",
|
|
16473
|
+
"dalit",
|
|
16474
|
+
"damdost",
|
|
16475
|
+
"damheñvel",
|
|
16476
|
+
"damm",
|
|
16477
|
+
"dan",
|
|
16478
|
+
"danvez",
|
|
16479
|
+
"dao",
|
|
16480
|
+
"daol",
|
|
16481
|
+
"daonet",
|
|
16482
|
+
"daou",
|
|
16483
|
+
"daoust",
|
|
16484
|
+
"daouzek",
|
|
16485
|
+
"daouzekvet",
|
|
16486
|
+
"darn",
|
|
16487
|
+
"dastrewiñ",
|
|
16488
|
+
"dav",
|
|
16489
|
+
"davedoc'h",
|
|
16490
|
+
"davedomp",
|
|
16491
|
+
"davedon",
|
|
16492
|
+
"davedor",
|
|
16493
|
+
"davedout",
|
|
16494
|
+
"davet",
|
|
16495
|
+
"davetañ",
|
|
16496
|
+
"davete",
|
|
16497
|
+
"daveti",
|
|
16498
|
+
"daveto",
|
|
16499
|
+
"defe",
|
|
16500
|
+
"dehou",
|
|
16501
|
+
"dek",
|
|
16502
|
+
"dekvet",
|
|
16503
|
+
"den",
|
|
16504
|
+
"deoc'h",
|
|
16505
|
+
"deomp",
|
|
16506
|
+
"deor",
|
|
16507
|
+
"derc'hel",
|
|
16508
|
+
"deus",
|
|
16509
|
+
"dez",
|
|
16510
|
+
"deze",
|
|
16511
|
+
"dezhañ",
|
|
16512
|
+
"dezhe",
|
|
16513
|
+
"dezhi",
|
|
16514
|
+
"dezho",
|
|
16515
|
+
"di",
|
|
16516
|
+
"diabarzh",
|
|
16517
|
+
"diagent",
|
|
16518
|
+
"diar",
|
|
16519
|
+
"diaraok",
|
|
16520
|
+
"diavaez",
|
|
16521
|
+
"dibaoe",
|
|
16522
|
+
"dibaot",
|
|
16523
|
+
"dibar",
|
|
16524
|
+
"dic'halañ",
|
|
16525
|
+
"didiac'h",
|
|
16526
|
+
"dienn",
|
|
16527
|
+
"difer",
|
|
16528
|
+
"diganeoc'h",
|
|
16529
|
+
"diganeomp",
|
|
16530
|
+
"diganeor",
|
|
16531
|
+
"diganimp",
|
|
16532
|
+
"diganin",
|
|
16533
|
+
"diganit",
|
|
16534
|
+
"digant",
|
|
16535
|
+
"digantañ",
|
|
16536
|
+
"digante",
|
|
16537
|
+
"diganti",
|
|
16538
|
+
"diganto",
|
|
16539
|
+
"digemmesk",
|
|
16540
|
+
"diget",
|
|
16541
|
+
"digor",
|
|
16542
|
+
"digoret",
|
|
16543
|
+
"dija",
|
|
16544
|
+
"dije",
|
|
16545
|
+
"dimp",
|
|
16546
|
+
"din",
|
|
16547
|
+
"dinaou",
|
|
16548
|
+
"dindan",
|
|
16549
|
+
"dindanañ",
|
|
16550
|
+
"dindani",
|
|
16551
|
+
"dindano",
|
|
16552
|
+
"dindanoc'h",
|
|
16553
|
+
"dindanomp",
|
|
16554
|
+
"dindanon",
|
|
16555
|
+
"dindanor",
|
|
16556
|
+
"dindanout",
|
|
16557
|
+
"dioutañ",
|
|
16558
|
+
"dioute",
|
|
16559
|
+
"diouti",
|
|
16560
|
+
"diouto",
|
|
16561
|
+
"diouzh",
|
|
16562
|
+
"diouzhin",
|
|
16563
|
+
"diouzhit",
|
|
16564
|
+
"diouzhoc'h",
|
|
16565
|
+
"diouzhomp",
|
|
16566
|
+
"diouzhor",
|
|
16567
|
+
"dirak",
|
|
16568
|
+
"dirazañ",
|
|
16569
|
+
"dirazi",
|
|
16570
|
+
"dirazo",
|
|
16571
|
+
"dirazoc'h",
|
|
16572
|
+
"dirazomp",
|
|
16573
|
+
"dirazon",
|
|
16574
|
+
"dirazor",
|
|
16575
|
+
"dirazout",
|
|
16576
|
+
"disheñvel",
|
|
16577
|
+
"dispar",
|
|
16578
|
+
"distank",
|
|
16579
|
+
"dister",
|
|
16580
|
+
"disterañ",
|
|
16581
|
+
"disterig",
|
|
16582
|
+
"distro",
|
|
16583
|
+
"dit",
|
|
16584
|
+
"divaez",
|
|
16585
|
+
"diwar",
|
|
16586
|
+
"diwezhat",
|
|
16587
|
+
"diwezhañ",
|
|
16271
16588
|
"do",
|
|
16272
|
-
"
|
|
16273
|
-
"
|
|
16589
|
+
"doa",
|
|
16590
|
+
"doare",
|
|
16591
|
+
"dont",
|
|
16592
|
+
"dost",
|
|
16593
|
+
"doue",
|
|
16594
|
+
"douetus",
|
|
16595
|
+
"douez",
|
|
16596
|
+
"doug",
|
|
16597
|
+
"draou",
|
|
16598
|
+
"draoñ",
|
|
16599
|
+
"dre",
|
|
16600
|
+
"drede",
|
|
16601
|
+
"dreist",
|
|
16602
|
+
"dreistañ",
|
|
16603
|
+
"dreisti",
|
|
16604
|
+
"dreisto",
|
|
16605
|
+
"dreistoc'h",
|
|
16606
|
+
"dreistomp",
|
|
16607
|
+
"dreiston",
|
|
16608
|
+
"dreistor",
|
|
16609
|
+
"dreistout",
|
|
16610
|
+
"drek",
|
|
16611
|
+
"dreñv",
|
|
16612
|
+
"dring",
|
|
16613
|
+
"dro",
|
|
16614
|
+
"du",
|
|
16274
16615
|
"e",
|
|
16275
|
-
"
|
|
16276
|
-
"
|
|
16277
|
-
"
|
|
16278
|
-
"
|
|
16616
|
+
"e:",
|
|
16617
|
+
"eas",
|
|
16618
|
+
"ebet",
|
|
16619
|
+
"ec'h",
|
|
16620
|
+
"edo",
|
|
16621
|
+
"edoc'h",
|
|
16622
|
+
"edod",
|
|
16623
|
+
"edomp",
|
|
16624
|
+
"edon",
|
|
16625
|
+
"edont",
|
|
16626
|
+
"edos",
|
|
16627
|
+
"eer",
|
|
16628
|
+
"eeun",
|
|
16629
|
+
"efed",
|
|
16630
|
+
"egedoc'h",
|
|
16631
|
+
"egedomp",
|
|
16632
|
+
"egedon",
|
|
16633
|
+
"egedor",
|
|
16634
|
+
"egedout",
|
|
16635
|
+
"eget",
|
|
16636
|
+
"egetañ",
|
|
16637
|
+
"egete",
|
|
16638
|
+
"egeti",
|
|
16639
|
+
"egeto",
|
|
16640
|
+
"eh",
|
|
16641
|
+
"eil",
|
|
16642
|
+
"eilvet",
|
|
16643
|
+
"eizh",
|
|
16644
|
+
"eizhvet",
|
|
16645
|
+
"ejoc'h",
|
|
16646
|
+
"ejod",
|
|
16647
|
+
"ejomp",
|
|
16648
|
+
"ejont",
|
|
16649
|
+
"ejout",
|
|
16650
|
+
"el",
|
|
16279
16651
|
"em",
|
|
16280
|
-
"
|
|
16281
|
-
"
|
|
16282
|
-
"
|
|
16283
|
-
"
|
|
16284
|
-
"
|
|
16285
|
-
"
|
|
16286
|
-
"
|
|
16287
|
-
"
|
|
16288
|
-
"
|
|
16289
|
-
"
|
|
16652
|
+
"emaint",
|
|
16653
|
+
"emaoc'h",
|
|
16654
|
+
"emaomp",
|
|
16655
|
+
"emaon",
|
|
16656
|
+
"emaout",
|
|
16657
|
+
"emañ",
|
|
16658
|
+
"eme",
|
|
16659
|
+
"emeur",
|
|
16660
|
+
"emezañ",
|
|
16661
|
+
"emezi",
|
|
16662
|
+
"emezo",
|
|
16663
|
+
"emezoc'h",
|
|
16664
|
+
"emezomp",
|
|
16665
|
+
"emezon",
|
|
16666
|
+
"emezout",
|
|
16667
|
+
"emporzhiañ",
|
|
16668
|
+
"en",
|
|
16669
|
+
"end",
|
|
16670
|
+
"endan",
|
|
16671
|
+
"endra",
|
|
16672
|
+
"enep",
|
|
16673
|
+
"ennañ",
|
|
16674
|
+
"enni",
|
|
16675
|
+
"enno",
|
|
16676
|
+
"ennoc'h",
|
|
16677
|
+
"ennomp",
|
|
16678
|
+
"ennon",
|
|
16679
|
+
"ennor",
|
|
16680
|
+
"ennout",
|
|
16681
|
+
"enta",
|
|
16682
|
+
"eo",
|
|
16683
|
+
"eomp",
|
|
16684
|
+
"eont",
|
|
16685
|
+
"eor",
|
|
16686
|
+
"eot",
|
|
16687
|
+
"er",
|
|
16688
|
+
"erbet",
|
|
16689
|
+
"erfin",
|
|
16690
|
+
"esa",
|
|
16691
|
+
"esae",
|
|
16692
|
+
"espar",
|
|
16693
|
+
"estlamm",
|
|
16694
|
+
"estrañj",
|
|
16695
|
+
"eta",
|
|
16696
|
+
"etre",
|
|
16697
|
+
"etreoc'h",
|
|
16698
|
+
"etrezo",
|
|
16699
|
+
"etrezoc'h",
|
|
16700
|
+
"etrezomp",
|
|
16701
|
+
"etrezor",
|
|
16702
|
+
"euh",
|
|
16703
|
+
"eur",
|
|
16704
|
+
"eus",
|
|
16705
|
+
"evel",
|
|
16706
|
+
"evelato",
|
|
16707
|
+
"eveldoc'h",
|
|
16708
|
+
"eveldomp",
|
|
16709
|
+
"eveldon",
|
|
16710
|
+
"eveldor",
|
|
16711
|
+
"eveldout",
|
|
16712
|
+
"evelkent",
|
|
16713
|
+
"eveltañ",
|
|
16714
|
+
"evelte",
|
|
16715
|
+
"evelti",
|
|
16716
|
+
"evelto",
|
|
16717
|
+
"evidoc'h",
|
|
16718
|
+
"evidomp",
|
|
16719
|
+
"evidon",
|
|
16720
|
+
"evidor",
|
|
16721
|
+
"evidout",
|
|
16722
|
+
"evit",
|
|
16723
|
+
"evitañ",
|
|
16724
|
+
"evite",
|
|
16725
|
+
"eviti",
|
|
16726
|
+
"evito",
|
|
16727
|
+
"ez",
|
|
16728
|
+
"eñ",
|
|
16729
|
+
"f:",
|
|
16730
|
+
"fac'h",
|
|
16731
|
+
"fall",
|
|
16732
|
+
"fed",
|
|
16733
|
+
"feiz",
|
|
16734
|
+
"fenn",
|
|
16735
|
+
"fezh",
|
|
16736
|
+
"fin",
|
|
16737
|
+
"finsalvet",
|
|
16738
|
+
"foei",
|
|
16739
|
+
"fouilhezañ",
|
|
16740
|
+
"g:",
|
|
16741
|
+
"gallout",
|
|
16742
|
+
"ganeoc'h",
|
|
16743
|
+
"ganeomp",
|
|
16744
|
+
"ganin",
|
|
16745
|
+
"ganit",
|
|
16746
|
+
"gant",
|
|
16747
|
+
"gantañ",
|
|
16748
|
+
"ganti",
|
|
16749
|
+
"ganto",
|
|
16750
|
+
"gaout",
|
|
16751
|
+
"gast",
|
|
16752
|
+
"gein",
|
|
16753
|
+
"gellout",
|
|
16754
|
+
"genndost",
|
|
16755
|
+
"gentañ",
|
|
16756
|
+
"ger",
|
|
16757
|
+
"gerz",
|
|
16758
|
+
"get",
|
|
16759
|
+
"geñver",
|
|
16760
|
+
"gichen",
|
|
16761
|
+
"gin",
|
|
16762
|
+
"giz",
|
|
16763
|
+
"glan",
|
|
16764
|
+
"gloev",
|
|
16765
|
+
"goll",
|
|
16766
|
+
"gorre",
|
|
16767
|
+
"goude",
|
|
16768
|
+
"gouez",
|
|
16769
|
+
"gouezit",
|
|
16770
|
+
"gouezomp",
|
|
16771
|
+
"goulz",
|
|
16772
|
+
"gounnar",
|
|
16773
|
+
"gour",
|
|
16774
|
+
"goust",
|
|
16775
|
+
"gouze",
|
|
16776
|
+
"gouzout",
|
|
16777
|
+
"gra",
|
|
16778
|
+
"grak",
|
|
16779
|
+
"grec'h",
|
|
16780
|
+
"greiz",
|
|
16781
|
+
"grenn",
|
|
16782
|
+
"greomp",
|
|
16783
|
+
"grit",
|
|
16784
|
+
"groñs",
|
|
16785
|
+
"gutez",
|
|
16786
|
+
"gwall",
|
|
16787
|
+
"gwashoc'h",
|
|
16788
|
+
"gwazh",
|
|
16789
|
+
"gwech",
|
|
16790
|
+
"gwechall",
|
|
16791
|
+
"gwechoù",
|
|
16792
|
+
"gwell",
|
|
16793
|
+
"gwezh",
|
|
16794
|
+
"gwezhall",
|
|
16795
|
+
"gwezharall",
|
|
16796
|
+
"gwezhoù",
|
|
16797
|
+
"gwig",
|
|
16798
|
+
"gwirionez",
|
|
16799
|
+
"gwitibunan",
|
|
16800
|
+
"gêr",
|
|
16801
|
+
"h:",
|
|
16290
16802
|
"ha",
|
|
16291
|
-
"
|
|
16292
|
-
"
|
|
16293
|
-
"
|
|
16294
|
-
"
|
|
16295
|
-
"
|
|
16296
|
-
"
|
|
16297
|
-
"
|
|
16298
|
-
"
|
|
16299
|
-
"
|
|
16300
|
-
"
|
|
16301
|
-
"
|
|
16803
|
+
"hag",
|
|
16804
|
+
"han",
|
|
16805
|
+
"hanter",
|
|
16806
|
+
"hanterc'hantad",
|
|
16807
|
+
"hanterkantved",
|
|
16808
|
+
"harz",
|
|
16809
|
+
"hañ",
|
|
16810
|
+
"hañval",
|
|
16811
|
+
"he",
|
|
16812
|
+
"hebioù",
|
|
16813
|
+
"hec'h",
|
|
16814
|
+
"hei",
|
|
16815
|
+
"hein",
|
|
16816
|
+
"hem",
|
|
16817
|
+
"hemañ",
|
|
16818
|
+
"hen",
|
|
16819
|
+
"hend",
|
|
16820
|
+
"henhont",
|
|
16821
|
+
"henn",
|
|
16822
|
+
"hennezh",
|
|
16823
|
+
"hent",
|
|
16824
|
+
"hep",
|
|
16825
|
+
"hervez",
|
|
16826
|
+
"hervezañ",
|
|
16827
|
+
"hervezi",
|
|
16828
|
+
"hervezo",
|
|
16829
|
+
"hervezoc'h",
|
|
16830
|
+
"hervezomp",
|
|
16831
|
+
"hervezon",
|
|
16832
|
+
"hervezor",
|
|
16833
|
+
"hervezout",
|
|
16834
|
+
"heul",
|
|
16835
|
+
"heuliañ",
|
|
16836
|
+
"hevelep",
|
|
16837
|
+
"heverk",
|
|
16838
|
+
"heñvel",
|
|
16839
|
+
"heñvelat",
|
|
16840
|
+
"heñvelañ",
|
|
16841
|
+
"heñveliñ",
|
|
16842
|
+
"heñveloc'h",
|
|
16843
|
+
"heñvelout",
|
|
16844
|
+
"hi",
|
|
16845
|
+
"hilh",
|
|
16846
|
+
"hini",
|
|
16847
|
+
"hirie",
|
|
16848
|
+
"hirio",
|
|
16849
|
+
"hiziv",
|
|
16850
|
+
"hiziviken",
|
|
16851
|
+
"ho",
|
|
16852
|
+
"hoaliñ",
|
|
16853
|
+
"hoc'h",
|
|
16854
|
+
"hogen",
|
|
16855
|
+
"hogos",
|
|
16856
|
+
"hogozik",
|
|
16857
|
+
"hol",
|
|
16858
|
+
"holl",
|
|
16859
|
+
"holà",
|
|
16860
|
+
"homañ",
|
|
16861
|
+
"hon",
|
|
16862
|
+
"honhont",
|
|
16863
|
+
"honnezh",
|
|
16864
|
+
"hont",
|
|
16865
|
+
"hop",
|
|
16866
|
+
"hopala",
|
|
16867
|
+
"hor",
|
|
16868
|
+
"hou",
|
|
16869
|
+
"houp",
|
|
16870
|
+
"hudu",
|
|
16871
|
+
"hue",
|
|
16872
|
+
"hui",
|
|
16873
|
+
"hum",
|
|
16874
|
+
"hurrah",
|
|
16875
|
+
"i",
|
|
16876
|
+
"i:",
|
|
16877
|
+
"in",
|
|
16878
|
+
"int",
|
|
16879
|
+
"is",
|
|
16880
|
+
"ispisial",
|
|
16881
|
+
"isurzhiet",
|
|
16882
|
+
"it",
|
|
16883
|
+
"ivez",
|
|
16884
|
+
"izelañ",
|
|
16885
|
+
"j:",
|
|
16886
|
+
"just",
|
|
16887
|
+
"k:",
|
|
16888
|
+
"kae",
|
|
16889
|
+
"kaer",
|
|
16890
|
+
"kalon",
|
|
16891
|
+
"kalz",
|
|
16892
|
+
"kant",
|
|
16893
|
+
"kaout",
|
|
16894
|
+
"kar",
|
|
16895
|
+
"kazi",
|
|
16896
|
+
"keid",
|
|
16897
|
+
"kein",
|
|
16898
|
+
"keit",
|
|
16899
|
+
"kel",
|
|
16900
|
+
"kellies",
|
|
16901
|
+
"keloù",
|
|
16902
|
+
"kement",
|
|
16903
|
+
"ken",
|
|
16904
|
+
"kenkent",
|
|
16905
|
+
"kenkoulz",
|
|
16906
|
+
"kenment",
|
|
16907
|
+
"kent",
|
|
16908
|
+
"kentañ",
|
|
16909
|
+
"kentizh",
|
|
16910
|
+
"kentoc'h",
|
|
16911
|
+
"kentre",
|
|
16912
|
+
"ker",
|
|
16913
|
+
"kerkent",
|
|
16914
|
+
"kerz",
|
|
16915
|
+
"kerzh",
|
|
16916
|
+
"ket",
|
|
16917
|
+
"keta",
|
|
16918
|
+
"keñver",
|
|
16919
|
+
"keñverel",
|
|
16920
|
+
"keñverius",
|
|
16921
|
+
"kichen",
|
|
16922
|
+
"kichenik",
|
|
16923
|
+
"kit",
|
|
16924
|
+
"kiz",
|
|
16925
|
+
"klak",
|
|
16926
|
+
"klek",
|
|
16927
|
+
"klik",
|
|
16928
|
+
"komprenet",
|
|
16929
|
+
"komz",
|
|
16930
|
+
"kont",
|
|
16931
|
+
"korf",
|
|
16932
|
+
"korre",
|
|
16933
|
+
"koulskoude",
|
|
16934
|
+
"koulz",
|
|
16935
|
+
"koust",
|
|
16936
|
+
"krak",
|
|
16937
|
+
"krampouezh",
|
|
16938
|
+
"krec'h",
|
|
16939
|
+
"kreiz",
|
|
16940
|
+
"kuit",
|
|
16941
|
+
"kwir",
|
|
16942
|
+
"l:",
|
|
16943
|
+
"la",
|
|
16944
|
+
"laez",
|
|
16945
|
+
"laoskel",
|
|
16946
|
+
"laouen",
|
|
16947
|
+
"lavar",
|
|
16948
|
+
"lavaret",
|
|
16949
|
+
"lavarout",
|
|
16950
|
+
"lec'h",
|
|
16951
|
+
"lein",
|
|
16952
|
+
"leizh",
|
|
16953
|
+
"lerc'h",
|
|
16954
|
+
"leun",
|
|
16955
|
+
"leuskel",
|
|
16956
|
+
"lew",
|
|
16957
|
+
"lies",
|
|
16958
|
+
"liesañ",
|
|
16959
|
+
"lod",
|
|
16960
|
+
"lusk",
|
|
16961
|
+
"lâr",
|
|
16962
|
+
"lârout",
|
|
16963
|
+
"m:",
|
|
16964
|
+
"ma",
|
|
16965
|
+
"ma'z",
|
|
16966
|
+
"mac'h",
|
|
16967
|
+
"mac'hat",
|
|
16968
|
+
"mac'hañ",
|
|
16969
|
+
"mac'hoc'h",
|
|
16970
|
+
"mad",
|
|
16971
|
+
"maez",
|
|
16972
|
+
"maksimal",
|
|
16973
|
+
"mann",
|
|
16974
|
+
"mar",
|
|
16975
|
+
"mard",
|
|
16976
|
+
"marg",
|
|
16977
|
+
"marzh",
|
|
16978
|
+
"mat",
|
|
16979
|
+
"mañ",
|
|
16980
|
+
"me",
|
|
16981
|
+
"memes",
|
|
16982
|
+
"memestra",
|
|
16983
|
+
"merkapl",
|
|
16984
|
+
"mersi",
|
|
16985
|
+
"mes",
|
|
16986
|
+
"mesk",
|
|
16987
|
+
"met",
|
|
16988
|
+
"meur",
|
|
16989
|
+
"mil",
|
|
16990
|
+
"minimal",
|
|
16991
|
+
"moan",
|
|
16992
|
+
"moaniaat",
|
|
16993
|
+
"mod",
|
|
16994
|
+
"mont",
|
|
16995
|
+
"mout",
|
|
16996
|
+
"mui",
|
|
16997
|
+
"muiañ",
|
|
16998
|
+
"muioc'h",
|
|
16999
|
+
"n",
|
|
17000
|
+
"n'",
|
|
17001
|
+
"n:",
|
|
16302
17002
|
"na",
|
|
16303
|
-
"
|
|
16304
|
-
"
|
|
16305
|
-
"
|
|
16306
|
-
"
|
|
16307
|
-
"
|
|
16308
|
-
"
|
|
17003
|
+
"nag",
|
|
17004
|
+
"naontek",
|
|
17005
|
+
"naturel",
|
|
17006
|
+
"nav",
|
|
17007
|
+
"navet",
|
|
17008
|
+
"ne",
|
|
17009
|
+
"nebeudig",
|
|
17010
|
+
"nebeut",
|
|
17011
|
+
"nebeutañ",
|
|
17012
|
+
"nebeutoc'h",
|
|
17013
|
+
"neketa",
|
|
17014
|
+
"nemedoc'h",
|
|
17015
|
+
"nemedomp",
|
|
17016
|
+
"nemedon",
|
|
17017
|
+
"nemedor",
|
|
17018
|
+
"nemedout",
|
|
17019
|
+
"nemet",
|
|
17020
|
+
"nemetañ",
|
|
17021
|
+
"nemete",
|
|
17022
|
+
"nemeti",
|
|
17023
|
+
"nemeto",
|
|
17024
|
+
"nemeur",
|
|
17025
|
+
"neoac'h",
|
|
17026
|
+
"nepell",
|
|
17027
|
+
"nerzh",
|
|
17028
|
+
"nes",
|
|
17029
|
+
"neseser",
|
|
17030
|
+
"netra",
|
|
17031
|
+
"neubeudoù",
|
|
17032
|
+
"neuhe",
|
|
17033
|
+
"neuze",
|
|
17034
|
+
"nevez",
|
|
17035
|
+
"newazh",
|
|
17036
|
+
"nez",
|
|
17037
|
+
"ni",
|
|
17038
|
+
"nikun",
|
|
17039
|
+
"niverus",
|
|
17040
|
+
"nul",
|
|
16309
17041
|
"o",
|
|
16310
|
-
"
|
|
16311
|
-
"
|
|
16312
|
-
"
|
|
16313
|
-
"
|
|
16314
|
-
"
|
|
16315
|
-
"
|
|
16316
|
-
"
|
|
16317
|
-
"
|
|
16318
|
-
"
|
|
16319
|
-
"
|
|
16320
|
-
"
|
|
16321
|
-
"
|
|
16322
|
-
"
|
|
16323
|
-
"
|
|
16324
|
-
"
|
|
16325
|
-
"
|
|
16326
|
-
"
|
|
16327
|
-
"
|
|
16328
|
-
"
|
|
16329
|
-
"
|
|
16330
|
-
"
|
|
16331
|
-
"
|
|
16332
|
-
"
|
|
16333
|
-
"
|
|
17042
|
+
"o:",
|
|
17043
|
+
"oa",
|
|
17044
|
+
"oac'h",
|
|
17045
|
+
"oad",
|
|
17046
|
+
"oamp",
|
|
17047
|
+
"oan",
|
|
17048
|
+
"oant",
|
|
17049
|
+
"oar",
|
|
17050
|
+
"oas",
|
|
17051
|
+
"ober",
|
|
17052
|
+
"oc'h",
|
|
17053
|
+
"oc'ho",
|
|
17054
|
+
"oc'hola",
|
|
17055
|
+
"oc'hpenn",
|
|
17056
|
+
"oh",
|
|
17057
|
+
"ohe",
|
|
17058
|
+
"ollé",
|
|
17059
|
+
"olole",
|
|
17060
|
+
"olé",
|
|
17061
|
+
"omp",
|
|
17062
|
+
"on",
|
|
17063
|
+
"ordin",
|
|
17064
|
+
"ordinal",
|
|
17065
|
+
"ouejoc'h",
|
|
17066
|
+
"ouejod",
|
|
17067
|
+
"ouejomp",
|
|
17068
|
+
"ouejont",
|
|
17069
|
+
"ouejout",
|
|
17070
|
+
"ouek",
|
|
17071
|
+
"ouezas",
|
|
17072
|
+
"ouezi",
|
|
17073
|
+
"ouezimp",
|
|
17074
|
+
"ouezin",
|
|
17075
|
+
"ouezint",
|
|
17076
|
+
"ouezis",
|
|
17077
|
+
"ouezo",
|
|
17078
|
+
"ouezoc'h",
|
|
17079
|
+
"ouezor",
|
|
17080
|
+
"ouf",
|
|
17081
|
+
"oufe",
|
|
17082
|
+
"oufec'h",
|
|
17083
|
+
"oufed",
|
|
17084
|
+
"oufemp",
|
|
17085
|
+
"oufen",
|
|
17086
|
+
"oufent",
|
|
17087
|
+
"oufes",
|
|
17088
|
+
"ouie",
|
|
17089
|
+
"ouiec'h",
|
|
17090
|
+
"ouied",
|
|
17091
|
+
"ouiemp",
|
|
17092
|
+
"ouien",
|
|
17093
|
+
"ouient",
|
|
17094
|
+
"ouies",
|
|
17095
|
+
"ouije",
|
|
17096
|
+
"ouijec'h",
|
|
17097
|
+
"ouijed",
|
|
17098
|
+
"ouijemp",
|
|
17099
|
+
"ouijen",
|
|
17100
|
+
"ouijent",
|
|
17101
|
+
"ouijes",
|
|
17102
|
+
"out",
|
|
17103
|
+
"outañ",
|
|
17104
|
+
"outi",
|
|
17105
|
+
"outo",
|
|
17106
|
+
"ouzer",
|
|
17107
|
+
"ouzh",
|
|
17108
|
+
"ouzhin",
|
|
17109
|
+
"ouzhit",
|
|
17110
|
+
"ouzhoc'h",
|
|
17111
|
+
"ouzhomp",
|
|
17112
|
+
"ouzhor",
|
|
17113
|
+
"ouzhpenn",
|
|
17114
|
+
"ouzhpennik",
|
|
17115
|
+
"ouzoc'h",
|
|
17116
|
+
"ouzomp",
|
|
17117
|
+
"ouzon",
|
|
17118
|
+
"ouzont",
|
|
17119
|
+
"ouzout",
|
|
17120
|
+
"p'",
|
|
17121
|
+
"p:",
|
|
17122
|
+
"pa",
|
|
17123
|
+
"pad",
|
|
17124
|
+
"padal",
|
|
17125
|
+
"paf",
|
|
17126
|
+
"pan",
|
|
17127
|
+
"panevedeoc'h",
|
|
17128
|
+
"panevedo",
|
|
17129
|
+
"panevedomp",
|
|
17130
|
+
"panevedon",
|
|
17131
|
+
"panevedout",
|
|
17132
|
+
"panevet",
|
|
17133
|
+
"panevetañ",
|
|
17134
|
+
"paneveti",
|
|
17135
|
+
"pas",
|
|
17136
|
+
"paseet",
|
|
17137
|
+
"pe",
|
|
17138
|
+
"peadra",
|
|
17139
|
+
"peder",
|
|
17140
|
+
"pedervet",
|
|
17141
|
+
"pedervetvet",
|
|
17142
|
+
"pefe",
|
|
17143
|
+
"pegeit",
|
|
17144
|
+
"pegement",
|
|
17145
|
+
"pegen",
|
|
17146
|
+
"pegiz",
|
|
17147
|
+
"pegoulz",
|
|
17148
|
+
"pehini",
|
|
17149
|
+
"pelec'h",
|
|
17150
|
+
"pell",
|
|
17151
|
+
"pemod",
|
|
17152
|
+
"pemp",
|
|
17153
|
+
"pempved",
|
|
17154
|
+
"pemzek",
|
|
17155
|
+
"penaos",
|
|
17156
|
+
"penn",
|
|
17157
|
+
"peogwir",
|
|
17158
|
+
"peotramant",
|
|
17159
|
+
"pep",
|
|
17160
|
+
"perak",
|
|
17161
|
+
"perc'hennañ",
|
|
17162
|
+
"pergen",
|
|
17163
|
+
"permetiñ",
|
|
17164
|
+
"peseurt",
|
|
17165
|
+
"pet",
|
|
17166
|
+
"petiaoul",
|
|
17167
|
+
"petoare",
|
|
17168
|
+
"petra",
|
|
17169
|
+
"peur",
|
|
17170
|
+
"peurgetket",
|
|
17171
|
+
"peurheñvel",
|
|
17172
|
+
"peurliesañ",
|
|
17173
|
+
"peurvuiañ",
|
|
17174
|
+
"peus",
|
|
17175
|
+
"peustost",
|
|
17176
|
+
"peuz",
|
|
17177
|
+
"pevar",
|
|
17178
|
+
"pevare",
|
|
17179
|
+
"pevarevet",
|
|
17180
|
+
"pevarzek",
|
|
17181
|
+
"pez",
|
|
17182
|
+
"peze",
|
|
17183
|
+
"pezh",
|
|
17184
|
+
"pff",
|
|
17185
|
+
"pfft",
|
|
17186
|
+
"pfut",
|
|
17187
|
+
"picher",
|
|
17188
|
+
"pif",
|
|
17189
|
+
"pife",
|
|
17190
|
+
"pign",
|
|
17191
|
+
"pije",
|
|
17192
|
+
"pikol",
|
|
17193
|
+
"pitiaoul",
|
|
17194
|
+
"piv",
|
|
17195
|
+
"plaouf",
|
|
17196
|
+
"plok",
|
|
17197
|
+
"plouf",
|
|
17198
|
+
"po",
|
|
17199
|
+
"poa",
|
|
17200
|
+
"poelladus",
|
|
17201
|
+
"pof",
|
|
17202
|
+
"pok",
|
|
17203
|
+
"posupl",
|
|
17204
|
+
"pouah",
|
|
17205
|
+
"pourc'henn",
|
|
17206
|
+
"prest",
|
|
17207
|
+
"prestik",
|
|
17208
|
+
"prim",
|
|
17209
|
+
"prin",
|
|
17210
|
+
"provostapl",
|
|
17211
|
+
"pst",
|
|
17212
|
+
"pu",
|
|
17213
|
+
"pur",
|
|
17214
|
+
"r:",
|
|
17215
|
+
"ra",
|
|
17216
|
+
"rae",
|
|
17217
|
+
"raec'h",
|
|
17218
|
+
"raed",
|
|
17219
|
+
"raemp",
|
|
17220
|
+
"raen",
|
|
17221
|
+
"raent",
|
|
17222
|
+
"raes",
|
|
17223
|
+
"rafe",
|
|
17224
|
+
"rafec'h",
|
|
17225
|
+
"rafed",
|
|
17226
|
+
"rafemp",
|
|
17227
|
+
"rafen",
|
|
17228
|
+
"rafent",
|
|
17229
|
+
"rafes",
|
|
17230
|
+
"rag",
|
|
17231
|
+
"raimp",
|
|
17232
|
+
"raint",
|
|
17233
|
+
"raio",
|
|
17234
|
+
"raje",
|
|
17235
|
+
"rajec'h",
|
|
17236
|
+
"rajed",
|
|
17237
|
+
"rajemp",
|
|
17238
|
+
"rajen",
|
|
17239
|
+
"rajent",
|
|
17240
|
+
"rajes",
|
|
17241
|
+
"rak",
|
|
17242
|
+
"ral",
|
|
17243
|
+
"ran",
|
|
17244
|
+
"rankout",
|
|
17245
|
+
"raok",
|
|
17246
|
+
"razh",
|
|
17247
|
+
"re",
|
|
17248
|
+
"reas",
|
|
17249
|
+
"reer",
|
|
17250
|
+
"regennoù",
|
|
17251
|
+
"reiñ",
|
|
17252
|
+
"rejoc'h",
|
|
17253
|
+
"rejod",
|
|
17254
|
+
"rejomp",
|
|
17255
|
+
"rejont",
|
|
17256
|
+
"rejout",
|
|
17257
|
+
"rener",
|
|
17258
|
+
"rentañ",
|
|
17259
|
+
"reoc'h",
|
|
17260
|
+
"reomp",
|
|
17261
|
+
"reont",
|
|
17262
|
+
"reor",
|
|
17263
|
+
"reot",
|
|
17264
|
+
"resis",
|
|
17265
|
+
"ret",
|
|
17266
|
+
"reve",
|
|
17267
|
+
"rez",
|
|
17268
|
+
"ri",
|
|
17269
|
+
"rik",
|
|
17270
|
+
"rin",
|
|
17271
|
+
"ris",
|
|
17272
|
+
"rit",
|
|
17273
|
+
"rouez",
|
|
17274
|
+
"s:",
|
|
17275
|
+
"sac'h",
|
|
17276
|
+
"sant",
|
|
17277
|
+
"sav",
|
|
17278
|
+
"sañset",
|
|
16334
17279
|
"se",
|
|
16335
|
-
"
|
|
16336
|
-
"
|
|
16337
|
-
"
|
|
16338
|
-
"
|
|
16339
|
-
"
|
|
16340
|
-
"
|
|
16341
|
-
"
|
|
16342
|
-
"
|
|
16343
|
-
"
|
|
17280
|
+
"sed",
|
|
17281
|
+
"seitek",
|
|
17282
|
+
"seizh",
|
|
17283
|
+
"seizhvet",
|
|
17284
|
+
"sell",
|
|
17285
|
+
"sellit",
|
|
17286
|
+
"ser",
|
|
17287
|
+
"setu",
|
|
17288
|
+
"seul",
|
|
17289
|
+
"seurt",
|
|
17290
|
+
"siwazh",
|
|
17291
|
+
"skignañ",
|
|
17292
|
+
"skoaz",
|
|
17293
|
+
"skouer",
|
|
17294
|
+
"sort",
|
|
17295
|
+
"souden",
|
|
17296
|
+
"souvitañ",
|
|
17297
|
+
"soñj",
|
|
17298
|
+
"speriañ",
|
|
17299
|
+
"spririñ",
|
|
17300
|
+
"stad",
|
|
17301
|
+
"stlabezañ",
|
|
17302
|
+
"stop",
|
|
17303
|
+
"stranañ",
|
|
17304
|
+
"strewiñ",
|
|
17305
|
+
"strishaat",
|
|
17306
|
+
"stumm",
|
|
17307
|
+
"sujed",
|
|
17308
|
+
"surtoud",
|
|
17309
|
+
"t:",
|
|
17310
|
+
"ta",
|
|
17311
|
+
"taer",
|
|
17312
|
+
"tailh",
|
|
17313
|
+
"tak",
|
|
16344
17314
|
"tal",
|
|
16345
|
-
"
|
|
16346
|
-
"
|
|
17315
|
+
"talvoudegezh",
|
|
17316
|
+
"tamm",
|
|
17317
|
+
"tanav",
|
|
17318
|
+
"taol",
|
|
17319
|
+
"te",
|
|
17320
|
+
"techet",
|
|
17321
|
+
"teir",
|
|
17322
|
+
"teirvet",
|
|
17323
|
+
"telt",
|
|
17324
|
+
"teltenn",
|
|
16347
17325
|
"teus",
|
|
16348
|
-
"
|
|
16349
|
-
"
|
|
16350
|
-
"
|
|
16351
|
-
"
|
|
16352
|
-
"
|
|
16353
|
-
"
|
|
16354
|
-
"
|
|
16355
|
-
"
|
|
16356
|
-
"
|
|
16357
|
-
"
|
|
16358
|
-
"
|
|
17326
|
+
"teut",
|
|
17327
|
+
"teuteu",
|
|
17328
|
+
"ti",
|
|
17329
|
+
"tik",
|
|
17330
|
+
"toa",
|
|
17331
|
+
"tok",
|
|
17332
|
+
"tost",
|
|
17333
|
+
"tostig",
|
|
17334
|
+
"toud",
|
|
17335
|
+
"touesk",
|
|
17336
|
+
"touez",
|
|
17337
|
+
"toull",
|
|
17338
|
+
"tra",
|
|
17339
|
+
"trantenn",
|
|
17340
|
+
"traoñ",
|
|
17341
|
+
"trawalc'h",
|
|
17342
|
+
"tre",
|
|
17343
|
+
"trede",
|
|
17344
|
+
"tregont",
|
|
17345
|
+
"tremenet",
|
|
17346
|
+
"tri",
|
|
17347
|
+
"trivet",
|
|
17348
|
+
"triwec'h",
|
|
17349
|
+
"trizek",
|
|
17350
|
+
"tro",
|
|
17351
|
+
"trugarez",
|
|
17352
|
+
"trumm",
|
|
17353
|
+
"tsoin",
|
|
17354
|
+
"tsouin",
|
|
17355
|
+
"tu",
|
|
17356
|
+
"tud",
|
|
17357
|
+
"u:",
|
|
17358
|
+
"ugent",
|
|
17359
|
+
"uhel",
|
|
17360
|
+
"uhelañ",
|
|
17361
|
+
"ul",
|
|
17362
|
+
"un",
|
|
17363
|
+
"unan",
|
|
17364
|
+
"unanez",
|
|
17365
|
+
"unanig",
|
|
17366
|
+
"unnek",
|
|
17367
|
+
"unnekvet",
|
|
17368
|
+
"ur",
|
|
17369
|
+
"urzh",
|
|
17370
|
+
"us",
|
|
17371
|
+
"v:",
|
|
17372
|
+
"va",
|
|
17373
|
+
"vale",
|
|
17374
|
+
"van",
|
|
17375
|
+
"vare",
|
|
17376
|
+
"vat",
|
|
17377
|
+
"vefe",
|
|
17378
|
+
"vefec'h",
|
|
17379
|
+
"vefed",
|
|
17380
|
+
"vefemp",
|
|
17381
|
+
"vefen",
|
|
17382
|
+
"vefent",
|
|
17383
|
+
"vefes",
|
|
17384
|
+
"vesk",
|
|
17385
|
+
"vete",
|
|
17386
|
+
"vez",
|
|
17387
|
+
"vezan",
|
|
17388
|
+
"vezañ",
|
|
17389
|
+
"veze",
|
|
17390
|
+
"vezec'h",
|
|
17391
|
+
"vezed",
|
|
17392
|
+
"vezemp",
|
|
17393
|
+
"vezen",
|
|
17394
|
+
"vezent",
|
|
17395
|
+
"vezer",
|
|
17396
|
+
"vezes",
|
|
17397
|
+
"vezez",
|
|
17398
|
+
"vezit",
|
|
17399
|
+
"vezomp",
|
|
17400
|
+
"vezont",
|
|
17401
|
+
"vi",
|
|
17402
|
+
"vihan",
|
|
17403
|
+
"vihanañ",
|
|
17404
|
+
"vije",
|
|
17405
|
+
"vijec'h",
|
|
17406
|
+
"vijed",
|
|
17407
|
+
"vijemp",
|
|
17408
|
+
"vijen",
|
|
17409
|
+
"vijent",
|
|
17410
|
+
"vijes",
|
|
17411
|
+
"viken",
|
|
17412
|
+
"vimp",
|
|
17413
|
+
"vin",
|
|
17414
|
+
"vint",
|
|
17415
|
+
"vior",
|
|
17416
|
+
"viot",
|
|
17417
|
+
"virviken",
|
|
17418
|
+
"viskoazh",
|
|
17419
|
+
"vlan",
|
|
17420
|
+
"vlaou",
|
|
17421
|
+
"vo",
|
|
17422
|
+
"vod",
|
|
17423
|
+
"voe",
|
|
17424
|
+
"voec'h",
|
|
17425
|
+
"voed",
|
|
17426
|
+
"voemp",
|
|
17427
|
+
"voen",
|
|
17428
|
+
"voent",
|
|
17429
|
+
"voes",
|
|
17430
|
+
"vont",
|
|
17431
|
+
"vostapl",
|
|
17432
|
+
"vrac'h",
|
|
17433
|
+
"vrasañ",
|
|
17434
|
+
"vremañ",
|
|
17435
|
+
"w:",
|
|
17436
|
+
"walc'h",
|
|
17437
|
+
"war",
|
|
17438
|
+
"warnañ",
|
|
17439
|
+
"warni",
|
|
17440
|
+
"warno",
|
|
17441
|
+
"warnoc'h",
|
|
17442
|
+
"warnomp",
|
|
17443
|
+
"warnon",
|
|
17444
|
+
"warnor",
|
|
17445
|
+
"warnout",
|
|
17446
|
+
"wazh",
|
|
17447
|
+
"wech",
|
|
17448
|
+
"wechoù",
|
|
17449
|
+
"well",
|
|
17450
|
+
"y:",
|
|
17451
|
+
"you",
|
|
17452
|
+
"youadenn",
|
|
17453
|
+
"youc'hadenn",
|
|
17454
|
+
"youc'hou",
|
|
17455
|
+
"z:",
|
|
17456
|
+
"za",
|
|
17457
|
+
"zan",
|
|
17458
|
+
"zaw",
|
|
17459
|
+
"zeu",
|
|
17460
|
+
"zi",
|
|
17461
|
+
"ziar",
|
|
17462
|
+
"zigarez",
|
|
17463
|
+
"ziget",
|
|
17464
|
+
"zindan",
|
|
17465
|
+
"zioc'h",
|
|
17466
|
+
"ziouzh",
|
|
17467
|
+
"zirak",
|
|
17468
|
+
"zivout",
|
|
17469
|
+
"ziwar",
|
|
17470
|
+
"ziwezhañ",
|
|
17471
|
+
"zo",
|
|
17472
|
+
"zoken",
|
|
17473
|
+
"zokenoc'h",
|
|
17474
|
+
"zouesk",
|
|
17475
|
+
"zouez",
|
|
17476
|
+
"zro",
|
|
17477
|
+
"zu"
|
|
16359
17478
|
];
|
|
16360
17479
|
const bul = [
|
|
16361
17480
|
"а",
|
|
@@ -28011,22 +29130,32 @@ flowchart TD
|
|
|
28011
29130
|
"şöyle"
|
|
28012
29131
|
];
|
|
28013
29132
|
const ukr = [
|
|
29133
|
+
"а",
|
|
29134
|
+
"або",
|
|
28014
29135
|
"авжеж",
|
|
28015
29136
|
"адже",
|
|
29137
|
+
"аж",
|
|
28016
29138
|
"але",
|
|
29139
|
+
"ані",
|
|
28017
29140
|
"б",
|
|
28018
29141
|
"без",
|
|
29142
|
+
"би",
|
|
29143
|
+
"бо",
|
|
28019
29144
|
"був",
|
|
28020
29145
|
"була",
|
|
28021
29146
|
"були",
|
|
28022
29147
|
"було",
|
|
28023
29148
|
"бути",
|
|
28024
29149
|
"більш",
|
|
29150
|
+
"в",
|
|
28025
29151
|
"вам",
|
|
29152
|
+
"вами",
|
|
28026
29153
|
"вас",
|
|
28027
29154
|
"весь",
|
|
29155
|
+
"вже",
|
|
28028
29156
|
"вздовж",
|
|
28029
29157
|
"ви",
|
|
29158
|
+
"від",
|
|
28030
29159
|
"вниз",
|
|
28031
29160
|
"внизу",
|
|
28032
29161
|
"вона",
|
|
@@ -28035,55 +29164,138 @@ flowchart TD
|
|
|
28035
29164
|
"все",
|
|
28036
29165
|
"всередині",
|
|
28037
29166
|
"всіх",
|
|
29167
|
+
"вся",
|
|
28038
29168
|
"від",
|
|
28039
29169
|
"він",
|
|
28040
29170
|
"да",
|
|
28041
29171
|
"давай",
|
|
28042
29172
|
"давати",
|
|
28043
29173
|
"де",
|
|
29174
|
+
"десь",
|
|
28044
29175
|
"дещо",
|
|
28045
29176
|
"для",
|
|
28046
29177
|
"до",
|
|
29178
|
+
"є",
|
|
29179
|
+
"ж",
|
|
29180
|
+
"же",
|
|
28047
29181
|
"з",
|
|
29182
|
+
"за",
|
|
28048
29183
|
"завжди",
|
|
28049
29184
|
"замість",
|
|
29185
|
+
"зі",
|
|
29186
|
+
"і",
|
|
29187
|
+
"із",
|
|
29188
|
+
"інших",
|
|
29189
|
+
"її",
|
|
29190
|
+
"їй",
|
|
29191
|
+
"їм",
|
|
29192
|
+
"їх",
|
|
28050
29193
|
"й",
|
|
29194
|
+
"його",
|
|
29195
|
+
"йому",
|
|
28051
29196
|
"коли",
|
|
28052
29197
|
"ледве",
|
|
29198
|
+
"лиш",
|
|
28053
29199
|
"майже",
|
|
29200
|
+
"мене",
|
|
29201
|
+
"мені",
|
|
28054
29202
|
"ми",
|
|
29203
|
+
"між",
|
|
29204
|
+
"мій",
|
|
29205
|
+
"мною",
|
|
29206
|
+
"мов",
|
|
29207
|
+
"мого",
|
|
29208
|
+
"моєї",
|
|
29209
|
+
"моє",
|
|
29210
|
+
"може",
|
|
29211
|
+
"мої",
|
|
29212
|
+
"моїх",
|
|
29213
|
+
"моя",
|
|
29214
|
+
"на",
|
|
29215
|
+
"над",
|
|
28055
29216
|
"навколо",
|
|
28056
29217
|
"навіть",
|
|
28057
29218
|
"нам",
|
|
29219
|
+
"нами",
|
|
29220
|
+
"нас",
|
|
29221
|
+
"наче",
|
|
29222
|
+
"наш",
|
|
29223
|
+
"не",
|
|
29224
|
+
"нє",
|
|
29225
|
+
"неї",
|
|
29226
|
+
"нема",
|
|
29227
|
+
"немов",
|
|
29228
|
+
"неначе",
|
|
29229
|
+
"нею",
|
|
29230
|
+
"ним",
|
|
29231
|
+
"ними",
|
|
29232
|
+
"них",
|
|
29233
|
+
"ні",
|
|
29234
|
+
"ніби",
|
|
29235
|
+
"ніщо",
|
|
29236
|
+
"нього",
|
|
29237
|
+
"о",
|
|
29238
|
+
"ось",
|
|
28058
29239
|
"от",
|
|
28059
29240
|
"отже",
|
|
28060
29241
|
"отож",
|
|
29242
|
+
"під",
|
|
29243
|
+
"по",
|
|
28061
29244
|
"поза",
|
|
28062
29245
|
"про",
|
|
28063
29246
|
"під",
|
|
29247
|
+
"сам",
|
|
29248
|
+
"сама",
|
|
29249
|
+
"свій",
|
|
29250
|
+
"свої",
|
|
29251
|
+
"своя",
|
|
29252
|
+
"свою",
|
|
29253
|
+
"себе",
|
|
29254
|
+
"собі",
|
|
28064
29255
|
"та",
|
|
29256
|
+
"там",
|
|
28065
29257
|
"так",
|
|
29258
|
+
"така",
|
|
28066
29259
|
"такий",
|
|
28067
29260
|
"також",
|
|
29261
|
+
"твій",
|
|
29262
|
+
"твого",
|
|
29263
|
+
"твоєї",
|
|
29264
|
+
"твої",
|
|
29265
|
+
"твоя",
|
|
28068
29266
|
"те",
|
|
29267
|
+
"тебе",
|
|
28069
29268
|
"ти",
|
|
29269
|
+
"ті",
|
|
29270
|
+
"тільки",
|
|
29271
|
+
"то",
|
|
29272
|
+
"тобі",
|
|
29273
|
+
"тобою",
|
|
28070
29274
|
"тобто",
|
|
29275
|
+
"тоді",
|
|
28071
29276
|
"тож",
|
|
29277
|
+
"той",
|
|
28072
29278
|
"тощо",
|
|
29279
|
+
"тут",
|
|
29280
|
+
"у",
|
|
29281
|
+
"хіба",
|
|
29282
|
+
"хоч",
|
|
28073
29283
|
"хоча",
|
|
28074
29284
|
"це",
|
|
28075
29285
|
"цей",
|
|
29286
|
+
"ці",
|
|
29287
|
+
"ця",
|
|
28076
29288
|
"чи",
|
|
28077
29289
|
"чого",
|
|
29290
|
+
"ще",
|
|
28078
29291
|
"що",
|
|
29292
|
+
"щоб",
|
|
29293
|
+
"щось",
|
|
29294
|
+
"я",
|
|
28079
29295
|
"як",
|
|
29296
|
+
"яка",
|
|
28080
29297
|
"який",
|
|
28081
|
-
"якої"
|
|
28082
|
-
"є",
|
|
28083
|
-
"із",
|
|
28084
|
-
"інших",
|
|
28085
|
-
"їх",
|
|
28086
|
-
"її"
|
|
29298
|
+
"якої"
|
|
28087
29299
|
];
|
|
28088
29300
|
const urd = [
|
|
28089
29301
|
"آئی",
|
|
@@ -29081,7 +30293,14 @@ flowchart TD
|
|
|
29081
30293
|
const AUTH_TOKEN_KEY = "tinacms-auth";
|
|
29082
30294
|
const authenticate = (clientId, frontendUrl) => {
|
|
29083
30295
|
return new Promise((resolve) => {
|
|
29084
|
-
|
|
30296
|
+
const origin = `${window.location.protocol}//${window.location.host}`;
|
|
30297
|
+
const authTab = popupWindow(
|
|
30298
|
+
`${frontendUrl}/signin?clientId=${clientId}&origin=${origin}`,
|
|
30299
|
+
"_blank",
|
|
30300
|
+
window,
|
|
30301
|
+
1e3,
|
|
30302
|
+
700
|
|
30303
|
+
);
|
|
29085
30304
|
window.addEventListener("message", function(e) {
|
|
29086
30305
|
if (e.data.source === TINA_LOGIN_EVENT) {
|
|
29087
30306
|
if (authTab) {
|
|
@@ -29094,14 +30313,6 @@ flowchart TD
|
|
|
29094
30313
|
});
|
|
29095
30314
|
}
|
|
29096
30315
|
});
|
|
29097
|
-
const origin = `${window.location.protocol}//${window.location.host}`;
|
|
29098
|
-
authTab = popupWindow(
|
|
29099
|
-
`${frontendUrl}/signin?clientId=${clientId}&origin=${origin}`,
|
|
29100
|
-
"_blank",
|
|
29101
|
-
window,
|
|
29102
|
-
1e3,
|
|
29103
|
-
700
|
|
29104
|
-
);
|
|
29105
30316
|
});
|
|
29106
30317
|
};
|
|
29107
30318
|
const DefaultSessionProvider = ({
|
|
@@ -31714,6 +32925,7 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
31714
32925
|
const [vars, setVars] = React.useState({
|
|
31715
32926
|
collection: collectionName,
|
|
31716
32927
|
relativePath: "",
|
|
32928
|
+
relativePathWithoutExtension: "",
|
|
31717
32929
|
newRelativePath: "",
|
|
31718
32930
|
filterField: "",
|
|
31719
32931
|
folderName: "",
|
|
@@ -31755,6 +32967,7 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
31755
32967
|
...old,
|
|
31756
32968
|
collection: collectionName,
|
|
31757
32969
|
relativePath: "",
|
|
32970
|
+
relativePathWithoutExtension: "",
|
|
31758
32971
|
newRelativePath: "",
|
|
31759
32972
|
filterField: "",
|
|
31760
32973
|
startsWith: "",
|
|
@@ -31780,6 +32993,7 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
31780
32993
|
collectionName === vars.collection ? vars : {
|
|
31781
32994
|
collection: collectionName,
|
|
31782
32995
|
relativePath: "",
|
|
32996
|
+
relativePathWithoutExtension: "",
|
|
31783
32997
|
newRelativePath: "",
|
|
31784
32998
|
filterField: "",
|
|
31785
32999
|
startsWith: "",
|
|
@@ -31867,7 +33081,9 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
31867
33081
|
safeSubmit: async () => {
|
|
31868
33082
|
try {
|
|
31869
33083
|
await admin.deleteDocument(vars);
|
|
31870
|
-
cms.alerts.info(
|
|
33084
|
+
cms.alerts.info(
|
|
33085
|
+
"Document was successfully deleted"
|
|
33086
|
+
);
|
|
31871
33087
|
reFetchCollection();
|
|
31872
33088
|
} catch (error) {
|
|
31873
33089
|
cms.alerts.warn(
|
|
@@ -31881,7 +33097,7 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
31881
33097
|
), renameModalOpen && /* @__PURE__ */ React.createElement(
|
|
31882
33098
|
RenameModal,
|
|
31883
33099
|
{
|
|
31884
|
-
filename: vars.
|
|
33100
|
+
filename: vars.relativePathWithoutExtension,
|
|
31885
33101
|
newRelativePath: vars.newRelativePath,
|
|
31886
33102
|
setNewRelativePath: (newRelativePath) => {
|
|
31887
33103
|
setVars((vars2) => {
|
|
@@ -31896,7 +33112,9 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
31896
33112
|
relativePath: vars.relativePath,
|
|
31897
33113
|
newRelativePath
|
|
31898
33114
|
});
|
|
31899
|
-
cms.alerts.info(
|
|
33115
|
+
cms.alerts.info(
|
|
33116
|
+
"Document was successfully renamed"
|
|
33117
|
+
);
|
|
31900
33118
|
reFetchCollection();
|
|
31901
33119
|
} catch (error) {
|
|
31902
33120
|
if (error.message.indexOf("has references")) {
|
|
@@ -31996,7 +33214,9 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
31996
33214
|
name: "sort",
|
|
31997
33215
|
value: sortKey,
|
|
31998
33216
|
onChange: (e) => {
|
|
31999
|
-
const val = JSON.parse(
|
|
33217
|
+
const val = JSON.parse(
|
|
33218
|
+
e.target.value
|
|
33219
|
+
);
|
|
32000
33220
|
setEndCursor("");
|
|
32001
33221
|
setPrevCursors([]);
|
|
32002
33222
|
window == null ? void 0 : window.localStorage.setItem(
|
|
@@ -32202,6 +33422,9 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
32202
33422
|
setVars((old) => ({
|
|
32203
33423
|
...old,
|
|
32204
33424
|
collection: collectionName,
|
|
33425
|
+
relativePathWithoutExtension: document2.node._sys.breadcrumbs.join(
|
|
33426
|
+
"/"
|
|
33427
|
+
),
|
|
32205
33428
|
relativePath: document2.node._sys.breadcrumbs.join(
|
|
32206
33429
|
"/"
|
|
32207
33430
|
) + document2.node._sys.extension,
|
|
@@ -32224,6 +33447,9 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
32224
33447
|
setVars((old) => ({
|
|
32225
33448
|
...old,
|
|
32226
33449
|
collection: collectionName,
|
|
33450
|
+
relativePathWithoutExtension: document2.node._sys.breadcrumbs.join(
|
|
33451
|
+
"/"
|
|
33452
|
+
),
|
|
32227
33453
|
relativePath: document2.node._sys.breadcrumbs.join(
|
|
32228
33454
|
"/"
|
|
32229
33455
|
) + document2.node._sys.extension,
|
|
@@ -32436,7 +33662,7 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
32436
33662
|
newRelativePath,
|
|
32437
33663
|
setNewRelativePath
|
|
32438
33664
|
}) => {
|
|
32439
|
-
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), "?
|
|
33665
|
+
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(
|
|
32440
33666
|
BaseTextField,
|
|
32441
33667
|
{
|
|
32442
33668
|
placeholder: "Enter a new name for the document's file",
|
|
@@ -32451,7 +33677,8 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
32451
33677
|
onClick: async () => {
|
|
32452
33678
|
await renameFunc();
|
|
32453
33679
|
close2();
|
|
32454
|
-
}
|
|
33680
|
+
},
|
|
33681
|
+
disabled: !newRelativePath || newRelativePath === filename
|
|
32455
33682
|
},
|
|
32456
33683
|
"Rename"
|
|
32457
33684
|
))));
|
|
@@ -32778,7 +34005,10 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
32778
34005
|
const fetchDocument = async () => {
|
|
32779
34006
|
if (api.isAuthenticated()) {
|
|
32780
34007
|
try {
|
|
32781
|
-
const response = await api.fetchDocument(
|
|
34008
|
+
const response = await api.fetchDocument(
|
|
34009
|
+
collectionName,
|
|
34010
|
+
relativePath2
|
|
34011
|
+
);
|
|
32782
34012
|
setDocument(response.document);
|
|
32783
34013
|
} catch (error2) {
|
|
32784
34014
|
cms.alerts.error(
|
|
@@ -33122,15 +34352,24 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
33122
34352
|
}
|
|
33123
34353
|
}
|
|
33124
34354
|
if (state === "creatingPR") {
|
|
33125
|
-
|
|
33126
|
-
|
|
33127
|
-
|
|
33128
|
-
|
|
33129
|
-
|
|
33130
|
-
|
|
33131
|
-
|
|
33132
|
-
|
|
33133
|
-
|
|
34355
|
+
try {
|
|
34356
|
+
const foo = await tinaApi.createPullRequest({
|
|
34357
|
+
baseBranch,
|
|
34358
|
+
branch,
|
|
34359
|
+
title: `${branch.replace("tina/", "").replace("-", " ")} (PR from TinaCMS)`
|
|
34360
|
+
});
|
|
34361
|
+
console.log("PR created", foo);
|
|
34362
|
+
cms.alerts.success("Pull request created.");
|
|
34363
|
+
localStorage.setItem("tina.createBranchState", "done");
|
|
34364
|
+
setState("done");
|
|
34365
|
+
} catch (e) {
|
|
34366
|
+
console.error(e);
|
|
34367
|
+
cms.alerts.error("Failed to create PR");
|
|
34368
|
+
setErrorMessage(
|
|
34369
|
+
"Failed to create PR, please try again. If the problem persists please contact support."
|
|
34370
|
+
);
|
|
34371
|
+
setState("error");
|
|
34372
|
+
}
|
|
33134
34373
|
}
|
|
33135
34374
|
if (state === "done") {
|
|
33136
34375
|
window.location.href = back;
|