@textback/notification-widget 2.0.4 → 2.0.6-110502

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/.gitlab-ci.yml +2 -8
  2. package/{release/builds/textback/notificationwidget/build → build}/index.js +1 -1
  3. package/package.json +2 -2
  4. package/release/builds/textback/notificationwidget/.eslintrc.js +0 -291
  5. package/release/builds/textback/notificationwidget/.gitlab-ci.yml +0 -34
  6. package/release/builds/textback/notificationwidget/package-lock.json +0 -9985
  7. package/release/builds/textback/notificationwidget/package.json +0 -70
  8. package/release/builds/textback/notificationwidget/promote_tag.sh +0 -2
  9. package/release/builds/textback/notificationwidget/readme.md +0 -569
  10. package/release/builds/textback/notificationwidget/server.js +0 -224
  11. package/release/builds/textback/notificationwidget/src/libraries/ai.1.0.11.js +0 -4089
  12. package/release/builds/textback/notificationwidget/src/libraries/localization/getLocale.js +0 -17
  13. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/.tern-port +0 -1
  14. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/cs.js +0 -23
  15. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/en.js +0 -23
  16. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/index.js +0 -9
  17. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/pl.js +0 -23
  18. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/ro.js +0 -23
  19. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/ru.js +0 -22
  20. package/release/builds/textback/notificationwidget/src/libraries/localization/locales/uk.js +0 -23
  21. package/release/builds/textback/notificationwidget/src/libraries/localization/text.js +0 -9
  22. package/release/builds/textback/notificationwidget/src/libraries/t.js +0 -82
  23. package/release/builds/textback/notificationwidget/src/sdk/channels/channel.js +0 -31
  24. package/release/builds/textback/notificationwidget/src/sdk/channels/facebook.js +0 -13
  25. package/release/builds/textback/notificationwidget/src/sdk/channels/factory.js +0 -34
  26. package/release/builds/textback/notificationwidget/src/sdk/channels/skype.js +0 -13
  27. package/release/builds/textback/notificationwidget/src/sdk/channels/telegram.js +0 -18
  28. package/release/builds/textback/notificationwidget/src/sdk/channels/viber.js +0 -13
  29. package/release/builds/textback/notificationwidget/src/sdk/channels/vk-modal/vk-modal.html +0 -17
  30. package/release/builds/textback/notificationwidget/src/sdk/channels/vk-modal/vk-modal.js +0 -25
  31. package/release/builds/textback/notificationwidget/src/sdk/channels/vk-modal/vk-modal.scss +0 -116
  32. package/release/builds/textback/notificationwidget/src/sdk/channels/vk.js +0 -195
  33. package/release/builds/textback/notificationwidget/src/sdk/channels/whatsapp.js +0 -27
  34. package/release/builds/textback/notificationwidget/src/sdk/channels/whatsappb.js +0 -27
  35. package/release/builds/textback/notificationwidget/src/sdk/events/observer.js +0 -46
  36. package/release/builds/textback/notificationwidget/src/sdk/index.js +0 -6
  37. package/release/builds/textback/notificationwidget/src/sdk/sdk.entry.js +0 -1
  38. package/release/builds/textback/notificationwidget/src/sdk/sdk.js +0 -67
  39. package/release/builds/textback/notificationwidget/src/sdk/utils/apiErrorHandler.js +0 -12
  40. package/release/builds/textback/notificationwidget/src/sdk/utils/appInsights.js +0 -88
  41. package/release/builds/textback/notificationwidget/src/sdk/utils/browserInfo.js +0 -9
  42. package/release/builds/textback/notificationwidget/src/sdk/utils/constants.js +0 -18
  43. package/release/builds/textback/notificationwidget/src/sdk/utils/cookies.js +0 -67
  44. package/release/builds/textback/notificationwidget/src/sdk/utils/find.js +0 -8
  45. package/release/builds/textback/notificationwidget/src/sdk/utils/loadConfig.js +0 -21
  46. package/release/builds/textback/notificationwidget/src/sdk/utils/loadDeepLink.js +0 -48
  47. package/release/builds/textback/notificationwidget/src/sdk/utils/loadScript.js +0 -26
  48. package/release/builds/textback/notificationwidget/src/sdk/utils/loadSubscriptions.js +0 -6
  49. package/release/builds/textback/notificationwidget/src/sdk/utils/parseQueryString.js +0 -34
  50. package/release/builds/textback/notificationwidget/src/sdk/utils/windowHelper.js +0 -25
  51. package/release/builds/textback/notificationwidget/src/sdk/widget/widget.js +0 -192
  52. package/release/builds/textback/notificationwidget/src/widget/components/index.js +0 -52
  53. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/facebook.js +0 -55
  54. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/index.js +0 -35
  55. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/styles.scss +0 -657
  56. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/telegram.js +0 -55
  57. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/viber.js +0 -57
  58. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/vk.js +0 -92
  59. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/whatsapp.js +0 -58
  60. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-button/whatsappb.js +0 -58
  61. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-widget/index.js +0 -694
  62. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-widget/normalize.scss +0 -395
  63. package/release/builds/textback/notificationwidget/src/widget/components/tb-notification-widget/styles.scss +0 -543
  64. package/release/builds/textback/notificationwidget/src/widget/components/tb-nw-wahunter/index.js +0 -261
  65. package/release/builds/textback/notificationwidget/src/widget/components/tb-nw-wahunter/styles.scss +0 -471
  66. package/release/builds/textback/notificationwidget/src/widget/config.js +0 -5
  67. package/release/builds/textback/notificationwidget/src/widget/icons/bell-icon.png +0 -0
  68. package/release/builds/textback/notificationwidget/src/widget/icons/broadcast-icon.png +0 -0
  69. package/release/builds/textback/notificationwidget/src/widget/icons/icon_chat_window.svg +0 -1
  70. package/release/builds/textback/notificationwidget/src/widget/icons/icon_close.svg +0 -1
  71. package/release/builds/textback/notificationwidget/src/widget/icons/icon_facebook.svg +0 -7
  72. package/release/builds/textback/notificationwidget/src/widget/icons/icon_facebook_circle.svg +0 -7
  73. package/release/builds/textback/notificationwidget/src/widget/icons/icon_instagram_circle.svg +0 -96
  74. package/release/builds/textback/notificationwidget/src/widget/icons/icon_skype.svg +0 -44
  75. package/release/builds/textback/notificationwidget/src/widget/icons/icon_skype_circle.svg +0 -46
  76. package/release/builds/textback/notificationwidget/src/widget/icons/icon_skype_new.svg +0 -114
  77. package/release/builds/textback/notificationwidget/src/widget/icons/icon_tg.svg +0 -25
  78. package/release/builds/textback/notificationwidget/src/widget/icons/icon_tg_circle.svg +0 -17
  79. package/release/builds/textback/notificationwidget/src/widget/icons/icon_viber.svg +0 -75
  80. package/release/builds/textback/notificationwidget/src/widget/icons/icon_viber_circle.svg +0 -67
  81. package/release/builds/textback/notificationwidget/src/widget/icons/icon_viber_new.svg +0 -102
  82. package/release/builds/textback/notificationwidget/src/widget/icons/icon_vk.svg +0 -14
  83. package/release/builds/textback/notificationwidget/src/widget/icons/icon_vk_circle.svg +0 -16
  84. package/release/builds/textback/notificationwidget/src/widget/icons/icon_whatsapp.svg +0 -147
  85. package/release/builds/textback/notificationwidget/src/widget/icons/icon_whatsapp_circle.svg +0 -4
  86. package/release/builds/textback/notificationwidget/src/widget/icons/icon_whatsapp_hollow.svg +0 -128
  87. package/release/builds/textback/notificationwidget/src/widget/icons/icon_whatsapp_new.svg +0 -127
  88. package/release/builds/textback/notificationwidget/src/widget/icons/icon_whatsappb.svg +0 -147
  89. package/release/builds/textback/notificationwidget/src/widget/icons/icon_whatsappb_circle.svg +0 -4
  90. package/release/builds/textback/notificationwidget/src/widget/icons/icon_whatsappb_new.svg +0 -127
  91. package/release/builds/textback/notificationwidget/src/widget/icons/paper-plane-arrow.svg +0 -3
  92. package/release/builds/textback/notificationwidget/src/widget/icons/paper-plane-icon.png +0 -0
  93. package/release/builds/textback/notificationwidget/src/widget/icons/tb-logo-dark-en.svg +0 -17
  94. package/release/builds/textback/notificationwidget/src/widget/icons/tb-logo-dark-ru.svg +0 -17
  95. package/release/builds/textback/notificationwidget/src/widget/icons/tb-logo-dark.svg +0 -16
  96. package/release/builds/textback/notificationwidget/src/widget/icons/tb-logo-light-en.svg +0 -17
  97. package/release/builds/textback/notificationwidget/src/widget/icons/tb-logo-light-ru.svg +0 -17
  98. package/release/builds/textback/notificationwidget/src/widget/icons/tb-logo-white.svg +0 -16
  99. package/release/builds/textback/notificationwidget/src/widget/icons/tb-logo.svg +0 -16
  100. package/release/builds/textback/notificationwidget/src/widget/index.js +0 -29
  101. package/release/builds/textback/notificationwidget/src/widget/locales/cs.js +0 -42
  102. package/release/builds/textback/notificationwidget/src/widget/locales/en.js +0 -42
  103. package/release/builds/textback/notificationwidget/src/widget/locales/index.js +0 -9
  104. package/release/builds/textback/notificationwidget/src/widget/locales/pl.js +0 -42
  105. package/release/builds/textback/notificationwidget/src/widget/locales/ro.js +0 -41
  106. package/release/builds/textback/notificationwidget/src/widget/locales/ru.js +0 -41
  107. package/release/builds/textback/notificationwidget/src/widget/locales/uk.js +0 -41
  108. package/release/builds/textback/notificationwidget/src/widget/utils/cookiesEx.js +0 -41
  109. package/release/builds/textback/notificationwidget/src/widget/utils/getLocale.js +0 -17
  110. package/release/builds/textback/notificationwidget/src/widget/utils/stringifyAttributes.js +0 -19
  111. package/release/builds/textback/notificationwidget/src/widget/utils/text.js +0 -10
  112. package/release/builds/textback/notificationwidget/src/widget/utils/widgetsStorage.js +0 -28
  113. package/release/builds/textback/notificationwidget/src/widget/widget.entry.js +0 -3
  114. package/release/builds/textback/notificationwidget/tests/gf.html +0 -35
  115. package/release/builds/textback/notificationwidget/tests/gf.js +0 -22
  116. package/release/builds/textback/notificationwidget/tests/index.js +0 -62
  117. package/release/builds/textback/notificationwidget/views/examples.ejs +0 -51
  118. package/release/builds/textback/notificationwidget/views/sdk.html +0 -274
  119. package/release/builds/textback/notificationwidget/webpack.common.js +0 -72
  120. package/release/builds/textback/notificationwidget/webpack.dev.js +0 -15
  121. package/release/builds/textback/notificationwidget/webpack.prod.js +0 -10
  122. package/widget.tar.gz +0 -0
  123. /package/{release/builds/textback/notificationwidget/build → build}/sdk.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textback/notification-widget",
3
- "version": "2.0.4",
3
+ "version": "2.0.6-110502",
4
4
  "description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -67,4 +67,4 @@
67
67
  "uuid-js": "^0.7.5",
68
68
  "whatwg-fetch": "^2.0.3"
69
69
  }
70
- }
70
+ }
@@ -1,291 +0,0 @@
1
- module.exports = {
2
- "env": {
3
- "browser": true,
4
- "commonjs": true,
5
- "es6": true,
6
- "jest": true
7
- },
8
- "extends": "eslint:recommended",
9
- "rules": {
10
- "accessor-pairs": "error",
11
- "array-bracket-spacing": "error",
12
- "array-callback-return": "error",
13
- "arrow-body-style": "off",
14
- "arrow-parens": [
15
- "error",
16
- "as-needed"
17
- ],
18
- "arrow-spacing": [
19
- "error",
20
- {
21
- "after": true,
22
- "before": true
23
- }
24
- ],
25
- "block-scoped-var": "error",
26
- "block-spacing": [
27
- "error",
28
- "never"
29
- ],
30
- "brace-style": [
31
- "error",
32
- "1tbs",
33
- {
34
- "allowSingleLine": true
35
- }
36
- ],
37
- "callback-return": "error",
38
- "camelcase": "off",
39
- "capitalized-comments": "off",
40
- "class-methods-use-this": "off",
41
- "comma-dangle": "off",
42
- "comma-spacing": [
43
- "error",
44
- {
45
- "after": true,
46
- "before": false
47
- }
48
- ],
49
- "comma-style": [
50
- "error",
51
- "last"
52
- ],
53
- "complexity": "error",
54
- "computed-property-spacing": [
55
- "error",
56
- "never"
57
- ],
58
- "consistent-return": "error",
59
- "consistent-this": "error",
60
- "curly": "error",
61
- "default-case": "error",
62
- "dot-location": [
63
- "error",
64
- "property"
65
- ],
66
- "dot-notation": "error",
67
- "eol-last": "off",
68
- "eqeqeq": "off",
69
- "func-call-spacing": "error",
70
- "func-name-matching": "error",
71
- "func-names": [
72
- "error",
73
- "never"
74
- ],
75
- "func-style": ["error", "declaration"],
76
- "generator-star-spacing": "error",
77
- "global-require": "off",
78
- "guard-for-in": "error",
79
- "handle-callback-err": "error",
80
- "id-blacklist": "error",
81
- "id-length": "off",
82
- "id-match": "error",
83
- "indent": ["error", 2],
84
- "init-declarations": "error",
85
- "jsx-quotes": "error",
86
- "key-spacing": "error",
87
- "keyword-spacing": [
88
- "error",
89
- {
90
- "after": true,
91
- "before": true
92
- }
93
- ],
94
- "line-comment-position": "error",
95
- "linebreak-style": [
96
- "error",
97
- "unix"
98
- ],
99
- "lines-around-comment": "error",
100
- "lines-around-directive": "error",
101
- "max-depth": "error",
102
- "max-len": "off",
103
- "max-lines": "error",
104
- "max-nested-callbacks": "error",
105
- "max-params": "error",
106
- "max-statements": "error",
107
- "max-statements-per-line": "off",
108
- "multiline-ternary": "off",
109
- "new-cap": "error",
110
- "new-parens": "error",
111
- "newline-after-var": "off",
112
- "newline-before-return": "error",
113
- "newline-per-chained-call": "error",
114
- "no-alert": "error",
115
- "no-array-constructor": "error",
116
- "no-await-in-loop": "error",
117
- "no-bitwise": "error",
118
- "no-caller": "error",
119
- "no-catch-shadow": "error",
120
- "no-compare-neg-zero": "error",
121
- "no-confusing-arrow": "error",
122
- "no-continue": "error",
123
- "no-div-regex": "error",
124
- "no-duplicate-imports": "error",
125
- "no-else-return": "off",
126
- "no-empty-function": "off",
127
- "no-eq-null": "error",
128
- "no-eval": "error",
129
- "no-extend-native": "error",
130
- "no-extra-bind": "error",
131
- "no-extra-label": "error",
132
- "no-extra-parens": "error",
133
- "no-floating-decimal": "error",
134
- "no-implicit-coercion": "error",
135
- "no-implicit-globals": "error",
136
- "no-implied-eval": "error",
137
- "no-inline-comments": "error",
138
- "no-invalid-this": "error",
139
- "no-iterator": "error",
140
- "no-label-var": "error",
141
- "no-labels": "error",
142
- "no-lone-blocks": "error",
143
- "no-lonely-if": "error",
144
- "no-loop-func": "error",
145
- "no-magic-numbers": "off",
146
- "no-mixed-operators": "off",
147
- "no-mixed-requires": "error",
148
- "no-multi-assign": "off",
149
- "no-multi-spaces": "error",
150
- "no-multi-str": "error",
151
- "no-multiple-empty-lines": "error",
152
- "no-native-reassign": "error",
153
- "no-negated-condition": "error",
154
- "no-negated-in-lhs": "error",
155
- "no-nested-ternary": "error",
156
- "no-new": "off",
157
- "no-new-func": "error",
158
- "no-new-object": "error",
159
- "no-new-require": "error",
160
- "no-new-wrappers": "error",
161
- "no-octal-escape": "error",
162
- "no-param-reassign": "off",
163
- "no-path-concat": "error",
164
- "no-plusplus": [
165
- "error",
166
- {
167
- "allowForLoopAfterthoughts": true
168
- }
169
- ],
170
- "no-process-env": "error",
171
- "no-process-exit": "error",
172
- "no-proto": "error",
173
- "no-prototype-builtins": "error",
174
- "no-restricted-globals": "error",
175
- "no-restricted-imports": "error",
176
- "no-restricted-modules": "error",
177
- "no-restricted-properties": "error",
178
- "no-restricted-syntax": "error",
179
- "no-return-assign": "error",
180
- "no-return-await": "error",
181
- "no-script-url": "error",
182
- "no-self-compare": "error",
183
- "no-sequences": "error",
184
- "no-shadow": "error",
185
- "no-shadow-restricted-names": "error",
186
- "no-spaced-func": "error",
187
- "no-sync": "error",
188
- "no-tabs": "error",
189
- "no-template-curly-in-string": "error",
190
- "no-ternary": "off",
191
- "no-throw-literal": "error",
192
- "no-trailing-spaces": "error",
193
- "no-undef-init": "error",
194
- "no-undefined": "error",
195
- "no-unmodified-loop-condition": "error",
196
- "no-unneeded-ternary": "error",
197
- "no-unused-expressions": "error",
198
- "no-use-before-define": "error",
199
- "no-useless-call": "error",
200
- "no-useless-computed-key": "error",
201
- "no-useless-concat": "error",
202
- "no-useless-constructor": "off",
203
- "no-useless-escape": "error",
204
- "no-useless-rename": "error",
205
- "no-useless-return": "error",
206
- "no-var": "error",
207
- "no-void": "error",
208
- "no-warning-comments": "error",
209
- "no-whitespace-before-property": "error",
210
- "no-with": "error",
211
- "nonblock-statement-body-position": "error",
212
- "object-curly-newline": "off",
213
- "object-curly-spacing": [
214
- "error",
215
- "never"
216
- ],
217
- "object-property-newline": [
218
- "error",
219
- {
220
- "allowMultiplePropertiesPerLine": true
221
- }
222
- ],
223
- "object-shorthand": "error",
224
- "one-var": "off",
225
- "one-var-declaration-per-line": "error",
226
- "operator-assignment": "error",
227
- "operator-linebreak": "error",
228
- "padded-blocks": "off",
229
- "prefer-arrow-callback": "error",
230
- "prefer-const": "error",
231
- "prefer-destructuring": "error",
232
- "prefer-numeric-literals": "error",
233
- "prefer-promise-reject-errors": "off",
234
- "prefer-reflect": "off",
235
- "prefer-rest-params": "off",
236
- "prefer-spread": "error",
237
- "prefer-template": "error",
238
- "quote-props": "off",
239
- "quotes": "off",
240
- "radix": "error",
241
- "require-await": "error",
242
- "require-jsdoc": "off",
243
- "rest-spread-spacing": [
244
- "error",
245
- "never"
246
- ],
247
- "semi": "off",
248
- "semi-spacing": [
249
- "error",
250
- {
251
- "after": true,
252
- "before": false
253
- }
254
- ],
255
- "sort-imports": "error",
256
- "sort-keys": "off",
257
- "sort-vars": "error",
258
- "space-before-blocks": "off",
259
- "space-before-function-paren": "off",
260
- "space-in-parens": [
261
- "error",
262
- "never"
263
- ],
264
- "space-infix-ops": "error",
265
- "space-unary-ops": "error",
266
- "spaced-comment": "off",
267
- "strict": [
268
- "error",
269
- "never"
270
- ],
271
- "symbol-description": "error",
272
- "template-curly-spacing": [
273
- "error",
274
- "never"
275
- ],
276
- "template-tag-spacing": "error",
277
- "unicode-bom": [
278
- "error",
279
- "never"
280
- ],
281
- "valid-jsdoc": "error",
282
- "vars-on-top": "error",
283
- "wrap-iife": "error",
284
- "wrap-regex": "error",
285
- "yield-star-spacing": "error",
286
- "yoda": [
287
- "error",
288
- "never"
289
- ]
290
- }
291
- };
@@ -1,34 +0,0 @@
1
- variables:
2
- WORK_DIR: "$CI_PROJECT_DIR"
3
- SERVICE_NAME: "notificationwidget"
4
-
5
-
6
- image: node:8.17.0-alpine3.10
7
-
8
- stages:
9
- - build
10
- - release
11
-
12
- build:
13
- stage: build
14
- script:
15
- - npm install
16
- - npm run build
17
- - tar cvzf widget.tar.gz ${WORK_DIR}
18
- artifacts:
19
- when: always
20
- paths:
21
- - widget.tar.gz
22
- expire_in: 1 week
23
-
24
- release:
25
- stage: release
26
- script:
27
- - mkdir release
28
- - tar xvzf widget.tar.gz -C release
29
- - cd release
30
- - npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
31
- - cd ../
32
- - npm publish --verbose --access public
33
- # - sh ../promote_tag.sh
34
- when: manual