hs-uix 1.6.5 → 1.7.0

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/feed.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./packages/feed/index";
package/index.d.ts CHANGED
@@ -57,6 +57,22 @@ export type {
57
57
  KanbanOption,
58
58
  } from "./packages/kanban/index";
59
59
 
60
+ export { Feed } from "./packages/feed/index";
61
+ export type {
62
+ FeedAction,
63
+ FeedActor,
64
+ FeedContainer,
65
+ FeedEmptyStateRenderContext,
66
+ FeedErrorStateRenderContext,
67
+ FeedField,
68
+ FeedFieldType,
69
+ FeedItem,
70
+ FeedLabels,
71
+ FeedLoadingStateRenderContext,
72
+ FeedPlacement,
73
+ FeedProps,
74
+ } from "./packages/feed/index";
75
+
60
76
  export { FormBuilder, useFormPrefill } from "./packages/form/index";
61
77
  export type {
62
78
  FormBuilderProps,
@@ -85,8 +101,14 @@ export type {
85
101
  FieldTypePlugin,
86
102
  } from "./packages/form/index";
87
103
 
88
- export { AutoTag, AutoStatusTag, KeyValueList, SectionHeader } from "./common-components";
104
+ export { AutoTag, AutoStatusTag, KeyValueList, SectionHeader, Spinner, SPINNERS, SPINNER_NAMES, gridToBraille, makeGrid } from "./common-components";
89
105
  export {
106
+ Icon,
107
+ ICON_NAMES,
108
+ ICONS,
109
+ NATIVE_ICON_NAME_LIST,
110
+ makeIconDataUri,
111
+ svgToIconEntry,
90
112
  AvatarStack,
91
113
  StyledText,
92
114
  makeAvatarStackDataUri,
@@ -109,9 +131,20 @@ export {
109
131
  DEFAULT_SVG_FONT_WEIGHT,
110
132
  } from "./common-components";
111
133
  export {
134
+ buildOptions,
135
+ createStatusTagSortComparator,
136
+ CrmDataTable,
137
+ CrmKanban,
138
+ findOptionLabel,
139
+ formatCurrency,
140
+ formatCurrencyCompact,
141
+ formatDate,
142
+ formatDateTime,
143
+ formatPercentage,
112
144
  getAutoTagVariant,
113
145
  getAutoStatusTagVariant,
114
- createStatusTagSortComparator,
146
+ resolveCrmObjectType,
147
+ sumBy,
115
148
  } from "./utils";
116
149
  export type {
117
150
  AutoTagOptions,
@@ -119,6 +152,11 @@ export type {
119
152
  AutoStatusTagOptions,
120
153
  AutoStatusTagVariant,
121
154
  StatusTagSortComparatorOptions,
155
+ CrmDataTableProps,
156
+ CrmKanbanProps,
157
+ CrmSearchDataSource,
158
+ CrmSearchConfigOptions,
159
+ CrmSearchParams,
122
160
  } from "./utils";
123
161
  export type {
124
162
  AutoTagProps,
@@ -127,11 +165,22 @@ export type {
127
165
  AvatarStackItem,
128
166
  AvatarStackItemObject,
129
167
  AvatarStackProps,
168
+ IconProps,
169
+ IconEntry,
170
+ IconPath,
171
+ IconPathObject,
172
+ IconSize,
173
+ IconDataUriResult,
174
+ IconDataUriOptions,
175
+ CrmLookupSelectProps,
130
176
  DateDirectionLabels,
131
177
  DatePresetOption,
132
178
  KeyValueListItem,
133
179
  KeyValueListProps,
134
180
  SectionHeaderProps,
181
+ SpinnerName,
182
+ SpinnerPreset,
183
+ SpinnerProps,
135
184
  StyledTextBackground,
136
185
  StyledTextDataUriOptions,
137
186
  StyledTextDataUriResult,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hs-uix",
3
- "version": "1.6.5",
3
+ "version": "1.7.0",
4
4
  "description": "Production-ready UI components for HubSpot UI Extensions — DataTable, FormBuilder, and more",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -27,6 +27,11 @@
27
27
  "import": "./dist/kanban.mjs",
28
28
  "require": "./dist/kanban.js"
29
29
  },
30
+ "./feed": {
31
+ "types": "./feed.d.ts",
32
+ "import": "./dist/feed.mjs",
33
+ "require": "./dist/feed.js"
34
+ },
30
35
  "./common-components": {
31
36
  "types": "./common-components.d.ts",
32
37
  "import": "./dist/common-components.mjs",
@@ -44,8 +49,11 @@
44
49
  "datatable.d.ts",
45
50
  "form.d.ts",
46
51
  "kanban.d.ts",
52
+ "feed.d.ts",
47
53
  "common-components.d.ts",
48
54
  "utils.d.ts",
55
+ "packages/*/index.d.ts",
56
+ "packages/*/README.md",
49
57
  "README.md"
50
58
  ],
51
59
  "workspaces": [
@@ -53,8 +61,10 @@
53
61
  ],
54
62
  "scripts": {
55
63
  "build": "tsup",
64
+ "build:icons": "node scripts/build-icons.mjs",
56
65
  "dev": "tsup --watch",
57
66
  "link:demos": "npm link && cd ../hs-uix-demos/src/app/pages && npm link hs-uix",
67
+ "pack:demos": "node scripts/pack-demos.mjs",
58
68
  "dev:demos": "npm run link:demos && npm run dev",
59
69
  "prepublishOnly": "tsup",
60
70
  "release:patch": "npm version patch && npm publish && git push origin main --tags",
@@ -62,13 +72,14 @@
62
72
  "release:major": "npm version major && npm publish && git push origin main --tags"
63
73
  },
64
74
  "peerDependencies": {
65
- "@hubspot/ui-extensions": ">=0.12.0",
75
+ "@hubspot/ui-extensions": ">=0.14.0",
66
76
  "react": ">=18.0.0"
67
77
  },
68
78
  "devDependencies": {
69
- "@hubspot/ui-extensions": "^0.12.3",
79
+ "@hubspot/ui-extensions": "^0.14.0",
70
80
  "react": "^18.0.0",
71
- "tsup": "^8.0.0"
81
+ "tsup": "^8.0.0",
82
+ "vitest": "^2.1.9"
72
83
  },
73
84
  "dependencies": {
74
85
  "fuse.js": "^7.1.0"
@@ -83,6 +94,8 @@
83
94
  "ui-extensions",
84
95
  "datatable",
85
96
  "formbuilder",
97
+ "feed",
98
+ "activity-feed",
86
99
  "crm",
87
100
  "hs-uix"
88
101
  ]