@apiboost/omnispec 1.1.0-next.2 → 1.1.0

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
  'use strict';
2
2
 
3
- var AsyncApiSpec = require('../chunks/AsyncApiSpec-Bj1F8C5K.js');
3
+ var AsyncApiSpec = require('../chunks/AsyncApiSpec-BzgUioEK.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('@emotion/css');
@@ -957,9 +957,9 @@ const varTokenStyle = css.css({
957
957
  "&::after": { content: '"}"' }
958
958
  });
959
959
  function highlightVariables(url) {
960
- const parts = url.split(/(\{[^}]+\})/g);
960
+ const parts = url.split(/(\{[^{}]+\})/g);
961
961
  return parts.map(
962
- (part, i) => /^\{[^}]+\}$/.test(part) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: varTokenStyle, children: part.slice(1, -1) }, i) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: part }, i)
962
+ (part, i) => /^\{[^{}]+\}$/.test(part) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: varTokenStyle, children: part.slice(1, -1) }, i) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: part }, i)
963
963
  );
964
964
  }
965
965
  function ServerCard({ server }) {
@@ -2137,7 +2137,7 @@ const scopeDescStyle = css.css({
2137
2137
 
2138
2138
  const UNTAGGED_LABEL = "Untagged";
2139
2139
  function slugify(value) {
2140
- return value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "tag";
2140
+ return value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "tag";
2141
2141
  }
2142
2142
  function channelTagNames(channel) {
2143
2143
  const names = /* @__PURE__ */ new Set();
@@ -2540,7 +2540,7 @@ function nestByTagGroups(groups, xTagGroups, toNav) {
2540
2540
  const children = xg.tags.map((t) => byTagName.get(t)).filter((g) => !!g);
2541
2541
  children.forEach((g) => used.add(g));
2542
2542
  return {
2543
- id: `xtaggroup-${xg.name.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "group"}`,
2543
+ id: `xtaggroup-${xg.name.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "group"}`,
2544
2544
  label: xg.name,
2545
2545
  children: children.map(toNav)
2546
2546
  };
@@ -2598,4 +2598,4 @@ const tagSectionStyle = css.css({
2598
2598
  });
2599
2599
 
2600
2600
  exports.AsyncApiSpec = AsyncApiSpec;
2601
- //# sourceMappingURL=AsyncApiSpec-Bj1F8C5K.js.map
2601
+ //# sourceMappingURL=AsyncApiSpec-BzgUioEK.js.map