-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(table-plugin): automatically handle relative URLs
This commit adds `baseUrl` from document metadata to `sourceBaseUrl` as a HTMLTable prop. BREAKING CHANGE: `sourceBaseUrl` has been moved from `TableConfig` to `HTMLTableBaseProps`. It means you cannot override this value with `renderersProps.table.sourceBaseUrl` anymore. Use a custom renderer with `useHtmlTableProps` hook and HTMLTable component to override this value manually, but you probably shouldn't since the new foundry engines allows it automatically. If your html source is inline, use `source.baseUrl` instead, so that every relative URL will be normalized against this base. Read https://git.io/JtwG0 for a detailed description.
- Loading branch information
Showing
8 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/table-plugin/docs/table-plugin.htmltablebaseprops.sourcebaseurl.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@native-html/table-plugin](./table-plugin.md) > [HTMLTableBaseProps](./table-plugin.htmltablebaseprops.md) > [sourceBaseUrl](./table-plugin.htmltablebaseprops.sourcebaseurl.md) | ||
|
||
## HTMLTableBaseProps.sourceBaseUrl property | ||
|
||
The base to resolve relative URLs. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
sourceBaseUrl?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
packages/table-plugin/docs/table-plugin.tableconfig.sourcebaseurl.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters