@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.
Files changed (75) hide show
  1. package/README.md +92 -20
  2. package/dist/css/CHANGELOG.json +1 -1
  3. package/dist/css/dialtone.css +28 -4
  4. package/dist/css/dialtone.min.css +1 -1
  5. package/dist/icons/icons.json +1 -1
  6. package/dist/icons/keywords.json +1 -1
  7. package/dist/icons/svg/circle-slashed.svg +1 -1
  8. package/dist/icons/svg/code-block.svg +1 -0
  9. package/dist/tokens/android/java/tokens-dark.kt +1 -1
  10. package/dist/tokens/android/java/tokens-light.kt +1 -1
  11. package/dist/tokens/android/res/values/colors-dark.xml +1 -1
  12. package/dist/tokens/android/res/values/colors-light.xml +1 -1
  13. package/dist/tokens/android/res/values/dimens.xml +1 -1
  14. package/dist/tokens/css/variables-dark.css +1 -1
  15. package/dist/tokens/css/variables-light.css +1 -1
  16. package/dist/tokens/ios/tokens-dark.swift +1 -1
  17. package/dist/tokens/ios/tokens-light.swift +1 -1
  18. package/dist/tokens/less/variables-dark.less +1 -1
  19. package/dist/tokens/less/variables-light.less +1 -1
  20. package/dist/vue2/component-documentation.json +1 -1
  21. package/dist/vue2/dialtone-vue.cjs +1 -1
  22. package/dist/vue2/dialtone-vue.js +7 -7
  23. package/dist/vue2/directives.cjs +1 -1
  24. package/dist/vue2/directives.js +1 -1
  25. package/dist/vue2/emoji.cjs +1 -1
  26. package/dist/vue2/emoji.js +4 -4
  27. package/dist/vue2/{emoji_picker-50hU6Bus.cjs → emoji_picker-G_dpCtLb.cjs} +1 -1
  28. package/dist/vue2/{emoji_picker-3cVhhlbr.js → emoji_picker-H4Qp2wF5.js} +2 -2
  29. package/dist/vue2/{emoji_text_wrapper-45075bUQ.js → emoji_text_wrapper-B6LYaq-4.js} +6 -7
  30. package/dist/vue2/emoji_text_wrapper-HXzlY5eZ.cjs +1 -0
  31. package/dist/vue2/{index-NG2T0qK1.js → index-ASOzBdZi.js} +1009 -997
  32. package/dist/vue2/index-Fi4GXrPf.cjs +1 -0
  33. package/dist/vue2/message_input.cjs +1 -1
  34. package/dist/vue2/message_input.js +4 -4
  35. package/dist/vue2/{rich_text_editor-E7mcsC-J.cjs → rich_text_editor-HGWAxljc.cjs} +2 -2
  36. package/dist/vue2/{rich_text_editor-sxTdV897.js → rich_text_editor-hvsobGV1.js} +3 -3
  37. package/dist/vue2/style.css +1 -1
  38. package/dist/vue2/{tooltip-RmgCyjmY.cjs → tooltip-R7LTeOZf.cjs} +5 -5
  39. package/dist/vue2/{tooltip-UOWkfPpb.js → tooltip-vREVnN_1.js} +282 -263
  40. package/dist/vue2/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  41. package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +33 -1
  42. package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  43. package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts +2 -0
  44. package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  45. package/dist/vue3/component-documentation.json +1 -1
  46. package/dist/vue3/dialtone-vue.cjs +1 -1
  47. package/dist/vue3/dialtone-vue.js +7 -7
  48. package/dist/vue3/directives.cjs +1 -1
  49. package/dist/vue3/directives.js +1 -1
  50. package/dist/vue3/{emoji-RvO57rkW.js → emoji-BTNutvt9.js} +5140 -5126
  51. package/dist/vue3/emoji-rlL92lZG.cjs +1 -0
  52. package/dist/vue3/emoji.cjs +1 -1
  53. package/dist/vue3/emoji.js +4 -4
  54. package/dist/vue3/{emoji_picker-ZDMH1VIY.js → emoji_picker-nmJ2h6aY.js} +2 -2
  55. package/dist/vue3/{emoji_picker-EYanEJrn.cjs → emoji_picker-yry3pYOn.cjs} +1 -1
  56. package/dist/vue3/emoji_text_wrapper--VteZTud.js +85 -0
  57. package/dist/vue3/emoji_text_wrapper-c3aPthCy.cjs +1 -0
  58. package/dist/vue3/message_input.cjs +1 -1
  59. package/dist/vue3/message_input.js +4 -4
  60. package/dist/vue3/{rich_text_editor-o1bRsprW.js → rich_text_editor-2sh3YgmO.js} +4 -4
  61. package/dist/vue3/{rich_text_editor-VFx2M8I2.cjs → rich_text_editor-rl8EpCt1.cjs} +2 -2
  62. package/dist/vue3/style.css +1 -1
  63. package/dist/vue3/{tooltip-Cr_G7ib3.js → tooltip-3O-FaSCC.js} +167 -148
  64. package/dist/vue3/{tooltip-gZ2LW6l0.cjs → tooltip-POX7tOJg.cjs} +5 -5
  65. package/dist/vue3/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  66. package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +33 -1
  67. package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  68. package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts +2 -0
  69. package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  70. package/package.json +1 -1
  71. package/dist/vue2/emoji_text_wrapper-dc6a_C0K.cjs +0 -1
  72. package/dist/vue2/index-8ytmeBCH.cjs +0 -1
  73. package/dist/vue3/emoji-3sZLmJtM.cjs +0 -1
  74. package/dist/vue3/emoji_text_wrapper-p2pyEE4j.cjs +0 -1
  75. 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
- ```sh
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 [Nx](https://nx.dev/) as build system for improved speed and easier monorepo administration.
40
- nx is installed as a dev dependency in the root of the project.
41
- - We use [pnpm](https://pnpm.io) for managing workspaces
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, in the monorepo root run:
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
- This will install the dependencies for all packages.
126
+ ### Running the projects
56
127
 
57
- In order to run dialtone locally, you can use:
128
+ #### Dialtone
58
129
 
59
130
  ```bash
60
- # This will start the server for the documentation site and the library so it is live updated with any changes.
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
- For dialtone vue 2 storybook and library run:
138
+ #### Dialtone Vue 2:
67
139
 
68
140
  ```bash
69
- pnpm run start:dialtone-vue2
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
- For dialtone vue 3 storybook and library run:
146
+ #### Dialtone Vue 3:
75
147
 
76
148
  ```bash
77
- pnpm run start:dialtone-vue3
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
- pnpm nx <command> <package/app>
177
+ nx <command> <package/app>
106
178
  ```
107
179
 
108
180
  Example:
109
181
 
110
182
  ```bash
111
- pnpm nx build dialtone-documentation
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
- pnpm run release
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
- pnpm run release:alpha
222
+ nx run dialtone:release:alpha
151
223
  ```
152
224
 
153
225
  ```bash
154
- pnpm run release:beta
226
+ nx run dialtone:release:beta
155
227
  ```
156
228
 
157
229
  ## Usage