@cling-se/widget 0.1.0 → 0.3.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 (118) hide show
  1. package/.env +13 -0
  2. package/dist/DocFormSend.0354d4e2.js +11651 -0
  3. package/dist/DocSendReminder.2c6ae40c.js +101 -0
  4. package/dist/{index.e24f44ff.js → index.00ea682f.js} +2 -2
  5. package/dist/{index.16c7f975.js → index.052cc596.js} +2 -2
  6. package/dist/{index.64f0156a.js → index.06c92ee3.js} +2 -2
  7. package/dist/{index.48948469.js → index.07303e2f.js} +2 -2
  8. package/dist/{index.f7026ad9.js → index.08dabd06.js} +4 -4
  9. package/dist/{index.a3fcaeb8.js → index.0f1bdb38.js} +2 -2
  10. package/dist/{index.416dcc69.js → index.153ff35c.js} +2 -2
  11. package/dist/{index.3a38514d.js → index.169d8574.js} +3 -3
  12. package/dist/{index.6e6fb2f2.js → index.16eaacae.js} +9 -9
  13. package/dist/{index.bbe3d251.js → index.189ac2af.js} +5 -5
  14. package/dist/{index.9d8a6d6c.js → index.18ba2168.js} +2 -2
  15. package/dist/{index.23fc2ffd.js → index.1c16cc45.js} +2 -2
  16. package/dist/{index.c2ffaaa6.js → index.1c83ce14.js} +5 -5
  17. package/dist/{index.e1363f91.js → index.1fcd3437.js} +4 -4
  18. package/dist/{index.a8e4ab31.js → index.237f86cd.js} +4 -4
  19. package/dist/{index.78dc1af4.js → index.2445a7db.js} +4 -4
  20. package/dist/{index.63a8589d.js → index.2714c751.js} +5 -5
  21. package/dist/{index.58d6de5a.js → index.2ace86f5.js} +1 -1
  22. package/dist/{index.bf058f9c.js → index.2efb0c04.js} +4 -4
  23. package/dist/{index.ac2dab55.js → index.2f4aeb17.js} +0 -0
  24. package/dist/{index.f611f897.js → index.2fe41770.js} +2 -2
  25. package/dist/{index.51690156.js → index.30c57988.js} +2 -2
  26. package/dist/{index.c9fe7f51.js → index.30e8454f.js} +2 -2
  27. package/dist/{index.41803b02.js → index.328fb10a.js} +3 -3
  28. package/dist/{index.2baecfab.js → index.32cd5086.js} +2 -2
  29. package/dist/{index.3bb66223.js → index.3487b559.js} +3 -3
  30. package/dist/{index.c175b974.js → index.35a9a07f.js} +2 -2
  31. package/dist/{index.74723364.js → index.3755112e.js} +2 -2
  32. package/dist/{index.9d428a58.js → index.37923843.js} +2 -2
  33. package/dist/{index.5fa1e326.js → index.38d73694.js} +3 -3
  34. package/dist/{index.f7ea8278.js → index.3c029ca4.js} +2 -2
  35. package/dist/{index.45acb66e.js → index.43aae66c.js} +2 -2
  36. package/dist/{index.4ee6f0c2.js → index.43c20d81.js} +2 -2
  37. package/dist/{index.e60b980f.js → index.4577bcb4.js} +5 -5
  38. package/dist/{index.02bd3cdd.js → index.4924f5bc.js} +5 -5
  39. package/dist/{index.39bd7a4d.js → index.4e05f25c.js} +4 -4
  40. package/dist/{index.9f1a8dfe.js → index.506d3a4f.js} +2 -2
  41. package/dist/{index.df882adb.js → index.5fb3555a.js} +4 -4
  42. package/dist/{index.62bea234.js → index.607cc1a1.js} +5 -5
  43. package/dist/{index.160f01cd.js → index.61952874.js} +2 -2
  44. package/dist/{index.767ad79c.js → index.692f76c1.js} +4 -4
  45. package/dist/{index.a0b6ce41.js → index.707bcc7e.js} +2 -2
  46. package/dist/{index.a6f86b29.js → index.715b68df.js} +4 -4
  47. package/dist/{index.f89f5727.js → index.7166a785.js} +2 -2
  48. package/dist/{index.daadcf25.js → index.735f00a4.js} +3 -3
  49. package/dist/{index.7670b526.js → index.73a2dbfa.js} +5 -5
  50. package/dist/{index.40310538.js → index.754808c2.js} +5 -5
  51. package/dist/{index.f668a467.js → index.7aa9dea6.js} +4 -4
  52. package/dist/{index.f4926569.js → index.7b6c576b.js} +4 -4
  53. package/dist/{index.e24ce46c.js → index.7e1580f3.js} +4 -4
  54. package/dist/{index.963e2b1e.js → index.7f64a682.js} +4 -4
  55. package/dist/{index.d144f882.js → index.83483ec7.js} +4 -4
  56. package/dist/{index.9f354d37.js → index.8551c413.js} +2 -2
  57. package/dist/{index.009ba9d2.js → index.8791207a.js} +3 -3
  58. package/dist/{index.a9178983.js → index.8953e9df.js} +5 -5
  59. package/dist/{index.b21c581c.js → index.8e08698f.js} +2 -2
  60. package/dist/{index.65766d8c.js → index.968b9711.js} +3 -3
  61. package/dist/{index.ed237364.js → index.97b49fc6.js} +2 -2
  62. package/dist/{index.3eebe2f0.js → index.99368cca.js} +2 -2
  63. package/dist/{index.28456a86.js → index.9a1c119f.js} +0 -0
  64. package/dist/{index.af4547eb.js → index.9b5ae35a.js} +2 -2
  65. package/dist/{index.1672764e.js → index.9b9b871e.js} +4 -4
  66. package/dist/{index.cee60d95.js → index.9d677d2f.js} +4 -4
  67. package/dist/{index.1bc0be98.js → index.a1cf6415.js} +4 -4
  68. package/dist/{index.79792eda.js → index.a2391ee0.js} +4 -4
  69. package/dist/{index.e7d997f1.js → index.a3384ba9.js} +2 -2
  70. package/dist/{index.18481e4c.js → index.a8acc40a.js} +3 -3
  71. package/dist/{index.d5e0c26a.js → index.b34119d5.js} +4 -4
  72. package/dist/{index.068918db.js → index.b356c7bb.js} +7 -7
  73. package/dist/{index.854ff698.js → index.b72cb2e1.js} +10 -10
  74. package/dist/{index.a87f2e48.js → index.b7440fbe.js} +5 -5
  75. package/dist/{index.023d54fb.js → index.ba91d7b8.js} +2 -2
  76. package/dist/{index.515d6b85.js → index.c02dd0fa.js} +2 -2
  77. package/dist/{index.6b565882.js → index.c34a9bdb.js} +2 -2
  78. package/dist/{index.308b8c33.js → index.c36e23fa.js} +12 -12
  79. package/dist/{index.5ef2989e.js → index.c5dc3b7f.js} +14 -14
  80. package/dist/{index.1e16d6b0.js → index.c727e4e6.js} +2 -2
  81. package/dist/{index.84f8298e.js → index.c7a7f525.js} +3 -3
  82. package/dist/{index.afd9278e.js → index.c84e7cc7.js} +1 -1
  83. package/dist/{index.7aec00dc.js → index.c92ddd59.js} +2 -2
  84. package/dist/{index.bcf35b12.js → index.cacf5002.js} +2 -2
  85. package/dist/{index.438ec495.js → index.cc2be8ea.js} +2 -2
  86. package/dist/{index.8b8944b3.js → index.cc80caad.js} +6 -6
  87. package/dist/{index.313766cd.js → index.cd8e3187.js} +1 -1
  88. package/dist/{index.f6858fbb.js → index.d104916c.js} +0 -0
  89. package/dist/{index.08d943ee.js → index.d1768321.js} +2 -2
  90. package/dist/{index.aaa04665.js → index.d1dfd88b.js} +2 -2
  91. package/dist/{index.2211c935.js → index.d205504b.js} +4 -4
  92. package/dist/{index.c6730dec.js → index.d8d0e8e6.js} +2 -2
  93. package/dist/{index.e03baaec.js → index.d96e4331.js} +3 -3
  94. package/dist/{index.97aeef26.js → index.db8d8bfd.js} +10 -10
  95. package/dist/{index.67f370ce.js → index.db9ce88f.js} +4 -4
  96. package/dist/{index.9b365e5e.js → index.dc39d415.js} +1 -1
  97. package/dist/{index.01e5a7b7.js → index.dc64e827.js} +4 -4
  98. package/dist/{index.c4946d1a.js → index.dedc3e6f.js} +2 -2
  99. package/dist/{index.89b734cb.js → index.e11f4feb.js} +5 -5
  100. package/dist/{index.8c985ac1.js → index.e3d4a2fe.js} +3 -3
  101. package/dist/{index.c1990a0f.js → index.e773c045.js} +4 -4
  102. package/dist/{index.1815039e.js → index.e815198c.js} +4 -4
  103. package/dist/{index.32ebc2bc.js → index.eaf0a7c6.js} +0 -0
  104. package/dist/{index.ddd22f66.js → index.ebebb7cd.js} +2 -2
  105. package/dist/index.es.js +8 -0
  106. package/dist/{index.92734d7a.js → index.fb1d42f0.js} +2 -2
  107. package/dist/{index.3f772a20.js → index.fba62303.js} +4 -4
  108. package/dist/index.umd.js +604 -0
  109. package/dist/init.23d728bc.js +570 -0
  110. package/dist/{main.ac62ebc6.js → main.5e0a93b2.js} +11763 -11061
  111. package/package.json +6 -7
  112. package/stats.html +4044 -0
  113. package/tailwind.config.cjs +3 -31
  114. package/dist/DocFormSend.51d672e6.js +0 -13855
  115. package/dist/main.es.js +0 -8
  116. package/dist/main.umd.js +0 -599
  117. package/vite-plugin-inject-css/index.js +0 -86
  118. package/vite-plugin-inject-css/utils.js +0 -70
@@ -1,86 +0,0 @@
1
- /**
2
- * This plugin will walk through all the generated bundle files,
3
- * and extract all css references.
4
- * The extracted css will get added to document.head as an DISABLED style
5
- * element with an identifer. The ID can later be used to move the
6
- * style element around.
7
- *
8
- * This code is a slighly modified version of
9
- * https://github.com/Marco-Prontera/vite-plugin-css-injected-by-js
10
- * MIT license
11
- */
12
-
13
- import { buildCSSInjectionCode, removeLinkStyleSheets } from './utils.js'
14
-
15
- /**
16
- * Inject the CSS compiled with JS.
17
- *
18
- */
19
- export default function cssInjectedByJsPlugin(
20
- { topExecutionPriority, styleId } = {
21
- topExecutionPriority: true,
22
- styleId: ''
23
- }
24
- ) {
25
- //Globally so we can add it to legacy and non-legacy bundle.
26
- let cssToInject
27
- let config
28
-
29
- return {
30
- apply: 'build',
31
- enforce: 'post',
32
- name: 'css-in-js-plugin',
33
- configResolved(_config) {
34
- config = _config
35
- },
36
- async generateBundle(opts, bundle) {
37
- if (config.build.ssr) {
38
- return
39
- }
40
-
41
- const htmlFiles = Object.keys(bundle).filter(i => i.endsWith('.html'))
42
- const cssAssets = Object.keys(bundle).filter(
43
- i => bundle[i].type == 'asset' && bundle[i].fileName.endsWith('.css')
44
- )
45
- const jsAssets = Object.keys(bundle).filter(
46
- i =>
47
- bundle[i].type == 'chunk' &&
48
- bundle[i].fileName.match(/.[cm]?js$/) != null &&
49
- !bundle[i].fileName.includes('polyfill')
50
- )
51
-
52
- const allCssCode = cssAssets.reduce(
53
- function extractCssCodeAndDeleteFromBundle(previousValue, cssName) {
54
- const cssAsset = bundle[cssName]
55
- const result = previousValue + cssAsset.source
56
- delete bundle[cssName]
57
-
58
- return result
59
- },
60
- ''
61
- )
62
-
63
- if (allCssCode.length > 0) {
64
- cssToInject = allCssCode
65
- }
66
-
67
- for (const name of htmlFiles) {
68
- const htmlChunk = bundle[name]
69
- let replacedHtml = htmlChunk.source
70
-
71
- cssAssets.forEach(cssName => {
72
- replacedHtml = removeLinkStyleSheets(replacedHtml, cssName)
73
- htmlChunk.source = replacedHtml
74
- })
75
- }
76
-
77
- const jsAsset = bundle[jsAssets[0]]
78
-
79
- const cssInjectionCode = await buildCSSInjectionCode(cssToInject, styleId)
80
- const appCode = jsAsset.code
81
- jsAsset.code = topExecutionPriority ? '' : appCode
82
- jsAsset.code += cssInjectionCode ? cssInjectionCode.code : ''
83
- jsAsset.code += !topExecutionPriority ? '' : appCode
84
- }
85
- }
86
- }
@@ -1,70 +0,0 @@
1
- import { build } from 'vite'
2
-
3
- const cssInjectedByJsId = '\0vite/all-css'
4
-
5
- export async function buildCSSInjectionCode(cssToInject, styleId) {
6
- const res = await build({
7
- root: '',
8
- configFile: false,
9
- logLevel: 'error',
10
- plugins: [injectionCSSCodePlugin(cssToInject, styleId)],
11
- build: {
12
- write: false,
13
- target: 'es2015',
14
- minify: 'esbuild',
15
- assetsDir: '',
16
- rollupOptions: {
17
- input: {
18
- ['all-css']: cssInjectedByJsId
19
- },
20
- output: {
21
- format: 'iife',
22
- manualChunks: undefined
23
- }
24
- }
25
- }
26
- })
27
- const _cssChunk = Array.isArray(res) ? res[0] : res
28
- if (!('output' in _cssChunk)) return null
29
-
30
- return _cssChunk.output[0]
31
- }
32
-
33
- /**
34
- * @param {string} cssToInject
35
- * @param {string|null} styleId
36
- */
37
- function injectionCSSCodePlugin(cssToInject, styleId) {
38
- return {
39
- name: 'vite:injection-css-code-plugin',
40
- resolveId(id) {
41
- if (id == cssInjectedByJsId) {
42
- return id
43
- }
44
- },
45
- load(id) {
46
- if (id == cssInjectedByJsId) {
47
- const cssCode = JSON.stringify(cssToInject.trim())
48
-
49
- return `try {
50
- if (typeof document != 'undefined') {
51
- var elementStyle = document.createElement('style');
52
- ${typeof styleId == 'string' && styleId.length > 0 ? `elementStyle.id = '${styleId}';` : ''}
53
- elementStyle.appendChild(document.createTextNode(${cssCode}));
54
- document.head.appendChild(elementStyle);
55
- elementStyle.disabled = true;
56
- }
57
- } catch(e) {
58
- console.error('vite-plugin-css-injected-by-js', e);
59
- }`
60
- }
61
- }
62
- }
63
- }
64
-
65
- export function removeLinkStyleSheets(html, cssFileName) {
66
- const removeCSS = new RegExp(
67
- `<link rel=".*"[^>]*?href=".*/?${cssFileName}"[^>]*?>`
68
- )
69
- return html.replace(removeCSS, '')
70
- }