uams-web / aether-tables
Table sanitizing and pasted-table handling for Statamic editors.
Package info
github.com/UAMS-Web/aether-tables
Language:JavaScript
Type:statamic-addon
pkg:composer/uams-web/aether-tables
Requires
- php: ^8.4
- ezyang/htmlpurifier: ^4.19
- maatwebsite/excel: ^4.0
- statamic/cms: ^6.35
Requires (Dev)
- cweagans/composer-patches: ^2.0
- driftingly/rector-laravel: ^2.6
- larastan/larastan: ^3.13
- laravel/pint: ^1.32
- orchestra/testbench: ^11.3
- pestphp/pest: ^5.3
- pestphp/pest-plugin-phpstan: ^5.2
- phpstan/phpstan-mockery: ^2.0
- rector/rector: ^2.7
- uams-web/patches-orchestra-testbench-core: ^1.0
- uams-web/patches-pest-plugin-mutate: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v0.2.0
- v0.1.2
- v0.1.1
- v0.1.0
- dev-sync/uams-claude-skills
- dev-19-vite-8
- dev-remove-required-checks-guard
- dev-17-ci-aggregate-job
- dev-15-adopt-excel-4
- dev-463-carry-sync-drop-jobs
- dev-463-drop-duplicated-synced-jobs
- dev-update-vite-6-4-5
- dev-restore-synced-files-and-mutation-instrument-jobs
- dev-move-table-sanitizer-and-paste-handling
- dev-rename-template-placeholders
This package is auto-updated.
Last update: 2026-11-14 04:39:25 UTC
README
Table sanitizing and pasted-table handling for Statamic's editors, by UAMS Web Services. The package is uams-web/aether-tables, in the UAMSWeb\Aether\Tables\ namespace.
What it does
- The
sanitize_table_cellAntlers modifier, which renders a table cell through HTMLPurifier against a small inline allowlist (links and basic emphasis; everything else is stripped). - Pasted-table parsing: the
table_data_paste_triggertrigger turns pasted HTML, TSV or CSV into thetable_datavalue. - Spreadsheet import: the
table_data_importer_triggertrigger reads an uploaded spreadsheet asset intotable_data.
The Table set's template, script and styles belong to the site's theme and stay in the site.
Requirements
- PHP 8.4 or later
- Statamic 6.35 or later
Installation
composer require uams-web/aether-tables
Publish the configuration file to the host application's config/ directory with:
php artisan vendor:publish --tag=aether-tables-config
It merges into the tables config key. The settings are:
tables.cell_sanitizer.cache_path: where HTMLPurifier stores its compiled definitions (defaultstorage/app/htmlpurifier).tables.trigger_event: the class name of the event the host dispatches when a trigger field is activated in the Control Panel. The paste and import listeners listen for it. The event carriesentry,triggerHandleandformValuesproperties. The default isApp\Events\TriggerActivated.
Statamic runs only allowlisted modifiers on content data. The add-on adds sanitize_table_cell to statamic.antlers.allowedContentModifiers itself, so the host does not have to.
Development and release
docs/DEVELOPMENT.md: developing against a host application, and the commands.docs/SUBMISSION.md: the Packagist and Marketplace checklist.docs/DECISIONS.md: the decision log.
License
MIT. See LICENSE.