@surrealdb/ui 2.0.4 → 2.0.5

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.js CHANGED
@@ -13341,12 +13341,12 @@ function ks(O, e, t, r) {
13341
13341
  );
13342
13342
  }
13343
13343
  function Rz(O, e, t) {
13344
- const r = $$(O, e), a = Q$(r), n = Xc(Pn(O, e)).code, i = a.language ? hi(t.codeRenderers[a.language])?.component : void 0, o = Xg(a, "title");
13345
- if (i)
13344
+ const r = $$(O, e), a = Q$(r), n = Xc(Pn(O, e)).code, i = a.language ? hi(t.codeRenderers[a.language]) : void 0, o = i?.component, s = Xg(a, "title");
13345
+ if (o)
13346
13346
  return /* @__PURE__ */ d(
13347
13347
  "div",
13348
13348
  {
13349
- className: G(h.customCodeBlock, h.widgetBlock),
13349
+ className: G(!i?.bare && h.customCodeBlock, h.widgetBlock),
13350
13350
  children: /* @__PURE__ */ d(
13351
13351
  ki,
13352
13352
  {
@@ -13359,7 +13359,7 @@ function Rz(O, e, t) {
13359
13359
  }
13360
13360
  ),
13361
13361
  children: /* @__PURE__ */ d(
13362
- i,
13362
+ o,
13363
13363
  {
13364
13364
  code: n,
13365
13365
  language: a.language,
@@ -13373,38 +13373,38 @@ function Rz(O, e, t) {
13373
13373
  },
13374
13374
  `code-${O.from}`
13375
13375
  );
13376
- const s = a.attributes.runnable;
13377
- if (s !== void 0) {
13378
- const Q = typeof s == "string" ? s : "", $ = t.renderers?.code?.({
13376
+ const l = a.attributes.runnable;
13377
+ if (l !== void 0) {
13378
+ const $ = typeof l == "string" ? l : "", c = t.renderers?.code?.({
13379
13379
  value: n,
13380
13380
  lang: a.language,
13381
- title: o,
13382
- runnable: Q
13381
+ title: s,
13382
+ runnable: $
13383
13383
  });
13384
- return $ !== void 0 ? /* @__PURE__ */ d(L, { children: $ }, `code-${O.from}`) : /* @__PURE__ */ d(
13384
+ return c !== void 0 ? /* @__PURE__ */ d(L, { children: c }, `code-${O.from}`) : /* @__PURE__ */ d(
13385
13385
  lz,
13386
13386
  {
13387
- runnable: Q,
13387
+ runnable: $,
13388
13388
  value: n,
13389
13389
  lang: a.language || void 0,
13390
- title: o,
13390
+ title: s,
13391
13391
  withBorder: !1,
13392
13392
  bdrs: 4
13393
13393
  },
13394
13394
  `runnable-${O.from}`
13395
13395
  );
13396
13396
  }
13397
- const l = t.renderers?.code?.({
13397
+ const Q = t.renderers?.code?.({
13398
13398
  value: n,
13399
13399
  lang: a.language,
13400
- title: o
13400
+ title: s
13401
13401
  });
13402
- return l !== void 0 ? /* @__PURE__ */ d(L, { children: l }, `code-${O.from}`) : /* @__PURE__ */ d(
13402
+ return Q !== void 0 ? /* @__PURE__ */ d(L, { children: Q }, `code-${O.from}`) : /* @__PURE__ */ d(
13403
13403
  wv,
13404
13404
  {
13405
13405
  code: n,
13406
13406
  language: a.language || r,
13407
- title: o
13407
+ title: s
13408
13408
  },
13409
13409
  `fence-${O.from}`
13410
13410
  );