Skip to content

Commit c8a11d6

Browse files
authored
Merge pull request #290 from smartprocure/changeset-release/main
Version Packages
2 parents 0bb11bf + b4737b6 commit c8a11d6

File tree

3 files changed

+30
-29
lines changed

3 files changed

+30
-29
lines changed

.changeset/support_clickable_link_in_export.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/export/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog
22

3+
## 1.3.4
4+
5+
### Patch Changes
6+
7+
- 121811bcd: ### Overview
8+
9+
This patch introduces a new feature for Excel-type exports where cells can now be rendered as clickable hyperlinks. This is achieved by providing a specific metadata structure that the exporter converts into native Excel formulas.
10+
11+
### New Features
12+
13+
- **Dynamic Excel Hyperlinks**: Cells can now display a custom text label while linking to a specific URL.
14+
- **Metadata-Driven Rendering**: The system identifies links via the `__isHyperlink` flag within the `meta` object.
15+
- **Display Label Mapping**: The `__alias` property is used as the visible display label for the provided URL.
16+
- **Formula Safety**: The exporter automatically handles double-quote escaping to ensure the Excel `HYPERLINK` formula remains valid.
17+
18+
### Data Structure Requirements
19+
20+
To render a cell as a link, the record data for that cell must follow this structure:
21+
22+
```json
23+
{
24+
"url": "https://example.com/detail/123",
25+
"meta": {
26+
"__isHyperlink": true,
27+
"__alias": "Click to Open Link"
28+
}
29+
}
30+
```
31+
332
## 1.3.2
433

534
### Patch Changes

packages/export/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contexture-export",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"description": "Contexture Exports",
55
"type": "module",
66
"exports": {

0 commit comments

Comments
 (0)