@hubspot/ui-extensions 0.8.9 → 0.8.10

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.
@@ -251,3 +251,8 @@ export declare const PanelSection: "PanelSection" & {
251
251
  readonly props?: types.PanelSectionProps | undefined;
252
252
  readonly children?: true | undefined;
253
253
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelSection", types.PanelSectionProps, true>>;
254
+ export declare const StepperInput: "StepperInput" & {
255
+ readonly type?: "StepperInput" | undefined;
256
+ readonly props?: types.StepperInputProps | undefined;
257
+ readonly children?: true | undefined;
258
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"StepperInput", types.StepperInputProps, true>>;
@@ -53,3 +53,4 @@ export const Panel = createRemoteReactComponent('Panel');
53
53
  export const PanelFooter = createRemoteReactComponent('PanelFooter');
54
54
  export const PanelBody = createRemoteReactComponent('PanelBody');
55
55
  export const PanelSection = createRemoteReactComponent('PanelSection');
56
+ export const StepperInput = createRemoteReactComponent('StepperInput');
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { hubspot } from './hubspot';
2
+ export { logger } from './logger';
2
3
  export * from './coreComponents';
3
4
  export * from './types';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { hubspot } from './hubspot';
2
+ export { logger } from './logger';
2
3
  export * from './coreComponents';
3
4
  export * from './types';
@@ -0,0 +1,8 @@
1
+ interface Logger {
2
+ debug: (value: string) => void;
3
+ info: (value: string) => void;
4
+ warn: (value: string) => void;
5
+ error: (value: string) => void;
6
+ }
7
+ export declare const logger: Logger;
8
+ export {};
package/dist/logger.js ADDED
@@ -0,0 +1,2 @@
1
+ /* eslint-disable hubspot-dev/no-confusing-browser-globals */
2
+ export const logger = self.logger;
package/dist/types.d.ts CHANGED
@@ -460,6 +460,27 @@ export interface NumberInputProps extends BaseInputForNumber {
460
460
  /** @deprecated use onChange instead. It doesn't guarantee valid format */
461
461
  onInput?: (value: number) => void;
462
462
  }
463
+ /**
464
+ * The props type for {@link !components.StepperInput}.
465
+ *
466
+ * @category Component Props
467
+ */
468
+ export interface StepperInputProps extends Omit<NumberInputProps, 'onInput'> {
469
+ /** The amount that the current value will increase or decrease on each step button click.
470
+ * @defaultValue `1`
471
+ */
472
+ stepSize?: number;
473
+ /**
474
+ * Text that will appear in a tooltip next to the step up button when users
475
+ * can't increase the current value.
476
+ */
477
+ maxValueReachedTooltip?: string;
478
+ /**
479
+ * Text that will appear in a tooltip next to the step down button when users
480
+ * can't decrease the current value.
481
+ */
482
+ minValueReachedTooltip?: string;
483
+ }
463
484
  /** Object that represents dates. */
464
485
  export interface BaseDate {
465
486
  /** the four-digit year (e.g., 2023). */
@@ -1280,8 +1301,8 @@ export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
1280
1301
  reloadPage: ReloadPageAction;
1281
1302
  fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
1282
1303
  openIframeModal: OpenIframeModalAction;
1283
- refreshObjectProperties?: refreshObjectPropertiesAction;
1284
- onCrmPropertiesUpdate?: onCrmPropertiesUpdateAction;
1304
+ refreshObjectProperties: refreshObjectPropertiesAction;
1305
+ onCrmPropertiesUpdate: onCrmPropertiesUpdateAction;
1285
1306
  };
1286
1307
  context: CrmContext;
1287
1308
  customComponents: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.8.9",
3
+ "version": "0.8.10",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -51,5 +51,5 @@
51
51
  "devDependencies": {
52
52
  "typescript": "5.0.4"
53
53
  },
54
- "gitHead": "03c10fd116330e174654829acfa99c5e41ff870e"
54
+ "gitHead": "304f163621e00aac8339440fac02a09b57e078d8"
55
55
  }