@cling-se/widget 0.12.8 → 0.13.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.
Files changed (123) hide show
  1. package/.eslintrc.cjs +4 -0
  2. package/dist/{AddClientCallout-1db76c94.js → AddClientCallout-92b43564.js} +5 -5
  3. package/dist/{AnswerModal-6c06a8a2.js → AnswerModal-b22aab96.js} +3 -3
  4. package/dist/{AttachmentItem-41e444a4.js → AttachmentItem-39196508.js} +3 -3
  5. package/dist/{BaseDatePicker-d2a55800.js → BaseDatePicker-8be0c5ee.js} +2 -2
  6. package/dist/{BaseInput-18e129c8.js → BaseInput-779cb5b2.js} +1 -1
  7. package/dist/{BaseUpload-a9e1877b.js → BaseUpload-941ca869.js} +2 -2
  8. package/dist/{BlockMedia-8f9708c5.js → BlockMedia-bf89f8a9.js} +1 -1
  9. package/dist/{CCallout-b49bff26.js → CCallout-4239825f.js} +2 -2
  10. package/dist/{CDropdownItem-d4615a56.js → CDropdownItem-d0cd42d6.js} +1 -1
  11. package/dist/{CField-f2688fc2.js → CField-9b72b886.js} +1 -1
  12. package/dist/{CPhoneFormat-b1e386fc.js → CPhoneFormat-34b4c650.js} +1 -1
  13. package/dist/{CSlider.vue_vue_type_style_index_0_lang-5d43c5ff.js → CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js} +1 -1
  14. package/dist/{ClientAutocomplete-e74a234a.js → ClientAutocomplete-0d21002e.js} +2 -2
  15. package/dist/{ClientModal-37836644.js → ClientModal-9b8173e2.js} +5 -5
  16. package/dist/{ColorPicker-ccea269c.js → ColorPicker-3d06f308.js} +1 -1
  17. package/dist/{CompanyModal-1ae0f6ac.js → CompanyModal-2e203a3a.js} +3 -3
  18. package/dist/{ContentWrapper-a4b0def6.js → ContentWrapper-71bc374a.js} +13 -13
  19. package/dist/{CoverBlockSettings-9adcce77.js → CoverBlockSettings-b6c200ee.js} +7 -7
  20. package/dist/{DocAnswer-2cebb34c.js → DocAnswer-d4ea9b74.js} +4 -4
  21. package/dist/{DocDetails-4779c308.js → DocDetails-ea2635ac.js} +15 -15
  22. package/dist/{DocForm-211552a8.js → DocForm-cff1c78e.js} +6438 -6423
  23. package/dist/{DocFormSend-046a4add.js → DocFormSend-d0979323.js} +27 -27
  24. package/dist/{DocLinks-45fab5d6.js → DocLinks-48aa6dd6.js} +2 -2
  25. package/dist/{DocModalBase-5f1948d9.js → DocModalBase-77df9b3d.js} +1 -1
  26. package/dist/{DocPrint-8332f880.js → DocPrint-d39100c7.js} +1 -1
  27. package/dist/{DocReceipt-fe11e0cb.js → DocReceipt-cf0e772b.js} +1 -1
  28. package/dist/{DocSendReminder-8943a812.js → DocSendReminder-dca2775e.js} +4 -4
  29. package/dist/{DocTextEditor-de66d76f.js → DocTextEditor-5676c56f.js} +8 -8
  30. package/dist/{DocTimeline-3502cb4c.js → DocTimeline-5911b608.js} +114 -113
  31. package/dist/{DocumentClient-b781dd1f.js → DocumentClient-eca72dd7.js} +11 -9
  32. package/dist/{DocumentLayout-27fbb225.js → DocumentLayout-8104d93d.js} +132 -132
  33. package/dist/{DocumentLogotype-a28abe5a.js → DocumentLogotype-c43c4bbb.js} +3 -3
  34. package/dist/{DocumentVoided-455343c5.js → DocumentVoided-2d93ef71.js} +1 -1
  35. package/dist/{EmbedInput-d11d5de2.js → EmbedInput-02971bf6.js} +2 -2
  36. package/dist/{EmbedSettings-016ff455.js → EmbedSettings-575fae0e.js} +3 -3
  37. package/dist/{ErrorCallout-a074770e.js → ErrorCallout-05a4796b.js} +1 -1
  38. package/dist/{FilePreviewModal-fca6faef.js → FilePreviewModal-c1d2d5e7.js} +5 -5
  39. package/dist/{Flag-900b37df.js → Flag-1aceeff5.js} +1 -1
  40. package/dist/{HeaderSettings-ae0b3cf5.js → HeaderSettings-993f8c98.js} +15 -15
  41. package/dist/{ImageSelectModal-97133858.js → ImageSelectModal-5dfe4a29.js} +8 -8
  42. package/dist/{ImageUploadWrapper-1635702c.js → ImageUploadWrapper-1e38bbe2.js} +2 -2
  43. package/dist/{Index-693618d0.js → Index-04f332ec.js} +2 -2
  44. package/dist/{Index-7c6cea7d.js → Index-08737451.js} +6 -6
  45. package/dist/{Index-3b5a9052.js → Index-13e229bb.js} +2 -2
  46. package/dist/{Index-87a4e82c.js → Index-1cb59290.js} +2 -2
  47. package/dist/{Index-1ed5e7ea.js → Index-2504f599.js} +4 -4
  48. package/dist/{Index-0a894180.js → Index-2a88c858.js} +2 -2
  49. package/dist/{Index-8b8ee120.js → Index-2c960d57.js} +4 -4
  50. package/dist/{Index-6c0d7d03.js → Index-33635702.js} +1 -1
  51. package/dist/{Index-1c7f63c9.js → Index-4350bb0f.js} +9 -9
  52. package/dist/{Index-30d88fb4.js → Index-45c7841a.js} +8 -8
  53. package/dist/{Index-9c4b7f92.js → Index-46b2296e.js} +14 -14
  54. package/dist/{Index-330c01cb.js → Index-50b0a9b8.js} +7 -7
  55. package/dist/{Index-5af3739d.js → Index-57800d9c.js} +4 -4
  56. package/dist/{Index-b8b9f7f0.js → Index-5fb421de.js} +3 -3
  57. package/dist/{Index-ef2a29e9.js → Index-670097a7.js} +13 -13
  58. package/dist/{Index-1cf58bbf.js → Index-677b2c85.js} +2 -2
  59. package/dist/{Index-6ee8096a.js → Index-6f6fc018.js} +4 -4
  60. package/dist/{Index-f1000bb7.js → Index-7cbe4a17.js} +4 -4
  61. package/dist/{Index-86d26237.js → Index-8a956c1b.js} +4 -4
  62. package/dist/{Index-0c29aa88.js → Index-98c7217d.js} +10 -10
  63. package/dist/{Index-9bb614c4.js → Index-9a0233b0.js} +9 -9
  64. package/dist/{Index-84efdf4e.js → Index-9b7b4516.js} +6 -6
  65. package/dist/{Index-831f4f0b.js → Index-a1097b66.js} +6 -6
  66. package/dist/{Index-5ddfb8a8.js → Index-a7779d2a.js} +2 -2
  67. package/dist/{Index-d9e51018.js → Index-bc0d3abe.js} +14 -14
  68. package/dist/{Index-8b7c94ba.js → Index-be8b14a8.js} +5 -5
  69. package/dist/{Index-31a7de9d.js → Index-c1c7db19.js} +7 -7
  70. package/dist/{Index-398a837d.js → Index-c4296623.js} +4 -4
  71. package/dist/{Index-7f1831cc.js → Index-c6a8a298.js} +6 -6
  72. package/dist/{Index-7510cf12.js → Index-cfa81e3f.js} +4 -4
  73. package/dist/{Index-b626f0cc.js → Index-cfc393ae.js} +5 -5
  74. package/dist/{Index-3f500f06.js → Index-e9f705f3.js} +2 -2
  75. package/dist/{Index-1cb91a78.js → Index-ec8820ee.js} +2 -2
  76. package/dist/{Index-59e9af38.js → Index-fa4f462a.js} +1 -1
  77. package/dist/{InputToggleRow-ea78cea0.js → InputToggleRow-a0dc7e03.js} +1 -1
  78. package/dist/{IsPremiumPreStep-e80f039e.js → IsPremiumPreStep-42eeebac.js} +4 -4
  79. package/dist/{ManualPopover-4b11a2f4.js → ManualPopover-6cf3f592.js} +1 -1
  80. package/dist/{MediaWrapper-517aefb6.js → MediaWrapper-2c2e3d44.js} +3 -3
  81. package/dist/{NotBindingText-0e7bf539.js → NotBindingText-12f78064.js} +2 -2
  82. package/dist/{PackageGroup-7686c682.js → PackageGroup-75a1ad26.js} +12 -12
  83. package/dist/{PdfTerms-20b187ab.js → PdfTerms-5686a37b.js} +5 -5
  84. package/dist/{PdfViewer-5f7f3e7e.js → PdfViewer-d1d05125.js} +2 -2
  85. package/dist/{PlainHtml-8da72eb0.js → PlainHtml-6cc2bace.js} +1 -1
  86. package/dist/{PriceHeader-1664be58.js → PriceHeader-e45b65bc.js} +13 -13
  87. package/dist/{SearchApi-969f26f3.js → SearchApi-410c081e.js} +2 -2
  88. package/dist/{Setup-6924ae55.js → Setup-bf823254.js} +1 -2
  89. package/dist/{TermsSettings-24722cab.js → TermsSettings-7a077b22.js} +7 -7
  90. package/dist/{ThemeColorRow-dad2a360.js → ThemeColorRow-aad0248e.js} +3 -3
  91. package/dist/{ToggleBinding-95b398b5.js → ToggleBinding-abd0832e.js} +3 -3
  92. package/dist/{UploadModal-fcb5d747.js → UploadModal-42302f2b.js} +3 -3
  93. package/dist/{VideoPlayerInput-0653fdac.js → VideoPlayerInput-1c6cbf06.js} +3 -3
  94. package/dist/{VideoPlayerSettings-cd36d947.js → VideoPlayerSettings-5ec723e1.js} +4 -4
  95. package/dist/{VideoSelectModal-80bce79a.js → VideoSelectModal-16acfd43.js} +8 -8
  96. package/dist/{answerDocumentMixin-562a6227.js → answerDocumentMixin-97b33f14.js} +3 -3
  97. package/dist/{debounce-e16e154a.js → debounce-b0ffdee0.js} +1 -1
  98. package/dist/{focusDrawerMixin-2ea3f8b2.js → focusDrawerMixin-1d99a268.js} +1 -1
  99. package/dist/{formComponentsInstall-f0935848.js → formComponentsInstall-6ccace37.js} +12 -12
  100. package/dist/{formDrawerState-5cb1d38e.js → formDrawerState-a7b5832a.js} +1 -1
  101. package/dist/{formValidationMixin-fbcf6044.js → formValidationMixin-7216cb94.js} +1 -1
  102. package/dist/{index-926169da.js → index-6caf947c.js} +1 -1
  103. package/dist/{index-0f93916c.js → index-7690fb79.js} +5 -5
  104. package/dist/{index-e7242888.js → index-93d3e2cb.js} +9 -9
  105. package/dist/{index-3eb46e3e.js → index-a1d51619.js} +3 -3
  106. package/dist/{index-b6c7c8f9.js → index-d73fd8ca.js} +1 -1
  107. package/dist/{index-4284b917.js → index-ef3da59c.js} +1 -1
  108. package/dist/index.es.js +2 -2
  109. package/dist/index.umd.js +208 -208
  110. package/dist/{main-00182277.js → main-2c8b76b7.js} +34998 -34938
  111. package/dist/{mapFormMixin-1c6561a7.js → mapFormMixin-c2bc089c.js} +1 -1
  112. package/dist/{publicSenderState-a9f48e73.js → publicSenderState-e6458640.js} +1 -1
  113. package/dist/style.css +1 -1
  114. package/dist/{throttle-ac46d119.js → throttle-4f3f879a.js} +2 -2
  115. package/dist/{tinycolor-dc78edeb.js → tinycolor-f780e5ca.js} +1 -1
  116. package/dist/{tippy.esm-95420c02.js → tippy.esm-a855665a.js} +5 -5
  117. package/dist/{utils-eb62baff.js → utils-4d39389a.js} +1 -1
  118. package/dist/{vuedraggable.umd-f51633ac.js → vuedraggable.umd-e89c3d5e.js} +1 -1
  119. package/package.json +5 -3
  120. package/tsconfig.json +26 -0
  121. package/tsconfig.node.json +10 -0
  122. package/tsconfig.paths.json +17 -0
  123. package/vite.config.ts +61 -0
@@ -1,5 +1,5 @@
1
- import { j as n, k as l } from "./main-00182277.js";
2
- import { a as o } from "./debounce-e16e154a.js";
1
+ import { j as n, k as l } from "./main-2c8b76b7.js";
2
+ import { a as o } from "./debounce-b0ffdee0.js";
3
3
  var g = o, c = l, f = "Expected a function";
4
4
  function u(a, i, t) {
5
5
  var r = !0, e = !0;
@@ -1,4 +1,4 @@
1
- import { j as he } from "./main-00182277.js";
1
+ import { j as he } from "./main-2c8b76b7.js";
2
2
  var N = { exports: {} };
3
3
  (function(R) {
4
4
  (function(c) {
@@ -1,8 +1,8 @@
1
- import { C as mr } from "./ColorPicker-ccea269c.js";
2
- import { F as hr } from "./DocumentLayout-27fbb225.js";
3
- import { C as gr, a as yr } from "./CDropdownItem-d4615a56.js";
4
- import { n as Wt, s as br, a_ as Ct } from "./main-00182277.js";
5
- import { S as wr } from "./CSlider.vue_vue_type_style_index_0_lang-5d43c5ff.js";
1
+ import { C as mr } from "./ColorPicker-3d06f308.js";
2
+ import { F as hr } from "./DocumentLayout-8104d93d.js";
3
+ import { C as gr, a as yr } from "./CDropdownItem-d0cd42d6.js";
4
+ import { n as Wt, s as br, a_ as Ct } from "./main-2c8b76b7.js";
5
+ import { S as wr } from "./CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js";
6
6
  const xr = {
7
7
  AED: "United Arab Emirates Dirham",
8
8
  AFN: "Afghan Afghani",
@@ -1,4 +1,4 @@
1
- import { o as d, c as m } from "./main-00182277.js";
1
+ import { o as d, c as m } from "./main-2c8b76b7.js";
2
2
  const s = {
3
3
  youtube: {
4
4
  reg: /^(?:https?:\/\/)?(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((?:\w|-){11})(?:\S+)?$/,
@@ -1,4 +1,4 @@
1
- import { Z as rn, $ as on, j as We, a0 as an, a1 as sn, a2 as ln, a3 as un, a4 as fn, a5 as cn, a6 as dn, Y as hn } from "./main-00182277.js";
1
+ import { Z as rn, $ as on, j as We, a0 as an, a1 as sn, a2 as ln, a3 as un, a4 as fn, a5 as cn, a6 as dn, Y as hn } from "./main-2c8b76b7.js";
2
2
  var pn = rn;
3
3
  function gn(o) {
4
4
  return pn(o) ? void 0 : o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.12.8",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -41,7 +41,8 @@
41
41
  "vuelidate-error-extractor": "2.4.1",
42
42
  "vuex": "3.4.0",
43
43
  "vuex-map-fields": "1.4.1",
44
- "vuex-router-sync": "5.0.0"
44
+ "vuex-router-sync": "5.0.0",
45
+ "@cling/core": "0.0.0"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@rushstack/eslint-patch": "^1.7.2",
@@ -59,7 +60,8 @@
59
60
  "rollup-plugin-visualizer": "^5.8.3",
60
61
  "tailwindcss": "^3.2.1",
61
62
  "terser": "^5.14.2",
62
- "vite": "^4.3.8"
63
+ "vite": "^4.3.8",
64
+ "vite-tsconfig-paths": "^4.3.2"
63
65
  },
64
66
  "scripts": {
65
67
  "dev": "vite",
package/tsconfig.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "extends": "./tsconfig.paths.json",
3
+ "compilerOptions": {
4
+ "target": "ES2020",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2020", "DOM"],
7
+ "module": "ES2020",
8
+ "skipLibCheck": true,
9
+ "allowJs": true,
10
+
11
+ // Bundler mode
12
+ "moduleResolution": "bundler",
13
+ "resolveJsonModule": true,
14
+ "isolatedModules": true,
15
+ "noEmit": true,
16
+
17
+ // Linting
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true
22
+ },
23
+ "include": ["src/**/*", "src/**/*.vue", "src/**/*.js"],
24
+ "exclude": ["node_modules", "../node_modules"],
25
+ "references": [{ "path": "./tsconfig.node.json" }]
26
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["./vite.config.ts"]
10
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": "./src",
4
+ "paths": {
5
+ "@/*": ["*"],
6
+ "@/assets/*": ["assets/*"],
7
+ "@/components/*": ["components/*"],
8
+ "@/models": ["models/*"],
9
+ "@/plugins/*": ["plugins/*"],
10
+ "@/router/*": ["router/*"],
11
+ "@/store/*": ["store/*"],
12
+ "@/ui/*": ["ui/*"],
13
+ "@/utils": ["utils/*"],
14
+ "@/views/*": ["views/*"]
15
+ }
16
+ }
17
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,61 @@
1
+ import { resolve } from 'path'
2
+
3
+ import vue2 from '@vitejs/plugin-vue2'
4
+ import vue2Jsx from '@vitejs/plugin-vue2-jsx'
5
+
6
+ import { visualizer } from 'rollup-plugin-visualizer'
7
+
8
+ import { defineConfig } from 'vite'
9
+ import tsconfigPaths from 'vite-tsconfig-paths'
10
+
11
+ import injectCss from './vite-plugin-inject-css'
12
+
13
+ import generateSharedConfig from '../shared'
14
+
15
+ // https://vitejs.dev/config/
16
+ export default ({ mode }) => {
17
+ const sharedConfig = generateSharedConfig(mode)
18
+
19
+ return defineConfig({
20
+ plugins: [
21
+ vue2(),
22
+ vue2Jsx(),
23
+ injectCss({
24
+ styleId: process.env.VITE_APP_ROOT_STYLE_ID
25
+ }),
26
+ tsconfigPaths(),
27
+ ...sharedConfig.plugins
28
+ ],
29
+ resolve: {
30
+ alias: {
31
+ '@': resolve(__dirname, 'src'),
32
+ ...sharedConfig.resolve.alias
33
+ }
34
+ },
35
+ define: {
36
+ __APP_TYPE__: JSON.stringify('widget'),
37
+ ...sharedConfig.define,
38
+ 'process.env.BUILD': JSON.stringify('web') // TODO add to shared when tested in app staging
39
+ },
40
+ server: {
41
+ watch: {
42
+ ignored: ['!**/core/**'],
43
+ usePolling: true
44
+ }
45
+ },
46
+ build: {
47
+ lib: {
48
+ entry: resolve(__dirname, 'src/init.js'),
49
+ name: 'widget',
50
+ fileName: format => `index.${format}.js`
51
+ },
52
+ rollupOptions: {
53
+ plugins: [visualizer()],
54
+ output: {
55
+ manualChunks: undefined // Create a single file only
56
+ }
57
+ }
58
+ // sourcemap: 'hidden'
59
+ }
60
+ })
61
+ }