@bigbinary/neeto-editor 1.25.8 → 1.25.10

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 (3) hide show
  1. package/index.cjs.js +316 -512
  2. package/index.js +316 -512
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -27836,7 +27836,7 @@ var menu = {
27836
27836
  table: "Table",
27837
27837
  underline: "Underline",
27838
27838
  undo: "Undo",
27839
- variables: "Variables",
27839
+ "dynamic-variables": "Dynamic variables",
27840
27840
  "video-embed": "Video embed",
27841
27841
  "video-upload": "Video upload"
27842
27842
  };
@@ -84148,282 +84148,9 @@ if (typeof customElements !== 'undefined' && !customElements.get('em-emoji-picke
84148
84148
  var $b77bcf1206efff3f$exports = {};
84149
84149
  $b77bcf1206efff3f$exports = ":host {\n display: flex;\n width: -webkit-min-content;\n width: -moz-min-content;\n width: min-content;\n height: 435px;\n min-height: 230px;\n border-radius: var(--border-radius);\n box-shadow: var(--shadow);\n --border-radius: 10px;\n --category-icon-size: 18px;\n --font-family: -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", sans-serif;\n --font-size: 15px;\n --shadow-color: 0deg 0% 0%;\n --shadow:\n 0.3px 0.5px 2.7px hsl(var(--shadow-color) / 0.14),\n 0.4px 0.8px 1px -3.2px hsl(var(--shadow-color) / 0.14),\n 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / 0.14);\n}\n\n[data-theme=light] {\n --em-rgb-color: var(--rgb-color, 34, 36, 39);\n --em-rgb-accent: var(--rgb-accent, 34, 102, 237);\n --em-rgb-background: var(--rgb-background, 255, 255, 255);\n --em-rgb-input: var(--rgb-input, 255, 255, 255);\n --em-color-border: var(--color-border, rgba(0, 0, 0, .05));\n --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));\n}\n\n[data-theme=dark] {\n --em-rgb-color: var(--rgb-color, 222, 222, 221);\n --em-rgb-accent: var(--rgb-accent, 58, 130, 247);\n --em-rgb-background: var(--rgb-background, 21, 22, 23);\n --em-rgb-input: var(--rgb-input, 0, 0, 0);\n --em-color-border: var(--color-border, rgba(255, 255, 255, .1));\n --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));\n}\n\n#root {\n --color-a: rgb(var(--em-rgb-color));\n --color-b: rgba(var(--em-rgb-color), .65);\n --color-c: rgba(var(--em-rgb-color), .45);\n --padding: 12px;\n --padding-small: calc(var(--padding) / 2);\n --sidebar-width: 16px;\n --duration: 225ms;\n --duration-fast: 125ms;\n --duration-instant: 50ms;\n --easing: cubic-bezier(.4, .0, .2, 1);\n position: relative;\n width: 100%;\n text-align: left;\n border-radius: var(--border-radius);\n background-color: rgb(var(--em-rgb-background));\n}\n\n@media (prefers-reduced-motion) {\n #root {\n --duration: 0;\n --duration-fast: 0;\n --duration-instant: 0;\n }\n}\n\n#root[data-menu] button {\n cursor: auto;\n}\n\n#root[data-menu] .menu button {\n cursor: pointer;\n}\n\n:host, #root, input, button {\n color: rgb(var(--em-rgb-color));\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*, *:before, *:after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n min-width: 0;\n}\n\n.relative {\n position: relative;\n}\n\n.flex {\n display: flex;\n}\n\n.flex-auto {\n flex: 0 0 auto;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-column {\n flex-direction: column;\n}\n\n.flex-grow {\n flex: 1 1 auto;\n}\n\n.flex-middle {\n align-items: center;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.padding {\n padding: var(--padding);\n}\n\n.padding-t {\n padding-top: var(--padding);\n}\n\n.padding-lr {\n padding-left: var(--padding);\n padding-right: var(--padding);\n}\n\n.padding-r {\n padding-right: var(--padding);\n}\n\n.padding-small {\n padding: var(--padding-small);\n}\n\n.padding-small-b {\n padding-bottom: var(--padding-small);\n}\n\n.padding-small-lr {\n padding-left: var(--padding-small);\n padding-right: var(--padding-small);\n}\n\n.margin {\n margin: var(--padding);\n}\n\n.margin-r {\n margin-right: var(--padding);\n}\n\n.margin-l {\n margin-left: var(--padding);\n}\n\n.margin-small-l {\n margin-left: var(--padding-small);\n}\n\n.margin-small-lr {\n margin-left: var(--padding-small);\n margin-right: var(--padding-small);\n}\n\n.align-l {\n text-align: left;\n}\n\n.align-r {\n text-align: right;\n}\n\n.color-a {\n color: var(--color-a);\n}\n\n.color-b {\n color: var(--color-b);\n}\n\n.color-c {\n color: var(--color-c);\n}\n\n.ellipsis {\n white-space: nowrap;\n max-width: 100%;\n width: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.sr-only {\n position: absolute;\n left: -10000px;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\na {\n cursor: pointer;\n color: rgb(var(--em-rgb-accent));\n}\n\na:hover {\n text-decoration: underline;\n}\n\n.spacer {\n height: 10px;\n}\n\n.scroll {\n overflow: auto;\n overflow-x: hidden;\n padding-right: 0;\n}\n\n.scroll::-webkit-scrollbar {\n width: var(--sidebar-width);\n height: var(--sidebar-width);\n}\n\n.scroll::-webkit-scrollbar-track {\n border: 0;\n}\n\n.scroll::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n}\n\n.scroll::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n.scroll::-webkit-scrollbar-thumb {\n min-height: 20%;\n min-height: 65px;\n border: 4px solid rgb(var(--em-rgb-background));\n border-radius: 8px;\n}\n\n.scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--em-color-border-over) !important;\n}\n\n.scroll:hover::-webkit-scrollbar-thumb {\n background-color: var(--em-color-border);\n}\n\n.sticky {\n position: -webkit-sticky;\n position: sticky;\n z-index: 1;\n top: -1px;\n font-weight: 500;\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n}\n\n.search {\n z-index: 2;\n position: relative;\n}\n\n.search input, .search button {\n font-size: calc(var(--font-size) - 1px);\n}\n\n.search input[type=search] {\n display: block;\n border: 0;\n outline: 0;\n width: 100%;\n padding: 10px 2em 10px 2.2em;\n border-radius: 10px;\n background-color: var(--em-color-border);\n transition-duration: var(--duration);\n transition-property: background-color, box-shadow;\n transition-timing-function: var(--easing);\n}\n\n.search input[type=search]::-moz-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]:-ms-input-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]::placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search], .search input[type=search]::-webkit-search-decoration, .search input[type=search]::-webkit-search-cancel-button, .search input[type=search]::-webkit-search-results-button, .search input[type=search]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n}\n\n.search input[type=search]:focus {\n background-color: rgb(var(--em-rgb-input));\n box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, 0.2);\n}\n\n.search .icon {\n z-index: 1;\n position: absolute;\n top: 50%;\n color: rgba(var(--em-rgb-color), 0.7);\n transform: translateY(-50%);\n}\n\n.search .loupe {\n left: 0.7em;\n pointer-events: none;\n}\n\n.search .delete {\n right: 0.7em;\n}\n\nsvg {\n fill: currentColor;\n width: 1em;\n height: 1em;\n}\n\nbutton {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n cursor: pointer;\n color: currentColor;\n border: 0;\n background-color: transparent;\n}\n\n#nav {\n z-index: 2;\n position: relative;\n padding-top: 12px;\n padding-bottom: 12px;\n padding-right: var(--sidebar-width);\n}\n\n#nav button {\n color: var(--color-b);\n transition: color var(--duration) var(--easing);\n}\n\n#nav button:hover {\n color: var(--color-a);\n}\n\n#nav svg, #nav img {\n width: var(--category-icon-size);\n height: var(--category-icon-size);\n}\n\n#nav .bar {\n position: absolute;\n bottom: -12px;\n left: 0;\n width: 100%;\n height: 3px;\n background-color: rgb(var(--em-rgb-accent));\n border-radius: 3px 3px 0 0;\n transition: transform var(--duration) var(--easing);\n}\n\n#nav button[aria-selected] {\n color: rgb(var(--em-rgb-accent));\n}\n\n#preview {\n z-index: 2;\n position: relative;\n padding: calc(var(--padding) + 4px) var(--padding);\n padding-right: var(--sidebar-width);\n}\n\n#nav:before, #preview:before {\n content: \"\";\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n}\n\n#nav[data-position=top]:before, #preview[data-position=top]:before {\n top: 100%;\n background: linear-gradient(to bottom, var(--em-color-border), transparent);\n}\n\n#nav[data-position=bottom]:before, #preview[data-position=bottom]:before {\n bottom: 100%;\n background: linear-gradient(to top, var(--em-color-border), transparent);\n}\n\n.category button {\n position: relative;\n font-family: -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", sans-serif;\n}\n\n.category button > * {\n position: relative;\n}\n\n.category button .background {\n position: absolute;\n inset: 0;\n opacity: 0;\n background-color: var(--em-color-border);\n transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);\n}\n\n.category button:hover .background {\n transition-duration: var(--duration-instant);\n transition-delay: 0ms;\n}\n\n.category button[aria-selected] .background {\n opacity: 1;\n}\n\n.category button[data-keyboard] .background {\n transition: none;\n}\n\n.row {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.skin-tone-button {\n border-radius: 100%;\n border: 1px solid transparent;\n}\n\n.skin-tone-button:hover {\n border-color: var(--em-color-border);\n}\n\n.skin-tone-button:active .skin-tone {\n transform: scale(0.85) !important;\n}\n\n.skin-tone-button .skin-tone {\n transition: transform var(--duration) var(--easing);\n}\n\n.skin-tone-button[aria-selected] {\n border-left-width: 0;\n border-right-width: 0;\n border-top-color: rgba(0, 0, 0, 0.05);\n border-bottom-color: transparent;\n background-color: var(--em-color-border);\n}\n\n.skin-tone-button[aria-selected] .skin-tone {\n transform: scale(0.9);\n}\n\n.menu {\n z-index: 2;\n position: absolute;\n white-space: nowrap;\n padding: 4px;\n border: 1px solid var(--em-color-border);\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n border-radius: 10px;\n box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.05);\n transition-property: opacity, transform;\n transition-duration: var(--duration);\n transition-timing-function: var(--easing);\n}\n\n.menu.hidden {\n opacity: 0;\n}\n\n.menu[data-position=bottom] {\n transform-origin: bottom right;\n}\n\n.menu[data-position=bottom].hidden {\n transform: scale(0.9) rotate(-3deg) translateY(5%);\n}\n\n.menu[data-position=top] {\n transform-origin: top right;\n}\n\n.menu[data-position=top].hidden {\n transform: scale(0.9) rotate(3deg) translateY(-5%);\n}\n\n.menu input[type=radio] {\n position: absolute;\n overflow: hidden;\n clip: rect(0 0 0 0);\n width: 1px;\n height: 1px;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\n.menu input[type=radio]:checked + .option {\n box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));\n}\n\n.option {\n width: 100%;\n padding: 4px 6px;\n border-radius: 6px;\n}\n\n.option:hover {\n color: #fff;\n background-color: rgb(var(--em-rgb-accent));\n}\n\n.skin-tone {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 100%;\n overflow: hidden;\n}\n\n.skin-tone:after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: 100%;\n border: 1px solid rgba(0, 0, 0, 0.8);\n mix-blend-mode: overlay;\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);\n}\n\n.skin-tone-1 {\n background-color: #ffc93a;\n}\n\n.skin-tone-2 {\n background-color: #ffdab7;\n}\n\n.skin-tone-3 {\n background-color: #e7b98f;\n}\n\n.skin-tone-4 {\n background-color: #c88c61;\n}\n\n.skin-tone-5 {\n background-color: #a46134;\n}\n\n.skin-tone-6 {\n background-color: #5d4437;\n}\n\n[data-emoji-set=twitter] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.5);\n box-shadow: none;\n}\n\n[data-emoji-set=twitter] .skin-tone-1 {\n background-color: #FADE72;\n}\n\n[data-emoji-set=twitter] .skin-tone-2 {\n background-color: #F3DFD0;\n}\n\n[data-emoji-set=twitter] .skin-tone-3 {\n background-color: #EED3A8;\n}\n\n[data-emoji-set=twitter] .skin-tone-4 {\n background-color: #CFAD8D;\n}\n\n[data-emoji-set=twitter] .skin-tone-5 {\n background-color: #A8805D;\n}\n\n[data-emoji-set=twitter] .skin-tone-6 {\n background-color: #765542;\n}\n\n[data-emoji-set=google] .skin-tone:after {\n box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.4);\n}\n\n[data-emoji-set=google] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=google] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=google] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=google] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=google] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=google] .skin-tone-6 {\n background-color: #61493F;\n}\n\n[data-emoji-set=facebook] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.4);\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;\n}\n\n[data-emoji-set=facebook] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=facebook] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=facebook] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=facebook] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=facebook] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=facebook] .skin-tone-6 {\n background-color: #61493F;\n}\n";
84150
84150
 
84151
- function cov_226kerpgip() {
84152
- var path = "/home/runner/work/neeto-editor/neeto-editor/src/apis/axios.js";
84153
- var hash = "dd4f83503d27500d73b349e899f9b0b82acc5a63";
84154
- var global = new Function("return this")();
84155
- var gcv = "__coverage__";
84156
- var coverageData = {
84157
- path: "/home/runner/work/neeto-editor/neeto-editor/src/apis/axios.js",
84158
- statementMap: {
84159
- "0": {
84160
- start: {
84161
- line: 3,
84162
- column: 28
84163
- },
84164
- end: {
84165
- line: 8,
84166
- column: 2
84167
- }
84168
- },
84169
- "1": {
84170
- start: {
84171
- line: 10,
84172
- column: 0
84173
- },
84174
- end: {
84175
- line: 13,
84176
- column: 2
84177
- }
84178
- },
84179
- "2": {
84180
- start: {
84181
- line: 11,
84182
- column: 14
84183
- },
84184
- end: {
84185
- line: 11,
84186
- column: 44
84187
- }
84188
- },
84189
- "3": {
84190
- start: {
84191
- line: 12,
84192
- column: 11
84193
- },
84194
- end: {
84195
- line: 12,
84196
- column: 32
84197
- }
84198
- },
84199
- "4": {
84200
- start: {
84201
- line: 15,
84202
- column: 29
84203
- },
84204
- end: {
84205
- line: 19,
84206
- column: 1
84207
- }
84208
- },
84209
- "5": {
84210
- start: {
84211
- line: 16,
84212
- column: 48
84213
- },
84214
- end: {
84215
- line: 16,
84216
- column: 63
84217
- }
84218
- },
84219
- "6": {
84220
- start: {
84221
- line: 18,
84222
- column: 2
84223
- },
84224
- end: {
84225
- line: 18,
84226
- column: 62
84227
- }
84228
- }
84229
- },
84230
- fnMap: {
84231
- "0": {
84232
- name: "(anonymous_0)",
84233
- decl: {
84234
- start: {
84235
- line: 11,
84236
- column: 2
84237
- },
84238
- end: {
84239
- line: 11,
84240
- column: 3
84241
- }
84242
- },
84243
- loc: {
84244
- start: {
84245
- line: 11,
84246
- column: 14
84247
- },
84248
- end: {
84249
- line: 11,
84250
- column: 44
84251
- }
84252
- },
84253
- line: 11
84254
- },
84255
- "1": {
84256
- name: "(anonymous_1)",
84257
- decl: {
84258
- start: {
84259
- line: 12,
84260
- column: 2
84261
- },
84262
- end: {
84263
- line: 12,
84264
- column: 3
84265
- }
84266
- },
84267
- loc: {
84268
- start: {
84269
- line: 12,
84270
- column: 11
84271
- },
84272
- end: {
84273
- line: 12,
84274
- column: 32
84275
- }
84276
- },
84277
- line: 12
84278
- },
84279
- "2": {
84280
- name: "(anonymous_2)",
84281
- decl: {
84282
- start: {
84283
- line: 15,
84284
- column: 29
84285
- },
84286
- end: {
84287
- line: 15,
84288
- column: 30
84289
- }
84290
- },
84291
- loc: {
84292
- start: {
84293
- line: 15,
84294
- column: 41
84295
- },
84296
- end: {
84297
- line: 19,
84298
- column: 1
84299
- }
84300
- },
84301
- line: 15
84302
- }
84303
- },
84304
- branchMap: {
84305
- "0": {
84306
- loc: {
84307
- start: {
84308
- line: 16,
84309
- column: 10
84310
- },
84311
- end: {
84312
- line: 16,
84313
- column: 43
84314
- }
84315
- },
84316
- type: "default-arg",
84317
- locations: [{
84318
- start: {
84319
- line: 16,
84320
- column: 38
84321
- },
84322
- end: {
84323
- line: 16,
84324
- column: 43
84325
- }
84326
- }],
84327
- line: 16
84328
- },
84329
- "1": {
84330
- loc: {
84331
- start: {
84332
- line: 18,
84333
- column: 9
84334
- },
84335
- end: {
84336
- line: 18,
84337
- column: 61
84338
- }
84339
- },
84340
- type: "cond-expr",
84341
- locations: [{
84342
- start: {
84343
- line: 18,
84344
- column: 37
84345
- },
84346
- end: {
84347
- line: 18,
84348
- column: 45
84349
- }
84350
- }, {
84351
- start: {
84352
- line: 18,
84353
- column: 48
84354
- },
84355
- end: {
84356
- line: 18,
84357
- column: 61
84358
- }
84359
- }],
84360
- line: 18
84361
- }
84362
- },
84363
- s: {
84364
- "0": 0,
84365
- "1": 0,
84366
- "2": 0,
84367
- "3": 0,
84368
- "4": 0,
84369
- "5": 0,
84370
- "6": 0
84371
- },
84372
- f: {
84373
- "0": 0,
84374
- "1": 0,
84375
- "2": 0
84376
- },
84377
- b: {
84378
- "0": [0],
84379
- "1": [0, 0]
84380
- },
84381
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
84382
- hash: "dd4f83503d27500d73b349e899f9b0b82acc5a63"
84383
- };
84384
- var coverage = global[gcv] || (global[gcv] = {});
84385
- if (!coverage[path] || coverage[path].hash !== hash) {
84386
- coverage[path] = coverageData;
84387
- }
84388
- var actualCoverage = coverage[path];
84389
- {
84390
- // @ts-ignore
84391
- cov_226kerpgip = function () {
84392
- return actualCoverage;
84393
- };
84394
- }
84395
- return actualCoverage;
84396
- }
84397
- cov_226kerpgip();
84398
- var axiosEditorInstance = (cov_226kerpgip().s[0]++, axios__default["default"].create({
84399
- headers: {
84400
- "Content-Type": "application/json",
84401
- Accept: "application/json"
84402
- }
84403
- }));
84404
- cov_226kerpgip().s[1]++;
84405
- axiosEditorInstance.interceptors.response.use(function (response) {
84406
- cov_226kerpgip().f[0]++;
84407
- cov_226kerpgip().s[2]++;
84408
- return pullDataFromResponse(response);
84409
- }, function (error) {
84410
- cov_226kerpgip().f[1]++;
84411
- cov_226kerpgip().s[3]++;
84412
- return Promise.reject(error);
84413
- });
84414
- cov_226kerpgip().s[4]++;
84415
- var pullDataFromResponse = function pullDataFromResponse(response) {
84416
- cov_226kerpgip().f[2]++;
84417
- var _ref = (cov_226kerpgip().s[5]++, response.config),
84418
- _ref$includeMetadataI = _ref.includeMetadataInResponse,
84419
- includeMetadataInResponse = _ref$includeMetadataI === void 0 ? (cov_226kerpgip().b[0][0]++, false) : _ref$includeMetadataI;
84420
- cov_226kerpgip().s[6]++;
84421
- return includeMetadataInResponse ? (cov_226kerpgip().b[1][0]++, response) : (cov_226kerpgip().b[1][1]++, response.data);
84422
- };
84423
-
84424
84151
  function cov_1zmyuy8mgp() {
84425
84152
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/apis/emoji_picker.js";
84426
- var hash = "e0414d5a591a5e35beb18a0849f558e2e0990f5b";
84153
+ var hash = "3ff6dd958828d335dd9a111c3afc23b86044f3fd";
84427
84154
  var global = new Function("return this")();
84428
84155
  var gcv = "__coverage__";
84429
84156
  var coverageData = {
@@ -84435,27 +84162,27 @@ function cov_1zmyuy8mgp() {
84435
84162
  column: 14
84436
84163
  },
84437
84164
  end: {
84438
- line: 4,
84439
- column: 74
84165
+ line: 3,
84166
+ column: 78
84440
84167
  }
84441
84168
  },
84442
84169
  "1": {
84443
84170
  start: {
84444
- line: 4,
84445
- column: 2
84171
+ line: 3,
84172
+ column: 20
84446
84173
  },
84447
84174
  end: {
84448
- line: 4,
84449
- column: 74
84175
+ line: 3,
84176
+ column: 78
84450
84177
  }
84451
84178
  },
84452
84179
  "2": {
84453
84180
  start: {
84454
- line: 6,
84181
+ line: 5,
84455
84182
  column: 23
84456
84183
  },
84457
84184
  end: {
84458
- line: 6,
84185
+ line: 5,
84459
84186
  column: 32
84460
84187
  }
84461
84188
  }
@@ -84475,15 +84202,15 @@ function cov_1zmyuy8mgp() {
84475
84202
  },
84476
84203
  loc: {
84477
84204
  start: {
84478
- line: 4,
84479
- column: 2
84205
+ line: 3,
84206
+ column: 20
84480
84207
  },
84481
84208
  end: {
84482
- line: 4,
84483
- column: 74
84209
+ line: 3,
84210
+ column: 78
84484
84211
  }
84485
84212
  },
84486
- line: 4
84213
+ line: 3
84487
84214
  }
84488
84215
  },
84489
84216
  branchMap: {},
@@ -84497,7 +84224,7 @@ function cov_1zmyuy8mgp() {
84497
84224
  },
84498
84225
  b: {},
84499
84226
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
84500
- hash: "e0414d5a591a5e35beb18a0849f558e2e0990f5b"
84227
+ hash: "3ff6dd958828d335dd9a111c3afc23b86044f3fd"
84501
84228
  };
84502
84229
  var coverage = global[gcv] || (global[gcv] = {});
84503
84230
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -84517,7 +84244,7 @@ cov_1zmyuy8mgp().s[0]++;
84517
84244
  var fetch$1 = function fetch() {
84518
84245
  cov_1zmyuy8mgp().f[0]++;
84519
84246
  cov_1zmyuy8mgp().s[1]++;
84520
- return axiosEditorInstance.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");
84247
+ return axios__default["default"].get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");
84521
84248
  };
84522
84249
  var emojiPickerApi = (cov_1zmyuy8mgp().s[2]++, {
84523
84250
  fetch: fetch$1
@@ -90465,7 +90192,7 @@ var ImageComponent = function ImageComponent(_ref) {
90465
90192
  var _excluded$9 = ["caption"];
90466
90193
  function cov_ksv9azglk() {
90467
90194
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ExtensionConfig.js";
90468
- var hash = "a2163f27c0f3b44f766a56187cd5e531bbf9649c";
90195
+ var hash = "ad9a8b83ac5e42d49048942f55c0d689c9d8f09f";
90469
90196
  var global = new Function("return this")();
90470
90197
  var gcv = "__coverage__";
90471
90198
  var coverageData = {
@@ -90704,11 +90431,11 @@ function cov_ksv9azglk() {
90704
90431
  "23": {
90705
90432
  start: {
90706
90433
  line: 138,
90707
- column: 24
90434
+ column: 21
90708
90435
  },
90709
90436
  end: {
90710
90437
  line: 138,
90711
- column: 47
90438
+ column: 44
90712
90439
  }
90713
90440
  },
90714
90441
  "24": {
@@ -90718,7 +90445,7 @@ function cov_ksv9azglk() {
90718
90445
  },
90719
90446
  end: {
90720
90447
  line: 140,
90721
- column: 19
90448
+ column: 56
90722
90449
  }
90723
90450
  },
90724
90451
  "25": {
@@ -91462,6 +91189,39 @@ function cov_ksv9azglk() {
91462
91189
  line: 136
91463
91190
  },
91464
91191
  "2": {
91192
+ loc: {
91193
+ start: {
91194
+ line: 140,
91195
+ column: 11
91196
+ },
91197
+ end: {
91198
+ line: 140,
91199
+ column: 55
91200
+ }
91201
+ },
91202
+ type: "binary-expr",
91203
+ locations: [{
91204
+ start: {
91205
+ line: 140,
91206
+ column: 11
91207
+ },
91208
+ end: {
91209
+ line: 140,
91210
+ column: 34
91211
+ }
91212
+ }, {
91213
+ start: {
91214
+ line: 140,
91215
+ column: 38
91216
+ },
91217
+ end: {
91218
+ line: 140,
91219
+ column: 55
91220
+ }
91221
+ }],
91222
+ line: 140
91223
+ },
91224
+ "3": {
91465
91225
  loc: {
91466
91226
  start: {
91467
91227
  line: 166,
@@ -91494,7 +91254,7 @@ function cov_ksv9azglk() {
91494
91254
  }],
91495
91255
  line: 166
91496
91256
  },
91497
- "3": {
91257
+ "4": {
91498
91258
  loc: {
91499
91259
  start: {
91500
91260
  line: 172,
@@ -91527,7 +91287,7 @@ function cov_ksv9azglk() {
91527
91287
  }],
91528
91288
  line: 172
91529
91289
  },
91530
- "4": {
91290
+ "5": {
91531
91291
  loc: {
91532
91292
  start: {
91533
91293
  line: 180,
@@ -91634,10 +91394,11 @@ function cov_ksv9azglk() {
91634
91394
  "1": [0, 0],
91635
91395
  "2": [0, 0],
91636
91396
  "3": [0, 0],
91637
- "4": [0, 0]
91397
+ "4": [0, 0],
91398
+ "5": [0, 0]
91638
91399
  },
91639
91400
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
91640
- hash: "a2163f27c0f3b44f766a56187cd5e531bbf9649c"
91401
+ hash: "ad9a8b83ac5e42d49048942f55c0d689c9d8f09f"
91641
91402
  };
91642
91403
  var coverage = global[gcv] || (global[gcv] = {});
91643
91404
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -91797,14 +91558,14 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
91797
91558
  cov_ksv9azglk().s[20]++;
91798
91559
  var upload = /*#__PURE__*/function () {
91799
91560
  var _ref7 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(file, url) {
91800
- var uploader, _ref8, blobUrl, imageSizeInMB;
91561
+ var _response$data, uploader, response, imageSizeInMB;
91801
91562
  return regenerator.wrap(function _callee$(_context) {
91802
91563
  while (1) switch (_context.prev = _context.next) {
91803
91564
  case 0:
91804
91565
  cov_ksv9azglk().f[14]++;
91805
91566
  cov_ksv9azglk().s[21]++;
91806
91567
  if (!(file.size <= MAX_IMAGE_SIZE)) {
91807
- _context.next = 14;
91568
+ _context.next = 13;
91808
91569
  break;
91809
91570
  }
91810
91571
  cov_ksv9azglk().b[1][0]++;
@@ -91816,19 +91577,18 @@ var upload = /*#__PURE__*/function () {
91816
91577
  _context.next = 8;
91817
91578
  return uploader.create();
91818
91579
  case 8:
91819
- _ref8 = _context.sent;
91820
- blobUrl = _ref8.blobUrl;
91580
+ response = _context.sent;
91821
91581
  cov_ksv9azglk().s[24]++;
91822
- return _context.abrupt("return", blobUrl);
91823
- case 14:
91582
+ return _context.abrupt("return", (cov_ksv9azglk().b[2][0]++, (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.blob_url) || (cov_ksv9azglk().b[2][1]++, response.blob_url));
91583
+ case 13:
91824
91584
  cov_ksv9azglk().b[1][1]++;
91825
- case 15:
91585
+ case 14:
91826
91586
  imageSizeInMB = (cov_ksv9azglk().s[25]++, MAX_IMAGE_SIZE / (1024 * 1024));
91827
91587
  cov_ksv9azglk().s[26]++;
91828
91588
  neetoui.Toastr.error("Image size should be less than ".concat(imageSizeInMB, " MB"));
91829
91589
  cov_ksv9azglk().s[27]++;
91830
91590
  return _context.abrupt("return", "");
91831
- case 20:
91591
+ case 19:
91832
91592
  case "end":
91833
91593
  return _context.stop();
91834
91594
  }
@@ -91839,8 +91599,8 @@ var upload = /*#__PURE__*/function () {
91839
91599
  };
91840
91600
  }();
91841
91601
  var ImageExtension$1 = {
91842
- configure: function configure(_ref9) {
91843
- var uploadEndpoint = _ref9.uploadEndpoint;
91602
+ configure: function configure(_ref8) {
91603
+ var uploadEndpoint = _ref8.uploadEndpoint;
91844
91604
  cov_ksv9azglk().f[15]++;
91845
91605
  cov_ksv9azglk().s[28]++;
91846
91606
  return ImageExtension.extend({
@@ -91853,17 +91613,17 @@ var ImageExtension$1 = {
91853
91613
  paste: function paste(view, event) {
91854
91614
  var _event$clipboardData, _event$clipboardData$;
91855
91615
  cov_ksv9azglk().f[17]++;
91856
- var _ref10 = (cov_ksv9azglk().s[30]++, view.state),
91857
- schema = _ref10.schema,
91858
- pos = _ref10.selection.$anchor.pos;
91616
+ var _ref9 = (cov_ksv9azglk().s[30]++, view.state),
91617
+ schema = _ref9.schema,
91618
+ pos = _ref9.selection.$anchor.pos;
91859
91619
  var hasFiles = (cov_ksv9azglk().s[31]++, (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : (_event$clipboardData$ = _event$clipboardData.files) === null || _event$clipboardData$ === void 0 ? void 0 : _event$clipboardData$.length);
91860
91620
  cov_ksv9azglk().s[32]++;
91861
91621
  if (!hasFiles) {
91862
- cov_ksv9azglk().b[2][0]++;
91622
+ cov_ksv9azglk().b[3][0]++;
91863
91623
  cov_ksv9azglk().s[33]++;
91864
91624
  return;
91865
91625
  } else {
91866
- cov_ksv9azglk().b[2][1]++;
91626
+ cov_ksv9azglk().b[3][1]++;
91867
91627
  }
91868
91628
  var images = (cov_ksv9azglk().s[34]++, Array.from(event.clipboardData.files).filter(function (file) {
91869
91629
  cov_ksv9azglk().f[18]++;
@@ -91872,17 +91632,17 @@ var ImageExtension$1 = {
91872
91632
  }));
91873
91633
  cov_ksv9azglk().s[36]++;
91874
91634
  if (ramda.isEmpty(images)) {
91875
- cov_ksv9azglk().b[3][0]++;
91635
+ cov_ksv9azglk().b[4][0]++;
91876
91636
  cov_ksv9azglk().s[37]++;
91877
91637
  return;
91878
91638
  } else {
91879
- cov_ksv9azglk().b[3][1]++;
91639
+ cov_ksv9azglk().b[4][1]++;
91880
91640
  }
91881
91641
  cov_ksv9azglk().s[38]++;
91882
91642
  event.preventDefault();
91883
91643
  cov_ksv9azglk().s[39]++;
91884
91644
  images.forEach( /*#__PURE__*/function () {
91885
- var _ref11 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
91645
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
91886
91646
  var node, transaction;
91887
91647
  return regenerator.wrap(function _callee2$(_context2) {
91888
91648
  while (1) switch (_context2.prev = _context2.next) {
@@ -91900,12 +91660,12 @@ var ImageExtension$1 = {
91900
91660
  node = _context2.t0.create.call(_context2.t0, _context2.t2);
91901
91661
  cov_ksv9azglk().s[41]++;
91902
91662
  if (node.attrs.src) {
91903
- cov_ksv9azglk().b[4][0]++;
91663
+ cov_ksv9azglk().b[5][0]++;
91904
91664
  transaction = (cov_ksv9azglk().s[42]++, view.state.tr.insert(pos, node));
91905
91665
  cov_ksv9azglk().s[43]++;
91906
91666
  view.dispatch(transaction);
91907
91667
  } else {
91908
- cov_ksv9azglk().b[4][1]++;
91668
+ cov_ksv9azglk().b[5][1]++;
91909
91669
  }
91910
91670
  case 10:
91911
91671
  case "end":
@@ -91914,7 +91674,7 @@ var ImageExtension$1 = {
91914
91674
  }, _callee2);
91915
91675
  }));
91916
91676
  return function (_x3) {
91917
- return _ref11.apply(this, arguments);
91677
+ return _ref10.apply(this, arguments);
91918
91678
  };
91919
91679
  }());
91920
91680
  }
@@ -112088,7 +111848,7 @@ var searchUnsplashImages = function searchUnsplashImages(_ref) {
112088
111848
  apiKey = _ref.apiKey;
112089
111849
  cov_38kboi50e().f[0]++;
112090
111850
  cov_38kboi50e().s[1]++;
112091
- return axiosEditorInstance.get(UNSPLASH_BASE_URL, {
111851
+ return axios__default["default"].get(UNSPLASH_BASE_URL, {
112092
111852
  headers: {
112093
111853
  Authorization: "Client-ID ".concat(apiKey)
112094
111854
  },
@@ -112379,7 +112139,7 @@ var useDebounce = function useDebounce(value) {
112379
112139
 
112380
112140
  function cov_2d0jax9c7z() {
112381
112141
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/MediaUploader/UnsplashImagePicker.jsx";
112382
- var hash = "de3ff2456b710747b7ef48ceb38fc181fef63859";
112142
+ var hash = "2f3b5248e854f26589712f714deeef8357b6edaa";
112383
112143
  var global = new Function("return this")();
112384
112144
  var gcv = "__coverage__";
112385
112145
  var coverageData = {
@@ -112391,7 +112151,7 @@ function cov_2d0jax9c7z() {
112391
112151
  column: 28
112392
112152
  },
112393
112153
  end: {
112394
- line: 155,
112154
+ line: 156,
112395
112155
  column: 1
112396
112156
  }
112397
112157
  },
@@ -112511,7 +112271,7 @@ function cov_2d0jax9c7z() {
112511
112271
  column: 30
112512
112272
  },
112513
112273
  end: {
112514
- line: 52,
112274
+ line: 53,
112515
112275
  column: 3
112516
112276
  }
112517
112277
  },
@@ -112521,7 +112281,7 @@ function cov_2d0jax9c7z() {
112521
112281
  column: 4
112522
112282
  },
112523
112283
  end: {
112524
- line: 51,
112284
+ line: 52,
112525
112285
  column: 5
112526
112286
  }
112527
112287
  },
@@ -112548,7 +112308,7 @@ function cov_2d0jax9c7z() {
112548
112308
  "16": {
112549
112309
  start: {
112550
112310
  line: 33,
112551
- column: 39
112311
+ column: 23
112552
112312
  },
112553
112313
  end: {
112554
112314
  line: 37,
@@ -112557,42 +112317,42 @@ function cov_2d0jax9c7z() {
112557
112317
  },
112558
112318
  "17": {
112559
112319
  start: {
112560
- line: 39,
112561
- column: 6
112320
+ line: 38,
112321
+ column: 39
112562
112322
  },
112563
112323
  end: {
112564
- line: 43,
112565
- column: 7
112324
+ line: 38,
112325
+ column: 64
112566
112326
  }
112567
112327
  },
112568
112328
  "18": {
112569
112329
  start: {
112570
112330
  line: 40,
112571
- column: 8
112331
+ column: 6
112572
112332
  },
112573
112333
  end: {
112574
- line: 40,
112575
- column: 27
112334
+ line: 44,
112335
+ column: 7
112576
112336
  }
112577
112337
  },
112578
112338
  "19": {
112579
112339
  start: {
112580
- line: 42,
112340
+ line: 41,
112581
112341
  column: 8
112582
112342
  },
112583
112343
  end: {
112584
- line: 42,
112585
- column: 43
112344
+ line: 41,
112345
+ column: 27
112586
112346
  }
112587
112347
  },
112588
112348
  "20": {
112589
112349
  start: {
112590
- line: 45,
112591
- column: 6
112350
+ line: 43,
112351
+ column: 8
112592
112352
  },
112593
112353
  end: {
112594
- line: 45,
112595
- column: 26
112354
+ line: 43,
112355
+ column: 43
112596
112356
  }
112597
112357
  },
112598
112358
  "21": {
@@ -112602,116 +112362,126 @@ function cov_2d0jax9c7z() {
112602
112362
  },
112603
112363
  end: {
112604
112364
  line: 46,
112605
- column: 37
112365
+ column: 26
112606
112366
  }
112607
112367
  },
112608
112368
  "22": {
112609
112369
  start: {
112610
- line: 48,
112370
+ line: 47,
112611
112371
  column: 6
112612
112372
  },
112613
112373
  end: {
112614
- line: 48,
112615
- column: 21
112374
+ line: 47,
112375
+ column: 37
112616
112376
  }
112617
112377
  },
112618
112378
  "23": {
112619
112379
  start: {
112620
- line: 50,
112380
+ line: 49,
112621
112381
  column: 6
112622
112382
  },
112623
112383
  end: {
112624
- line: 50,
112625
- column: 24
112384
+ line: 49,
112385
+ column: 21
112626
112386
  }
112627
112387
  },
112628
112388
  "24": {
112629
112389
  start: {
112630
- line: 54,
112631
- column: 19
112390
+ line: 51,
112391
+ column: 6
112632
112392
  },
112633
112393
  end: {
112634
- line: 58,
112635
- column: 3
112394
+ line: 51,
112395
+ column: 24
112636
112396
  }
112637
112397
  },
112638
112398
  "25": {
112639
112399
  start: {
112640
112400
  line: 55,
112401
+ column: 19
112402
+ },
112403
+ end: {
112404
+ line: 59,
112405
+ column: 3
112406
+ }
112407
+ },
112408
+ "26": {
112409
+ start: {
112410
+ line: 56,
112641
112411
  column: 4
112642
112412
  },
112643
112413
  end: {
112644
- line: 55,
112414
+ line: 56,
112645
112415
  column: 36
112646
112416
  }
112647
112417
  },
112648
- "26": {
112418
+ "27": {
112649
112419
  start: {
112650
- line: 55,
112420
+ line: 56,
112651
112421
  column: 29
112652
112422
  },
112653
112423
  end: {
112654
- line: 55,
112424
+ line: 56,
112655
112425
  column: 36
112656
112426
  }
112657
112427
  },
112658
- "27": {
112428
+ "28": {
112659
112429
  start: {
112660
- line: 57,
112430
+ line: 58,
112661
112431
  column: 4
112662
112432
  },
112663
112433
  end: {
112664
- line: 57,
112434
+ line: 58,
112665
112435
  column: 46
112666
112436
  }
112667
112437
  },
112668
- "28": {
112438
+ "29": {
112669
112439
  start: {
112670
- line: 61,
112440
+ line: 62,
112671
112441
  column: 4
112672
112442
  },
112673
112443
  end: {
112674
- line: 63,
112444
+ line: 64,
112675
112445
  column: 10
112676
112446
  }
112677
112447
  },
112678
- "29": {
112448
+ "30": {
112679
112449
  start: {
112680
- line: 66,
112450
+ line: 67,
112681
112451
  column: 2
112682
112452
  },
112683
112453
  end: {
112684
- line: 154,
112454
+ line: 155,
112685
112455
  column: 4
112686
112456
  }
112687
112457
  },
112688
- "30": {
112458
+ "31": {
112689
112459
  start: {
112690
- line: 76,
112460
+ line: 77,
112691
112461
  column: 10
112692
112462
  },
112693
112463
  end: {
112694
- line: 76,
112464
+ line: 77,
112695
112465
  column: 26
112696
112466
  }
112697
112467
  },
112698
- "31": {
112468
+ "32": {
112699
112469
  start: {
112700
- line: 115,
112470
+ line: 116,
112701
112471
  column: 16
112702
112472
  },
112703
112473
  end: {
112704
- line: 143,
112474
+ line: 144,
112705
112475
  column: 22
112706
112476
  }
112707
112477
  },
112708
- "32": {
112478
+ "33": {
112709
112479
  start: {
112710
- line: 132,
112480
+ line: 133,
112711
112481
  column: 39
112712
112482
  },
112713
112483
  end: {
112714
- line: 132,
112484
+ line: 133,
112715
112485
  column: 65
112716
112486
  }
112717
112487
  }
@@ -112735,7 +112505,7 @@ function cov_2d0jax9c7z() {
112735
112505
  column: 62
112736
112506
  },
112737
112507
  end: {
112738
- line: 155,
112508
+ line: 156,
112739
112509
  column: 1
112740
112510
  }
112741
112511
  },
@@ -112783,7 +112553,7 @@ function cov_2d0jax9c7z() {
112783
112553
  column: 44
112784
112554
  },
112785
112555
  end: {
112786
- line: 52,
112556
+ line: 53,
112787
112557
  column: 3
112788
112558
  }
112789
112559
  },
@@ -112793,97 +112563,97 @@ function cov_2d0jax9c7z() {
112793
112563
  name: "(anonymous_3)",
112794
112564
  decl: {
112795
112565
  start: {
112796
- line: 54,
112566
+ line: 55,
112797
112567
  column: 19
112798
112568
  },
112799
112569
  end: {
112800
- line: 54,
112570
+ line: 55,
112801
112571
  column: 20
112802
112572
  }
112803
112573
  },
112804
112574
  loc: {
112805
112575
  start: {
112806
- line: 54,
112576
+ line: 55,
112807
112577
  column: 25
112808
112578
  },
112809
112579
  end: {
112810
- line: 58,
112580
+ line: 59,
112811
112581
  column: 3
112812
112582
  }
112813
112583
  },
112814
- line: 54
112584
+ line: 55
112815
112585
  },
112816
112586
  "4": {
112817
112587
  name: "(anonymous_4)",
112818
112588
  decl: {
112819
112589
  start: {
112820
- line: 75,
112590
+ line: 76,
112821
112591
  column: 18
112822
112592
  },
112823
112593
  end: {
112824
- line: 75,
112594
+ line: 76,
112825
112595
  column: 19
112826
112596
  }
112827
112597
  },
112828
112598
  loc: {
112829
112599
  start: {
112830
- line: 75,
112600
+ line: 76,
112831
112601
  column: 45
112832
112602
  },
112833
112603
  end: {
112834
- line: 77,
112604
+ line: 78,
112835
112605
  column: 9
112836
112606
  }
112837
112607
  },
112838
- line: 75
112608
+ line: 76
112839
112609
  },
112840
112610
  "5": {
112841
112611
  name: "(anonymous_5)",
112842
112612
  decl: {
112843
112613
  start: {
112844
- line: 114,
112614
+ line: 115,
112845
112615
  column: 25
112846
112616
  },
112847
112617
  end: {
112848
- line: 114,
112618
+ line: 115,
112849
112619
  column: 26
112850
112620
  }
112851
112621
  },
112852
112622
  loc: {
112853
112623
  start: {
112854
- line: 115,
112624
+ line: 116,
112855
112625
  column: 16
112856
112626
  },
112857
112627
  end: {
112858
- line: 143,
112628
+ line: 144,
112859
112629
  column: 22
112860
112630
  }
112861
112631
  },
112862
- line: 115
112632
+ line: 116
112863
112633
  },
112864
112634
  "6": {
112865
112635
  name: "(anonymous_6)",
112866
112636
  decl: {
112867
112637
  start: {
112868
- line: 132,
112638
+ line: 133,
112869
112639
  column: 33
112870
112640
  },
112871
112641
  end: {
112872
- line: 132,
112642
+ line: 133,
112873
112643
  column: 34
112874
112644
  }
112875
112645
  },
112876
112646
  loc: {
112877
112647
  start: {
112878
- line: 132,
112648
+ line: 133,
112879
112649
  column: 39
112880
112650
  },
112881
112651
  end: {
112882
- line: 132,
112652
+ line: 133,
112883
112653
  column: 65
112884
112654
  }
112885
112655
  },
112886
- line: 132
112656
+ line: 133
112887
112657
  }
112888
112658
  },
112889
112659
  branchMap: {
@@ -112923,55 +112693,88 @@ function cov_2d0jax9c7z() {
112923
112693
  "1": {
112924
112694
  loc: {
112925
112695
  start: {
112926
- line: 39,
112696
+ line: 38,
112697
+ column: 39
112698
+ },
112699
+ end: {
112700
+ line: 38,
112701
+ column: 64
112702
+ }
112703
+ },
112704
+ type: "binary-expr",
112705
+ locations: [{
112706
+ start: {
112707
+ line: 38,
112708
+ column: 39
112709
+ },
112710
+ end: {
112711
+ line: 38,
112712
+ column: 52
112713
+ }
112714
+ }, {
112715
+ start: {
112716
+ line: 38,
112717
+ column: 56
112718
+ },
112719
+ end: {
112720
+ line: 38,
112721
+ column: 64
112722
+ }
112723
+ }],
112724
+ line: 38
112725
+ },
112726
+ "2": {
112727
+ loc: {
112728
+ start: {
112729
+ line: 40,
112927
112730
  column: 6
112928
112731
  },
112929
112732
  end: {
112930
- line: 43,
112733
+ line: 44,
112931
112734
  column: 7
112932
112735
  }
112933
112736
  },
112934
112737
  type: "if",
112935
112738
  locations: [{
112936
112739
  start: {
112937
- line: 39,
112740
+ line: 40,
112938
112741
  column: 6
112939
112742
  },
112940
112743
  end: {
112941
- line: 43,
112744
+ line: 44,
112942
112745
  column: 7
112943
112746
  }
112944
112747
  }, {
112945
112748
  start: {
112946
- line: 41,
112749
+ line: 42,
112947
112750
  column: 13
112948
112751
  },
112949
112752
  end: {
112950
- line: 43,
112753
+ line: 44,
112951
112754
  column: 7
112952
112755
  }
112953
112756
  }],
112954
- line: 39
112757
+ line: 40
112955
112758
  },
112956
- "2": {
112759
+ "3": {
112957
112760
  loc: {
112958
112761
  start: {
112959
- line: 55,
112762
+ line: 56,
112960
112763
  column: 4
112961
112764
  },
112962
112765
  end: {
112963
- line: 55,
112766
+ line: 56,
112964
112767
  column: 36
112965
112768
  }
112966
112769
  },
112967
112770
  type: "if",
112968
112771
  locations: [{
112969
112772
  start: {
112970
- line: 55,
112773
+ line: 56,
112971
112774
  column: 4
112972
112775
  },
112973
112776
  end: {
112974
- line: 55,
112777
+ line: 56,
112975
112778
  column: 36
112976
112779
  }
112977
112780
  }, {
@@ -112984,256 +112787,256 @@ function cov_2d0jax9c7z() {
112984
112787
  column: undefined
112985
112788
  }
112986
112789
  }],
112987
- line: 55
112790
+ line: 56
112988
112791
  },
112989
- "3": {
112792
+ "4": {
112990
112793
  loc: {
112991
112794
  start: {
112992
- line: 55,
112795
+ line: 56,
112993
112796
  column: 8
112994
112797
  },
112995
112798
  end: {
112996
- line: 55,
112799
+ line: 56,
112997
112800
  column: 27
112998
112801
  }
112999
112802
  },
113000
112803
  type: "binary-expr",
113001
112804
  locations: [{
113002
112805
  start: {
113003
- line: 55,
112806
+ line: 56,
113004
112807
  column: 8
113005
112808
  },
113006
112809
  end: {
113007
- line: 55,
112810
+ line: 56,
113008
112811
  column: 15
113009
112812
  }
113010
112813
  }, {
113011
112814
  start: {
113012
- line: 55,
112815
+ line: 56,
113013
112816
  column: 19
113014
112817
  },
113015
112818
  end: {
113016
- line: 55,
112819
+ line: 56,
113017
112820
  column: 27
113018
112821
  }
113019
112822
  }],
113020
- line: 55
112823
+ line: 56
113021
112824
  },
113022
- "4": {
112825
+ "5": {
113023
112826
  loc: {
113024
112827
  start: {
113025
- line: 57,
112828
+ line: 58,
113026
112829
  column: 4
113027
112830
  },
113028
112831
  end: {
113029
- line: 57,
112832
+ line: 58,
113030
112833
  column: 45
113031
112834
  }
113032
112835
  },
113033
112836
  type: "binary-expr",
113034
112837
  locations: [{
113035
112838
  start: {
113036
- line: 57,
112839
+ line: 58,
113037
112840
  column: 4
113038
112841
  },
113039
112842
  end: {
113040
- line: 57,
112843
+ line: 58,
113041
112844
  column: 14
113042
112845
  }
113043
112846
  }, {
113044
112847
  start: {
113045
- line: 57,
112848
+ line: 58,
113046
112849
  column: 18
113047
112850
  },
113048
112851
  end: {
113049
- line: 57,
112852
+ line: 58,
113050
112853
  column: 45
113051
112854
  }
113052
112855
  }],
113053
- line: 57
112856
+ line: 58
113054
112857
  },
113055
- "5": {
112858
+ "6": {
113056
112859
  loc: {
113057
112860
  start: {
113058
- line: 79,
112861
+ line: 80,
113059
112862
  column: 7
113060
112863
  },
113061
112864
  end: {
113062
- line: 86,
112865
+ line: 87,
113063
112866
  column: 7
113064
112867
  }
113065
112868
  },
113066
112869
  type: "binary-expr",
113067
112870
  locations: [{
113068
112871
  start: {
113069
- line: 79,
112872
+ line: 80,
113070
112873
  column: 7
113071
112874
  },
113072
112875
  end: {
113073
- line: 79,
112876
+ line: 80,
113074
112877
  column: 12
113075
112878
  }
113076
112879
  }, {
113077
112880
  start: {
113078
- line: 80,
112881
+ line: 81,
113079
112882
  column: 8
113080
112883
  },
113081
112884
  end: {
113082
- line: 85,
112885
+ line: 86,
113083
112886
  column: 12
113084
112887
  }
113085
112888
  }],
113086
- line: 79
112889
+ line: 80
113087
112890
  },
113088
- "6": {
112891
+ "7": {
113089
112892
  loc: {
113090
112893
  start: {
113091
- line: 87,
112894
+ line: 88,
113092
112895
  column: 7
113093
112896
  },
113094
112897
  end: {
113095
- line: 94,
112898
+ line: 95,
113096
112899
  column: 7
113097
112900
  }
113098
112901
  },
113099
112902
  type: "binary-expr",
113100
112903
  locations: [{
113101
112904
  start: {
113102
- line: 87,
112905
+ line: 88,
113103
112906
  column: 7
113104
112907
  },
113105
112908
  end: {
113106
- line: 87,
112909
+ line: 88,
113107
112910
  column: 13
113108
112911
  }
113109
112912
  }, {
113110
112913
  start: {
113111
- line: 87,
112914
+ line: 88,
113112
112915
  column: 17
113113
112916
  },
113114
112917
  end: {
113115
- line: 87,
112918
+ line: 88,
113116
112919
  column: 25
113117
112920
  }
113118
112921
  }, {
113119
112922
  start: {
113120
- line: 87,
112923
+ line: 88,
113121
112924
  column: 29
113122
112925
  },
113123
112926
  end: {
113124
- line: 87,
112927
+ line: 88,
113125
112928
  column: 49
113126
112929
  }
113127
112930
  }, {
113128
112931
  start: {
113129
- line: 88,
112932
+ line: 89,
113130
112933
  column: 8
113131
112934
  },
113132
112935
  end: {
113133
- line: 93,
112936
+ line: 94,
113134
112937
  column: 12
113135
112938
  }
113136
112939
  }],
113137
- line: 87
112940
+ line: 88
113138
112941
  },
113139
- "7": {
112942
+ "8": {
113140
112943
  loc: {
113141
112944
  start: {
113142
- line: 95,
112945
+ line: 96,
113143
112946
  column: 7
113144
112947
  },
113145
112948
  end: {
113146
- line: 152,
112949
+ line: 153,
113147
112950
  column: 7
113148
112951
  }
113149
112952
  },
113150
112953
  type: "binary-expr",
113151
112954
  locations: [{
113152
112955
  start: {
113153
- line: 95,
112956
+ line: 96,
113154
112957
  column: 7
113155
112958
  },
113156
112959
  end: {
113157
- line: 95,
112960
+ line: 96,
113158
112961
  column: 13
113159
112962
  }
113160
112963
  }, {
113161
112964
  start: {
113162
- line: 96,
112965
+ line: 97,
113163
112966
  column: 8
113164
112967
  },
113165
112968
  end: {
113166
- line: 151,
112969
+ line: 152,
113167
112970
  column: 14
113168
112971
  }
113169
112972
  }],
113170
- line: 95
112973
+ line: 96
113171
112974
  },
113172
- "8": {
112975
+ "9": {
113173
112976
  loc: {
113174
112977
  start: {
113175
- line: 113,
112978
+ line: 114,
113176
112979
  column: 13
113177
112980
  },
113178
112981
  end: {
113179
- line: 144,
112982
+ line: 145,
113180
112983
  column: 16
113181
112984
  }
113182
112985
  },
113183
112986
  type: "binary-expr",
113184
112987
  locations: [{
113185
112988
  start: {
113186
- line: 113,
112989
+ line: 114,
113187
112990
  column: 13
113188
112991
  },
113189
112992
  end: {
113190
- line: 113,
112993
+ line: 114,
113191
112994
  column: 19
113192
112995
  }
113193
112996
  }, {
113194
112997
  start: {
113195
- line: 114,
112998
+ line: 115,
113196
112999
  column: 14
113197
113000
  },
113198
113001
  end: {
113199
- line: 144,
113002
+ line: 145,
113200
113003
  column: 16
113201
113004
  }
113202
113005
  }],
113203
- line: 113
113006
+ line: 114
113204
113007
  },
113205
- "9": {
113008
+ "10": {
113206
113009
  loc: {
113207
113010
  start: {
113208
- line: 146,
113011
+ line: 147,
113209
113012
  column: 11
113210
113013
  },
113211
113014
  end: {
113212
- line: 150,
113015
+ line: 151,
113213
113016
  column: 11
113214
113017
  }
113215
113018
  },
113216
113019
  type: "binary-expr",
113217
113020
  locations: [{
113218
113021
  start: {
113219
- line: 146,
113022
+ line: 147,
113220
113023
  column: 11
113221
113024
  },
113222
113025
  end: {
113223
- line: 146,
113026
+ line: 147,
113224
113027
  column: 19
113225
113028
  }
113226
113029
  }, {
113227
113030
  start: {
113228
- line: 147,
113031
+ line: 148,
113229
113032
  column: 12
113230
113033
  },
113231
113034
  end: {
113232
- line: 149,
113035
+ line: 150,
113233
113036
  column: 16
113234
113037
  }
113235
113038
  }],
113236
- line: 146
113039
+ line: 147
113237
113040
  }
113238
113041
  },
113239
113042
  s: {
@@ -113269,7 +113072,8 @@ function cov_2d0jax9c7z() {
113269
113072
  "29": 0,
113270
113073
  "30": 0,
113271
113074
  "31": 0,
113272
- "32": 0
113075
+ "32": 0,
113076
+ "33": 0
113273
113077
  },
113274
113078
  f: {
113275
113079
  "0": 0,
@@ -113287,13 +113091,14 @@ function cov_2d0jax9c7z() {
113287
113091
  "3": [0, 0],
113288
113092
  "4": [0, 0],
113289
113093
  "5": [0, 0],
113290
- "6": [0, 0, 0, 0],
113291
- "7": [0, 0],
113094
+ "6": [0, 0],
113095
+ "7": [0, 0, 0, 0],
113292
113096
  "8": [0, 0],
113293
- "9": [0, 0]
113097
+ "9": [0, 0],
113098
+ "10": [0, 0]
113294
113099
  },
113295
113100
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
113296
- hash: "de3ff2456b710747b7ef48ceb38fc181fef63859"
113101
+ hash: "2f3b5248e854f26589712f714deeef8357b6edaa"
113297
113102
  };
113298
113103
  var coverage = global[gcv] || (global[gcv] = {});
113299
113104
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -113351,7 +113156,7 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113351
113156
  cov_2d0jax9c7z().s[12]++;
113352
113157
  var fetchUnsplashPhotos = /*#__PURE__*/function () {
113353
113158
  var _ref15 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(page) {
113354
- var _ref16, results, total_pages;
113159
+ var response, _ref16, results, total_pages;
113355
113160
  return regenerator.wrap(function _callee$(_context) {
113356
113161
  while (1) switch (_context.prev = _context.next) {
113357
113162
  case 0:
@@ -113370,63 +113175,62 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113370
113175
  apiKey: unsplashApiKey
113371
113176
  });
113372
113177
  case 10:
113373
- _ref16 = _context.sent;
113374
- results = _ref16.results;
113375
- total_pages = _ref16.total_pages;
113376
- cov_2d0jax9c7z().s[17]++;
113178
+ response = _context.sent;
113179
+ _ref16 = (cov_2d0jax9c7z().s[17]++, (cov_2d0jax9c7z().b[1][0]++, response.data) || (cov_2d0jax9c7z().b[1][1]++, response)), results = _ref16.results, total_pages = _ref16.total_pages;
113180
+ cov_2d0jax9c7z().s[18]++;
113377
113181
  if (page === 1) {
113378
- cov_2d0jax9c7z().b[1][0]++;
113379
- cov_2d0jax9c7z().s[18]++;
113182
+ cov_2d0jax9c7z().b[2][0]++;
113183
+ cov_2d0jax9c7z().s[19]++;
113380
113184
  setImages(results);
113381
113185
  } else {
113382
- cov_2d0jax9c7z().b[1][1]++;
113383
- cov_2d0jax9c7z().s[19]++;
113186
+ cov_2d0jax9c7z().b[2][1]++;
113187
+ cov_2d0jax9c7z().s[20]++;
113384
113188
  setImages([].concat(_toConsumableArray$1(images), _toConsumableArray$1(results)));
113385
113189
  }
113386
- cov_2d0jax9c7z().s[20]++;
113387
- setPageNo(page + 1);
113388
113190
  cov_2d0jax9c7z().s[21]++;
113191
+ setPageNo(page + 1);
113192
+ cov_2d0jax9c7z().s[22]++;
113389
113193
  setHasMore(page < total_pages);
113390
- _context.next = 25;
113194
+ _context.next = 24;
113391
113195
  break;
113392
- case 21:
113393
- _context.prev = 21;
113196
+ case 20:
113197
+ _context.prev = 20;
113394
113198
  _context.t0 = _context["catch"](2);
113395
- cov_2d0jax9c7z().s[22]++;
113396
- setError(true);
113397
- case 25:
113398
- _context.prev = 25;
113399
113199
  cov_2d0jax9c7z().s[23]++;
113200
+ setError(true);
113201
+ case 24:
113202
+ _context.prev = 24;
113203
+ cov_2d0jax9c7z().s[24]++;
113400
113204
  setLoading(false);
113401
- return _context.finish(25);
113402
- case 29:
113205
+ return _context.finish(24);
113206
+ case 28:
113403
113207
  case "end":
113404
113208
  return _context.stop();
113405
113209
  }
113406
- }, _callee, null, [[2, 21, 25, 29]]);
113210
+ }, _callee, null, [[2, 20, 24, 28]]);
113407
113211
  }));
113408
113212
  return function fetchUnsplashPhotos(_x) {
113409
113213
  return _ref15.apply(this, arguments);
113410
113214
  };
113411
113215
  }();
113412
- cov_2d0jax9c7z().s[24]++;
113216
+ cov_2d0jax9c7z().s[25]++;
113413
113217
  var loadMore = function loadMore() {
113414
113218
  cov_2d0jax9c7z().f[3]++;
113415
- cov_2d0jax9c7z().s[25]++;
113416
- if ((cov_2d0jax9c7z().b[3][0]++, loading) || (cov_2d0jax9c7z().b[3][1]++, !hasMore)) {
113417
- cov_2d0jax9c7z().b[2][0]++;
113418
- cov_2d0jax9c7z().s[26]++;
113219
+ cov_2d0jax9c7z().s[26]++;
113220
+ if ((cov_2d0jax9c7z().b[4][0]++, loading) || (cov_2d0jax9c7z().b[4][1]++, !hasMore)) {
113221
+ cov_2d0jax9c7z().b[3][0]++;
113222
+ cov_2d0jax9c7z().s[27]++;
113419
113223
  return;
113420
113224
  } else {
113421
- cov_2d0jax9c7z().b[2][1]++;
113225
+ cov_2d0jax9c7z().b[3][1]++;
113422
113226
  }
113423
- cov_2d0jax9c7z().s[27]++;
113424
- (cov_2d0jax9c7z().b[4][0]++, pageNo > 1) && (cov_2d0jax9c7z().b[4][1]++, fetchUnsplashPhotos(pageNo));
113227
+ cov_2d0jax9c7z().s[28]++;
113228
+ (cov_2d0jax9c7z().b[5][0]++, pageNo > 1) && (cov_2d0jax9c7z().b[5][1]++, fetchUnsplashPhotos(pageNo));
113425
113229
  };
113426
- var Loader = (cov_2d0jax9c7z().s[28]++, /*#__PURE__*/React__default["default"].createElement("div", {
113230
+ var Loader = (cov_2d0jax9c7z().s[29]++, /*#__PURE__*/React__default["default"].createElement("div", {
113427
113231
  className: "neeto-editor-unsplash-gallery__loader"
113428
113232
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null)));
113429
- cov_2d0jax9c7z().s[29]++;
113233
+ cov_2d0jax9c7z().s[30]++;
113430
113234
  return /*#__PURE__*/React__default["default"].createElement("div", {
113431
113235
  className: "neeto-editor-unsplash-wrapper"
113432
113236
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, {
@@ -113439,16 +113243,16 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113439
113243
  onChange: function onChange(_ref17) {
113440
113244
  var value = _ref17.target.value;
113441
113245
  cov_2d0jax9c7z().f[4]++;
113442
- cov_2d0jax9c7z().s[30]++;
113246
+ cov_2d0jax9c7z().s[31]++;
113443
113247
  setQuery(value);
113444
113248
  }
113445
- }), (cov_2d0jax9c7z().b[5][0]++, error) && (cov_2d0jax9c7z().b[5][1]++, /*#__PURE__*/React__default["default"].createElement("p", {
113249
+ }), (cov_2d0jax9c7z().b[6][0]++, error) && (cov_2d0jax9c7z().b[6][1]++, /*#__PURE__*/React__default["default"].createElement("p", {
113446
113250
  className: "neeto-editor-unsplash-gallery__text",
113447
113251
  "data-cy": "neeto-editor-unsplash-image-picker-error"
113448
- }, t("unsplash.error-message"))), (cov_2d0jax9c7z().b[6][0]++, !error) && (cov_2d0jax9c7z().b[6][1]++, !loading) && (cov_2d0jax9c7z().b[6][2]++, isNilOrEmpty(images)) && (cov_2d0jax9c7z().b[6][3]++, /*#__PURE__*/React__default["default"].createElement("p", {
113252
+ }, t("unsplash.error-message"))), (cov_2d0jax9c7z().b[7][0]++, !error) && (cov_2d0jax9c7z().b[7][1]++, !loading) && (cov_2d0jax9c7z().b[7][2]++, isNilOrEmpty(images)) && (cov_2d0jax9c7z().b[7][3]++, /*#__PURE__*/React__default["default"].createElement("p", {
113449
113253
  className: "neeto-editor-unsplash-gallery__text",
113450
113254
  "data-cy": "neeto-editor-unsplash-image-picker-no-results-error"
113451
- }, t("unsplash.no-results"))), (cov_2d0jax9c7z().b[7][0]++, !error) && (cov_2d0jax9c7z().b[7][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
113255
+ }, t("unsplash.no-results"))), (cov_2d0jax9c7z().b[8][0]++, !error) && (cov_2d0jax9c7z().b[8][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
113452
113256
  className: "neeto-editor-unsplash-container"
113453
113257
  }, /*#__PURE__*/React__default["default"].createElement(_default, {
113454
113258
  pack: true,
@@ -113474,9 +113278,9 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113474
113278
  columns: 3,
113475
113279
  gutter: 0
113476
113280
  }]
113477
- }, (cov_2d0jax9c7z().b[8][0]++, images) && (cov_2d0jax9c7z().b[8][1]++, images.map(function (image, index) {
113281
+ }, (cov_2d0jax9c7z().b[9][0]++, images) && (cov_2d0jax9c7z().b[9][1]++, images.map(function (image, index) {
113478
113282
  cov_2d0jax9c7z().f[5]++;
113479
- cov_2d0jax9c7z().s[31]++;
113283
+ cov_2d0jax9c7z().s[32]++;
113480
113284
  return /*#__PURE__*/React__default["default"].createElement("div", {
113481
113285
  className: "neeto-editor-unsplash-gallery__item",
113482
113286
  "data-cy": "neeto-editor-unsplash-image-picker-result-".concat(index),
@@ -113493,7 +113297,7 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113493
113297
  src: image.urls.regular,
113494
113298
  onClick: function onClick() {
113495
113299
  cov_2d0jax9c7z().f[6]++;
113496
- cov_2d0jax9c7z().s[32]++;
113300
+ cov_2d0jax9c7z().s[33]++;
113497
113301
  return onSubmit(image.urls.small);
113498
113302
  }
113499
113303
  }), /*#__PURE__*/React__default["default"].createElement("a", {
@@ -113501,7 +113305,7 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113501
113305
  rel: "noreferrer",
113502
113306
  target: "_blank"
113503
113307
  }, image.user.name, " "))));
113504
- }))), (cov_2d0jax9c7z().b[9][0]++, !hasMore) && (cov_2d0jax9c7z().b[9][1]++, /*#__PURE__*/React__default["default"].createElement("p", {
113308
+ }))), (cov_2d0jax9c7z().b[10][0]++, !hasMore) && (cov_2d0jax9c7z().b[10][1]++, /*#__PURE__*/React__default["default"].createElement("p", {
113505
113309
  className: "neeto-editor-unsplash-gallery__text"
113506
113310
  }, t("unsplash.end"))))));
113507
113311
  };
@@ -124164,7 +123968,7 @@ var Fixed = function Fixed(_ref) {
124164
123968
  buttonSize: "small",
124165
123969
  buttonProps: {
124166
123970
  tooltipProps: {
124167
- content: t("menu.variables"),
123971
+ content: t("menu.dynamic-variables"),
124168
123972
  position: "bottom"
124169
123973
  }
124170
123974
  }