tinacms 3.14.1 → 3.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ export declare const PageWrapper: ({ headerClassName, children, }: {
|
|
|
3
3
|
headerClassName?: string;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}) => React.JSX.Element;
|
|
6
|
-
export declare const PageHeader: ({ children
|
|
6
|
+
export declare const PageHeader: ({ children }: {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}) => React.JSX.Element;
|
|
9
9
|
export declare const PageBody: ({ children }: {
|
package/dist/index.js
CHANGED
|
@@ -4136,9 +4136,7 @@ const InnerField = ({
|
|
|
4136
4136
|
}
|
|
4137
4137
|
);
|
|
4138
4138
|
};
|
|
4139
|
-
const FieldsGroup = ({
|
|
4140
|
-
children
|
|
4141
|
-
}) => {
|
|
4139
|
+
const FieldsGroup = ({ children }) => {
|
|
4142
4140
|
return /* @__PURE__ */ React.createElement(
|
|
4143
4141
|
"div",
|
|
4144
4142
|
{
|
|
@@ -5593,34 +5591,30 @@ const CheckboxGroup = ({
|
|
|
5593
5591
|
checkboxOptions == null ? void 0 : checkboxOptions.map(toProps2).map(toComponent2)
|
|
5594
5592
|
);
|
|
5595
5593
|
};
|
|
5596
|
-
const Input$1 = ({ ...props })
|
|
5597
|
-
|
|
5598
|
-
}
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
value: newValue
|
|
5618
|
-
}
|
|
5619
|
-
};
|
|
5620
|
-
onChange(syntheticEvent);
|
|
5594
|
+
const Input$1 = React__default.forwardRef((props, ref) => /* @__PURE__ */ React__default.createElement("input", { ref, className: textFieldClasses, ...props }));
|
|
5595
|
+
const NumberInput = React.forwardRef(
|
|
5596
|
+
({ onChange, ...rest }, ref) => /* @__PURE__ */ React.createElement(
|
|
5597
|
+
Input$1,
|
|
5598
|
+
{
|
|
5599
|
+
...rest,
|
|
5600
|
+
ref,
|
|
5601
|
+
type: "number",
|
|
5602
|
+
onChange: (event) => {
|
|
5603
|
+
const inputValue = event.target.value;
|
|
5604
|
+
const newValue = inputValue === "" ? void 0 : inputValue;
|
|
5605
|
+
if (onChange) {
|
|
5606
|
+
const syntheticEvent = {
|
|
5607
|
+
...event,
|
|
5608
|
+
target: {
|
|
5609
|
+
...event.target,
|
|
5610
|
+
value: newValue
|
|
5611
|
+
}
|
|
5612
|
+
};
|
|
5613
|
+
onChange(syntheticEvent);
|
|
5614
|
+
}
|
|
5621
5615
|
}
|
|
5622
5616
|
}
|
|
5623
|
-
|
|
5617
|
+
)
|
|
5624
5618
|
);
|
|
5625
5619
|
const supportedFileTypes = [
|
|
5626
5620
|
"text/*",
|
|
@@ -7564,7 +7558,13 @@ const ImageFieldPlugin = {
|
|
|
7564
7558
|
};
|
|
7565
7559
|
const parse$1 = (value) => value && +value;
|
|
7566
7560
|
const NumberField = wrapFieldsWithMeta(({ input, field }) => {
|
|
7567
|
-
|
|
7561
|
+
const ref = React.useRef(null);
|
|
7562
|
+
React.useEffect(() => {
|
|
7563
|
+
if (ref.current && field.experimental_focusIntent) {
|
|
7564
|
+
ref.current.focus();
|
|
7565
|
+
}
|
|
7566
|
+
}, [field.experimental_focusIntent]);
|
|
7567
|
+
return /* @__PURE__ */ React.createElement(NumberInput, { ...input, ref, step: field.step });
|
|
7568
7568
|
});
|
|
7569
7569
|
const NumberFieldPlugin = {
|
|
7570
7570
|
name: "number",
|
|
@@ -14305,7 +14305,7 @@ const FormModal = ({ plugin, close: close2 }) => {
|
|
|
14305
14305
|
const name = "tinacms";
|
|
14306
14306
|
const type = "module";
|
|
14307
14307
|
const typings = "dist/index.d.ts";
|
|
14308
|
-
const version = "3.14.
|
|
14308
|
+
const version = "3.14.2";
|
|
14309
14309
|
const main = "dist/index.js";
|
|
14310
14310
|
const module$1 = "./dist/index.js";
|
|
14311
14311
|
const exports$1 = { ".": "./dist/index.js", "./dist/client": { "types": "./dist/client.d.ts", "browser": "./dist/client.browser.js", "default": "./dist/client.js" }, "./react": "./dist/react.js", "./dist/react": "./dist/react.js", "./tina-field": "./dist/tina-field.js", "./dist/tina-field": "./dist/tina-field.js", "./dist/rich-text": "./dist/rich-text/index.js", "./dist/rich-text/static": "./dist/rich-text/static.js", "./dist/rich-text/prism": "./dist/rich-text/prism.js" };
|
|
@@ -14340,7 +14340,16 @@ const VersionInfo = () => {
|
|
|
14340
14340
|
var _a, _b, _c, _d, _e, _f;
|
|
14341
14341
|
const cms = useCMS();
|
|
14342
14342
|
const optOutOfUpdateCheck = (_f = (_e = (_d = (_c = (_b = (_a = cms.api) == null ? void 0 : _a.tina) == null ? void 0 : _b.schema) == null ? void 0 : _c.config) == null ? void 0 : _d.config) == null ? void 0 : _e.ui) == null ? void 0 : _f.optOutOfUpdateCheck;
|
|
14343
|
-
return /* @__PURE__ */ React__default.createElement("span", { className: "font-sans font-light text-xs mb-3 mt-4 text-gray-500" }, "TinaCMS v", version + " ", !optOutOfUpdateCheck && /* @__PURE__ */ React__default.createElement(LatestVersionCheck, null)
|
|
14343
|
+
return /* @__PURE__ */ React__default.createElement("span", { className: "font-sans font-light text-xs mb-3 mt-4 text-gray-500" }, "TinaCMS v", version + " ", !optOutOfUpdateCheck && /* @__PURE__ */ React__default.createElement(LatestVersionCheck, null), " ", /* @__PURE__ */ React__default.createElement(
|
|
14344
|
+
"a",
|
|
14345
|
+
{
|
|
14346
|
+
href: "https://tina.io/whats-new/tinacms/",
|
|
14347
|
+
target: "_blank",
|
|
14348
|
+
rel: "noopener noreferrer",
|
|
14349
|
+
className: "text-blue-600 hover:text-blue-400 underline whitespace-nowrap"
|
|
14350
|
+
},
|
|
14351
|
+
"See latest Releases"
|
|
14352
|
+
));
|
|
14344
14353
|
};
|
|
14345
14354
|
const LatestVersionCheck = () => {
|
|
14346
14355
|
const cms = useCMS();
|
|
@@ -74375,9 +74384,7 @@ const PageWrapper = ({
|
|
|
74375
74384
|
}) => {
|
|
74376
74385
|
return /* @__PURE__ */ React__default.createElement("div", { className: "relative left-0 w-full h-full bg-gradient-to-b from-gray-50/50 to-gray-50 overflow-y-auto transition-opacity duration-300 ease-out flex flex-col opacity-100" }, /* @__PURE__ */ React__default.createElement("div", { className: `py-2 w-full ${headerClassName}` }, /* @__PURE__ */ React__default.createElement(BillingWarning, null), /* @__PURE__ */ React__default.createElement("div", { className: "flex items-center gap-4" }, /* @__PURE__ */ React__default.createElement(NavMenuTrigger, { className: "ml-2" }), /* @__PURE__ */ React__default.createElement(TinaIcon, { className: "self-center h-10 min-w-10 w-auto text-orange-500" }), /* @__PURE__ */ React__default.createElement(LocalWarning, null), /* @__PURE__ */ React__default.createElement(BranchButton, null), /* @__PURE__ */ React__default.createElement(BranchPreviewButton, null))), /* @__PURE__ */ React__default.createElement(AnnouncementsBanner, null), children);
|
|
74377
74386
|
};
|
|
74378
|
-
const PageHeader = ({
|
|
74379
|
-
children
|
|
74380
|
-
}) => {
|
|
74387
|
+
const PageHeader = ({ children }) => {
|
|
74381
74388
|
return /* @__PURE__ */ React__default.createElement("div", { className: "pt-4 pb-2 px-6" }, /* @__PURE__ */ React__default.createElement("div", { className: "w-full flex justify-between items-end" }, children));
|
|
74382
74389
|
};
|
|
74383
74390
|
const PageBody = ({ children }) => /* @__PURE__ */ React__default.createElement("div", { className: "py-4 px-6" }, children);
|
|
@@ -5,6 +5,4 @@ export interface InputProps {
|
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
step?: string | number;
|
|
7
7
|
}
|
|
8
|
-
export declare const Input:
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
}) => React.JSX.Element;
|
|
8
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface NumberProps extends a {
|
|
2
|
+
export interface NumberProps extends React.ComponentProps<'input'> {
|
|
4
3
|
step?: string | number;
|
|
5
4
|
}
|
|
6
|
-
export declare const NumberInput: React.
|
|
7
|
-
export {};
|
|
5
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<Omit<NumberProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -7,6 +7,6 @@ export interface FieldsBuilderProps {
|
|
|
7
7
|
padding?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare function FieldsBuilder({ form, fields, activeFieldName, padding, }: FieldsBuilderProps): React.JSX.Element;
|
|
10
|
-
export declare const FieldsGroup: ({ children
|
|
10
|
+
export declare const FieldsGroup: ({ children }: {
|
|
11
11
|
children?: any | any[];
|
|
12
12
|
}) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tinacms",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"typings": "dist/index.d.ts",
|
|
5
|
-
"version": "3.14.
|
|
5
|
+
"version": "3.14.2",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -110,9 +110,9 @@
|
|
|
110
110
|
"webfontloader": "1.6.28",
|
|
111
111
|
"yup": "^1.6.1",
|
|
112
112
|
"zod": "^3.24.2",
|
|
113
|
+
"@tinacms/schema-tools": "^2.10.1",
|
|
113
114
|
"@tinacms/bridge": "^0.3.1",
|
|
114
|
-
"@tinacms/mdx": "^2.
|
|
115
|
-
"@tinacms/schema-tools": "^2.10.0",
|
|
115
|
+
"@tinacms/mdx": "^2.3.0",
|
|
116
116
|
"@tinacms/search": "^1.2.25"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|