@copilotkit/react-textarea 0.34.0-mme-fix-esm-error.2 → 0.34.0-mme-esm-error.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @copilotkit/react-textarea@0.34.0-mme-fix-esm-error.2 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-textarea
2
+ > @copilotkit/react-textarea@0.34.0-mme-esm-error.1 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-textarea
3
3
  > tsup --clean
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/components/index.ts, src/context/index.ts, src/hooks/index.ts, src/lib/debouncer.ts, src/lib/editor-to-text.ts, src/lib/get-text-around-cursor.ts, src/lib/retry.tsx, src/lib/stream-promise-flatten.ts, src/lib/utils.test.ts, src/lib/utils.ts, src/types/html-copilot-textarea-element.ts, src/types/index.ts, src/components/base-copilot-textarea/base-copilot-textarea.tsx, src/components/base-copilot-textarea/render-element.tsx, src/components/base-copilot-textarea/render-placeholder.tsx, src/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.tsx, src/components/base-copilot-textarea/use-add-branding-css.tsx, src/components/copilot-textarea/copilot-textarea.tsx, src/components/hovering-toolbar/hovering-editor-provider.tsx, src/components/hovering-toolbar/hovering-toolbar-components.tsx, src/components/hovering-toolbar/hovering-toolbar.tsx, src/components/manual-ui/chip-with-icon.tsx, src/components/source-search-box/source-search-box.tsx, src/components/ui/button.tsx, src/components/ui/card.tsx, src/components/ui/command.tsx, src/components/ui/dialog.tsx, src/components/ui/label.tsx, src/components/ui/separator.tsx, src/components/ui/textarea.tsx, src/hooks/base-copilot-textarea-implementation/use-autosuggestions.ts, src/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.tsx, src/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.ts, src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx, src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx, src/hooks/misc/use-autosize-textarea.tsx, src/lib/slatejs-edits/add-autocompletions.ts, src/lib/slatejs-edits/clear-autocompletions.ts, src/lib/slatejs-edits/replace-text.ts, src/lib/slatejs-edits/with-partial-history.ts, src/types/autosuggestions-config/autosuggestions-config-user-specified.tsx, src/types/autosuggestions-config/autosuggestions-config.tsx, src/types/autosuggestions-config/editing-api-config.tsx, src/types/autosuggestions-config/index.ts, src/types/autosuggestions-config/insertions-api-config.tsx, src/types/autosuggestions-config/suggestions-api-config.tsx, src/types/base/autosuggestion-state.ts, src/types/base/autosuggestions-bare-function.ts, src/types/base/base-autosuggestions-config.tsx, src/types/base/base-copilot-textarea-props.tsx, src/types/base/custom-editor.tsx, src/types/base/editor-autocomplete-state.ts, src/types/base/index.ts, src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/index.ts, src/types/autosuggestions-config/subtypes/make-system-prompt.ts, src/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.tsx
@@ -136,8 +136,8 @@ Browserslist: caniuse-lite is outdated. Please run:
136
136
  ESM dist/components/copilot-textarea/copilot-textarea.css.map 432.00 B
137
137
  ESM dist/components/base-copilot-textarea/base-copilot-textarea.css.map 432.00 B
138
138
  ESM dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs 47.00 B
139
- ESM dist/chunk-DE5K76I2.mjs.map 71.00 B
140
139
  ESM dist/chunk-WADHCMPK.mjs.map 71.00 B
140
+ ESM dist/chunk-DE5K76I2.mjs.map 71.00 B
141
141
  ESM dist/chunk-MMVDU6DF.mjs.map 71.00 B
142
142
  ESM dist/chunk-SP5HFO3H.mjs.map 3.41 KB
143
143
  ESM dist/chunk-RT4UTBH3.mjs.map 4.52 KB
@@ -234,26 +234,25 @@ Browserslist: caniuse-lite is outdated. Please run:
234
234
  ESM dist/components/hovering-toolbar/hovering-toolbar.mjs.map 71.00 B
235
235
  ESM dist/lib/stream-promise-flatten.mjs.map 71.00 B
236
236
  ESM dist/lib/utils.test.mjs.map 350.00 B
237
- ESM dist/lib/utils.mjs.map 71.00 B
238
237
  ESM dist/types/html-copilot-textarea-element.mjs.map 71.00 B
238
+ ESM dist/lib/utils.mjs.map 71.00 B
239
239
  ESM dist/types/index.mjs.map 71.00 B
240
240
  ESM dist/components/base-copilot-textarea/base-copilot-textarea.mjs.map 71.00 B
241
241
  ESM dist/components/base-copilot-textarea/render-element.mjs.map 71.00 B
242
242
  ESM dist/components/base-copilot-textarea/render-placeholder.mjs.map 71.00 B
243
243
  ESM dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs.map 71.00 B
244
244
  ESM dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.mjs.map 71.00 B
245
- ESM ⚡️ Build success in 1905ms
245
+ ESM ⚡️ Build success in 1906ms
246
246
  CJS dist/index.js 79.68 KB
247
247
  CJS dist/index.css 18.82 KB
248
248
  CJS dist/components/index.js 79.49 KB
249
- CJS dist/components/index.css 242.00 B
250
249
  CJS dist/context/index.js 803.00 B
251
250
  CJS dist/hooks/index.js 797.00 B
251
+ CJS dist/components/index.css 242.00 B
252
252
  CJS dist/lib/debouncer.js 2.38 KB
253
- CJS dist/lib/editor-to-text.js 2.35 KB
254
253
  CJS dist/lib/get-text-around-cursor.js 4.09 KB
254
+ CJS dist/lib/editor-to-text.js 2.35 KB
255
255
  CJS dist/lib/retry.js 1.43 KB
256
- CJS dist/lib/stream-promise-flatten.js 2.26 KB
257
256
  CJS dist/lib/utils.test.js 182.00 B
258
257
  CJS dist/lib/utils.js 3.08 KB
259
258
  CJS dist/types/html-copilot-textarea-element.js 893.00 B
@@ -307,72 +306,73 @@ Browserslist: caniuse-lite is outdated. Please run:
307
306
  CJS dist/components/hovering-toolbar/text-insertion-prompt-box/index.js 25.19 KB
308
307
  CJS dist/types/autosuggestions-config/subtypes/make-system-prompt.js 881.00 B
309
308
  CJS dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js 906.00 B
309
+ CJS dist/lib/stream-promise-flatten.js 2.26 KB
310
310
  CJS dist/index.js.map 142.79 KB
311
- CJS dist/components/index.js.map 142.99 KB
312
311
  CJS dist/index.css.map 29.12 KB
312
+ CJS dist/components/index.js.map 142.99 KB
313
313
  CJS dist/context/index.js.map 139.00 B
314
314
  CJS dist/hooks/index.js.map 137.00 B
315
+ CJS dist/components/index.css.map 429.00 B
315
316
  CJS dist/lib/debouncer.js.map 1.68 KB
316
- CJS dist/lib/editor-to-text.js.map 2.86 KB
317
317
  CJS dist/lib/get-text-around-cursor.js.map 5.75 KB
318
+ CJS dist/lib/editor-to-text.js.map 2.86 KB
318
319
  CJS dist/lib/retry.js.map 1018.00 B
319
- CJS dist/components/index.css.map 429.00 B
320
- CJS dist/lib/stream-promise-flatten.js.map 1.45 KB
321
320
  CJS dist/lib/utils.test.js.map 352.00 B
322
321
  CJS dist/lib/utils.js.map 2.53 KB
323
322
  CJS dist/types/html-copilot-textarea-element.js.map 280.00 B
324
323
  CJS dist/types/index.js.map 18.56 KB
325
324
  CJS dist/components/base-copilot-textarea/base-copilot-textarea.js.map 113.30 KB
325
+ CJS dist/components/base-copilot-textarea/base-copilot-textarea.css.map 432.00 B
326
326
  CJS dist/components/base-copilot-textarea/render-element.js.map 1.75 KB
327
327
  CJS dist/components/base-copilot-textarea/render-placeholder.js.map 1020.00 B
328
328
  CJS dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.js.map 5.80 KB
329
329
  CJS dist/components/base-copilot-textarea/use-add-branding-css.js.map 3.50 KB
330
- CJS dist/components/base-copilot-textarea/base-copilot-textarea.css.map 432.00 B
330
+ CJS dist/components/copilot-textarea/copilot-textarea.js.map 142.82 KB
331
331
  CJS dist/components/copilot-textarea/copilot-textarea.css.map 432.00 B
332
332
  CJS dist/components/hovering-toolbar/hovering-editor-provider.js.map 1.40 KB
333
333
  CJS dist/components/hovering-toolbar/hovering-toolbar-components.js.map 3.75 KB
334
334
  CJS dist/components/hovering-toolbar/hovering-toolbar.js.map 53.52 KB
335
335
  CJS dist/components/manual-ui/chip-with-icon.js.map 969.00 B
336
336
  CJS dist/components/source-search-box/source-search-box.js.map 13.01 KB
337
- CJS dist/components/copilot-textarea/copilot-textarea.js.map 142.82 KB
338
337
  CJS dist/components/ui/button.js.map 4.34 KB
339
338
  CJS dist/components/ui/card.js.map 4.86 KB
340
- CJS dist/components/ui/dialog.js.map 7.44 KB
341
339
  CJS dist/components/ui/command.js.map 14.31 KB
340
+ CJS dist/components/ui/dialog.js.map 7.44 KB
342
341
  CJS dist/components/ui/label.js.map 2.85 KB
343
342
  CJS dist/components/ui/separator.js.map 2.96 KB
344
343
  CJS dist/components/ui/textarea.js.map 2.87 KB
345
- CJS dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.js.map 9.92 KB
346
344
  CJS dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.js.map 10.30 KB
347
- CJS dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map 5.49 KB
345
+ CJS dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.js.map 9.92 KB
348
346
  CJS dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.js.map 10.46 KB
349
- CJS dist/hooks/misc/use-autosize-textarea.js.map 1.17 KB
347
+ CJS dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map 5.49 KB
350
348
  CJS dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js.map 8.60 KB
349
+ CJS dist/hooks/misc/use-autosize-textarea.js.map 1.17 KB
351
350
  CJS dist/lib/slatejs-edits/add-autocompletions.js.map 1.08 KB
352
351
  CJS dist/lib/slatejs-edits/clear-autocompletions.js.map 1.14 KB
353
352
  CJS dist/lib/slatejs-edits/replace-text.js.map 1.17 KB
354
353
  CJS dist/lib/slatejs-edits/with-partial-history.js.map 6.16 KB
355
354
  CJS dist/types/autosuggestions-config/autosuggestions-config-user-specified.js.map 1.16 KB
356
- CJS dist/types/autosuggestions-config/editing-api-config.js.map 3.96 KB
357
355
  CJS dist/types/autosuggestions-config/autosuggestions-config.js.map 18.42 KB
356
+ CJS dist/types/autosuggestions-config/editing-api-config.js.map 3.96 KB
358
357
  CJS dist/types/autosuggestions-config/index.js.map 19.08 KB
359
358
  CJS dist/types/autosuggestions-config/insertions-api-config.js.map 4.22 KB
360
359
  CJS dist/types/autosuggestions-config/suggestions-api-config.js.map 3.63 KB
361
360
  CJS dist/types/base/autosuggestion-state.js.map 269.00 B
362
361
  CJS dist/types/base/autosuggestions-bare-function.js.map 1.01 KB
363
- CJS dist/types/base/base-copilot-textarea-props.js.map 2.29 KB
364
362
  CJS dist/types/base/base-autosuggestions-config.js.map 5.34 KB
363
+ CJS dist/types/base/base-copilot-textarea-props.js.map 2.29 KB
365
364
  CJS dist/types/base/custom-editor.js.map 886.00 B
366
365
  CJS dist/types/base/editor-autocomplete-state.js.map 2.64 KB
367
366
  CJS dist/types/base/index.js.map 5.72 KB
368
367
  CJS dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.js.map 36.34 KB
369
368
  CJS dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.js.map 37.75 KB
370
369
  CJS dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.js.map 5.26 KB
370
+ CJS dist/components/hovering-toolbar/text-insertion-prompt-box/index.js.map 37.98 KB
371
371
  CJS dist/types/autosuggestions-config/subtypes/make-system-prompt.js.map 268.00 B
372
372
  CJS dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js.map 283.00 B
373
- CJS dist/components/hovering-toolbar/text-insertion-prompt-box/index.js.map 37.98 KB
374
- CJS ⚡️ Build success in 1984ms
375
- DTS ⚡️ Build success in 15766ms
373
+ CJS dist/lib/stream-promise-flatten.js.map 1.45 KB
374
+ CJS ⚡️ Build success in 1954ms
375
+ DTS ⚡️ Build success in 15579ms
376
376
  DTS dist/index.d.ts 1.34 KB
377
377
  DTS dist/components/base-copilot-textarea/base-copilot-textarea.d.ts 1.62 KB
378
378
  DTS dist/components/copilot-textarea/copilot-textarea.d.ts 1.36 KB
package/CHANGELOG.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # ui
2
2
 
3
- ## 0.34.0-mme-fix-esm-error.2
3
+ ## 0.34.0-mme-esm-error.1
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - ESM by default
7
+ - declare esm/cjs/types in export
8
8
 
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies
12
- - @copilotkit/react-core@0.24.0-mme-fix-esm-error.2
13
- - @copilotkit/shared@0.8.0-mme-fix-esm-error.2
12
+ - @copilotkit/react-core@0.24.0-mme-esm-error.1
13
+ - @copilotkit/shared@0.8.0-mme-esm-error.1
14
14
 
15
- ## 0.34.0-mme-fix-esm-error.1
15
+ ## 0.34.0-mme-esm-error.0
16
16
 
17
17
  ### Minor Changes
18
18
 
@@ -21,32 +21,8 @@
21
21
  ### Patch Changes
22
22
 
23
23
  - Updated dependencies
24
- - @copilotkit/react-core@0.24.0-mme-fix-esm-error.1
25
- - @copilotkit/shared@0.8.0-mme-fix-esm-error.1
26
-
27
- ## 0.34.0-mme-fix-esm-error.0
28
-
29
- ### Minor Changes
30
-
31
- - Use esm by default
32
-
33
- ### Patch Changes
34
-
35
- - Updated dependencies
36
- - @copilotkit/react-core@0.24.0-mme-fix-esm-error.0
37
- - @copilotkit/shared@0.8.0-mme-fix-esm-error.0
38
-
39
- ## 0.34.0-mme-fix-esm-error.0
40
-
41
- ### Minor Changes
42
-
43
- - Add distinct exports for cjs and esm
44
-
45
- ### Patch Changes
46
-
47
- - Updated dependencies
48
- - @copilotkit/react-core@0.24.0-mme-fix-esm-error.0
49
- - @copilotkit/shared@0.8.0-mme-fix-esm-error.0
24
+ - @copilotkit/react-core@0.24.0-mme-esm-error.0
25
+ - @copilotkit/shared@0.8.0-mme-esm-error.0
50
26
 
51
27
  ## 0.33.0
52
28
 
package/package.json CHANGED
@@ -4,14 +4,18 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.34.0-mme-fix-esm-error.2",
7
+ "version": "0.34.0-mme-esm-error.1",
8
8
  "sideEffects": [
9
9
  "**/*.css"
10
10
  ],
11
11
  "main": "./dist/index.js",
12
12
  "module": "./dist/index.mjs",
13
13
  "exports": {
14
- ".": "./dist/index.mjs",
14
+ ".": {
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js",
17
+ "types": "./dist/index.d.ts"
18
+ },
15
19
  "./styles.css": "./dist/index.css"
16
20
  },
17
21
  "types": "./dist/index.d.ts",
@@ -33,9 +37,9 @@
33
37
  "ts-jest": "^29.1.1",
34
38
  "tsup": "^6.7.0",
35
39
  "typescript": "^5.2.3",
36
- "eslint-config-custom": "0.9.0-mme-fix-esm-error.3",
37
- "tailwind-config": "0.8.0-mme-fix-esm-error.3",
38
- "tsconfig": "0.13.0-mme-fix-esm-error.3"
40
+ "eslint-config-custom": "0.9.0-mme-esm-error.1",
41
+ "tailwind-config": "0.8.0-mme-esm-error.1",
42
+ "tsconfig": "0.13.0-mme-esm-error.1"
39
43
  },
40
44
  "dependencies": {
41
45
  "@emotion/css": "^11.11.2",
@@ -58,8 +62,8 @@
58
62
  "slate-history": "^0.93.0",
59
63
  "slate-react": "^0.98.1",
60
64
  "tailwind-merge": "^1.13.2",
61
- "@copilotkit/react-core": "0.24.0-mme-fix-esm-error.2",
62
- "@copilotkit/shared": "0.8.0-mme-fix-esm-error.2"
65
+ "@copilotkit/react-core": "0.24.0-mme-esm-error.1",
66
+ "@copilotkit/shared": "0.8.0-mme-esm-error.1"
63
67
  },
64
68
  "scripts": {
65
69
  "build": "tsup --clean",