@harnessio/ui 0.5.44 → 0.5.45

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/index.d.ts CHANGED
@@ -1238,6 +1238,8 @@ declare namespace components {
1238
1238
  Command,
1239
1239
  FileItem_2 as FileItem,
1240
1240
  SearchFiles,
1241
+ HighlightTextProps,
1242
+ HighlightText,
1241
1243
  linkVariants,
1242
1244
  Link,
1243
1245
  LinkProps,
@@ -3002,10 +3004,23 @@ declare interface HeaderV2TabItem {
3002
3004
  icon?: IconV2NamesType;
3003
3005
  counter?: number;
3004
3006
  disabled?: boolean;
3007
+ exact?: boolean;
3005
3008
  }
3006
3009
 
3007
3010
  declare type HighlighterType = Omit<DiffHighlighter, 'getHighlighterEngine'>;
3008
3011
 
3012
+ /**
3013
+ * Renders `text` with the characters matching `match` highlighted in <mark>,
3014
+ * using the same fuzzysort-based matching as the file search (see search-files.tsx).
3015
+ */
3016
+ declare const HighlightText: ({ text, match, className }: HighlightTextProps) => JSX_2.Element;
3017
+
3018
+ declare interface HighlightTextProps {
3019
+ text: string;
3020
+ match?: string | null;
3021
+ className?: string;
3022
+ }
3023
+
3009
3024
  declare namespace hooks {
3010
3025
  export {
3011
3026
  useDragAndDrop,
@@ -7015,6 +7030,7 @@ declare type TabsTriggerExtendedProps = (TabsTriggerBasePropsWithIcon | TabsTrig
7015
7030
  declare type TabsTriggerLinkProps = TabsTriggerExtendedProps & Omit<ComponentPropsWithoutRef<'a'>, keyof TabsTriggerExtendedProps | 'href'> & {
7016
7031
  linkProps?: Omit<NavLinkProps, 'to'>;
7017
7032
  disabled?: boolean;
7033
+ exact?: boolean;
7018
7034
  };
7019
7035
 
7020
7036
  declare type TabsTriggerProps = TabsTriggerButtonProps | TabsTriggerLinkProps;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as s } from "./index-Bvr23CG5.js";
2
- import { i as e } from "./index-Bdp5OHH8.js";
2
+ import { i as e } from "./index-COyN11Zp.js";
3
3
  import { i as a } from "./index-Bozws46U.js";
4
4
  import { i as m } from "./index-CnTWfvOd.js";
5
5
  import { i as f } from "./index-yGuTXfMI.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harnessio/ui",
3
3
  "description": "Harness Canary UI component library",
4
- "version": "0.5.44",
4
+ "version": "0.5.45",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -122,8 +122,8 @@
122
122
  "yaml": "^2.7.0",
123
123
  "zod": "^3.23.8",
124
124
  "@harnessio/core-design-system": "0.0.1",
125
- "@harnessio/yaml-editor": "0.26.0",
126
- "@harnessio/pipeline-graph": "1.9.6"
125
+ "@harnessio/pipeline-graph": "1.9.6",
126
+ "@harnessio/yaml-editor": "0.26.0"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "react": "^17.0.2",