@dialpad/dialtone 9.10.1 → 9.11.2
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/README.md +92 -20
- package/dist/css/CHANGELOG.json +1 -1
- package/dist/css/dialtone.css +28 -4
- package/dist/css/dialtone.min.css +1 -1
- package/dist/icons/icons.json +1 -1
- package/dist/icons/keywords.json +1 -1
- package/dist/icons/svg/circle-slashed.svg +1 -1
- package/dist/icons/svg/code-block.svg +1 -0
- package/dist/tokens/android/java/tokens-dark.kt +1 -1
- package/dist/tokens/android/java/tokens-light.kt +1 -1
- package/dist/tokens/android/res/values/colors-dark.xml +1 -1
- package/dist/tokens/android/res/values/colors-light.xml +1 -1
- package/dist/tokens/android/res/values/dimens.xml +1 -1
- package/dist/tokens/css/variables-dark.css +1 -1
- package/dist/tokens/css/variables-light.css +1 -1
- package/dist/tokens/ios/tokens-dark.swift +1 -1
- package/dist/tokens/ios/tokens-light.swift +1 -1
- package/dist/tokens/less/variables-dark.less +1 -1
- package/dist/tokens/less/variables-light.less +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +7 -7
- package/dist/vue2/directives.cjs +1 -1
- package/dist/vue2/directives.js +1 -1
- package/dist/vue2/emoji.cjs +1 -1
- package/dist/vue2/emoji.js +4 -4
- package/dist/vue2/{emoji_picker-50hU6Bus.cjs → emoji_picker-G_dpCtLb.cjs} +1 -1
- package/dist/vue2/{emoji_picker-3cVhhlbr.js → emoji_picker-H4Qp2wF5.js} +2 -2
- package/dist/vue2/{emoji_text_wrapper-45075bUQ.js → emoji_text_wrapper-B6LYaq-4.js} +6 -7
- package/dist/vue2/emoji_text_wrapper-HXzlY5eZ.cjs +1 -0
- package/dist/vue2/{index-NG2T0qK1.js → index-ASOzBdZi.js} +1009 -997
- package/dist/vue2/index-Fi4GXrPf.cjs +1 -0
- package/dist/vue2/message_input.cjs +1 -1
- package/dist/vue2/message_input.js +4 -4
- package/dist/vue2/{rich_text_editor-E7mcsC-J.cjs → rich_text_editor-HGWAxljc.cjs} +2 -2
- package/dist/vue2/{rich_text_editor-sxTdV897.js → rich_text_editor-hvsobGV1.js} +3 -3
- package/dist/vue2/style.css +1 -1
- package/dist/vue2/{tooltip-RmgCyjmY.cjs → tooltip-R7LTeOZf.cjs} +5 -5
- package/dist/vue2/{tooltip-UOWkfPpb.js → tooltip-vREVnN_1.js} +282 -263
- package/dist/vue2/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +33 -1
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts +2 -0
- package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +1 -1
- package/dist/vue3/dialtone-vue.js +7 -7
- package/dist/vue3/directives.cjs +1 -1
- package/dist/vue3/directives.js +1 -1
- package/dist/vue3/{emoji-RvO57rkW.js → emoji-BTNutvt9.js} +5140 -5126
- package/dist/vue3/emoji-rlL92lZG.cjs +1 -0
- package/dist/vue3/emoji.cjs +1 -1
- package/dist/vue3/emoji.js +4 -4
- package/dist/vue3/{emoji_picker-ZDMH1VIY.js → emoji_picker-nmJ2h6aY.js} +2 -2
- package/dist/vue3/{emoji_picker-EYanEJrn.cjs → emoji_picker-yry3pYOn.cjs} +1 -1
- package/dist/vue3/emoji_text_wrapper--VteZTud.js +85 -0
- package/dist/vue3/emoji_text_wrapper-c3aPthCy.cjs +1 -0
- package/dist/vue3/message_input.cjs +1 -1
- package/dist/vue3/message_input.js +4 -4
- package/dist/vue3/{rich_text_editor-o1bRsprW.js → rich_text_editor-2sh3YgmO.js} +4 -4
- package/dist/vue3/{rich_text_editor-VFx2M8I2.cjs → rich_text_editor-rl8EpCt1.cjs} +2 -2
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/{tooltip-Cr_G7ib3.js → tooltip-3O-FaSCC.js} +167 -148
- package/dist/vue3/{tooltip-gZ2LW6l0.cjs → tooltip-POX7tOJg.cjs} +5 -5
- package/dist/vue3/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +33 -1
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts +2 -0
- package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/vue2/emoji_text_wrapper-dc6a_C0K.cjs +0 -1
- package/dist/vue2/index-8ytmeBCH.cjs +0 -1
- package/dist/vue3/emoji-3sZLmJtM.cjs +0 -1
- package/dist/vue3/emoji_text_wrapper-p2pyEE4j.cjs +0 -1
- package/dist/vue3/emoji_text_wrapper-zvhbHADN.js +0 -86
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ The @dialpad/dialtone repository is a monorepo composed of Dialtone NPM packages
|
|
|
9
9
|
The following is a list of packages included in this monorepo. Note that libraries (packages folder) are separated from
|
|
10
10
|
apps (apps folder):
|
|
11
11
|
|
|
12
|
-
```
|
|
12
|
+
```text
|
|
13
13
|
dialtone/
|
|
14
14
|
|--- .github # Github configuration and workflows
|
|
15
15
|
|--- apps # Apps
|
|
@@ -24,6 +24,72 @@ dialtone/
|
|
|
24
24
|
|--- scripts # Shared scripts
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
## Tooling
|
|
28
|
+
|
|
29
|
+
### PNPM
|
|
30
|
+
|
|
31
|
+
PNPM (Performant NPM) is a package management solution designed to address the challenges posed by
|
|
32
|
+
traditional package managers.
|
|
33
|
+
|
|
34
|
+
We use PNPM to manage everything related to NPM, **adding, installing, removing and publishing packages**.
|
|
35
|
+
|
|
36
|
+
#### Do
|
|
37
|
+
|
|
38
|
+
Use PNPM to manage packages dependencies
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pnpm add eslint --filter dialtone-icons
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### Don't
|
|
45
|
+
|
|
46
|
+
Run package scripts with PNPM, this will not use NX cache and pipelines,
|
|
47
|
+
so you might end up missing dependencies that needed to be built before.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pnpm run --filter packages/dialtone-css build
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### NX
|
|
54
|
+
|
|
55
|
+
Nx is a build system with built-in tooling and advanced CI capabilities.
|
|
56
|
+
It helps you maintain and scale monorepos, both locally and on CI.
|
|
57
|
+
|
|
58
|
+
NX manages the scheduling and caching of our PNPM scripts.
|
|
59
|
+
|
|
60
|
+
We still rely on the package installation and package linking mechanism that PNPM workspaces provide us,
|
|
61
|
+
but use Nx instead to **run our tasks in the most efficient way**.
|
|
62
|
+
|
|
63
|
+
One of the main benefits of adding Nx to our PNPM workspace is speed via caching.
|
|
64
|
+
|
|
65
|
+
Running commands via NX will enable us to do several things:
|
|
66
|
+
|
|
67
|
+
- Setup the project dependencies to other projects command,
|
|
68
|
+
if they need to run before a specific command.
|
|
69
|
+
- Improve the speed of the command execution by saving its output to cache.
|
|
70
|
+
- Run the command on the [affected](https://nx.dev/nx-api/nx/documents/affected) projects only.
|
|
71
|
+
|
|
72
|
+
⚠️ You can run the commands with PNPM too, but it's not advisable as You'll lose the advantages that NX provides.
|
|
73
|
+
|
|
74
|
+
For more information, check [setup a monorepo with PNPM workspaces and NX](https://blog.nrwl.io/setup-a-monorepo-with-pnpm-workspaces-and-speed-it-up-with-nx-bc5d97258a7e#d69f)
|
|
75
|
+
|
|
76
|
+
#### Do
|
|
77
|
+
|
|
78
|
+
Use NX to run scripts, this will use cache, improve the performance,
|
|
79
|
+
and build any dependency needed before running your command.
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
nx run dialtone-css:build
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### Don't
|
|
86
|
+
|
|
87
|
+
Try installing packages with NX, this doesn't work at all, please use PNPM instead.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
nx add eslint --filter dialtone-icons
|
|
91
|
+
```
|
|
92
|
+
|
|
27
93
|
## Quick start
|
|
28
94
|
|
|
29
95
|
If you would like to contribute to Dialtone without having to do any local environment setup, you can use GitHub
|
|
@@ -36,45 +102,51 @@ Please see the [Codespaces docs](./.github/codespaces.md) for more information.
|
|
|
36
102
|
|
|
37
103
|
### Local environment setup
|
|
38
104
|
|
|
39
|
-
- We use [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
If you do not have pnpm installed, you can install it with:
|
|
105
|
+
- We use [pnpm](https://pnpm.io) for managing dependencies, so you need to have it installed
|
|
106
|
+
in order to be able to manage the packages. In order to install it, run the following command
|
|
107
|
+
or follow its [installation guide](https://pnpm.io/installation):
|
|
44
108
|
|
|
45
109
|
```bash
|
|
46
110
|
npm install -g pnpm
|
|
47
111
|
```
|
|
48
112
|
|
|
49
|
-
Once pnpm is installed,
|
|
113
|
+
Once pnpm is installed, install nx globally to make sure you can run commands such as `nx run build`
|
|
114
|
+
without having to prefix them with `pnpm` or `pnpm exec`:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
pnpm add --global nx@latest
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Then, install the dependencies for all the monorepo packages and apps.
|
|
50
121
|
|
|
51
122
|
```bash
|
|
52
123
|
pnpm install
|
|
53
124
|
```
|
|
54
125
|
|
|
55
|
-
|
|
126
|
+
### Running the projects
|
|
56
127
|
|
|
57
|
-
|
|
128
|
+
#### Dialtone
|
|
58
129
|
|
|
59
130
|
```bash
|
|
60
|
-
|
|
61
|
-
pnpm run start:dialtone
|
|
131
|
+
nx start:dialtone
|
|
62
132
|
```
|
|
63
133
|
|
|
134
|
+
This will start the documentation site and watch the library changes, so it is live updated.
|
|
135
|
+
|
|
64
136
|
Access the local server at `http://localhost:4000`
|
|
65
137
|
|
|
66
|
-
|
|
138
|
+
#### Dialtone Vue 2:
|
|
67
139
|
|
|
68
140
|
```bash
|
|
69
|
-
|
|
141
|
+
nx start:dialtone-vue2
|
|
70
142
|
```
|
|
71
143
|
|
|
72
144
|
Access the local storybook server for Dialtone Vue 2 via `http://localhost:9010/`
|
|
73
145
|
|
|
74
|
-
|
|
146
|
+
#### Dialtone Vue 3:
|
|
75
147
|
|
|
76
148
|
```bash
|
|
77
|
-
|
|
149
|
+
nx start:dialtone-vue3
|
|
78
150
|
```
|
|
79
151
|
|
|
80
152
|
Access the local storybook server for Dialtone Vue 3 via `http://localhost:9011/`
|
|
@@ -102,13 +174,13 @@ You can run commands like `build`, `test`, `start` from
|
|
|
102
174
|
the root of the project with:
|
|
103
175
|
|
|
104
176
|
```bash
|
|
105
|
-
|
|
177
|
+
nx <command> <package/app>
|
|
106
178
|
```
|
|
107
179
|
|
|
108
180
|
Example:
|
|
109
181
|
|
|
110
182
|
```bash
|
|
111
|
-
|
|
183
|
+
nx build dialtone-documentation
|
|
112
184
|
```
|
|
113
185
|
|
|
114
186
|
### Releasing
|
|
@@ -131,7 +203,7 @@ This can only be run while on **staging** branch. After running the command, it
|
|
|
131
203
|
5. Merge changes from `production` back to `staging`
|
|
132
204
|
|
|
133
205
|
```bash
|
|
134
|
-
|
|
206
|
+
nx run dialtone:release
|
|
135
207
|
```
|
|
136
208
|
|
|
137
209
|
#### Alpha/Beta
|
|
@@ -147,11 +219,11 @@ Needs to be run while on your feature branch. After running the command, it will
|
|
|
147
219
|
6. Merge changes from `alpha/beta` back to your feature branch.
|
|
148
220
|
|
|
149
221
|
```bash
|
|
150
|
-
|
|
222
|
+
nx run dialtone:release:alpha
|
|
151
223
|
```
|
|
152
224
|
|
|
153
225
|
```bash
|
|
154
|
-
|
|
226
|
+
nx run dialtone:release:beta
|
|
155
227
|
```
|
|
156
228
|
|
|
157
229
|
## Usage
|