Skip to content

refactor: consume table-role and async-store from component-toolkit - #4846

Draft
gethinwebster wants to merge 1 commit into
mainfrom
dev-v3-gethinw-consume-shared-table-role-async-store
Draft

refactor: consume table-role and async-store from component-toolkit#4846
gethinwebster wants to merge 1 commit into
mainfrom
dev-v3-gethinw-consume-shared-table-role-async-store

Conversation

@gethinwebster

Copy link
Copy Markdown
Member

Description

Consumes table-role and async-store from @cloudscape-design/component-toolkit instead of local copies. Deletes the src/table/table-role and src/area-chart/async-store implementations (moved to the toolkit in cloudscape-design/component-toolkit#242) and re-exports them via thin barrels, so existing consumers are unchanged.

This is the paired consuming change for cloudscape-design/component-toolkit#242. It is created for reference and will fail dry-run until #242 merges and publishes the new ./internal/table-role and ./internal/async-store entrypoints to npm — until then those imports don't resolve.

Related links, issue #, if available: cloudscape-design/component-toolkit#242

How has this been tested?

Not yet — blocked on the toolkit publish (see above). Once #242 is published, the existing Table and sticky-columns unit/integration suites exercise the re-exported code paths unchanged (the barrels keep the same public surface), and the table-role/async-store tests now live in the toolkit.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Delete the local src/table/table-role and src/area-chart/async-store implementations
(moved to component-toolkit in cloudscape-design/component-toolkit#242) and re-export
them from @cloudscape-design/component-toolkit/internal/{table-role,async-store} via
thin barrels, so existing consumers are unchanged.

NOTE: dry-run will fail until component-toolkit#242 merges and publishes the new
entrypoints to npm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant