@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.js CHANGED
@@ -27808,7 +27808,7 @@ var menu = {
27808
27808
  table: "Table",
27809
27809
  underline: "Underline",
27810
27810
  undo: "Undo",
27811
- variables: "Variables",
27811
+ "dynamic-variables": "Dynamic variables",
27812
27812
  "video-embed": "Video embed",
27813
27813
  "video-upload": "Video upload"
27814
27814
  };
@@ -84120,282 +84120,9 @@ if (typeof customElements !== 'undefined' && !customElements.get('em-emoji-picke
84120
84120
  var $b77bcf1206efff3f$exports = {};
84121
84121
  $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";
84122
84122
 
84123
- function cov_226kerpgip() {
84124
- var path = "/home/runner/work/neeto-editor/neeto-editor/src/apis/axios.js";
84125
- var hash = "dd4f83503d27500d73b349e899f9b0b82acc5a63";
84126
- var global = new Function("return this")();
84127
- var gcv = "__coverage__";
84128
- var coverageData = {
84129
- path: "/home/runner/work/neeto-editor/neeto-editor/src/apis/axios.js",
84130
- statementMap: {
84131
- "0": {
84132
- start: {
84133
- line: 3,
84134
- column: 28
84135
- },
84136
- end: {
84137
- line: 8,
84138
- column: 2
84139
- }
84140
- },
84141
- "1": {
84142
- start: {
84143
- line: 10,
84144
- column: 0
84145
- },
84146
- end: {
84147
- line: 13,
84148
- column: 2
84149
- }
84150
- },
84151
- "2": {
84152
- start: {
84153
- line: 11,
84154
- column: 14
84155
- },
84156
- end: {
84157
- line: 11,
84158
- column: 44
84159
- }
84160
- },
84161
- "3": {
84162
- start: {
84163
- line: 12,
84164
- column: 11
84165
- },
84166
- end: {
84167
- line: 12,
84168
- column: 32
84169
- }
84170
- },
84171
- "4": {
84172
- start: {
84173
- line: 15,
84174
- column: 29
84175
- },
84176
- end: {
84177
- line: 19,
84178
- column: 1
84179
- }
84180
- },
84181
- "5": {
84182
- start: {
84183
- line: 16,
84184
- column: 48
84185
- },
84186
- end: {
84187
- line: 16,
84188
- column: 63
84189
- }
84190
- },
84191
- "6": {
84192
- start: {
84193
- line: 18,
84194
- column: 2
84195
- },
84196
- end: {
84197
- line: 18,
84198
- column: 62
84199
- }
84200
- }
84201
- },
84202
- fnMap: {
84203
- "0": {
84204
- name: "(anonymous_0)",
84205
- decl: {
84206
- start: {
84207
- line: 11,
84208
- column: 2
84209
- },
84210
- end: {
84211
- line: 11,
84212
- column: 3
84213
- }
84214
- },
84215
- loc: {
84216
- start: {
84217
- line: 11,
84218
- column: 14
84219
- },
84220
- end: {
84221
- line: 11,
84222
- column: 44
84223
- }
84224
- },
84225
- line: 11
84226
- },
84227
- "1": {
84228
- name: "(anonymous_1)",
84229
- decl: {
84230
- start: {
84231
- line: 12,
84232
- column: 2
84233
- },
84234
- end: {
84235
- line: 12,
84236
- column: 3
84237
- }
84238
- },
84239
- loc: {
84240
- start: {
84241
- line: 12,
84242
- column: 11
84243
- },
84244
- end: {
84245
- line: 12,
84246
- column: 32
84247
- }
84248
- },
84249
- line: 12
84250
- },
84251
- "2": {
84252
- name: "(anonymous_2)",
84253
- decl: {
84254
- start: {
84255
- line: 15,
84256
- column: 29
84257
- },
84258
- end: {
84259
- line: 15,
84260
- column: 30
84261
- }
84262
- },
84263
- loc: {
84264
- start: {
84265
- line: 15,
84266
- column: 41
84267
- },
84268
- end: {
84269
- line: 19,
84270
- column: 1
84271
- }
84272
- },
84273
- line: 15
84274
- }
84275
- },
84276
- branchMap: {
84277
- "0": {
84278
- loc: {
84279
- start: {
84280
- line: 16,
84281
- column: 10
84282
- },
84283
- end: {
84284
- line: 16,
84285
- column: 43
84286
- }
84287
- },
84288
- type: "default-arg",
84289
- locations: [{
84290
- start: {
84291
- line: 16,
84292
- column: 38
84293
- },
84294
- end: {
84295
- line: 16,
84296
- column: 43
84297
- }
84298
- }],
84299
- line: 16
84300
- },
84301
- "1": {
84302
- loc: {
84303
- start: {
84304
- line: 18,
84305
- column: 9
84306
- },
84307
- end: {
84308
- line: 18,
84309
- column: 61
84310
- }
84311
- },
84312
- type: "cond-expr",
84313
- locations: [{
84314
- start: {
84315
- line: 18,
84316
- column: 37
84317
- },
84318
- end: {
84319
- line: 18,
84320
- column: 45
84321
- }
84322
- }, {
84323
- start: {
84324
- line: 18,
84325
- column: 48
84326
- },
84327
- end: {
84328
- line: 18,
84329
- column: 61
84330
- }
84331
- }],
84332
- line: 18
84333
- }
84334
- },
84335
- s: {
84336
- "0": 0,
84337
- "1": 0,
84338
- "2": 0,
84339
- "3": 0,
84340
- "4": 0,
84341
- "5": 0,
84342
- "6": 0
84343
- },
84344
- f: {
84345
- "0": 0,
84346
- "1": 0,
84347
- "2": 0
84348
- },
84349
- b: {
84350
- "0": [0],
84351
- "1": [0, 0]
84352
- },
84353
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
84354
- hash: "dd4f83503d27500d73b349e899f9b0b82acc5a63"
84355
- };
84356
- var coverage = global[gcv] || (global[gcv] = {});
84357
- if (!coverage[path] || coverage[path].hash !== hash) {
84358
- coverage[path] = coverageData;
84359
- }
84360
- var actualCoverage = coverage[path];
84361
- {
84362
- // @ts-ignore
84363
- cov_226kerpgip = function () {
84364
- return actualCoverage;
84365
- };
84366
- }
84367
- return actualCoverage;
84368
- }
84369
- cov_226kerpgip();
84370
- var axiosEditorInstance = (cov_226kerpgip().s[0]++, axios.create({
84371
- headers: {
84372
- "Content-Type": "application/json",
84373
- Accept: "application/json"
84374
- }
84375
- }));
84376
- cov_226kerpgip().s[1]++;
84377
- axiosEditorInstance.interceptors.response.use(function (response) {
84378
- cov_226kerpgip().f[0]++;
84379
- cov_226kerpgip().s[2]++;
84380
- return pullDataFromResponse(response);
84381
- }, function (error) {
84382
- cov_226kerpgip().f[1]++;
84383
- cov_226kerpgip().s[3]++;
84384
- return Promise.reject(error);
84385
- });
84386
- cov_226kerpgip().s[4]++;
84387
- var pullDataFromResponse = function pullDataFromResponse(response) {
84388
- cov_226kerpgip().f[2]++;
84389
- var _ref = (cov_226kerpgip().s[5]++, response.config),
84390
- _ref$includeMetadataI = _ref.includeMetadataInResponse,
84391
- includeMetadataInResponse = _ref$includeMetadataI === void 0 ? (cov_226kerpgip().b[0][0]++, false) : _ref$includeMetadataI;
84392
- cov_226kerpgip().s[6]++;
84393
- return includeMetadataInResponse ? (cov_226kerpgip().b[1][0]++, response) : (cov_226kerpgip().b[1][1]++, response.data);
84394
- };
84395
-
84396
84123
  function cov_1zmyuy8mgp() {
84397
84124
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/apis/emoji_picker.js";
84398
- var hash = "e0414d5a591a5e35beb18a0849f558e2e0990f5b";
84125
+ var hash = "3ff6dd958828d335dd9a111c3afc23b86044f3fd";
84399
84126
  var global = new Function("return this")();
84400
84127
  var gcv = "__coverage__";
84401
84128
  var coverageData = {
@@ -84407,27 +84134,27 @@ function cov_1zmyuy8mgp() {
84407
84134
  column: 14
84408
84135
  },
84409
84136
  end: {
84410
- line: 4,
84411
- column: 74
84137
+ line: 3,
84138
+ column: 78
84412
84139
  }
84413
84140
  },
84414
84141
  "1": {
84415
84142
  start: {
84416
- line: 4,
84417
- column: 2
84143
+ line: 3,
84144
+ column: 20
84418
84145
  },
84419
84146
  end: {
84420
- line: 4,
84421
- column: 74
84147
+ line: 3,
84148
+ column: 78
84422
84149
  }
84423
84150
  },
84424
84151
  "2": {
84425
84152
  start: {
84426
- line: 6,
84153
+ line: 5,
84427
84154
  column: 23
84428
84155
  },
84429
84156
  end: {
84430
- line: 6,
84157
+ line: 5,
84431
84158
  column: 32
84432
84159
  }
84433
84160
  }
@@ -84447,15 +84174,15 @@ function cov_1zmyuy8mgp() {
84447
84174
  },
84448
84175
  loc: {
84449
84176
  start: {
84450
- line: 4,
84451
- column: 2
84177
+ line: 3,
84178
+ column: 20
84452
84179
  },
84453
84180
  end: {
84454
- line: 4,
84455
- column: 74
84181
+ line: 3,
84182
+ column: 78
84456
84183
  }
84457
84184
  },
84458
- line: 4
84185
+ line: 3
84459
84186
  }
84460
84187
  },
84461
84188
  branchMap: {},
@@ -84469,7 +84196,7 @@ function cov_1zmyuy8mgp() {
84469
84196
  },
84470
84197
  b: {},
84471
84198
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
84472
- hash: "e0414d5a591a5e35beb18a0849f558e2e0990f5b"
84199
+ hash: "3ff6dd958828d335dd9a111c3afc23b86044f3fd"
84473
84200
  };
84474
84201
  var coverage = global[gcv] || (global[gcv] = {});
84475
84202
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -84489,7 +84216,7 @@ cov_1zmyuy8mgp().s[0]++;
84489
84216
  var fetch$1 = function fetch() {
84490
84217
  cov_1zmyuy8mgp().f[0]++;
84491
84218
  cov_1zmyuy8mgp().s[1]++;
84492
- return axiosEditorInstance.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");
84219
+ return axios.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");
84493
84220
  };
84494
84221
  var emojiPickerApi = (cov_1zmyuy8mgp().s[2]++, {
84495
84222
  fetch: fetch$1
@@ -90437,7 +90164,7 @@ var ImageComponent = function ImageComponent(_ref) {
90437
90164
  var _excluded$9 = ["caption"];
90438
90165
  function cov_ksv9azglk() {
90439
90166
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ExtensionConfig.js";
90440
- var hash = "a2163f27c0f3b44f766a56187cd5e531bbf9649c";
90167
+ var hash = "ad9a8b83ac5e42d49048942f55c0d689c9d8f09f";
90441
90168
  var global = new Function("return this")();
90442
90169
  var gcv = "__coverage__";
90443
90170
  var coverageData = {
@@ -90676,11 +90403,11 @@ function cov_ksv9azglk() {
90676
90403
  "23": {
90677
90404
  start: {
90678
90405
  line: 138,
90679
- column: 24
90406
+ column: 21
90680
90407
  },
90681
90408
  end: {
90682
90409
  line: 138,
90683
- column: 47
90410
+ column: 44
90684
90411
  }
90685
90412
  },
90686
90413
  "24": {
@@ -90690,7 +90417,7 @@ function cov_ksv9azglk() {
90690
90417
  },
90691
90418
  end: {
90692
90419
  line: 140,
90693
- column: 19
90420
+ column: 56
90694
90421
  }
90695
90422
  },
90696
90423
  "25": {
@@ -91434,6 +91161,39 @@ function cov_ksv9azglk() {
91434
91161
  line: 136
91435
91162
  },
91436
91163
  "2": {
91164
+ loc: {
91165
+ start: {
91166
+ line: 140,
91167
+ column: 11
91168
+ },
91169
+ end: {
91170
+ line: 140,
91171
+ column: 55
91172
+ }
91173
+ },
91174
+ type: "binary-expr",
91175
+ locations: [{
91176
+ start: {
91177
+ line: 140,
91178
+ column: 11
91179
+ },
91180
+ end: {
91181
+ line: 140,
91182
+ column: 34
91183
+ }
91184
+ }, {
91185
+ start: {
91186
+ line: 140,
91187
+ column: 38
91188
+ },
91189
+ end: {
91190
+ line: 140,
91191
+ column: 55
91192
+ }
91193
+ }],
91194
+ line: 140
91195
+ },
91196
+ "3": {
91437
91197
  loc: {
91438
91198
  start: {
91439
91199
  line: 166,
@@ -91466,7 +91226,7 @@ function cov_ksv9azglk() {
91466
91226
  }],
91467
91227
  line: 166
91468
91228
  },
91469
- "3": {
91229
+ "4": {
91470
91230
  loc: {
91471
91231
  start: {
91472
91232
  line: 172,
@@ -91499,7 +91259,7 @@ function cov_ksv9azglk() {
91499
91259
  }],
91500
91260
  line: 172
91501
91261
  },
91502
- "4": {
91262
+ "5": {
91503
91263
  loc: {
91504
91264
  start: {
91505
91265
  line: 180,
@@ -91606,10 +91366,11 @@ function cov_ksv9azglk() {
91606
91366
  "1": [0, 0],
91607
91367
  "2": [0, 0],
91608
91368
  "3": [0, 0],
91609
- "4": [0, 0]
91369
+ "4": [0, 0],
91370
+ "5": [0, 0]
91610
91371
  },
91611
91372
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
91612
- hash: "a2163f27c0f3b44f766a56187cd5e531bbf9649c"
91373
+ hash: "ad9a8b83ac5e42d49048942f55c0d689c9d8f09f"
91613
91374
  };
91614
91375
  var coverage = global[gcv] || (global[gcv] = {});
91615
91376
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -91769,14 +91530,14 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
91769
91530
  cov_ksv9azglk().s[20]++;
91770
91531
  var upload = /*#__PURE__*/function () {
91771
91532
  var _ref7 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(file, url) {
91772
- var uploader, _ref8, blobUrl, imageSizeInMB;
91533
+ var _response$data, uploader, response, imageSizeInMB;
91773
91534
  return regenerator.wrap(function _callee$(_context) {
91774
91535
  while (1) switch (_context.prev = _context.next) {
91775
91536
  case 0:
91776
91537
  cov_ksv9azglk().f[14]++;
91777
91538
  cov_ksv9azglk().s[21]++;
91778
91539
  if (!(file.size <= MAX_IMAGE_SIZE)) {
91779
- _context.next = 14;
91540
+ _context.next = 13;
91780
91541
  break;
91781
91542
  }
91782
91543
  cov_ksv9azglk().b[1][0]++;
@@ -91788,19 +91549,18 @@ var upload = /*#__PURE__*/function () {
91788
91549
  _context.next = 8;
91789
91550
  return uploader.create();
91790
91551
  case 8:
91791
- _ref8 = _context.sent;
91792
- blobUrl = _ref8.blobUrl;
91552
+ response = _context.sent;
91793
91553
  cov_ksv9azglk().s[24]++;
91794
- return _context.abrupt("return", blobUrl);
91795
- case 14:
91554
+ 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));
91555
+ case 13:
91796
91556
  cov_ksv9azglk().b[1][1]++;
91797
- case 15:
91557
+ case 14:
91798
91558
  imageSizeInMB = (cov_ksv9azglk().s[25]++, MAX_IMAGE_SIZE / (1024 * 1024));
91799
91559
  cov_ksv9azglk().s[26]++;
91800
91560
  Toastr.error("Image size should be less than ".concat(imageSizeInMB, " MB"));
91801
91561
  cov_ksv9azglk().s[27]++;
91802
91562
  return _context.abrupt("return", "");
91803
- case 20:
91563
+ case 19:
91804
91564
  case "end":
91805
91565
  return _context.stop();
91806
91566
  }
@@ -91811,8 +91571,8 @@ var upload = /*#__PURE__*/function () {
91811
91571
  };
91812
91572
  }();
91813
91573
  var ImageExtension$1 = {
91814
- configure: function configure(_ref9) {
91815
- var uploadEndpoint = _ref9.uploadEndpoint;
91574
+ configure: function configure(_ref8) {
91575
+ var uploadEndpoint = _ref8.uploadEndpoint;
91816
91576
  cov_ksv9azglk().f[15]++;
91817
91577
  cov_ksv9azglk().s[28]++;
91818
91578
  return ImageExtension.extend({
@@ -91825,17 +91585,17 @@ var ImageExtension$1 = {
91825
91585
  paste: function paste(view, event) {
91826
91586
  var _event$clipboardData, _event$clipboardData$;
91827
91587
  cov_ksv9azglk().f[17]++;
91828
- var _ref10 = (cov_ksv9azglk().s[30]++, view.state),
91829
- schema = _ref10.schema,
91830
- pos = _ref10.selection.$anchor.pos;
91588
+ var _ref9 = (cov_ksv9azglk().s[30]++, view.state),
91589
+ schema = _ref9.schema,
91590
+ pos = _ref9.selection.$anchor.pos;
91831
91591
  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);
91832
91592
  cov_ksv9azglk().s[32]++;
91833
91593
  if (!hasFiles) {
91834
- cov_ksv9azglk().b[2][0]++;
91594
+ cov_ksv9azglk().b[3][0]++;
91835
91595
  cov_ksv9azglk().s[33]++;
91836
91596
  return;
91837
91597
  } else {
91838
- cov_ksv9azglk().b[2][1]++;
91598
+ cov_ksv9azglk().b[3][1]++;
91839
91599
  }
91840
91600
  var images = (cov_ksv9azglk().s[34]++, Array.from(event.clipboardData.files).filter(function (file) {
91841
91601
  cov_ksv9azglk().f[18]++;
@@ -91844,17 +91604,17 @@ var ImageExtension$1 = {
91844
91604
  }));
91845
91605
  cov_ksv9azglk().s[36]++;
91846
91606
  if (isEmpty$1(images)) {
91847
- cov_ksv9azglk().b[3][0]++;
91607
+ cov_ksv9azglk().b[4][0]++;
91848
91608
  cov_ksv9azglk().s[37]++;
91849
91609
  return;
91850
91610
  } else {
91851
- cov_ksv9azglk().b[3][1]++;
91611
+ cov_ksv9azglk().b[4][1]++;
91852
91612
  }
91853
91613
  cov_ksv9azglk().s[38]++;
91854
91614
  event.preventDefault();
91855
91615
  cov_ksv9azglk().s[39]++;
91856
91616
  images.forEach( /*#__PURE__*/function () {
91857
- var _ref11 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
91617
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
91858
91618
  var node, transaction;
91859
91619
  return regenerator.wrap(function _callee2$(_context2) {
91860
91620
  while (1) switch (_context2.prev = _context2.next) {
@@ -91872,12 +91632,12 @@ var ImageExtension$1 = {
91872
91632
  node = _context2.t0.create.call(_context2.t0, _context2.t2);
91873
91633
  cov_ksv9azglk().s[41]++;
91874
91634
  if (node.attrs.src) {
91875
- cov_ksv9azglk().b[4][0]++;
91635
+ cov_ksv9azglk().b[5][0]++;
91876
91636
  transaction = (cov_ksv9azglk().s[42]++, view.state.tr.insert(pos, node));
91877
91637
  cov_ksv9azglk().s[43]++;
91878
91638
  view.dispatch(transaction);
91879
91639
  } else {
91880
- cov_ksv9azglk().b[4][1]++;
91640
+ cov_ksv9azglk().b[5][1]++;
91881
91641
  }
91882
91642
  case 10:
91883
91643
  case "end":
@@ -91886,7 +91646,7 @@ var ImageExtension$1 = {
91886
91646
  }, _callee2);
91887
91647
  }));
91888
91648
  return function (_x3) {
91889
- return _ref11.apply(this, arguments);
91649
+ return _ref10.apply(this, arguments);
91890
91650
  };
91891
91651
  }());
91892
91652
  }
@@ -112060,7 +111820,7 @@ var searchUnsplashImages = function searchUnsplashImages(_ref) {
112060
111820
  apiKey = _ref.apiKey;
112061
111821
  cov_38kboi50e().f[0]++;
112062
111822
  cov_38kboi50e().s[1]++;
112063
- return axiosEditorInstance.get(UNSPLASH_BASE_URL, {
111823
+ return axios.get(UNSPLASH_BASE_URL, {
112064
111824
  headers: {
112065
111825
  Authorization: "Client-ID ".concat(apiKey)
112066
111826
  },
@@ -112351,7 +112111,7 @@ var useDebounce = function useDebounce(value) {
112351
112111
 
112352
112112
  function cov_2d0jax9c7z() {
112353
112113
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/MediaUploader/UnsplashImagePicker.jsx";
112354
- var hash = "de3ff2456b710747b7ef48ceb38fc181fef63859";
112114
+ var hash = "2f3b5248e854f26589712f714deeef8357b6edaa";
112355
112115
  var global = new Function("return this")();
112356
112116
  var gcv = "__coverage__";
112357
112117
  var coverageData = {
@@ -112363,7 +112123,7 @@ function cov_2d0jax9c7z() {
112363
112123
  column: 28
112364
112124
  },
112365
112125
  end: {
112366
- line: 155,
112126
+ line: 156,
112367
112127
  column: 1
112368
112128
  }
112369
112129
  },
@@ -112483,7 +112243,7 @@ function cov_2d0jax9c7z() {
112483
112243
  column: 30
112484
112244
  },
112485
112245
  end: {
112486
- line: 52,
112246
+ line: 53,
112487
112247
  column: 3
112488
112248
  }
112489
112249
  },
@@ -112493,7 +112253,7 @@ function cov_2d0jax9c7z() {
112493
112253
  column: 4
112494
112254
  },
112495
112255
  end: {
112496
- line: 51,
112256
+ line: 52,
112497
112257
  column: 5
112498
112258
  }
112499
112259
  },
@@ -112520,7 +112280,7 @@ function cov_2d0jax9c7z() {
112520
112280
  "16": {
112521
112281
  start: {
112522
112282
  line: 33,
112523
- column: 39
112283
+ column: 23
112524
112284
  },
112525
112285
  end: {
112526
112286
  line: 37,
@@ -112529,42 +112289,42 @@ function cov_2d0jax9c7z() {
112529
112289
  },
112530
112290
  "17": {
112531
112291
  start: {
112532
- line: 39,
112533
- column: 6
112292
+ line: 38,
112293
+ column: 39
112534
112294
  },
112535
112295
  end: {
112536
- line: 43,
112537
- column: 7
112296
+ line: 38,
112297
+ column: 64
112538
112298
  }
112539
112299
  },
112540
112300
  "18": {
112541
112301
  start: {
112542
112302
  line: 40,
112543
- column: 8
112303
+ column: 6
112544
112304
  },
112545
112305
  end: {
112546
- line: 40,
112547
- column: 27
112306
+ line: 44,
112307
+ column: 7
112548
112308
  }
112549
112309
  },
112550
112310
  "19": {
112551
112311
  start: {
112552
- line: 42,
112312
+ line: 41,
112553
112313
  column: 8
112554
112314
  },
112555
112315
  end: {
112556
- line: 42,
112557
- column: 43
112316
+ line: 41,
112317
+ column: 27
112558
112318
  }
112559
112319
  },
112560
112320
  "20": {
112561
112321
  start: {
112562
- line: 45,
112563
- column: 6
112322
+ line: 43,
112323
+ column: 8
112564
112324
  },
112565
112325
  end: {
112566
- line: 45,
112567
- column: 26
112326
+ line: 43,
112327
+ column: 43
112568
112328
  }
112569
112329
  },
112570
112330
  "21": {
@@ -112574,116 +112334,126 @@ function cov_2d0jax9c7z() {
112574
112334
  },
112575
112335
  end: {
112576
112336
  line: 46,
112577
- column: 37
112337
+ column: 26
112578
112338
  }
112579
112339
  },
112580
112340
  "22": {
112581
112341
  start: {
112582
- line: 48,
112342
+ line: 47,
112583
112343
  column: 6
112584
112344
  },
112585
112345
  end: {
112586
- line: 48,
112587
- column: 21
112346
+ line: 47,
112347
+ column: 37
112588
112348
  }
112589
112349
  },
112590
112350
  "23": {
112591
112351
  start: {
112592
- line: 50,
112352
+ line: 49,
112593
112353
  column: 6
112594
112354
  },
112595
112355
  end: {
112596
- line: 50,
112597
- column: 24
112356
+ line: 49,
112357
+ column: 21
112598
112358
  }
112599
112359
  },
112600
112360
  "24": {
112601
112361
  start: {
112602
- line: 54,
112603
- column: 19
112362
+ line: 51,
112363
+ column: 6
112604
112364
  },
112605
112365
  end: {
112606
- line: 58,
112607
- column: 3
112366
+ line: 51,
112367
+ column: 24
112608
112368
  }
112609
112369
  },
112610
112370
  "25": {
112611
112371
  start: {
112612
112372
  line: 55,
112373
+ column: 19
112374
+ },
112375
+ end: {
112376
+ line: 59,
112377
+ column: 3
112378
+ }
112379
+ },
112380
+ "26": {
112381
+ start: {
112382
+ line: 56,
112613
112383
  column: 4
112614
112384
  },
112615
112385
  end: {
112616
- line: 55,
112386
+ line: 56,
112617
112387
  column: 36
112618
112388
  }
112619
112389
  },
112620
- "26": {
112390
+ "27": {
112621
112391
  start: {
112622
- line: 55,
112392
+ line: 56,
112623
112393
  column: 29
112624
112394
  },
112625
112395
  end: {
112626
- line: 55,
112396
+ line: 56,
112627
112397
  column: 36
112628
112398
  }
112629
112399
  },
112630
- "27": {
112400
+ "28": {
112631
112401
  start: {
112632
- line: 57,
112402
+ line: 58,
112633
112403
  column: 4
112634
112404
  },
112635
112405
  end: {
112636
- line: 57,
112406
+ line: 58,
112637
112407
  column: 46
112638
112408
  }
112639
112409
  },
112640
- "28": {
112410
+ "29": {
112641
112411
  start: {
112642
- line: 61,
112412
+ line: 62,
112643
112413
  column: 4
112644
112414
  },
112645
112415
  end: {
112646
- line: 63,
112416
+ line: 64,
112647
112417
  column: 10
112648
112418
  }
112649
112419
  },
112650
- "29": {
112420
+ "30": {
112651
112421
  start: {
112652
- line: 66,
112422
+ line: 67,
112653
112423
  column: 2
112654
112424
  },
112655
112425
  end: {
112656
- line: 154,
112426
+ line: 155,
112657
112427
  column: 4
112658
112428
  }
112659
112429
  },
112660
- "30": {
112430
+ "31": {
112661
112431
  start: {
112662
- line: 76,
112432
+ line: 77,
112663
112433
  column: 10
112664
112434
  },
112665
112435
  end: {
112666
- line: 76,
112436
+ line: 77,
112667
112437
  column: 26
112668
112438
  }
112669
112439
  },
112670
- "31": {
112440
+ "32": {
112671
112441
  start: {
112672
- line: 115,
112442
+ line: 116,
112673
112443
  column: 16
112674
112444
  },
112675
112445
  end: {
112676
- line: 143,
112446
+ line: 144,
112677
112447
  column: 22
112678
112448
  }
112679
112449
  },
112680
- "32": {
112450
+ "33": {
112681
112451
  start: {
112682
- line: 132,
112452
+ line: 133,
112683
112453
  column: 39
112684
112454
  },
112685
112455
  end: {
112686
- line: 132,
112456
+ line: 133,
112687
112457
  column: 65
112688
112458
  }
112689
112459
  }
@@ -112707,7 +112477,7 @@ function cov_2d0jax9c7z() {
112707
112477
  column: 62
112708
112478
  },
112709
112479
  end: {
112710
- line: 155,
112480
+ line: 156,
112711
112481
  column: 1
112712
112482
  }
112713
112483
  },
@@ -112755,7 +112525,7 @@ function cov_2d0jax9c7z() {
112755
112525
  column: 44
112756
112526
  },
112757
112527
  end: {
112758
- line: 52,
112528
+ line: 53,
112759
112529
  column: 3
112760
112530
  }
112761
112531
  },
@@ -112765,97 +112535,97 @@ function cov_2d0jax9c7z() {
112765
112535
  name: "(anonymous_3)",
112766
112536
  decl: {
112767
112537
  start: {
112768
- line: 54,
112538
+ line: 55,
112769
112539
  column: 19
112770
112540
  },
112771
112541
  end: {
112772
- line: 54,
112542
+ line: 55,
112773
112543
  column: 20
112774
112544
  }
112775
112545
  },
112776
112546
  loc: {
112777
112547
  start: {
112778
- line: 54,
112548
+ line: 55,
112779
112549
  column: 25
112780
112550
  },
112781
112551
  end: {
112782
- line: 58,
112552
+ line: 59,
112783
112553
  column: 3
112784
112554
  }
112785
112555
  },
112786
- line: 54
112556
+ line: 55
112787
112557
  },
112788
112558
  "4": {
112789
112559
  name: "(anonymous_4)",
112790
112560
  decl: {
112791
112561
  start: {
112792
- line: 75,
112562
+ line: 76,
112793
112563
  column: 18
112794
112564
  },
112795
112565
  end: {
112796
- line: 75,
112566
+ line: 76,
112797
112567
  column: 19
112798
112568
  }
112799
112569
  },
112800
112570
  loc: {
112801
112571
  start: {
112802
- line: 75,
112572
+ line: 76,
112803
112573
  column: 45
112804
112574
  },
112805
112575
  end: {
112806
- line: 77,
112576
+ line: 78,
112807
112577
  column: 9
112808
112578
  }
112809
112579
  },
112810
- line: 75
112580
+ line: 76
112811
112581
  },
112812
112582
  "5": {
112813
112583
  name: "(anonymous_5)",
112814
112584
  decl: {
112815
112585
  start: {
112816
- line: 114,
112586
+ line: 115,
112817
112587
  column: 25
112818
112588
  },
112819
112589
  end: {
112820
- line: 114,
112590
+ line: 115,
112821
112591
  column: 26
112822
112592
  }
112823
112593
  },
112824
112594
  loc: {
112825
112595
  start: {
112826
- line: 115,
112596
+ line: 116,
112827
112597
  column: 16
112828
112598
  },
112829
112599
  end: {
112830
- line: 143,
112600
+ line: 144,
112831
112601
  column: 22
112832
112602
  }
112833
112603
  },
112834
- line: 115
112604
+ line: 116
112835
112605
  },
112836
112606
  "6": {
112837
112607
  name: "(anonymous_6)",
112838
112608
  decl: {
112839
112609
  start: {
112840
- line: 132,
112610
+ line: 133,
112841
112611
  column: 33
112842
112612
  },
112843
112613
  end: {
112844
- line: 132,
112614
+ line: 133,
112845
112615
  column: 34
112846
112616
  }
112847
112617
  },
112848
112618
  loc: {
112849
112619
  start: {
112850
- line: 132,
112620
+ line: 133,
112851
112621
  column: 39
112852
112622
  },
112853
112623
  end: {
112854
- line: 132,
112624
+ line: 133,
112855
112625
  column: 65
112856
112626
  }
112857
112627
  },
112858
- line: 132
112628
+ line: 133
112859
112629
  }
112860
112630
  },
112861
112631
  branchMap: {
@@ -112895,55 +112665,88 @@ function cov_2d0jax9c7z() {
112895
112665
  "1": {
112896
112666
  loc: {
112897
112667
  start: {
112898
- line: 39,
112668
+ line: 38,
112669
+ column: 39
112670
+ },
112671
+ end: {
112672
+ line: 38,
112673
+ column: 64
112674
+ }
112675
+ },
112676
+ type: "binary-expr",
112677
+ locations: [{
112678
+ start: {
112679
+ line: 38,
112680
+ column: 39
112681
+ },
112682
+ end: {
112683
+ line: 38,
112684
+ column: 52
112685
+ }
112686
+ }, {
112687
+ start: {
112688
+ line: 38,
112689
+ column: 56
112690
+ },
112691
+ end: {
112692
+ line: 38,
112693
+ column: 64
112694
+ }
112695
+ }],
112696
+ line: 38
112697
+ },
112698
+ "2": {
112699
+ loc: {
112700
+ start: {
112701
+ line: 40,
112899
112702
  column: 6
112900
112703
  },
112901
112704
  end: {
112902
- line: 43,
112705
+ line: 44,
112903
112706
  column: 7
112904
112707
  }
112905
112708
  },
112906
112709
  type: "if",
112907
112710
  locations: [{
112908
112711
  start: {
112909
- line: 39,
112712
+ line: 40,
112910
112713
  column: 6
112911
112714
  },
112912
112715
  end: {
112913
- line: 43,
112716
+ line: 44,
112914
112717
  column: 7
112915
112718
  }
112916
112719
  }, {
112917
112720
  start: {
112918
- line: 41,
112721
+ line: 42,
112919
112722
  column: 13
112920
112723
  },
112921
112724
  end: {
112922
- line: 43,
112725
+ line: 44,
112923
112726
  column: 7
112924
112727
  }
112925
112728
  }],
112926
- line: 39
112729
+ line: 40
112927
112730
  },
112928
- "2": {
112731
+ "3": {
112929
112732
  loc: {
112930
112733
  start: {
112931
- line: 55,
112734
+ line: 56,
112932
112735
  column: 4
112933
112736
  },
112934
112737
  end: {
112935
- line: 55,
112738
+ line: 56,
112936
112739
  column: 36
112937
112740
  }
112938
112741
  },
112939
112742
  type: "if",
112940
112743
  locations: [{
112941
112744
  start: {
112942
- line: 55,
112745
+ line: 56,
112943
112746
  column: 4
112944
112747
  },
112945
112748
  end: {
112946
- line: 55,
112749
+ line: 56,
112947
112750
  column: 36
112948
112751
  }
112949
112752
  }, {
@@ -112956,256 +112759,256 @@ function cov_2d0jax9c7z() {
112956
112759
  column: undefined
112957
112760
  }
112958
112761
  }],
112959
- line: 55
112762
+ line: 56
112960
112763
  },
112961
- "3": {
112764
+ "4": {
112962
112765
  loc: {
112963
112766
  start: {
112964
- line: 55,
112767
+ line: 56,
112965
112768
  column: 8
112966
112769
  },
112967
112770
  end: {
112968
- line: 55,
112771
+ line: 56,
112969
112772
  column: 27
112970
112773
  }
112971
112774
  },
112972
112775
  type: "binary-expr",
112973
112776
  locations: [{
112974
112777
  start: {
112975
- line: 55,
112778
+ line: 56,
112976
112779
  column: 8
112977
112780
  },
112978
112781
  end: {
112979
- line: 55,
112782
+ line: 56,
112980
112783
  column: 15
112981
112784
  }
112982
112785
  }, {
112983
112786
  start: {
112984
- line: 55,
112787
+ line: 56,
112985
112788
  column: 19
112986
112789
  },
112987
112790
  end: {
112988
- line: 55,
112791
+ line: 56,
112989
112792
  column: 27
112990
112793
  }
112991
112794
  }],
112992
- line: 55
112795
+ line: 56
112993
112796
  },
112994
- "4": {
112797
+ "5": {
112995
112798
  loc: {
112996
112799
  start: {
112997
- line: 57,
112800
+ line: 58,
112998
112801
  column: 4
112999
112802
  },
113000
112803
  end: {
113001
- line: 57,
112804
+ line: 58,
113002
112805
  column: 45
113003
112806
  }
113004
112807
  },
113005
112808
  type: "binary-expr",
113006
112809
  locations: [{
113007
112810
  start: {
113008
- line: 57,
112811
+ line: 58,
113009
112812
  column: 4
113010
112813
  },
113011
112814
  end: {
113012
- line: 57,
112815
+ line: 58,
113013
112816
  column: 14
113014
112817
  }
113015
112818
  }, {
113016
112819
  start: {
113017
- line: 57,
112820
+ line: 58,
113018
112821
  column: 18
113019
112822
  },
113020
112823
  end: {
113021
- line: 57,
112824
+ line: 58,
113022
112825
  column: 45
113023
112826
  }
113024
112827
  }],
113025
- line: 57
112828
+ line: 58
113026
112829
  },
113027
- "5": {
112830
+ "6": {
113028
112831
  loc: {
113029
112832
  start: {
113030
- line: 79,
112833
+ line: 80,
113031
112834
  column: 7
113032
112835
  },
113033
112836
  end: {
113034
- line: 86,
112837
+ line: 87,
113035
112838
  column: 7
113036
112839
  }
113037
112840
  },
113038
112841
  type: "binary-expr",
113039
112842
  locations: [{
113040
112843
  start: {
113041
- line: 79,
112844
+ line: 80,
113042
112845
  column: 7
113043
112846
  },
113044
112847
  end: {
113045
- line: 79,
112848
+ line: 80,
113046
112849
  column: 12
113047
112850
  }
113048
112851
  }, {
113049
112852
  start: {
113050
- line: 80,
112853
+ line: 81,
113051
112854
  column: 8
113052
112855
  },
113053
112856
  end: {
113054
- line: 85,
112857
+ line: 86,
113055
112858
  column: 12
113056
112859
  }
113057
112860
  }],
113058
- line: 79
112861
+ line: 80
113059
112862
  },
113060
- "6": {
112863
+ "7": {
113061
112864
  loc: {
113062
112865
  start: {
113063
- line: 87,
112866
+ line: 88,
113064
112867
  column: 7
113065
112868
  },
113066
112869
  end: {
113067
- line: 94,
112870
+ line: 95,
113068
112871
  column: 7
113069
112872
  }
113070
112873
  },
113071
112874
  type: "binary-expr",
113072
112875
  locations: [{
113073
112876
  start: {
113074
- line: 87,
112877
+ line: 88,
113075
112878
  column: 7
113076
112879
  },
113077
112880
  end: {
113078
- line: 87,
112881
+ line: 88,
113079
112882
  column: 13
113080
112883
  }
113081
112884
  }, {
113082
112885
  start: {
113083
- line: 87,
112886
+ line: 88,
113084
112887
  column: 17
113085
112888
  },
113086
112889
  end: {
113087
- line: 87,
112890
+ line: 88,
113088
112891
  column: 25
113089
112892
  }
113090
112893
  }, {
113091
112894
  start: {
113092
- line: 87,
112895
+ line: 88,
113093
112896
  column: 29
113094
112897
  },
113095
112898
  end: {
113096
- line: 87,
112899
+ line: 88,
113097
112900
  column: 49
113098
112901
  }
113099
112902
  }, {
113100
112903
  start: {
113101
- line: 88,
112904
+ line: 89,
113102
112905
  column: 8
113103
112906
  },
113104
112907
  end: {
113105
- line: 93,
112908
+ line: 94,
113106
112909
  column: 12
113107
112910
  }
113108
112911
  }],
113109
- line: 87
112912
+ line: 88
113110
112913
  },
113111
- "7": {
112914
+ "8": {
113112
112915
  loc: {
113113
112916
  start: {
113114
- line: 95,
112917
+ line: 96,
113115
112918
  column: 7
113116
112919
  },
113117
112920
  end: {
113118
- line: 152,
112921
+ line: 153,
113119
112922
  column: 7
113120
112923
  }
113121
112924
  },
113122
112925
  type: "binary-expr",
113123
112926
  locations: [{
113124
112927
  start: {
113125
- line: 95,
112928
+ line: 96,
113126
112929
  column: 7
113127
112930
  },
113128
112931
  end: {
113129
- line: 95,
112932
+ line: 96,
113130
112933
  column: 13
113131
112934
  }
113132
112935
  }, {
113133
112936
  start: {
113134
- line: 96,
112937
+ line: 97,
113135
112938
  column: 8
113136
112939
  },
113137
112940
  end: {
113138
- line: 151,
112941
+ line: 152,
113139
112942
  column: 14
113140
112943
  }
113141
112944
  }],
113142
- line: 95
112945
+ line: 96
113143
112946
  },
113144
- "8": {
112947
+ "9": {
113145
112948
  loc: {
113146
112949
  start: {
113147
- line: 113,
112950
+ line: 114,
113148
112951
  column: 13
113149
112952
  },
113150
112953
  end: {
113151
- line: 144,
112954
+ line: 145,
113152
112955
  column: 16
113153
112956
  }
113154
112957
  },
113155
112958
  type: "binary-expr",
113156
112959
  locations: [{
113157
112960
  start: {
113158
- line: 113,
112961
+ line: 114,
113159
112962
  column: 13
113160
112963
  },
113161
112964
  end: {
113162
- line: 113,
112965
+ line: 114,
113163
112966
  column: 19
113164
112967
  }
113165
112968
  }, {
113166
112969
  start: {
113167
- line: 114,
112970
+ line: 115,
113168
112971
  column: 14
113169
112972
  },
113170
112973
  end: {
113171
- line: 144,
112974
+ line: 145,
113172
112975
  column: 16
113173
112976
  }
113174
112977
  }],
113175
- line: 113
112978
+ line: 114
113176
112979
  },
113177
- "9": {
112980
+ "10": {
113178
112981
  loc: {
113179
112982
  start: {
113180
- line: 146,
112983
+ line: 147,
113181
112984
  column: 11
113182
112985
  },
113183
112986
  end: {
113184
- line: 150,
112987
+ line: 151,
113185
112988
  column: 11
113186
112989
  }
113187
112990
  },
113188
112991
  type: "binary-expr",
113189
112992
  locations: [{
113190
112993
  start: {
113191
- line: 146,
112994
+ line: 147,
113192
112995
  column: 11
113193
112996
  },
113194
112997
  end: {
113195
- line: 146,
112998
+ line: 147,
113196
112999
  column: 19
113197
113000
  }
113198
113001
  }, {
113199
113002
  start: {
113200
- line: 147,
113003
+ line: 148,
113201
113004
  column: 12
113202
113005
  },
113203
113006
  end: {
113204
- line: 149,
113007
+ line: 150,
113205
113008
  column: 16
113206
113009
  }
113207
113010
  }],
113208
- line: 146
113011
+ line: 147
113209
113012
  }
113210
113013
  },
113211
113014
  s: {
@@ -113241,7 +113044,8 @@ function cov_2d0jax9c7z() {
113241
113044
  "29": 0,
113242
113045
  "30": 0,
113243
113046
  "31": 0,
113244
- "32": 0
113047
+ "32": 0,
113048
+ "33": 0
113245
113049
  },
113246
113050
  f: {
113247
113051
  "0": 0,
@@ -113259,13 +113063,14 @@ function cov_2d0jax9c7z() {
113259
113063
  "3": [0, 0],
113260
113064
  "4": [0, 0],
113261
113065
  "5": [0, 0],
113262
- "6": [0, 0, 0, 0],
113263
- "7": [0, 0],
113066
+ "6": [0, 0],
113067
+ "7": [0, 0, 0, 0],
113264
113068
  "8": [0, 0],
113265
- "9": [0, 0]
113069
+ "9": [0, 0],
113070
+ "10": [0, 0]
113266
113071
  },
113267
113072
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
113268
- hash: "de3ff2456b710747b7ef48ceb38fc181fef63859"
113073
+ hash: "2f3b5248e854f26589712f714deeef8357b6edaa"
113269
113074
  };
113270
113075
  var coverage = global[gcv] || (global[gcv] = {});
113271
113076
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -113323,7 +113128,7 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113323
113128
  cov_2d0jax9c7z().s[12]++;
113324
113129
  var fetchUnsplashPhotos = /*#__PURE__*/function () {
113325
113130
  var _ref15 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(page) {
113326
- var _ref16, results, total_pages;
113131
+ var response, _ref16, results, total_pages;
113327
113132
  return regenerator.wrap(function _callee$(_context) {
113328
113133
  while (1) switch (_context.prev = _context.next) {
113329
113134
  case 0:
@@ -113342,63 +113147,62 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113342
113147
  apiKey: unsplashApiKey
113343
113148
  });
113344
113149
  case 10:
113345
- _ref16 = _context.sent;
113346
- results = _ref16.results;
113347
- total_pages = _ref16.total_pages;
113348
- cov_2d0jax9c7z().s[17]++;
113150
+ response = _context.sent;
113151
+ _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;
113152
+ cov_2d0jax9c7z().s[18]++;
113349
113153
  if (page === 1) {
113350
- cov_2d0jax9c7z().b[1][0]++;
113351
- cov_2d0jax9c7z().s[18]++;
113154
+ cov_2d0jax9c7z().b[2][0]++;
113155
+ cov_2d0jax9c7z().s[19]++;
113352
113156
  setImages(results);
113353
113157
  } else {
113354
- cov_2d0jax9c7z().b[1][1]++;
113355
- cov_2d0jax9c7z().s[19]++;
113158
+ cov_2d0jax9c7z().b[2][1]++;
113159
+ cov_2d0jax9c7z().s[20]++;
113356
113160
  setImages([].concat(_toConsumableArray$1(images), _toConsumableArray$1(results)));
113357
113161
  }
113358
- cov_2d0jax9c7z().s[20]++;
113359
- setPageNo(page + 1);
113360
113162
  cov_2d0jax9c7z().s[21]++;
113163
+ setPageNo(page + 1);
113164
+ cov_2d0jax9c7z().s[22]++;
113361
113165
  setHasMore(page < total_pages);
113362
- _context.next = 25;
113166
+ _context.next = 24;
113363
113167
  break;
113364
- case 21:
113365
- _context.prev = 21;
113168
+ case 20:
113169
+ _context.prev = 20;
113366
113170
  _context.t0 = _context["catch"](2);
113367
- cov_2d0jax9c7z().s[22]++;
113368
- setError(true);
113369
- case 25:
113370
- _context.prev = 25;
113371
113171
  cov_2d0jax9c7z().s[23]++;
113172
+ setError(true);
113173
+ case 24:
113174
+ _context.prev = 24;
113175
+ cov_2d0jax9c7z().s[24]++;
113372
113176
  setLoading(false);
113373
- return _context.finish(25);
113374
- case 29:
113177
+ return _context.finish(24);
113178
+ case 28:
113375
113179
  case "end":
113376
113180
  return _context.stop();
113377
113181
  }
113378
- }, _callee, null, [[2, 21, 25, 29]]);
113182
+ }, _callee, null, [[2, 20, 24, 28]]);
113379
113183
  }));
113380
113184
  return function fetchUnsplashPhotos(_x) {
113381
113185
  return _ref15.apply(this, arguments);
113382
113186
  };
113383
113187
  }();
113384
- cov_2d0jax9c7z().s[24]++;
113188
+ cov_2d0jax9c7z().s[25]++;
113385
113189
  var loadMore = function loadMore() {
113386
113190
  cov_2d0jax9c7z().f[3]++;
113387
- cov_2d0jax9c7z().s[25]++;
113388
- if ((cov_2d0jax9c7z().b[3][0]++, loading) || (cov_2d0jax9c7z().b[3][1]++, !hasMore)) {
113389
- cov_2d0jax9c7z().b[2][0]++;
113390
- cov_2d0jax9c7z().s[26]++;
113191
+ cov_2d0jax9c7z().s[26]++;
113192
+ if ((cov_2d0jax9c7z().b[4][0]++, loading) || (cov_2d0jax9c7z().b[4][1]++, !hasMore)) {
113193
+ cov_2d0jax9c7z().b[3][0]++;
113194
+ cov_2d0jax9c7z().s[27]++;
113391
113195
  return;
113392
113196
  } else {
113393
- cov_2d0jax9c7z().b[2][1]++;
113197
+ cov_2d0jax9c7z().b[3][1]++;
113394
113198
  }
113395
- cov_2d0jax9c7z().s[27]++;
113396
- (cov_2d0jax9c7z().b[4][0]++, pageNo > 1) && (cov_2d0jax9c7z().b[4][1]++, fetchUnsplashPhotos(pageNo));
113199
+ cov_2d0jax9c7z().s[28]++;
113200
+ (cov_2d0jax9c7z().b[5][0]++, pageNo > 1) && (cov_2d0jax9c7z().b[5][1]++, fetchUnsplashPhotos(pageNo));
113397
113201
  };
113398
- var Loader = (cov_2d0jax9c7z().s[28]++, /*#__PURE__*/React__default.createElement("div", {
113202
+ var Loader = (cov_2d0jax9c7z().s[29]++, /*#__PURE__*/React__default.createElement("div", {
113399
113203
  className: "neeto-editor-unsplash-gallery__loader"
113400
113204
  }, /*#__PURE__*/React__default.createElement(Spinner, null)));
113401
- cov_2d0jax9c7z().s[29]++;
113205
+ cov_2d0jax9c7z().s[30]++;
113402
113206
  return /*#__PURE__*/React__default.createElement("div", {
113403
113207
  className: "neeto-editor-unsplash-wrapper"
113404
113208
  }, /*#__PURE__*/React__default.createElement(Input, {
@@ -113411,16 +113215,16 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113411
113215
  onChange: function onChange(_ref17) {
113412
113216
  var value = _ref17.target.value;
113413
113217
  cov_2d0jax9c7z().f[4]++;
113414
- cov_2d0jax9c7z().s[30]++;
113218
+ cov_2d0jax9c7z().s[31]++;
113415
113219
  setQuery(value);
113416
113220
  }
113417
- }), (cov_2d0jax9c7z().b[5][0]++, error) && (cov_2d0jax9c7z().b[5][1]++, /*#__PURE__*/React__default.createElement("p", {
113221
+ }), (cov_2d0jax9c7z().b[6][0]++, error) && (cov_2d0jax9c7z().b[6][1]++, /*#__PURE__*/React__default.createElement("p", {
113418
113222
  className: "neeto-editor-unsplash-gallery__text",
113419
113223
  "data-cy": "neeto-editor-unsplash-image-picker-error"
113420
- }, 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.createElement("p", {
113224
+ }, 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.createElement("p", {
113421
113225
  className: "neeto-editor-unsplash-gallery__text",
113422
113226
  "data-cy": "neeto-editor-unsplash-image-picker-no-results-error"
113423
- }, t("unsplash.no-results"))), (cov_2d0jax9c7z().b[7][0]++, !error) && (cov_2d0jax9c7z().b[7][1]++, /*#__PURE__*/React__default.createElement("div", {
113227
+ }, t("unsplash.no-results"))), (cov_2d0jax9c7z().b[8][0]++, !error) && (cov_2d0jax9c7z().b[8][1]++, /*#__PURE__*/React__default.createElement("div", {
113424
113228
  className: "neeto-editor-unsplash-container"
113425
113229
  }, /*#__PURE__*/React__default.createElement(_default, {
113426
113230
  pack: true,
@@ -113446,9 +113250,9 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113446
113250
  columns: 3,
113447
113251
  gutter: 0
113448
113252
  }]
113449
- }, (cov_2d0jax9c7z().b[8][0]++, images) && (cov_2d0jax9c7z().b[8][1]++, images.map(function (image, index) {
113253
+ }, (cov_2d0jax9c7z().b[9][0]++, images) && (cov_2d0jax9c7z().b[9][1]++, images.map(function (image, index) {
113450
113254
  cov_2d0jax9c7z().f[5]++;
113451
- cov_2d0jax9c7z().s[31]++;
113255
+ cov_2d0jax9c7z().s[32]++;
113452
113256
  return /*#__PURE__*/React__default.createElement("div", {
113453
113257
  className: "neeto-editor-unsplash-gallery__item",
113454
113258
  "data-cy": "neeto-editor-unsplash-image-picker-result-".concat(index),
@@ -113465,7 +113269,7 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113465
113269
  src: image.urls.regular,
113466
113270
  onClick: function onClick() {
113467
113271
  cov_2d0jax9c7z().f[6]++;
113468
- cov_2d0jax9c7z().s[32]++;
113272
+ cov_2d0jax9c7z().s[33]++;
113469
113273
  return onSubmit(image.urls.small);
113470
113274
  }
113471
113275
  }), /*#__PURE__*/React__default.createElement("a", {
@@ -113473,7 +113277,7 @@ var UnsplashImagePicker = function UnsplashImagePicker(_ref) {
113473
113277
  rel: "noreferrer",
113474
113278
  target: "_blank"
113475
113279
  }, image.user.name, " "))));
113476
- }))), (cov_2d0jax9c7z().b[9][0]++, !hasMore) && (cov_2d0jax9c7z().b[9][1]++, /*#__PURE__*/React__default.createElement("p", {
113280
+ }))), (cov_2d0jax9c7z().b[10][0]++, !hasMore) && (cov_2d0jax9c7z().b[10][1]++, /*#__PURE__*/React__default.createElement("p", {
113477
113281
  className: "neeto-editor-unsplash-gallery__text"
113478
113282
  }, t("unsplash.end"))))));
113479
113283
  };
@@ -124136,7 +123940,7 @@ var Fixed = function Fixed(_ref) {
124136
123940
  buttonSize: "small",
124137
123941
  buttonProps: {
124138
123942
  tooltipProps: {
124139
- content: t("menu.variables"),
123943
+ content: t("menu.dynamic-variables"),
124140
123944
  position: "bottom"
124141
123945
  }
124142
123946
  }