@surrealdb/ui 1.0.29 → 1.0.30

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/ui.d.ts CHANGED
@@ -277,6 +277,19 @@ declare type ColorScheme_2 = keyof ThemeConfig_2;
277
277
  */
278
278
  export declare const commonExtensions: () => Extension;
279
279
 
280
+ declare type ComponentFunction<T extends AnyNode["type"]> = NodeOfType<T> extends {
281
+ children: unknown[];
282
+ } ? (props: {
283
+ node: NodeOfType<T>;
284
+ children: ReactNode;
285
+ }) => ReactNode : (props: {
286
+ node: NodeOfType<T>;
287
+ }) => ReactNode;
288
+
289
+ declare type ComponentMap = {
290
+ [T in AnyNode["type"]]: ComponentFunction<T>;
291
+ };
292
+
280
293
  /**
281
294
  * Create a style highlighter for the given color scheme and syntax theme
282
295
  */
@@ -1438,7 +1451,7 @@ export declare interface RenderMarkdownProps extends StackProps {
1438
1451
  /**
1439
1452
  * Optional custom component overrides
1440
1453
  */
1441
- components?: Partial<Record<string, React_2.ComponentType<Record<string, unknown>> | string>>;
1454
+ components?: Partial<ComponentMap>;
1442
1455
  }
1443
1456
 
1444
1457
  export declare interface Root {
package/dist/ui.js CHANGED
@@ -8041,10 +8041,11 @@ function l6() {
8041
8041
  return "title" in O && (i.title = O.title), "className" in O && (i.className = O.className), "id" in O && (i.id = O.id), "style" in O && (i.style = O.style), e ? /* @__PURE__ */ T(
8042
8042
  n6,
8043
8043
  {
8044
+ bdrs: "md",
8044
8045
  ...i,
8045
8046
  darkSrc: e
8046
8047
  }
8047
- ) : /* @__PURE__ */ T(Ze, { ...i });
8048
+ ) : /* @__PURE__ */ T(Ze, { bdrs: "md", ...i });
8048
8049
  },
8049
8050
  // Inline formatting
8050
8051
  strong: ({ node: O, children: e }) => /* @__PURE__ */ T(