@teambit/react.ui.component-highlighter 0.0.490 → 0.0.491

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.
@@ -198,4 +198,4 @@ const classes = {
198
198
  ```
199
199
 
200
200
  You can control the size using regular `font-size`.
201
- Keep in mind that the label can be either two elements (when using component id), and a single element (for other texts)
201
+ Keep in mind that the label can be either two elements (when using component id), and a single element (for other texts)
@@ -198,4 +198,4 @@ const classes = {
198
198
  ```
199
199
 
200
200
  You can control the size using regular `font-size`.
201
- Keep in mind that the label can be either two elements (when using component id), and a single element (for other texts)
201
+ Keep in mind that the label can be either two elements (when using component id), and a single element (for other texts)
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ShowWhenHovering: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { HybridHighlighterProps } from '../hybrid-highligher';
3
2
  export declare type HoverHighlighterProps = Omit<HybridHighlighterProps, 'mode'>;
4
3
  export declare function HoverHighlighter({ ...props }: HoverHighlighterProps): JSX.Element;
@@ -12,9 +12,9 @@ export declare type useHoverHighlighterOptions = {
12
12
  };
13
13
  /** fires onChange when targeting a new component */
14
14
  export declare function useHoverHighlighter<T extends HTMLElement = HTMLElement>(onChange: (target?: HighlightTarget) => void, props: React.HTMLAttributes<T>, { debounceDuration, scopeClass, disabled, rule, componentRule }: useHoverHighlighterOptions): {
15
- onMouseOver?: undefined;
16
- onMouseLeave?: undefined;
17
- } | {
18
15
  onMouseOver: (event: React.MouseEvent<T, MouseEvent>) => void;
19
16
  onMouseLeave: (event: React.MouseEvent<T, MouseEvent>) => void;
17
+ } | {
18
+ onMouseOver?: undefined;
19
+ onMouseLeave?: undefined;
20
20
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComponentID } from '@teambit/component-id';
3
2
  import { LinkProps } from '@teambit/base-ui.routing.native-link';
4
3
  export interface ComponentBubbleProps extends LinkProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from '@teambit/base-ui.surfaces.card';
3
2
  import type { ComponentID } from '@teambit/component-id';
4
3
  export interface ComponentLabelProps extends CardProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComponentID } from '@teambit/component-id';
3
2
  import { LinkProps } from '@teambit/base-ui.routing.native-link';
4
3
  export interface ScopeBubbleProps extends LinkProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from '@teambit/base-ui.surfaces.card';
3
2
  export interface DefaultLabelProps extends CardProps {
4
3
  href?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const MultiHighlighterPreview: () => JSX.Element;
3
2
  export declare const MultiHighlighterWithCustomColors: () => JSX.Element;
4
3
  export declare const MultiHighlighterInsideIgnore: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { HybridHighlighterProps } from '../hybrid-highligher';
3
2
  export declare type MultiHighlighterProps = Omit<HybridHighlighterProps, 'mode'>;
4
3
  export declare function MultiHighlighter({ watchMotion, ...props }: MultiHighlighterProps): JSX.Element;
@@ -107,4 +107,4 @@ function bubbleToBitComponent(
107
107
  }
108
108
 
109
109
  return undefined;
110
- }
110
+ }
@@ -127,4 +127,4 @@ export function HybridHighlighter({
127
127
  ))}
128
128
  </div>
129
129
  );
130
- }
130
+ }
@@ -92,4 +92,4 @@ export const MultiHighlighterWithComponentRule = () => {
92
92
  // <EnterpriseOffering style={{ height: 300 }} />
93
93
  // </MultiHighlighter>
94
94
  // );
95
- // };
95
+ // };
@@ -71,4 +71,4 @@ function targetsSelector(
71
71
  scopeSelector = ':scope'
72
72
  ) {
73
73
  return `:not(${scopeSelector} ${excludeHighlighterSelector}, ${scopeSelector} ${excludeHighlighterSelector} *)`;
74
- }
74
+ }
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
1
  {
2
2
  "name": "@teambit/react.ui.component-highlighter",
3
- "version": "0.0.490",
3
+ "version": "0.0.491",
4
4
  "homepage": "https://bit.dev/teambit/react/ui/component-highlighter",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.react",
8
8
  "name": "ui/component-highlighter",
9
- "version": "0.0.490"
9
+ "version": "0.0.491"
10
10
  },
11
11
  "dependencies": {
12
12
  "classnames": "2.2.6",
13
+ "uuid": "3.4.0",
14
+ "use-debounce": "6.0.1",
13
15
  "@popperjs/core": "2.6.0",
14
16
  "react-popper": "2.2.4",
15
- "use-debounce": "6.0.1",
16
- "uuid": "3.4.0",
17
17
  "get-xpath": "3.0.1",
18
18
  "url-join": "4.0.1",
19
19
  "core-js": "^3.0.0",
20
- "@teambit/component-id": "0.0.388",
21
- "@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.9",
22
- "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.476",
23
20
  "@teambit/base-ui.utils.popper-js.ignore-popper-size": "1.0.0",
24
21
  "@teambit/base-ui.utils.popper-js.resize-to-match-reference": "1.0.0",
25
- "@teambit/react.modules.dom-to-react": "0.0.476",
26
- "@teambit/react.ui.hover-selector": "0.0.154",
27
22
  "@teambit/base-ui.surfaces.card": "1.0.1",
28
23
  "@teambit/base-ui.routing.native-link": "1.0.0",
29
- "@teambit/component.modules.component-url": "0.0.109"
24
+ "@teambit/component-id": "0.0.389",
25
+ "@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.10",
26
+ "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.477",
27
+ "@teambit/react.modules.dom-to-react": "0.0.477",
28
+ "@teambit/react.ui.hover-selector": "0.0.155",
29
+ "@teambit/component.modules.component-url": "0.0.110"
30
30
  },
31
31
  "devDependencies": {
32
+ "@types/react": "^17.0.8",
32
33
  "@types/classnames": "2.2.11",
33
- "@testing-library/react": "11.2.6",
34
34
  "@types/uuid": "3.4.9",
35
+ "@testing-library/react": "11.2.6",
36
+ "@types/react-dom": "^17.0.5",
35
37
  "@types/url-join": "4.0.0",
36
38
  "@types/mocha": "5.2.7",
37
39
  "@types/testing-library__jest-dom": "5.9.5",
38
40
  "@babel/runtime": "7.12.18",
39
41
  "@types/jest": "^26.0.0",
40
- "@types/react-dom": "^17.0.5",
41
- "@types/react": "^17.0.8",
42
42
  "@types/node": "12.20.4",
43
43
  "@teambit/design.ui.icon-button": "1.0.10"
44
44
  },
45
45
  "peerDependencies": {
46
- "@teambit/legacy": "1.0.184",
46
+ "@teambit/legacy": "1.0.185",
47
47
  "react-dom": "^16.8.0 || ^17.0.0",
48
48
  "react": "^16.8.0 || ^17.0.0"
49
49
  },
@@ -71,7 +71,7 @@
71
71
  "react": "-"
72
72
  },
73
73
  "peerDependencies": {
74
- "@teambit/legacy": "1.0.184",
74
+ "@teambit/legacy": "1.0.185",
75
75
  "react-dom": "^16.8.0 || ^17.0.0",
76
76
  "react": "^16.8.0 || ^17.0.0"
77
77
  }
package/rule-matcher.tsx CHANGED
@@ -38,4 +38,4 @@ export function componentRuleMatcher(target: ComponentMatchTarget, rule: Compone
38
38
  }
39
39
 
40
40
  return true;
41
- }
41
+ }