@nyaruka/temba-components 0.71.4 → 0.72.0
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/CHANGELOG.md +11 -1
- package/demo/index.html +6 -3
- package/dist/{beb1070a.js → c6d002ae.js} +400 -270
- package/dist/index.js +400 -270
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/templates/components-body.html +1 -1
- package/dist/templates/components-head.html +1 -1
- package/out-tsc/src/RapidElement.js +18 -25
- package/out-tsc/src/RapidElement.js.map +1 -1
- package/out-tsc/src/select/Select.js +20 -7
- package/out-tsc/src/select/Select.js.map +1 -1
- package/out-tsc/src/templates/TemplateEditor.js +308 -0
- package/out-tsc/src/templates/TemplateEditor.js.map +1 -0
- package/out-tsc/src/textinput/TextInput.js +3 -1
- package/out-tsc/src/textinput/TextInput.js.map +1 -1
- package/out-tsc/src/utils/index.js +18 -0
- package/out-tsc/src/utils/index.js.map +1 -1
- package/out-tsc/temba-modules.js +2 -0
- package/out-tsc/temba-modules.js.map +1 -1
- package/out-tsc/test/temba-slider.test.js +1 -1
- package/out-tsc/test/temba-slider.test.js.map +1 -1
- package/out-tsc/test/temba-template-editor.test.js +53 -0
- package/out-tsc/test/temba-template-editor.test.js.map +1 -0
- package/package.json +1 -1
- package/screenshots/truth/templates/default.png +0 -0
- package/screenshots/truth/templates/french.png +0 -0
- package/src/RapidElement.ts +19 -40
- package/src/select/Select.ts +21 -7
- package/src/templates/TemplateEditor.ts +348 -0
- package/src/textinput/TextInput.ts +3 -1
- package/src/utils/index.ts +21 -0
- package/static/api/templates.json +250 -0
- package/temba-modules.ts +2 -0
- package/test/temba-slider.test.ts +1 -1
- package/test/temba-template-editor.test.ts +69 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ 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.72.0](https://github.com/nyaruka/temba-components/compare/v0.71.4...v0.72.0)
|
|
8
|
+
|
|
9
|
+
- Add template editor [`#399`](https://github.com/nyaruka/temba-components/pull/399)
|
|
10
|
+
|
|
7
11
|
#### [v0.71.4](https://github.com/nyaruka/temba-components/compare/v0.71.3...v0.71.4)
|
|
8
12
|
|
|
13
|
+
> 4 March 2024
|
|
14
|
+
|
|
9
15
|
- Bump ip from 1.1.8 to 1.1.9 [`#396`](https://github.com/nyaruka/temba-components/pull/396)
|
|
10
16
|
- Add support for WhatsApp templates not syncing notfications [`#398`](https://github.com/nyaruka/temba-components/pull/398)
|
|
11
17
|
- Add support for WhatsApp templates failed syncing notifications [`2db805f`](https://github.com/nyaruka/temba-components/commit/2db805f5598eb381169eeeb0419a6733502e9984)
|
|
@@ -208,12 +214,16 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
208
214
|
- Fix reading created_by for msg events [`#364`](https://github.com/nyaruka/temba-components/pull/364)
|
|
209
215
|
- Add logical icon names for optin and optout [`#365`](https://github.com/nyaruka/temba-components/pull/365)
|
|
210
216
|
|
|
211
|
-
#### [v0.58.8](https://github.com/nyaruka/temba-components/compare/v0.58.
|
|
217
|
+
#### [v0.58.8](https://github.com/nyaruka/temba-components/compare/v0.58.7...v0.58.8)
|
|
212
218
|
|
|
213
219
|
> 28 September 2023
|
|
214
220
|
|
|
215
221
|
- Update publish.yml [`7dc7d69`](https://github.com/nyaruka/temba-components/commit/7dc7d69822942b39c3b35e06846cfd4c65108b2d)
|
|
216
222
|
|
|
223
|
+
#### [v0.58.7](https://github.com/nyaruka/temba-components/compare/v0.58.6...v0.58.7)
|
|
224
|
+
|
|
225
|
+
> 28 September 2023
|
|
226
|
+
|
|
217
227
|
#### [v0.58.6](https://github.com/nyaruka/temba-components/compare/v0.58.5...v0.58.6)
|
|
218
228
|
|
|
219
229
|
> 28 September 2023
|
package/demo/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8" />
|
|
6
|
-
<link href="/
|
|
6
|
+
<link href="/static/css/temba-components.css" rel="stylesheet" type="text/css" />
|
|
7
7
|
|
|
8
8
|
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:300,400,500" rel="stylesheet" />
|
|
9
9
|
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
console.log(response);
|
|
123
123
|
})
|
|
124
124
|
}
|
|
125
|
+
|
|
125
126
|
</script>
|
|
126
127
|
</head>
|
|
127
128
|
|
|
@@ -144,8 +145,11 @@
|
|
|
144
145
|
<div class="header">temba-components</div>
|
|
145
146
|
|
|
146
147
|
|
|
147
|
-
|
|
148
|
+
<!--temba-image-picker name="avatar" label="Profile Picture" shape="circle"></temba-image-picker-->
|
|
148
149
|
<!--temba-webchat channel="9e6b37a8-c649-48b3-92d1-dfa7c00b85dc"></temba-webchat-->
|
|
150
|
+
<!-- temba-template-editor url="/static/api/templates.json" lang="eng" template="580b124f-32cb-4003-b9e5-9eb783e29101"
|
|
151
|
+
params="{"body":["this", "", "that"]}">
|
|
152
|
+
</temba-template-editor-->
|
|
149
153
|
|
|
150
154
|
<temba-tabs collapses index="0">
|
|
151
155
|
<temba-tab name="Overview" icon="default">
|
|
@@ -160,7 +164,6 @@
|
|
|
160
164
|
<temba-datepicker time value="2022-10-02 01:00:00+00:00" timezone="Africa/Lagos"
|
|
161
165
|
onChange="handleDateChange(event)"></temba-datepicker>
|
|
162
166
|
|
|
163
|
-
|
|
164
167
|
</div>
|
|
165
168
|
|
|
166
169
|
<temba-slider style="margin-bottom: 1em" value="50" min="0" max="100" range></temba-slider>
|