@firecms/core 3.0.0-canary.292 → 3.0.0-canary.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1125,6 +1125,18 @@
1125
1125
  return slug.trim();
1126
1126
  }
1127
1127
  }
1128
+ function prettifyIdentifier(input) {
1129
+ if (!input) return "";
1130
+ let text = input;
1131
+ text = text.replace(/([a-z])([A-Z])|([A-Z])([A-Z][a-z])/g, "$1$3 $2$4");
1132
+ text = text.replace(/[_-]+/g, " ");
1133
+ const s = text.trim().replace(/\b\w/g, (char) => char.toUpperCase());
1134
+ console.log("Prettified identifier:", {
1135
+ input,
1136
+ s
1137
+ });
1138
+ return s;
1139
+ }
1128
1140
  const defaultDateFormat = "MMMM dd, yyyy, HH:mm:ss";
1129
1141
  const COLLECTION_PATH_SEPARATOR = "::";
1130
1142
  function stripCollectionPath(path) {
@@ -25027,7 +25039,7 @@
25027
25039
  }, [delegate.initTextSearch])
25028
25040
  };
25029
25041
  }
25030
- const DEFAULT_SERVER = "https://api-drplyi3b6q-ey.a.run.app";
25042
+ const DEFAULT_SERVER = "https://api.firecms.co";
25031
25043
  async function makeRequest(authController, dataSourceKey, pluginKeys, apiKey) {
25032
25044
  let idToken;
25033
25045
  try {
@@ -27171,6 +27183,7 @@
27171
27183
  exports2.navigateToEntity = navigateToEntity;
27172
27184
  exports2.pick = pick;
27173
27185
  exports2.plural = plural;
27186
+ exports2.prettifyIdentifier = prettifyIdentifier;
27174
27187
  exports2.printChanged = printChanged;
27175
27188
  exports2.propertiesToColumns = propertiesToColumns;
27176
27189
  exports2.randomColor = randomColor;