@firecms/collection_editor 3.0.0-canary.35 → 3.0.0-canary.37
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.es.js
CHANGED
|
@@ -2912,10 +2912,14 @@ function $i(t) {
|
|
|
2912
2912
|
function Yi(t) {
|
|
2913
2913
|
return t ? (t.slice(0, 1).toLowerCase() + t.slice(1)).replace(/([-_ ]){1,}/g, " ").split(/[-_ ]/).reduce((r, n) => r + n[0].toUpperCase() + n.substring(1), "") : "";
|
|
2914
2914
|
}
|
|
2915
|
-
function Hi({
|
|
2916
|
-
|
|
2915
|
+
function Hi({
|
|
2916
|
+
collection: t,
|
|
2917
|
+
onOpenChange: r,
|
|
2918
|
+
open: n
|
|
2919
|
+
}) {
|
|
2920
|
+
const i = Ie(), l = t ? `import { EntityCollection } from "firecms";
|
|
2917
2921
|
|
|
2918
|
-
const ` + (t?.name ? Yi(t.name) : "my") + "Collection:EntityCollection = " + oi.stringify(cr(t), null, " ");
|
|
2922
|
+
const ` + (t?.name ? Yi(t.name) : "my") + "Collection:EntityCollection = " + oi.stringify(cr(t), null, " ") : "No collection selected";
|
|
2919
2923
|
return /* @__PURE__ */ a(
|
|
2920
2924
|
Fe,
|
|
2921
2925
|
{
|
|
@@ -2946,7 +2950,13 @@ const ` + (t?.name ? Yi(t.name) : "my") + "Collection:EntityCollection = " + oi.
|
|
|
2946
2950
|
theme: si.vsDark,
|
|
2947
2951
|
code: l,
|
|
2948
2952
|
language: "typescript",
|
|
2949
|
-
children: ({
|
|
2953
|
+
children: ({
|
|
2954
|
+
className: o,
|
|
2955
|
+
style: d,
|
|
2956
|
+
tokens: u,
|
|
2957
|
+
getLineProps: p,
|
|
2958
|
+
getTokenProps: h
|
|
2959
|
+
}) => /* @__PURE__ */ e("pre", { style: d, className: "p-4 rounded text-sm", children: u.map((m, s) => /* @__PURE__ */ e("div", { ...p({ line: m }), children: m.map((f, v) => /* @__PURE__ */ e("span", { ...h({ token: f }) }, v)) }, s)) })
|
|
2950
2960
|
}
|
|
2951
2961
|
)
|
|
2952
2962
|
] }),
|