@ngrok/mantle 0.93.5 → 0.93.7

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/agent.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrok/mantle",
3
- "version": "0.93.5",
3
+ "version": "0.93.7",
4
4
  "origin": "https://mantle.ngrok.com",
5
5
  "endpoints": {
6
6
  "docs": "https://mantle.ngrok.com/",
@@ -1345,7 +1345,7 @@
1345
1345
  "summary": "Renders one long opaque value on a single line and keeps its tail visible when it overflows.",
1346
1346
  "jsdoc": "Renders one long opaque value (a URL, a resource ID, an image reference, a token) on a single line.",
1347
1347
  "examples": [
1348
- "```tsx\nimport { TruncatedText } from \"@ngrok/mantle/truncated-text\";\n\n// A URL whose last path segment tells it apart from its neighbors.\n<TruncatedText\n className=\"font-mono text-sm\"\n value=\"https://example.ngrok.app/api/items?filter=%7B%22name%22%3A%22x%22%7D&limit=200\"\n/>\n\n// Keep the six characters that tell two IDs apart.\n<TruncatedText className=\"font-mono text-sm\" tail={6} value=\"ep_2abcdEFGhijKL123456\" />\n\n// Show an ID as its type prefix, an ellipsis, and its last eight characters.\n<TruncatedText className=\"font-mono text-sm\" head={4} value=\"mem_21h80N9qQuAmhSB8nlTA8KImPbQ\" />\n\n// As a <code> element.\n<TruncatedText asChild tail={12} value=\"ghcr.io/ngrok/ngrok-operator:0.14.0\">\n <code />\n</TruncatedText>\n```"
1348
+ "```tsx\nimport { TruncatedText } from \"@ngrok/mantle/truncated-text\";\n\n// A URL whose last path segment tells it apart from its neighbors.\n<TruncatedText\n className=\"font-mono text-sm\"\n value=\"https://example.ngrok.app/api/items?filter=%7B%22name%22%3A%22x%22%7D&limit=200\"\n/>\n\n// Keep the six characters that tell two IDs apart.\n<TruncatedText className=\"font-mono text-sm\" tail={6} value=\"ep_2abcdEFGhijKL123456\" />\n\n// Show an ID as its type prefix, an ellipsis, and its last eight characters.\n<TruncatedText className=\"font-mono text-sm\" head={4} value=\"mem_21h80N9qQuAmhSB8nlTA8KImPbQ\" />\n\n// Mute the type prefix and the ellipsis, and keep the tail at body color.\n<TruncatedText\n className=\"font-mono text-sm *:data-[slot=truncated-text-head]:text-muted *:data-[slot=truncated-text-tail]:text-body\"\n head={4}\n value=\"mem_21h80N9qQuAmhSB8nlTA8KImPbQ\"\n/>\n\n// As a <code> element.\n<TruncatedText asChild tail={12} value=\"ghcr.io/ngrok/ngrok-operator:0.14.0\">\n <code />\n</TruncatedText>\n```"
1349
1349
  ],
1350
1350
  "siblings": [
1351
1351
  {
package/dist/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @ngrok/mantle (0.93.5)
1
+ # @ngrok/mantle (0.93.7)
2
2
 
3
3
  > Offline index shipped inside the @ngrok/mantle npm package. The full records, with examples and sibling boundaries, are in agent.json beside this file. Neither file lists props: read the bundled type declarations (`<subpath>.d.ts` beside this file) for every prop and its JSDoc. Live docs: https://mantle.ngrok.com/for-ai-agents.
4
4
 
@@ -88,6 +88,14 @@ type TruncatedTextProps = Omit<ComponentProps<"span">, "children" | "translate">
88
88
  * `mem_…A8KImPbQ`. The head rounds up to whole `ch`, so a proportional font can
89
89
  * show one more narrow glyph before the ellipsis.
90
90
  *
91
+ * **Segment styles.** Style the head and the tail from the root with
92
+ * `*:data-[slot=truncated-text-head]:` and `*:data-[slot=truncated-text-tail]:`
93
+ * classes. CSS draws the ellipsis at the end of the head, so the ellipsis takes
94
+ * the head's color. A value no longer than `tail` has an empty head, so its
95
+ * tail draws the ellipsis in the tail's color. The two segments render when the
96
+ * value fits too. To color them only while the value overflows, add the
97
+ * `data-truncated:` variant first.
98
+ *
91
99
  * **Selection.** The root carries `user-select: all`, so one click selects the
92
100
  * whole value across both segments, and a copy yields the full string. Pass
93
101
  * `className="select-text"` to opt out.
@@ -161,6 +169,13 @@ type TruncatedTextProps = Omit<ComponentProps<"span">, "children" | "translate">
161
169
  * // Show an ID as its type prefix, an ellipsis, and its last eight characters.
162
170
  * <TruncatedText className="font-mono text-sm" head={4} value="mem_21h80N9qQuAmhSB8nlTA8KImPbQ" />
163
171
  *
172
+ * // Mute the type prefix and the ellipsis, and keep the tail at body color.
173
+ * <TruncatedText
174
+ * className="font-mono text-sm *:data-[slot=truncated-text-head]:text-muted *:data-[slot=truncated-text-tail]:text-body"
175
+ * head={4}
176
+ * value="mem_21h80N9qQuAmhSB8nlTA8KImPbQ"
177
+ * />
178
+ *
164
179
  * // As a <code> element.
165
180
  * <TruncatedText asChild tail={12} value="ghcr.io/ngrok/ngrok-operator:0.14.0">
166
181
  * <code />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrok/mantle",
3
- "version": "0.93.5",
3
+ "version": "0.93.7",
4
4
  "description": "mantle is ngrok's UI library and design system.",
5
5
  "homepage": "https://mantle.ngrok.com",
6
6
  "license": "MIT",
@@ -144,6 +144,6 @@
144
144
  "tailwindcss": "^4.3.3"
145
145
  },
146
146
  "engines": {
147
- "node": "^24.0.0"
147
+ "node": "^26.0.0"
148
148
  }
149
149
  }