@firecms/core 3.0.0-canary.290 → 3.0.0-canary.293

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.
@@ -1,6 +1,6 @@
1
1
  import { AuthController, DataSourceDelegate, FireCMSPlugin } from "../types";
2
2
  export declare const DEFAULT_SERVER_DEV = "https://api-kdoe6pj3qq-ey.a.run.app";
3
- export declare const DEFAULT_SERVER = "https://api-drplyi3b6q-ey.a.run.app";
3
+ export declare const DEFAULT_SERVER = "https://api.firecms.co";
4
4
  export type AccessResponse = {
5
5
  blocked?: boolean;
6
6
  message?: string;
package/dist/index.es.js CHANGED
@@ -1127,6 +1127,18 @@ function unslugify(slug) {
1127
1127
  return slug.trim();
1128
1128
  }
1129
1129
  }
1130
+ function prettifyIdentifier(input) {
1131
+ if (!input) return "";
1132
+ let text = input;
1133
+ text = text.replace(/([a-z])([A-Z])|([A-Z])([A-Z][a-z])/g, "$1$3 $2$4");
1134
+ text = text.replace(/[_-]+/g, " ");
1135
+ const s = text.trim().replace(/\b\w/g, (char) => char.toUpperCase());
1136
+ console.log("Prettified identifier:", {
1137
+ input,
1138
+ s
1139
+ });
1140
+ return s;
1141
+ }
1130
1142
  const defaultDateFormat = "MMMM dd, yyyy, HH:mm:ss";
1131
1143
  const COLLECTION_PATH_SEPARATOR = "::";
1132
1144
  function stripCollectionPath(path) {
@@ -25029,7 +25041,7 @@ function useBuildDataSource({
25029
25041
  }, [delegate.initTextSearch])
25030
25042
  };
25031
25043
  }
25032
- const DEFAULT_SERVER = "https://api-drplyi3b6q-ey.a.run.app";
25044
+ const DEFAULT_SERVER = "https://api.firecms.co";
25033
25045
  async function makeRequest(authController, dataSourceKey, pluginKeys, apiKey) {
25034
25046
  let idToken;
25035
25047
  try {
@@ -27174,6 +27186,7 @@ export {
27174
27186
  navigateToEntity,
27175
27187
  pick,
27176
27188
  plural,
27189
+ prettifyIdentifier,
27177
27190
  printChanged,
27178
27191
  propertiesToColumns,
27179
27192
  randomColor,