Commit 7dad1bb
authored
chore: 🤖 public api as exports source-of-truth (#845)
* fix: 🐛 conflict resolution
* chore: 🤖 bump rc number
* docs: 📝 build esm, how to use
* chore: 🤖 ESM vite builder (wip)
* fix: 🐛 remove .tsx extension from import statements
* fix: 🐛 remove .tsx extension from import statements
* fix: 🐛 remove .tsx extension from import statements
* fix: 🐛 remove .ts extension from import statements
* fix: 🐛 remove .ts extension from import statements
* chore: 🤖 add eslint to assess import extensions not required
* chore: 🤖 format
* chore: 🤖 temporary custom resolve tsconfig path
* refactor: 💡 export from correct theme boundary
* chore: 🤖 node externals in vite, remove alias
* chore: 🤖 use relative paths
* chore: 🤖 use externalize deps
* chore: 🤖 for ESM compatibility, tweak/handle CJS components
* chore: revert ts alias rewrite to relative
* chore: lint do not allow barrel imports
* chore: remove excludes from tsconfig
* chore: set vite settings to preserve file struct in output
* fix: solve import cycles
* fix: solve import cycles in stories
* fix: build amends
* fix: add .js extension
* chore: analyze and visualise bundle
* chore: split ESM, CJS distribution
* chore: format
* fix: 🐛 lint code block
* fix: 🐛 import Separator
* chore: format
* fix: 🐛 import Separator
* chore: 🤖 add changeset
* chore: 🤖 use 0.0.251-rc.62
* chore: 🤖 resolve conflict resolution, deleted files which were removed in main branch
* chore: 🤖 resolve conflict resolution, middle truncator
* chore: 🤖 resolve conflict resolution, missing container changes
* refactor: 💡 FileMultiUpload to follow FileUpload due to middle truncator
* fix: 🐛 prevent icon success pushed right
* fix: 🐛 remove file size from multiple file upload
* chore: 🤖 merge conflict amend for ButtonGroup
* chore: 🤖 remove comment
* refactor: 💡 reduce import path redundancy (WIP, pt1)
* refactor: 💡 accordion as index
* refactor: 💡 rename component by directory name to index
* refactor: 💡 update import statements to prefer index
* chore: 🤖 remove old indexes (this was a failed attempt, which imported the reduntant name)
* fix: 🐛 import statements
* fix: 🐛 import statements
* fix: 🐛 import statements
* fix: 🐛 icon names in types
* chore: 🤖 add note
* chore: 🤖 format
* fix: 🐛 icon names location
* fix: 🐛 icon names location
* chore: 🤖 update changeset
* refactor: 💡 use component level barrel, to allow devs see component name on editor
* fix: 🐛 import statements
* chore: 🤖 add eslint to prevent imports from index and request use of leafs when possible
* fix: 🐛 dayjs version
* fix: 🐛 merge from main,m incorrectly changed
* chore: 🤖 prepare merge main
* fix: 🐛 merge conflicts
* refactor: 💡 further paths pass
* chore: 🤖 add note
* chore: 🤖 format
* refactor: 💡 further paths pass for AutoComplete
* fix: 🐛 merge conflict
* refactor: 💡 further paths pass for Collapsible
* chore: 🤖 init changeset
* fix: 🐛 merge conflict
* fix: 🐛 file extension
* fix: 🐛 file extension
* refactor: 💡 init GenericMenu structure
* chore: 🤖 add generic menu test
* chore: 🤖 add generic menu story
* refactor: 💡 make components/Common to avoid loose files
* refactor: 💡 move types
* refactor: 💡 update path changes for common components
* refactor: 💡 add Text index/exports
* refactor: 💡 first pass, move types to *.types.ts
* refactor: 💡 second pass, move types to *.types.ts
* refactor: 💡 third pass, move types to *.types.ts
* refactor: 💡 forth pass, move types to *.types.ts
* refactor: 💡 fifth pass, move types to *.types.ts
* refactor: 💡 export size color
* refactor: 💡 move types for Avatar
* fix: 🐛 imports
* fix: 🐛 types
* fix: 🐛 linter
* fix: 🐛 test
* chore: 🤖 add hmr benchmark
* chore: 🤖 make component build name index to remove redundancy
* chore: 🤖 generate exports, e.g. expose direct component imports and its types
chore: 🤖 generate exports, e.g. expose direct component imports and its types
* perf: ⚡ benchmark hmr deep nested components
* chore: 🤖 link @clickhouse/click-ui to itself, required for benchmark
* perf: ⚡ generate component exports, e.g. speedy component and type access
* refactor: 💡 remove unused re-export files
* chore: 🤖 update changeset
* chore: 🤖 remove comments
* fix: 🐛 TIAS circular dependencies, first 60
* refactor: 💡 make commons their own components
* refactor: 💡 split common components
* refactor: 💡 common components (styled components) exports
* refactor: 💡 types in src/components/types
* refactor: 💡 reconsile types
* refactor: 💡 exports order
* chore: 🤖 update exports
* refactor: 💡 logo props
* refactor: 💡 IconSize is an Icon type
* refactor: 💡 rename icon types file
* refactor: 💡 rename icon type import
* refactor: 💡 move common icon SVG props
* refactor: 💡 move common icon SVG element to icons
* refactor: 💡 prefix types with type
* chore: 🤖 format
* fix: 🐛 redundancy in exports pathnames
* refactor: 💡 text types in typography
* refactor: 💡 cursor options type in panel
* refactor: 💡 common types
* chore: 🤖 add changeset
* refactor: 💡 shared svg props
* refactor: 💡 use shared types
* refactor: 💡 remove re-export, prefer shared
* refactor: 💡 shared types
* refactor: 💡 rename icon size as shared asset size
* chore: 🤖 merge conflict
* fix: 🐛 resole theme conflicts
* fix: 🐛 resolve theme types
* refactor: 💡 theme
* fix: 🐛 resolve merge conflicts due to circular deps
* refactor: 💡 theme
* refactor: 💡 remove hard typed theme
* refactor: 💡 make theme and click ui provider as providers
* refactor: 💡 export ClickUIProvider as named export
* refactor: 💡 src/theme
* refactor: 💡 theme files now follow the namespace pattern:
* refactor: 💡 remove theme index
* refactor: 💡 remove src/components/index.ts, prefer main src/index.ts as public api
* refactor: 💡 prefer alias for internal inter component imports
* refactor: 💡 main exports api
* refactor: 💡 storybook
* refactor: 💡 storybook
* chore: 🤖 remove comment
* refactor: 💡 use typescript api to get list of components from source of truth (main re-exports barrel)
* chore: 🤖 update exports list
* docs: 📝 public api exports management
* chore: 🤖 add generate-exports generated component exports summary
* chore: 🤖 add generate-exports script alias
* chore: 🤖 show warning if package.json has changed, reminding user to commit them
* chore: 🤖 add changeset
* chore: 🤖 deleted file
* fix: 🐛 types deps
* refactor: 💡 move THEMES data structure from types
* test: 💍 update test (due to merge issues)
* chore: 🤖 the asset system has to be updated to reflect architecture decisions, since its automated, here done manual changes
* chore: 🤖 merge from refactor/modular-file-architecture
* fix: 🐛 error TS2724: './IconButton' has no exported member named 'IconButtonSize'.
* chore: 🤖 add TODO
* fix: 🐛 circular dep
* chore: 🤖 resolve merge conflict missing type
* chore: 🤖 remove deprecated
* fix: 🐛 ContextMenu.types.ts: Added type?: 'default' | 'danger' to the exported ContextMenuItemProps interface and remove duplicate
* refactor: 💡 move local type
* refactor: 💡 move local type (missed track file)
* refactor: 💡 changeset
* refactor: 💡 move ContextMenu types
* chore: 🤖 remove FlyoutHeaderProps and FlyoutFooterProps are each declared twice in the same file
* refactor: 💡 Replaced stale types in Flyout.types.ts with the correct definitions from Flyout.tsx
* fix: 🐛 typo, should be orientation
* refactor: 💡 changeset
* chore: 🤖 update changeset, include what changed
* fix: 🐛 types
* fix: 🐛 missing exports InitCUIThemeScript and InitCUIThemeScriptProps
* fix: 🐛 merge conflicts, update changeset, remove orphans
* fix: 🐛 remove unknown casting in themes in theme.core.ts
* refactor: 💡 theme const and types
* chore: 🤖 remove unwanted file
* fix: 🐛 derived types from THEMES tricky as it can cause circular deps
* refactor: 💡 capitalize theme name
* chore: 🤖 add bug fix in changeset
* chore: 🤖 remove unrelated
* refactor: 💡 import path redundancy
* chore: 🤖 generate:exports must run build first
* docs: 📝 clarify source of truth
* chore: 🤖 update exports
* chore: 🤖 Changeset should enumerate removed paths:
* fix: 🐛 off-by-one in summary log
* docs: 📝 redundant build in docs1 parent 02a4854 commit 7dad1bb
4 files changed
Lines changed: 100 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
319 | | - | |
| 320 | + | |
320 | 321 | | |
321 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
322 | 329 | | |
323 | 330 | | |
324 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
325 | 343 | | |
326 | 344 | | |
327 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
328 | 377 | | |
329 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
330 | 382 | | |
331 | 383 | | |
332 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
0 commit comments