tinacms 3.3.1 → 3.3.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -46532,7 +46532,7 @@ const NavProvider = ({
46532
46532
  };
46533
46533
  return /* @__PURE__ */ React__default.createElement(NavContext.Provider, { value }, children);
46534
46534
  };
46535
- const version$1 = "3.3.1";
46535
+ const version$1 = "3.3.2";
46536
46536
  const VersionInfo = () => {
46537
46537
  var _a2, _b, _c, _d, _e, _f;
46538
46538
  const cms = useCMS();
@@ -122450,7 +122450,7 @@ const RenderForm$1 = ({
122450
122450
  mutationInfo,
122451
122451
  customDefaults
122452
122452
  }) => {
122453
- var _a2, _b, _c, _d, _e, _f, _g, _h;
122453
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
122454
122454
  const navigate = useNavigate();
122455
122455
  const [formIsPristine, setFormIsPristine] = useState(true);
122456
122456
  const schema = cms.api.tina.schema;
@@ -122480,10 +122480,11 @@ const RenderForm$1 = ({
122480
122480
  const defaultItem2 = customDefaults || // @ts-ignore internal types aren't up to date
122481
122481
  ((_d = template.ui) == null ? void 0 : _d.defaultItem) || // @ts-ignore
122482
122482
  (template == null ? void 0 : template.defaultItem) || {};
122483
+ const fileReadOnly = (_f = (_e = schemaCollection == null ? void 0 : schemaCollection.ui) == null ? void 0 : _e.filename) == null ? void 0 : _f.readonly;
122483
122484
  const filenameField = {
122484
122485
  name: "filename",
122485
122486
  label: "Filename",
122486
- component: slugFunction ? wrapFieldsWithMeta(({ field, input, meta }) => {
122487
+ component: slugFunction && !fileReadOnly ? wrapFieldsWithMeta(({ field, input, meta }) => {
122487
122488
  var _a3, _b2;
122488
122489
  return /* @__PURE__ */ React__default.createElement(
122489
122490
  FilenameInput,
@@ -122493,8 +122494,8 @@ const RenderForm$1 = ({
122493
122494
  }
122494
122495
  );
122495
122496
  }) : "text",
122496
- disabled: (_f = (_e = schemaCollection == null ? void 0 : schemaCollection.ui) == null ? void 0 : _e.filename) == null ? void 0 : _f.readonly,
122497
- description: ((_h = (_g = collection.ui) == null ? void 0 : _g.filename) == null ? void 0 : _h.description) ? /* @__PURE__ */ React__default.createElement(
122497
+ disabled: (_h = (_g = schemaCollection == null ? void 0 : schemaCollection.ui) == null ? void 0 : _g.filename) == null ? void 0 : _h.readonly,
122498
+ description: ((_j = (_i = collection.ui) == null ? void 0 : _i.filename) == null ? void 0 : _j.description) ? /* @__PURE__ */ React__default.createElement(
122498
122499
  "span",
122499
122500
  {
122500
122501
  dangerouslySetInnerHTML: { __html: collection.ui.filename.description }
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.3.1",
5
+ "version": "3.3.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/mdx": "2.0.3",
114
- "@tinacms/schema-tools": "2.3.0",
115
- "@tinacms/search": "1.2.0"
113
+ "@tinacms/mdx": "2.0.4",
114
+ "@tinacms/search": "1.2.1",
115
+ "@tinacms/schema-tools": "2.4.0"
116
116
  },
117
117
  "devDependencies": {
118
118
  "@graphql-tools/utils": "^10.8.1",