@nyaruka/temba-components 0.124.3 → 0.125.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/.eslintrc.js +3 -1
- package/CHANGELOG.md +13 -0
- package/demo/data/flows/sample-flow.json +1072 -0
- package/demo/data/server/sample-flow.json +0 -0
- package/demo/flow/example.html +46 -0
- package/demo/index.html +155 -144
- package/demo/webchat/example.html +71 -0
- package/dist/temba-components.js +43 -33
- package/dist/temba-components.js.map +1 -1
- package/out-tsc/src/chart/TembaChart.js +111 -47
- package/out-tsc/src/chart/TembaChart.js.map +1 -1
- package/out-tsc/src/flow/EditorNode.js +2 -1
- package/out-tsc/src/flow/EditorNode.js.map +1 -1
- package/out-tsc/src/flow/config.js +70 -20
- package/out-tsc/src/flow/config.js.map +1 -1
- package/out-tsc/src/formfield/FormField.js +4 -1
- package/out-tsc/src/formfield/FormField.js.map +1 -1
- package/out-tsc/src/utils/index.js +3 -0
- package/out-tsc/src/utils/index.js.map +1 -1
- package/out-tsc/src/webchat/WebChat.js +2 -0
- package/out-tsc/src/webchat/WebChat.js.map +1 -1
- package/out-tsc/test/temba-chart.test.js +6 -18
- package/out-tsc/test/temba-chart.test.js.map +1 -1
- package/out-tsc/test/temba-formfield.test.js +94 -0
- package/out-tsc/test/temba-formfield.test.js.map +1 -0
- package/out-tsc/test/temba-integration-markdown.test.js +36 -0
- package/out-tsc/test/temba-integration-markdown.test.js.map +1 -0
- package/out-tsc/test/temba-select.test.js +14 -1
- package/out-tsc/test/temba-select.test.js.map +1 -1
- package/package.json +2 -1
- package/screenshots/truth/formfield/markdown-errors.png +0 -0
- package/screenshots/truth/formfield/no-errors.png +0 -0
- package/screenshots/truth/formfield/plain-text-errors.png +0 -0
- package/screenshots/truth/formfield/widget-only-markdown-errors.png +0 -0
- package/screenshots/truth/integration/checkbox-markdown-errors.png +0 -0
- package/src/chart/TembaChart.ts +124 -47
- package/src/flow/EditorNode.ts +2 -1
- package/src/flow/config.ts +71 -20
- package/src/formfield/FormField.ts +4 -1
- package/src/utils/index.ts +3 -0
- package/src/webchat/WebChat.ts +2 -0
- package/test/temba-chart.test.ts +7 -23
- package/test/temba-formfield.test.ts +121 -0
- package/test/temba-integration-markdown.test.ts +45 -0
- package/test/temba-select.test.ts +17 -0
- package/web-dev-server.config.mjs +18 -0
package/.eslintrc.js
CHANGED
|
@@ -17,6 +17,8 @@ module.exports = {
|
|
|
17
17
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
18
18
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
19
19
|
'import/named': 'off',
|
|
20
|
-
'import/no-unresolved': 'off'
|
|
20
|
+
'import/no-unresolved': 'off',
|
|
21
|
+
// Block console.log statements unless explicitly disabled
|
|
22
|
+
'no-console': ['error', { allow: ['warn', 'error'] }]
|
|
21
23
|
}
|
|
22
24
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,21 @@ 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.125.0](https://github.com/nyaruka/temba-components/compare/v0.124.3...v0.125.0)
|
|
8
|
+
|
|
9
|
+
- Add percent support for charts [`#569`](https://github.com/nyaruka/temba-components/pull/569)
|
|
10
|
+
- Fix intermittent test failure in cursor pagination by adding proper wait logic [`#568`](https://github.com/nyaruka/temba-components/pull/568)
|
|
11
|
+
- Add ESLint rule to block console.log statements in commits [`#566`](https://github.com/nyaruka/temba-components/pull/566)
|
|
12
|
+
- Add flow example [`#563`](https://github.com/nyaruka/temba-components/pull/563)
|
|
13
|
+
- Add markdown support in form field errors [`#555`](https://github.com/nyaruka/temba-components/pull/555)
|
|
14
|
+
- Add webchat demo [`c62fe29`](https://github.com/nyaruka/temba-components/commit/c62fe29b00604b5b9e3c57275913acfac521ab68)
|
|
15
|
+
- Add pct support for charts [`dbed915`](https://github.com/nyaruka/temba-components/commit/dbed915ce935faf3fa0d93787dff3bf21edd7ae3)
|
|
16
|
+
- Add markdown support for form field errors with comprehensive tests [`73cc5ab`](https://github.com/nyaruka/temba-components/commit/73cc5ab1d0c36452c2eea29a156165b35dbe6f0c)
|
|
17
|
+
|
|
7
18
|
#### [v0.124.3](https://github.com/nyaruka/temba-components/compare/v0.124.2...v0.124.3)
|
|
8
19
|
|
|
20
|
+
> 12 June 2025
|
|
21
|
+
|
|
9
22
|
- Add some palette and styling options for charts [`#559`](https://github.com/nyaruka/temba-components/pull/559)
|
|
10
23
|
- Move darkeColor to utils [`cefd890`](https://github.com/nyaruka/temba-components/commit/cefd89012c0f66b0d107a05047db73293a6b3a41)
|
|
11
24
|
|