@ngrok/mantle 0.68.0 → 0.68.1

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/README.md CHANGED
@@ -85,6 +85,13 @@ SKIP_HOOKS=1 git commit -m "wip"
85
85
  > [!NOTE]
86
86
  > This is a **local opt-out only**. CI will always run formatting and linting checks against your branch, so any issues will still be caught before merge.
87
87
 
88
+ ## Related Packages
89
+
90
+ | Package | Description | Links |
91
+ | ----------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
92
+ | `@ngrok/mantle-vite-plugins` | Vite + rehype plugins for code block highlighting and Tailwind CSS source optimization | [GitHub](https://github.com/ngrok-oss/mantle/tree/main/packages/mantle-vite-plugins) · [npm](https://www.npmjs.com/package/@ngrok/mantle-vite-plugins) |
93
+ | `@ngrok/mantle-server-syntax-highlighter` | Server-side syntax highlighting engine powered by Shiki | [GitHub](https://github.com/ngrok-oss/mantle/tree/main/packages/mantle-server-syntax-highlighter) · [npm](https://www.npmjs.com/package/@ngrok/mantle-server-syntax-highlighter) |
94
+
88
95
  ## Contributing
89
96
 
90
97
  Please read our [contribution guide](https://github.com/ngrok-oss/mantle/blob/main/CONTRIBUTING.md) and [conventions](https://github.com/ngrok-oss/mantle/blob/main/CONVENTIONS.md).
package/dist/command.d.ts CHANGED
@@ -101,7 +101,7 @@ declare const Command: {
101
101
  ref?: React.Ref<HTMLDivElement>;
102
102
  } & {
103
103
  asChild?: boolean;
104
- }, "key" | "asChild" | keyof _$react.HTMLAttributes<HTMLDivElement>> & {
104
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild"> & {
105
105
  label?: string;
106
106
  shouldFilter?: boolean;
107
107
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -178,7 +178,7 @@ declare const Command: {
178
178
  ref?: React.Ref<HTMLInputElement>;
179
179
  } & {
180
180
  asChild?: boolean;
181
- }, "key" | "asChild" | keyof _$react.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
181
+ }, "key" | "asChild" | keyof _$react.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
182
182
  value?: string;
183
183
  onValueChange?: (search: string) => void;
184
184
  } & _$react.RefAttributes<HTMLInputElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
@@ -199,7 +199,7 @@ declare const Command: {
199
199
  ref?: React.Ref<HTMLDivElement>;
200
200
  } & {
201
201
  asChild?: boolean;
202
- }, "key" | "asChild" | keyof _$react.HTMLAttributes<HTMLDivElement>> & {
202
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild"> & {
203
203
  label?: string;
204
204
  } & _$react.RefAttributes<HTMLDivElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
205
205
  /**
@@ -218,7 +218,7 @@ declare const Command: {
218
218
  ref?: React.Ref<HTMLDivElement>;
219
219
  } & {
220
220
  asChild?: boolean;
221
- }, "key" | "asChild" | keyof _$react.HTMLAttributes<HTMLDivElement>> & _$react.RefAttributes<HTMLDivElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
221
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild"> & _$react.RefAttributes<HTMLDivElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
222
222
  /**
223
223
  * The group component for the Command component.
224
224
  *
@@ -239,7 +239,7 @@ declare const Command: {
239
239
  ref?: React.Ref<HTMLDivElement>;
240
240
  } & {
241
241
  asChild?: boolean;
242
- }, "key" | "asChild" | keyof _$react.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
242
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
243
243
  heading?: React.ReactNode;
244
244
  value?: string;
245
245
  forceMount?: boolean;
@@ -262,7 +262,7 @@ declare const Command: {
262
262
  ref?: React.Ref<HTMLDivElement>;
263
263
  } & {
264
264
  asChild?: boolean;
265
- }, "key" | "asChild" | keyof _$react.HTMLAttributes<HTMLDivElement>>, "disabled" | "onSelect" | "value"> & {
265
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "onSelect" | "value"> & {
266
266
  disabled?: boolean;
267
267
  onSelect?: (value: string) => void;
268
268
  value?: string;
@@ -294,7 +294,7 @@ declare const Command: {
294
294
  ref?: React.Ref<HTMLDivElement>;
295
295
  } & {
296
296
  asChild?: boolean;
297
- }, "key" | "asChild" | keyof _$react.HTMLAttributes<HTMLDivElement>> & {
297
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild"> & {
298
298
  alwaysRender?: boolean;
299
299
  } & _$react.RefAttributes<HTMLDivElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
300
300
  };
package/dist/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as MarginType, o as useComposedRefs } from "./in-view-DS0PgFGa.js";
2
- import { RefObject, useLayoutEffect } from "react";
2
+ import { RefObject, useEffect } from "react";
3
3
 
4
4
  //#region src/hooks/use-breakpoint.d.ts
5
5
  /**
@@ -177,7 +177,7 @@ declare function useIsHydrated(): boolean;
177
177
  /**
178
178
  * useIsomorphicLayoutEffect is a hook that uses useLayoutEffect on the client and useEffect on the server.
179
179
  */
180
- declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
180
+ declare const useIsomorphicLayoutEffect: typeof useEffect;
181
181
  //#endregion
182
182
  //#region src/hooks/use-matches-media-query.d.ts
183
183
  /**
package/dist/mantle.css CHANGED
@@ -590,25 +590,25 @@ MARK: UTILITIES
590
590
  MARK: SHIKI SYNTAX HIGHLIGHT
591
591
  */
592
592
  :root {
593
- --shiki-foreground: var(--text-color-body);
593
+ --shiki-foreground: var(--text-color-strong);
594
594
  --shiki-background: transparent;
595
595
  --shiki-color-text: var(--shiki-foreground);
596
596
 
597
- --shiki-token-comment: var(--color-gray-600);
598
- --shiki-token-constant: var(--color-amber-600);
599
- --shiki-token-string: var(--color-emerald-600);
600
- --shiki-token-string-expression: var(--color-emerald-600);
601
- --shiki-token-keyword: var(--color-purple-600);
602
- --shiki-token-function: var(--color-sky-600);
603
- --shiki-token-parameter: var(--color-rose-600);
604
- --shiki-token-punctuation: var(--color-sky-600);
597
+ --shiki-token-comment: var(--text-color-muted);
598
+ --shiki-token-constant: var(--color-amber-700);
599
+ --shiki-token-string: var(--color-emerald-700);
600
+ --shiki-token-string-expression: var(--color-emerald-700);
601
+ --shiki-token-keyword: var(--color-purple-700);
602
+ --shiki-token-function: var(--color-sky-700);
603
+ --shiki-token-parameter: var(--color-rose-700);
604
+ --shiki-token-punctuation: var(--color-sky-700);
605
605
 
606
- --shiki-token-type: var(--color-amber-600);
606
+ --shiki-token-type: var(--color-amber-700);
607
607
  --shiki-token-variable: var(--shiki-foreground);
608
- --shiki-token-operator: var(--color-sky-600);
609
- --shiki-token-attribute: var(--color-purple-600);
610
- --shiki-token-property: var(--color-rose-600);
611
- --shiki-token-escape: var(--color-sky-600);
608
+ --shiki-token-operator: var(--color-sky-700);
609
+ --shiki-token-attribute: var(--color-purple-700);
610
+ --shiki-token-property: var(--color-rose-700);
611
+ --shiki-token-escape: var(--color-sky-700);
612
612
 
613
613
  /* Mantle code-line rendering hooks (used by CodeBlock + server highlighter). */
614
614
  --mantle-code-line-highlight-bg: --alpha(var(--color-accent-500) / 12%);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrok/mantle",
3
- "version": "0.68.0",
3
+ "version": "0.68.1",
4
4
  "description": "mantle is ngrok's UI library and design system.",
5
5
  "homepage": "https://mantle.ngrok.com",
6
6
  "license": "MIT",