@hubspot/ui-extensions 0.0.1-beta.1 → 0.0.1-beta.2

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
@@ -544,6 +544,7 @@ interface ImageProps {
544
544
  onClick?: () => void;
545
545
  src: string;
546
546
  width?: number;
547
+ height?: number;
547
548
  }
548
549
  ```
549
550
 
@@ -554,6 +555,7 @@ interface ImageProps {
554
555
  | `onClick` | `function(optional)` | A function that will be called when the image is clicked on. This function will receive no arguments any returned values will be ignored. |
555
556
  | `src` | `string` | The url to the image to display, similar to [img tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) |
556
557
  | `width` | `number(optional)` | The pixel width of the image |
558
+ | `height` | `number(optional)` | The pixel height of the image |
557
559
 
558
560
  ##### Usage
559
561
 
@@ -676,6 +678,7 @@ export interface LinkProps {
676
678
  href: string;
677
679
  variant?: 'primary' | 'destructive' | 'light' | 'dark';
678
680
  children: ReactNode;
681
+ onClick?: () => void;
679
682
  }
680
683
  ```
681
684
 
@@ -684,6 +687,7 @@ export interface LinkProps {
684
687
  | `href` | `string` | `N/A` | A URL that will be opened when the link is clicked. If the value is a URL external to HubSpot it will be opened in a new tab. |
685
688
  | `variant` | `'primary' \| 'light' \| 'dark' \| 'destructive'` `(optional)` | `'primary'` | Sets the color variation of the link |
686
689
  | `children` | `ReactNode` | `N/A` | Sets the content that will render inside the component. |
690
+ | `onClick` | `() => void` `(optional)` | `N/A` | A function that will be invoked when the link is clicked. It receives no arguments and it's return value is ignored |
687
691
 
688
692
  ##### Usage
689
693
 
@@ -1563,7 +1567,6 @@ export type TextProps = {
1563
1567
  | `format` | `'TextFormatOptions'` `(optional)` | `N/A` | Type of formatting options for the text. |
1564
1568
  | `children` | `string` | `N/A` | Text to be displayed as body text. |
1565
1569
  | `variant` | `'bodytext' \| 'microcopy'` | `'bodytext'` | Type of text to display |
1566
- | `tagName` | `'p' \| 'small' \| 'span'` | `'bodytext'` | Type of text element(tag) to display. |
1567
1570
  | `inline` | `boolean(optional)` | `false` | If `false` the text component will not insert a line break. |
1568
1571
 
1569
1572
  #### Format Options
package/dist/types.d.ts CHANGED
@@ -59,6 +59,7 @@ export interface ImageProps {
59
59
  onClick?: () => void;
60
60
  src: string;
61
61
  width?: number;
62
+ height?: number;
62
63
  }
63
64
  export interface InputProps<T = string> {
64
65
  label: string;
@@ -266,6 +267,8 @@ export interface ServerlessExecutionRequest {
266
267
  type: 'SERVERLESS_ACTION_HOOK';
267
268
  payload: JsonValue;
268
269
  };
270
+ objectId?: number;
271
+ objectTypeId?: string;
269
272
  }
270
273
  export interface ServerlessExecutionResponse {
271
274
  logId: string;
@@ -449,6 +452,7 @@ export interface LinkProps {
449
452
  children: ReactNode;
450
453
  href: string;
451
454
  variant?: 'primary' | 'destructive' | 'light' | 'dark';
455
+ onClick?: () => void;
452
456
  }
453
457
  export type JsonValue = string | number | boolean | null | JsonValue[] | {
454
458
  [key: string]: JsonValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.0.1-beta.1",
3
+ "version": "0.0.1-beta.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -48,5 +48,5 @@
48
48
  "devDependencies": {
49
49
  "typescript": "5.0.4"
50
50
  },
51
- "gitHead": "3b1fd0b35b8aa6c88847d27cc3c6b94e635f0452"
51
+ "gitHead": "3bad0a556e00ca7c628916da199bb6f6b787ad6f"
52
52
  }