@botonic/webviews 2.23.1
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/CHANGELOG.md +213 -0
- package/README.md +20 -0
- package/index.css +1 -0
- package/index.d.ts +1 -0
- package/index.js +10129 -0
- package/lib/components/content/index.d.ts +3 -0
- package/lib/components/content/webview-body/index.d.ts +2 -0
- package/lib/components/content/webview-body/webview-body.d.ts +7 -0
- package/lib/components/content/webview-frame/index.d.ts +2 -0
- package/lib/components/content/webview-frame/webview-frame.d.ts +6 -0
- package/lib/components/content/webview-header/index.d.ts +2 -0
- package/lib/components/content/webview-header/webview-header.d.ts +8 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/hooks/use-bot-session.d.ts +3 -0
- package/lib/hooks/use-webview-close.d.ts +6 -0
- package/lib/hooks/use-webview-contents/hook.d.ts +8 -0
- package/lib/hooks/use-webview-contents/index.d.ts +2 -0
- package/lib/hooks/use-webview-contents/types.d.ts +37 -0
- package/lib/index.d.ts +7 -0
- package/lib/webview-context.d.ts +18 -0
- package/lib/webview-provider.d.ts +8 -0
- package/lib/webviews.d.ts +27 -0
- package/package.json +28 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
## 2.23.1 (2026-03-23)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 2.22.1 (2026-03-19)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
9
|
+
## 2.22.0 (2026-03-16)
|
|
10
|
+
|
|
11
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
12
|
+
|
|
13
|
+
## 2.21.0 (2026-03-16)
|
|
14
|
+
|
|
15
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
16
|
+
|
|
17
|
+
## 2.20.0 (2026-03-13)
|
|
18
|
+
|
|
19
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
20
|
+
|
|
21
|
+
## 2.19.0 (2026-03-12)
|
|
22
|
+
|
|
23
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
24
|
+
|
|
25
|
+
## 2.18.0 (2026-03-04)
|
|
26
|
+
|
|
27
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
28
|
+
|
|
29
|
+
## 2.17.0 (2026-03-02)
|
|
30
|
+
|
|
31
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
32
|
+
|
|
33
|
+
## 2.16.0 (2026-02-23)
|
|
34
|
+
|
|
35
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
36
|
+
|
|
37
|
+
## 2.15.0 (2026-02-13)
|
|
38
|
+
|
|
39
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
40
|
+
|
|
41
|
+
## 2.14.0 (2026-02-05)
|
|
42
|
+
|
|
43
|
+
### 🩹 Fixes
|
|
44
|
+
|
|
45
|
+
- **botonic:** align tsconfig outDir with Nx outputPath to fix TS6305 errors ([#594](https://github.com/metis-ai/hubtype-product/pull/594))
|
|
46
|
+
|
|
47
|
+
### ❤️ Thank You
|
|
48
|
+
|
|
49
|
+
- Marc Rabat @vanbasten17
|
|
50
|
+
|
|
51
|
+
## 2.13.4 (2026-02-02)
|
|
52
|
+
|
|
53
|
+
### 🩹 Fixes
|
|
54
|
+
|
|
55
|
+
- sync nx typescript project references ([#580](https://github.com/metis-ai/hubtype-product/pull/580))
|
|
56
|
+
|
|
57
|
+
### ❤️ Thank You
|
|
58
|
+
|
|
59
|
+
- Marc Rabat @vanbasten17
|
|
60
|
+
|
|
61
|
+
## 2.13.3 (2026-01-30)
|
|
62
|
+
|
|
63
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
64
|
+
|
|
65
|
+
## 2.13.2 (2026-01-30)
|
|
66
|
+
|
|
67
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
68
|
+
|
|
69
|
+
## 2.13.1 (2026-01-30)
|
|
70
|
+
|
|
71
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
72
|
+
|
|
73
|
+
## 2.13.0 (2026-01-29)
|
|
74
|
+
|
|
75
|
+
### 🚀 Features
|
|
76
|
+
|
|
77
|
+
- add generic overlay system for webviews and cover components ([#547](https://github.com/metis-ai/hubtype-product/pull/547))
|
|
78
|
+
|
|
79
|
+
### ❤️ Thank You
|
|
80
|
+
|
|
81
|
+
- Marc Rabat @vanbasten17
|
|
82
|
+
|
|
83
|
+
## 2.12.0 (2026-01-28)
|
|
84
|
+
|
|
85
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
86
|
+
|
|
87
|
+
## 2.11.5 (2026-01-28)
|
|
88
|
+
|
|
89
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
90
|
+
|
|
91
|
+
## 2.11.4 (2026-01-28)
|
|
92
|
+
|
|
93
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
94
|
+
|
|
95
|
+
## 2.11.3 (2026-01-28)
|
|
96
|
+
|
|
97
|
+
### 🩹 Fixes
|
|
98
|
+
|
|
99
|
+
- update entrypoints to use .js and .d.ts extensions for module and types ([#552](https://github.com/metis-ai/hubtype-product/pull/552))
|
|
100
|
+
|
|
101
|
+
### ❤️ Thank You
|
|
102
|
+
|
|
103
|
+
- David Hidalgo @Davidhidalgo
|
|
104
|
+
|
|
105
|
+
## 2.11.2 (2026-01-21)
|
|
106
|
+
|
|
107
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
108
|
+
|
|
109
|
+
## 2.11.1 (2026-01-21)
|
|
110
|
+
|
|
111
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
112
|
+
|
|
113
|
+
## 2.11.0 (2026-01-21)
|
|
114
|
+
|
|
115
|
+
### 🚀 Features
|
|
116
|
+
|
|
117
|
+
- use webview contents hook in botonic webviews package #BLT-2039 ([#510](https://github.com/metis-ai/hubtype-product/pull/510))
|
|
118
|
+
|
|
119
|
+
### ❤️ Thank You
|
|
120
|
+
|
|
121
|
+
- Marc Rabat @vanbasten17
|
|
122
|
+
|
|
123
|
+
## 2.10.1 (2026-01-19)
|
|
124
|
+
|
|
125
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
126
|
+
|
|
127
|
+
## 2.10.0 (2026-01-18)
|
|
128
|
+
|
|
129
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
130
|
+
|
|
131
|
+
## 2.9.1 (2026-01-17)
|
|
132
|
+
|
|
133
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
134
|
+
|
|
135
|
+
## 2.9.0 (2026-01-17)
|
|
136
|
+
|
|
137
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
138
|
+
|
|
139
|
+
## 2.8.1 (2026-01-16)
|
|
140
|
+
|
|
141
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
142
|
+
|
|
143
|
+
## 2.8.0 (2026-01-16)
|
|
144
|
+
|
|
145
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
146
|
+
|
|
147
|
+
## 2.7.1 (2026-01-16)
|
|
148
|
+
|
|
149
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
150
|
+
|
|
151
|
+
## 2.7.0 (2026-01-15)
|
|
152
|
+
|
|
153
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
154
|
+
|
|
155
|
+
## 2.6.0 (2025-12-09)
|
|
156
|
+
|
|
157
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
158
|
+
|
|
159
|
+
## 2.5.0 (2025-12-09)
|
|
160
|
+
|
|
161
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
162
|
+
|
|
163
|
+
## 2.4.1 (2025-12-08)
|
|
164
|
+
|
|
165
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
166
|
+
|
|
167
|
+
## 2.4.0 (2025-12-05)
|
|
168
|
+
|
|
169
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
170
|
+
|
|
171
|
+
## 2.3.3 (2025-12-04)
|
|
172
|
+
|
|
173
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
174
|
+
|
|
175
|
+
## 2.3.2 (2025-12-04)
|
|
176
|
+
|
|
177
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
178
|
+
|
|
179
|
+
## 2.3.1 (2025-12-04)
|
|
180
|
+
|
|
181
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
182
|
+
|
|
183
|
+
## 2.3.0 (2025-12-04)
|
|
184
|
+
|
|
185
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
186
|
+
|
|
187
|
+
## 2.2.1 (2025-12-04)
|
|
188
|
+
|
|
189
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
190
|
+
|
|
191
|
+
## 2.2.0 (2025-12-04)
|
|
192
|
+
|
|
193
|
+
### 🚀 Features
|
|
194
|
+
|
|
195
|
+
- fine tuning botonic release #BLT-2010 ([#428](https://github.com/metis-ai/hubtype-product/pull/428))
|
|
196
|
+
|
|
197
|
+
### ❤️ Thank You
|
|
198
|
+
|
|
199
|
+
- David Hidalgo @Davidhidalgo
|
|
200
|
+
|
|
201
|
+
## 2.1.0 (2025-12-02)
|
|
202
|
+
|
|
203
|
+
### 🚀 Features
|
|
204
|
+
|
|
205
|
+
- fine tuning botonic release #BLT-2010 ([#428](https://github.com/metis-ai/hubtype-product/pull/428))
|
|
206
|
+
|
|
207
|
+
### ❤️ Thank You
|
|
208
|
+
|
|
209
|
+
- David Hidalgo @Davidhidalgo
|
|
210
|
+
|
|
211
|
+
## 2.0.1-alpha.0 (2025-11-27)
|
|
212
|
+
|
|
213
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @botonic/webviews
|
|
2
|
+
|
|
3
|
+
Utilities and building blocks for Botonic **webview** experiences in the **current** `@botonic/*` line.
|
|
4
|
+
|
|
5
|
+
## Source and versions
|
|
6
|
+
|
|
7
|
+
| Line | npm | Source |
|
|
8
|
+
| ----------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| **Legacy** | `0.x` | [github.com/hubtype/botonic](https://github.com/hubtype/botonic) |
|
|
10
|
+
| **Current** | `2.x` | [github.com/hubtype/hubtype-product](https://github.com/hubtype/hubtype-product) · [`libs/botonic/webviews`](https://github.com/hubtype/hubtype-product/tree/main/libs/botonic/webviews) |
|
|
11
|
+
|
|
12
|
+
Align versions with `@botonic/core` and other `@botonic/*` packages.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pnpm add @botonic/webviews
|
|
18
|
+
# or
|
|
19
|
+
npm install @botonic/webviews
|
|
20
|
+
```
|
package/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";@layer components{._base_1e8g3_2{flex:1;display:flex;flex-direction:column}._padded_1e8g3_12{padding:var(--spacing-m, 16px)}._scrollable_1e8g3_16{overflow-y:auto;overflow-x:hidden}}@layer components{._base_30fv3_2{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;background-color:var(--color-white, #ffffff)}}@layer reset,defaults,theme,components,component-variants,utilities,overrides;@layer reset{*,*:before,*:after{box-sizing:border-box}*{margin:0}body{font-style:normal;font-size:var(--font-size-s);font-family:var(--font-family);font-weight:var(--font-weight-regular);word-break:normal;line-height:150%;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}#root,#__next{isolation:isolate}ul,ol{list-style:none;padding:0}}@layer defaults{:root{--color-lilara-50: #f4f1ff;--color-lilara-100: #e8e2ff;--color-lilara-200: #cbbdff;--color-lilara-300: #a791ff;--color-lilara-400: #8b6dff;--color-lilara-500: #6e49ff;--color-lilara-600: #522ec6;--color-lilara-700: #321189;--color-lilara-800: #200066;--color-lilara-900: #10003d;--color-red-50: #ffefef;--color-red-100: #ffdfdf;--color-red-200: #ffb6b6;--color-red-300: #ff8686;--color-red-400: #ff5e5e;--color-red-500: #ff3636;--color-red-600: #cc2b2b;--color-red-700: #982020;--color-red-800: #7a1a1a;--color-red-900: #5c1313;--color-aqua-50: #f2fbfb;--color-aqua-100: #e4f8f8;--color-aqua-200: #c1efef;--color-aqua-300: #98e4e4;--color-aqua-400: #76dbdb;--color-aqua-500: #54d2d2;--color-aqua-600: #43a8a8;--color-aqua-700: #327d7d;--color-aqua-800: #286464;--color-aqua-900: #1e4c4c;--color-green-50: #effaf3;--color-green-100: #e0f6e7;--color-green-200: #b7eac8;--color-green-300: #87dca3;--color-green-400: #60d185;--color-green-500: #38c566;--color-green-600: #2d9e52;--color-green-700: #21753d;--color-green-800: #1b5e31;--color-green-900: #144725;--color-yellow-50: #fffbeb;--color-yellow-100: #fff7d7;--color-yellow-200: #ffeca3;--color-yellow-300: #ffe065;--color-yellow-400: #ffd533;--color-yellow-500: #ffcb00;--color-yellow-600: #cca200;--color-yellow-700: #987900;--color-yellow-800: #7a6100;--color-yellow-900: #5c4900;--color-pink-50: #fff0f4;--color-pink-100: #ffe1e8;--color-pink-200: #ffbbcb;--color-pink-300: #ff8da8;--color-pink-400: #ff688c;--color-pink-500: #ff426f;--color-pink-600: #cc3559;--color-pink-700: #982742;--color-pink-800: #7a2035;--color-pink-900: #5c1828;--color-orange-50: #fff7f0;--color-orange-100: #ffefe0;--color-orange-200: #ffdab8;--color-orange-300: #ffc189;--color-orange-400: #ffad62;--color-orange-500: #ff983b;--color-orange-600: #cc7a2f;--color-orange-700: #985b23;--color-orange-800: #7a491c;--color-orange-900: #5c3715;--color-neutral-25: #f8f7f8;--color-neutral-50: #f0f0f3;--color-neutral-100: #e8e8ea;--color-neutral-200: #c4c6d0;--color-neutral-300: #9b9daf;--color-neutral-400: #84889d;--color-neutral-500: #666a7a;--color-neutral-600: #50525f;--color-neutral-700: #393b45;--color-neutral-800: #2e3038;--color-neutral-900: #24252c;--color-white: #ffffff;--color-black: #000000;--surface-primary: var(--color-aqua-500);--surface-secondary: var(--color-white);--surface-tertiary: var(--color-white);--text-primary: var(--color-lilara-500);--text-secondary: var(--color-aqua-500);--text-tertiary: var(--color-black-900);--font-size-xxs: .625rem;--font-size-xs: .75rem;--font-size-s: .875rem;--font-size-sm: 1rem;--font-size-m: 1.125rem;--font-size-ml: 1.25rem;--font-size-l: 1.5rem;--font-size-xl: 2.5rem;--font-size-xxl: 3.5rem;--font-size-xxxl: 4.5rem;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-bold: 600;--font-family: "Inter", sans-serif;--letter-spacing-s: -.0625rem;--letter-spacing-m: 0rem;--line-height-xxs: 1rem;--line-height-xs: 1.25rem;--line-height-s: 1.375rem;--line-height-m: 1.5rem;--line-height-ml: 2rem;--line-height-l: 2.125rem;--line-height-xl: 3.5rem;--line-height-2xl: 4.375rem;--line-height-3xl: 5.625rem;--spacing-xxs: 4px;--spacing-xs: 8px;--spacing-s: 12px;--spacing-sm: 16px;--spacing-m: 20px;--spacing-ml: 24px;--spacing-l: 32px;--spacing-xl: 40px;--spacing-xxl: 48px;--spacing-xxxl: 56px;--radius-xxs: 2px;--radius-xs: 4px;--radius-s: 6px;--radius-sm: 8px;--radius-m: 10px;--radius-ml: 12px;--radius-l: 16px;--radius-xl: 32px;--shadow-level-1: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);--shadow-level-2: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);--shadow-level-3: 0 4px 16px 0 rgba(0, 0, 0, .12), 0 2px 6px 0 rgba(0, 0, 0, .09), 0 2px 4px 0 rgba(0, 0, 0, .08);--gradient-ai-dark: linear-gradient( 90deg, var(--color-lilara-300) 0%, var(--color-red-300) 100% );--gradient-ai-light: linear-gradient( 90deg, var(--color-lilara-500) 0%, var(--color-pink-600) 100% );--gradient-ai-disabled: linear-gradient( 90deg, var(--color-lilara-100) 0%, var(--color-red-100) 100% );--gradient-ai-hover: linear-gradient( 90deg, var(--color-lilara-50) 0%, var(--color-red-50) 100% );--gradient-lilara-500: linear-gradient( var(--color-lilara-500), var(--color-lilara-500) );--gradient-neutral-900: linear-gradient( var(--color-neutral-900), var(--color-neutral-900) );--gradient-white: linear-gradient(var(--color-white), var(--color-white));--gradient-n50: linear-gradient( var(--color-neutral-50), var(--color-neutral-50) );--shadow-lvl3: 0 4px 16px 0 rgba(0, 0, 0, .12), 0 2px 6px 0 rgba(0, 0, 0, .09), 0 2px 4px 0 rgba(0, 0, 0, .08)}}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/';
|