@nyaruka/temba-components 0.134.6 → 0.135.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +16 -8
- package/CHANGELOG.md +68 -0
- package/dist/temba-components.js +66 -60
- package/dist/temba-components.js.map +1 -1
- package/out-tsc/src/display/Chat.js +7 -2
- package/out-tsc/src/display/Chat.js.map +1 -1
- package/out-tsc/src/display/Thumbnail.js +65 -8
- package/out-tsc/src/display/Thumbnail.js.map +1 -1
- package/out-tsc/src/utils.js +7 -6
- package/out-tsc/src/utils.js.map +1 -1
- package/out-tsc/test/temba-thumbnail.test.js +120 -0
- package/out-tsc/test/temba-thumbnail.test.js.map +1 -0
- package/out-tsc/test/temba-utils-index.test.js +12 -6
- package/out-tsc/test/temba-utils-index.test.js.map +1 -1
- package/package.json +1 -1
- package/src/display/Chat.ts +10 -1
- package/src/display/Thumbnail.ts +67 -8
- package/src/utils.ts +6 -6
- package/test/temba-thumbnail.test.ts +150 -0
- package/test/temba-utils-index.test.ts +14 -6
|
@@ -7,7 +7,7 @@ on:
|
|
|
7
7
|
permissions:
|
|
8
8
|
id-token: write
|
|
9
9
|
contents: read
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
jobs:
|
|
12
12
|
build:
|
|
13
13
|
runs-on: ubuntu-latest
|
|
@@ -16,17 +16,25 @@ jobs:
|
|
|
16
16
|
- name: Checkout (GitHub)
|
|
17
17
|
uses: actions/checkout@v4
|
|
18
18
|
- run: docker network create --driver bridge textit_default
|
|
19
|
-
- name: Build
|
|
19
|
+
- name: Build in dev container
|
|
20
20
|
uses: devcontainers/ci@v0.3
|
|
21
21
|
with:
|
|
22
22
|
runCmd: yarn run build
|
|
23
23
|
push: never
|
|
24
24
|
env: |
|
|
25
25
|
CI=true
|
|
26
|
-
- name:
|
|
26
|
+
- name: Check build output
|
|
27
|
+
run: ls -la && ls -la dist/ || echo "No dist folder"
|
|
28
|
+
- name: Setup Node.js and upgrade npm
|
|
29
|
+
uses: actions/setup-node@v4
|
|
30
|
+
with:
|
|
31
|
+
node-version: '20'
|
|
32
|
+
- name: Upgrade npm to latest (requires 9.5.0+ for provenance)
|
|
27
33
|
run: |
|
|
28
|
-
|
|
29
|
-
npm
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
echo "Current npm version:"
|
|
35
|
+
npm --version
|
|
36
|
+
npm install -g npm@latest
|
|
37
|
+
echo "Updated npm version:"
|
|
38
|
+
npm --version
|
|
39
|
+
- name: Publish to NPM
|
|
40
|
+
run: npm publish --provenance --access public
|
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,76 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v0.135.9](https://github.com/nyaruka/temba-components/compare/v0.135.8...v0.135.9)
|
|
8
|
+
|
|
9
|
+
- Update npm version [`be777e2`](https://github.com/nyaruka/temba-components/commit/be777e21e1b64a2cc1affa1e42dddccb7d23e893)
|
|
10
|
+
|
|
11
|
+
#### [v0.135.8](https://github.com/nyaruka/temba-components/compare/v0.135.7...v0.135.8)
|
|
12
|
+
|
|
13
|
+
> 18 December 2025
|
|
14
|
+
|
|
15
|
+
- Use npm config for provenance [`f831a0f`](https://github.com/nyaruka/temba-components/commit/f831a0f7d2997f2082a94913480929d53f3fd163)
|
|
16
|
+
|
|
17
|
+
#### [v0.135.7](https://github.com/nyaruka/temba-components/compare/v0.135.6...v0.135.7)
|
|
18
|
+
|
|
19
|
+
> 18 December 2025
|
|
20
|
+
|
|
21
|
+
- Add artifact debug [`43983d7`](https://github.com/nyaruka/temba-components/commit/43983d7f1ec2f6a2250f66cd5927850c279c13df)
|
|
22
|
+
|
|
23
|
+
#### [v0.135.6](https://github.com/nyaruka/temba-components/compare/v0.135.5...v0.135.6)
|
|
24
|
+
|
|
25
|
+
> 18 December 2025
|
|
26
|
+
|
|
27
|
+
- Remove registry url [`f4331df`](https://github.com/nyaruka/temba-components/commit/f4331df917feac61bd8ffabfc6bb3c25118634b2)
|
|
28
|
+
|
|
29
|
+
#### [v0.135.5](https://github.com/nyaruka/temba-components/compare/v0.135.4...v0.135.5)
|
|
30
|
+
|
|
31
|
+
> 18 December 2025
|
|
32
|
+
|
|
33
|
+
- Try publishing outside of the devcontainer [`5c12715`](https://github.com/nyaruka/temba-components/commit/5c127157fd0dfc7e72040d19da80ad8e236ef312)
|
|
34
|
+
|
|
35
|
+
#### [v0.135.4](https://github.com/nyaruka/temba-components/compare/v0.135.3...v0.135.4)
|
|
36
|
+
|
|
37
|
+
> 18 December 2025
|
|
38
|
+
|
|
39
|
+
- Pass along env variables to dev container [`1eea099`](https://github.com/nyaruka/temba-components/commit/1eea0993e6c4bb50ffddde23849a20b94ad0cf7d)
|
|
40
|
+
|
|
41
|
+
#### [v0.135.3](https://github.com/nyaruka/temba-components/compare/v0.135.2...v0.135.3)
|
|
42
|
+
|
|
43
|
+
> 18 December 2025
|
|
44
|
+
|
|
45
|
+
- Add env variable for publish [`14f9d8b`](https://github.com/nyaruka/temba-components/commit/14f9d8be9fb4ff73166bb21b79e0afe22d54bf8a)
|
|
46
|
+
|
|
47
|
+
#### [v0.135.2](https://github.com/nyaruka/temba-components/compare/v0.135.1...v0.135.2)
|
|
48
|
+
|
|
49
|
+
> 18 December 2025
|
|
50
|
+
|
|
51
|
+
- Add provenance flag for publish [`37c711a`](https://github.com/nyaruka/temba-components/commit/37c711a650965a89be9d3a782f4b93c1f84ab972)
|
|
52
|
+
|
|
53
|
+
#### [v0.135.1](https://github.com/nyaruka/temba-components/compare/v0.135.0...v0.135.1)
|
|
54
|
+
|
|
55
|
+
> 18 December 2025
|
|
56
|
+
|
|
57
|
+
- Remove npm auth token [`76ec221`](https://github.com/nyaruka/temba-components/commit/76ec2212dab4cf23b5b1b6481b2ac6dc6aec5ebb)
|
|
58
|
+
- Remove NODE_AUTH_TOKEN from publish workflow [`8fe0a48`](https://github.com/nyaruka/temba-components/commit/8fe0a48cec5f61e68b61f0da5ad20698df096f1b)
|
|
59
|
+
|
|
60
|
+
#### [v0.135.0](https://github.com/nyaruka/temba-components/compare/v0.134.6...v0.135.0)
|
|
61
|
+
|
|
62
|
+
> 17 December 2025
|
|
63
|
+
|
|
64
|
+
- Fix geo attachments [`#777`](https://github.com/nyaruka/temba-components/pull/777)
|
|
65
|
+
- Cache tile URL calculation to avoid recomputation on every render [`#781`](https://github.com/nyaruka/temba-components/pull/781)
|
|
66
|
+
- Add test coverage for latLngToTile coordinate conversion [`#780`](https://github.com/nyaruka/temba-components/pull/780)
|
|
67
|
+
- Bump validator from 13.15.20 to 13.15.23 [`#774`](https://github.com/nyaruka/temba-components/pull/774)
|
|
68
|
+
- Send `X-Temba-Workspace` header instead of `X-Temba-Org` [`#776`](https://github.com/nyaruka/temba-components/pull/776)
|
|
69
|
+
- Add comprehensive tests for latLngToTile method [`8ffc89c`](https://github.com/nyaruka/temba-components/commit/8ffc89c298093cbcf3e36381f9c2d1e905de6b44)
|
|
70
|
+
- Update progress - validation complete [`0dec144`](https://github.com/nyaruka/temba-components/commit/0dec1446e0b038d904d4dd43a8ccafba8fb82859)
|
|
71
|
+
- Send X-Temba-Workspace header instead of X-Temba-Org [`5fed4b7`](https://github.com/nyaruka/temba-components/commit/5fed4b7684eb8e94202796d90218b48ddcc6265a)
|
|
72
|
+
|
|
7
73
|
#### [v0.134.6](https://github.com/nyaruka/temba-components/compare/v0.134.5...v0.134.6)
|
|
8
74
|
|
|
75
|
+
> 3 December 2025
|
|
76
|
+
|
|
9
77
|
- Deleted message treatment [`#775`](https://github.com/nyaruka/temba-components/pull/775)
|
|
10
78
|
- Add screenshot tests for deleted messages [`db32633`](https://github.com/nyaruka/temba-components/commit/db32633ab3153d658e7d8f77cf77e8ce84186bdc)
|
|
11
79
|
- MsgEVent._deleted.user is optional [`b8135d9`](https://github.com/nyaruka/temba-components/commit/b8135d944cb260b0594a0b40c7c4764d420045c3)
|