@takeshape/util 11.73.0 → 11.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/package.json +3 -3
  2. package/dist/common/__tests__/arrays.test.d.ts +0 -1
  3. package/dist/common/__tests__/arrays.test.js +0 -43
  4. package/dist/common/__tests__/billing.test.d.ts +0 -1
  5. package/dist/common/__tests__/billing.test.js +0 -27
  6. package/dist/common/__tests__/clone.test.d.ts +0 -1
  7. package/dist/common/__tests__/clone.test.js +0 -128
  8. package/dist/common/__tests__/data/advanced-draftjs-data-from-app.d.ts +0 -114
  9. package/dist/common/__tests__/data/advanced-draftjs-data-from-app.js +0 -316
  10. package/dist/common/__tests__/data/advanced-draftjs-from-markdown-data.d.ts +0 -160
  11. package/dist/common/__tests__/data/advanced-draftjs-from-markdown-data.js +0 -326
  12. package/dist/common/__tests__/data/advanced-draftjs-from-mdx-data.d.ts +0 -215
  13. package/dist/common/__tests__/data/advanced-draftjs-from-mdx-data.js +0 -407
  14. package/dist/common/__tests__/data/advanced-markdown-2nd-pass.d.ts +0 -1
  15. package/dist/common/__tests__/data/advanced-markdown-2nd-pass.js +0 -39
  16. package/dist/common/__tests__/data/advanced-markdown-data.d.ts +0 -1
  17. package/dist/common/__tests__/data/advanced-markdown-data.js +0 -39
  18. package/dist/common/__tests__/data/advanced-mdx-2nd-pass.d.ts +0 -1
  19. package/dist/common/__tests__/data/advanced-mdx-2nd-pass.js +0 -40
  20. package/dist/common/__tests__/data/advanced-mdx-data.d.ts +0 -1
  21. package/dist/common/__tests__/data/advanced-mdx-data.js +0 -40
  22. package/dist/common/__tests__/delay.test.d.ts +0 -1
  23. package/dist/common/__tests__/delay.test.js +0 -22
  24. package/dist/common/__tests__/draftjs.test.d.ts +0 -1
  25. package/dist/common/__tests__/draftjs.test.js +0 -373
  26. package/dist/common/__tests__/empty.test.d.ts +0 -1
  27. package/dist/common/__tests__/empty.test.js +0 -65
  28. package/dist/common/__tests__/http.test.d.ts +0 -1
  29. package/dist/common/__tests__/http.test.js +0 -13
  30. package/dist/common/__tests__/merge.test.d.ts +0 -1
  31. package/dist/common/__tests__/merge.test.js +0 -36
  32. package/dist/common/__tests__/mime.test.d.ts +0 -1
  33. package/dist/common/__tests__/mime.test.js +0 -17
  34. package/dist/common/__tests__/names.test.d.ts +0 -1
  35. package/dist/common/__tests__/names.test.js +0 -22
  36. package/dist/common/__tests__/naming.test.d.ts +0 -1
  37. package/dist/common/__tests__/naming.test.js +0 -98
  38. package/dist/common/__tests__/path-to-string.test.d.ts +0 -1
  39. package/dist/common/__tests__/path-to-string.test.js +0 -7
  40. package/dist/common/__tests__/predicate.test.d.ts +0 -1
  41. package/dist/common/__tests__/predicate.test.js +0 -18
  42. package/dist/common/__tests__/search-params.test.d.ts +0 -1
  43. package/dist/common/__tests__/search-params.test.js +0 -8
  44. package/dist/common/__tests__/sets.test.d.ts +0 -1
  45. package/dist/common/__tests__/sets.test.js +0 -13
  46. package/dist/common/__tests__/sort-object.test.d.ts +0 -1
  47. package/dist/common/__tests__/sort-object.test.js +0 -12
  48. package/dist/common/__tests__/strings.test.d.ts +0 -1
  49. package/dist/common/__tests__/strings.test.js +0 -78
  50. package/dist/common/__tests__/takeshape-id.test.d.ts +0 -1
  51. package/dist/common/__tests__/takeshape-id.test.js +0 -26
  52. package/dist/common/__tests__/templates.test.d.ts +0 -1
  53. package/dist/common/__tests__/templates.test.js +0 -220
  54. package/dist/common/__tests__/timezone.test.d.ts +0 -1
  55. package/dist/common/__tests__/timezone.test.js +0 -8
  56. package/dist/common/__tests__/types.test.d.ts +0 -1
  57. package/dist/common/__tests__/types.test.js +0 -46
  58. package/dist/common/__tests__/unix-to-iso.test.d.ts +0 -1
  59. package/dist/common/__tests__/unix-to-iso.test.js +0 -6
  60. package/dist/common/__tests__/urls.test.d.ts +0 -1
  61. package/dist/common/__tests__/urls.test.js +0 -19
  62. package/dist/common/__tests__/value.test.d.ts +0 -1
  63. package/dist/common/__tests__/value.test.js +0 -6
  64. package/dist/common/__tests__/visit.test.d.ts +0 -1
  65. package/dist/common/__tests__/visit.test.js +0 -112
  66. package/dist/node/__tests__/buffer.test.d.ts +0 -1
  67. package/dist/node/__tests__/buffer.test.js +0 -41
  68. package/dist/node/__tests__/encryption.test.d.ts +0 -1
  69. package/dist/node/__tests__/encryption.test.js +0 -14
  70. package/dist/node/__tests__/gzip.test.d.ts +0 -1
  71. package/dist/node/__tests__/gzip.test.js +0 -59
@@ -1,407 +0,0 @@
1
- export const data = {
2
- entityMap: {
3
- '4': {
4
- key: 'shortid9',
5
- type: 'unstyled',
6
- text: '',
7
- entityRanges: [],
8
- inlineStyleRanges: []
9
- },
10
- '8': {
11
- key: 'shortid11',
12
- depth: 0,
13
- type: 'LINK',
14
- text: 'link',
15
- entityRanges: [],
16
- inlineStyleRanges: [],
17
- mutability: 'MUTABLE',
18
- data: {
19
- url: 'https://google.com',
20
- target: '_blank',
21
- text: 'link'
22
- }
23
- },
24
- '9': {
25
- key: 'shortid12',
26
- depth: 0,
27
- type: 'unstyled',
28
- text: '',
29
- entityRanges: [],
30
- inlineStyleRanges: []
31
- },
32
- '14': {
33
- key: 'shortid14',
34
- depth: 0,
35
- type: 'unstyled',
36
- text: '',
37
- entityRanges: [],
38
- inlineStyleRanges: []
39
- },
40
- '1000000': {
41
- type: 'image',
42
- mutability: 'IMMUTABLE',
43
- data: {
44
- id: '92d98a89-52c1-4761-a4f5-1cc3463f3c0f',
45
- path: '7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png',
46
- caption: {
47
- blocks: [
48
- {
49
- key: 'shortid1',
50
- text: 'Image Caption',
51
- type: 'unstyled',
52
- depth: 0,
53
- inlineStyleRanges: [],
54
- entityRanges: [],
55
- data: {}
56
- }
57
- ],
58
- entityMap: {}
59
- },
60
- credit: {
61
- blocks: [
62
- {
63
- key: 'shortid1',
64
- text: 'Image Credit',
65
- type: 'unstyled',
66
- depth: 0,
67
- inlineStyleRanges: [],
68
- entityRanges: [],
69
- data: {}
70
- }
71
- ],
72
- entityMap: {}
73
- },
74
- link: {
75
- url: 'https://takeshape.io',
76
- external: true
77
- },
78
- alignment: 'right',
79
- size: 'medium',
80
- contentTypeId: 'ASSET'
81
- }
82
- },
83
- '1000001': {
84
- type: 'image',
85
- mutability: 'IMMUTABLE',
86
- data: {
87
- id: '885f34b5-8dea-483a-8909-c50b9932862c',
88
- path: '7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png',
89
- caption: {
90
- blocks: [
91
- {
92
- key: 'shortid3',
93
- text: '',
94
- type: 'unstyled',
95
- depth: 0,
96
- inlineStyleRanges: [],
97
- entityRanges: [],
98
- data: {}
99
- }
100
- ],
101
- entityMap: {}
102
- },
103
- credit: {
104
- blocks: [
105
- {
106
- key: 'shortid3',
107
- text: '',
108
- type: 'unstyled',
109
- depth: 0,
110
- inlineStyleRanges: [],
111
- entityRanges: [],
112
- data: {}
113
- }
114
- ],
115
- entityMap: {}
116
- },
117
- link: {
118
- url: '',
119
- external: false
120
- },
121
- alignment: '',
122
- size: '',
123
- contentTypeId: 'ASSET'
124
- }
125
- },
126
- '1000002': {
127
- type: 'image',
128
- mutability: 'IMMUTABLE',
129
- data: {
130
- id: 'a251340c-e8c0-4df7-b38b-51dc7a9d6a44',
131
- path: '7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png',
132
- caption: {
133
- blocks: [
134
- {
135
- key: 'shortid5',
136
- text: 'Asset Caption',
137
- type: 'unstyled',
138
- depth: 0,
139
- inlineStyleRanges: [],
140
- entityRanges: [],
141
- data: {}
142
- }
143
- ],
144
- entityMap: {}
145
- },
146
- credit: {
147
- blocks: [
148
- {
149
- key: 'shortid5',
150
- text: 'Asset Credit',
151
- type: 'unstyled',
152
- depth: 0,
153
- inlineStyleRanges: [],
154
- entityRanges: [],
155
- data: {}
156
- }
157
- ],
158
- entityMap: {}
159
- },
160
- link: {
161
- url: '',
162
- external: false
163
- },
164
- alignment: '',
165
- size: '',
166
- contentTypeId: 'ASSET'
167
- }
168
- },
169
- '1000003': {
170
- type: 'oembed',
171
- mutability: 'IMMUTABLE',
172
- data: {
173
- url: 'https://twitter.com/dog_feelings/status/1430266037182767105',
174
- author_name: 'Thoughts of Dog®',
175
- author_url: 'https://twitter.com/dog_feelings',
176
- html: '<blockquote class="twitter-tweet"><p lang="en" dir="ltr">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog® (@dog_feelings) <a href="https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw">August 24, 2021</a></blockquote>\n<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>\n',
177
- width: 550,
178
- type: 'rich',
179
- cache_age: 3153600000,
180
- provider_name: 'Twitter',
181
- provider_url: '',
182
- version: '1.0'
183
- }
184
- }
185
- },
186
- blocks: [
187
- {
188
- depth: 0,
189
- type: 'header-one',
190
- text: 'Draftjs / Markdown Test Document',
191
- inlineStyleRanges: [],
192
- entityRanges: []
193
- },
194
- {
195
- depth: 0,
196
- type: 'header-two',
197
- text: 'Fancy Stuff',
198
- inlineStyleRanges: [],
199
- entityRanges: []
200
- },
201
- {
202
- depth: 0,
203
- type: 'header-three',
204
- text: 'Image',
205
- inlineStyleRanges: [],
206
- entityRanges: []
207
- },
208
- {
209
- key: 'shortid2',
210
- text: ' ',
211
- type: 'atomic',
212
- depth: 0,
213
- inlineStyleRanges: [],
214
- entityRanges: [
215
- {
216
- offset: 0,
217
- length: 1,
218
- key: 1000000
219
- }
220
- ],
221
- data: {}
222
- },
223
- {
224
- depth: 0,
225
- type: 'header-three',
226
- text: 'Image without caption or credit',
227
- inlineStyleRanges: [],
228
- entityRanges: []
229
- },
230
- {
231
- key: 'shortid4',
232
- text: ' ',
233
- type: 'atomic',
234
- depth: 0,
235
- inlineStyleRanges: [],
236
- entityRanges: [
237
- {
238
- offset: 0,
239
- length: 1,
240
- key: 1000001
241
- }
242
- ],
243
- data: {}
244
- },
245
- {
246
- depth: 0,
247
- type: 'header-three',
248
- text: 'Image with caption and credit in asset, not in draftjs',
249
- inlineStyleRanges: [],
250
- entityRanges: []
251
- },
252
- {
253
- key: 'shortid6',
254
- text: ' ',
255
- type: 'atomic',
256
- depth: 0,
257
- inlineStyleRanges: [],
258
- entityRanges: [
259
- {
260
- offset: 0,
261
- length: 1,
262
- key: 1000002
263
- }
264
- ],
265
- data: {}
266
- },
267
- {
268
- depth: 0,
269
- type: 'header-three',
270
- text: 'Media URL',
271
- inlineStyleRanges: [],
272
- entityRanges: []
273
- },
274
- {
275
- key: 'shortid7',
276
- text: ' ',
277
- type: 'atomic',
278
- depth: 0,
279
- inlineStyleRanges: [],
280
- entityRanges: [
281
- {
282
- offset: 0,
283
- length: 1,
284
- key: 1000003
285
- }
286
- ],
287
- data: {}
288
- },
289
- {
290
- depth: 0,
291
- type: 'header-three',
292
- text: 'Code Block',
293
- inlineStyleRanges: [],
294
- entityRanges: []
295
- },
296
- {
297
- depth: 0,
298
- type: 'code-block',
299
- data: {
300
- lang: 'javascript'
301
- },
302
- text: "if (true + true > 1) {\n console.log('true');\n}",
303
- entityRanges: [],
304
- inlineStyleRanges: []
305
- },
306
- {
307
- depth: 0,
308
- type: 'unstyled',
309
- text: '',
310
- entityRanges: [
311
- {
312
- offset: 0,
313
- length: 0,
314
- key: 4
315
- }
316
- ],
317
- inlineStyleRanges: []
318
- },
319
- {
320
- depth: 0,
321
- key: 'shortid10',
322
- text: ' ',
323
- type: 'section-break',
324
- inlineStyleRanges: [],
325
- entityRanges: [],
326
- data: {}
327
- },
328
- {
329
- depth: 0,
330
- type: 'header-two',
331
- text: 'Basic Markdown',
332
- inlineStyleRanges: [],
333
- entityRanges: []
334
- },
335
- {
336
- depth: 0,
337
- type: 'unstyled',
338
- text: 'Normal Super Sub Pre link bold italic underline',
339
- entityRanges: [
340
- {
341
- offset: 21,
342
- length: 4,
343
- key: 8
344
- },
345
- {
346
- offset: 25,
347
- length: 0,
348
- key: 9
349
- }
350
- ],
351
- inlineStyleRanges: [
352
- {
353
- offset: 7,
354
- length: 5,
355
- style: 'SUP'
356
- },
357
- {
358
- offset: 13,
359
- length: 3,
360
- style: 'SUB'
361
- },
362
- {
363
- offset: 17,
364
- length: 3,
365
- style: 'CODE'
366
- },
367
- {
368
- offset: 26,
369
- length: 4,
370
- style: 'BOLD'
371
- },
372
- {
373
- offset: 31,
374
- length: 6,
375
- style: 'ITALIC'
376
- },
377
- {
378
- offset: 38,
379
- length: 9,
380
- style: 'UNDERLINE'
381
- }
382
- ]
383
- },
384
- {
385
- depth: 0,
386
- type: 'blockquote',
387
- text: 'Block Quote',
388
- inlineStyleRanges: [],
389
- entityRanges: []
390
- },
391
- {
392
- key: 'shortid13',
393
- text: 'Pull Quote',
394
- type: 'pullquote',
395
- depth: 0,
396
- inlineStyleRanges: [],
397
- entityRanges: [
398
- {
399
- offset: 10,
400
- length: 0,
401
- key: 14
402
- }
403
- ],
404
- data: {}
405
- }
406
- ]
407
- };
@@ -1 +0,0 @@
1
- export declare const data = "# Draftjs / Markdown Test Document\n\n## Fancy Stuff\n\n### Image\n\n <figure class=\"right medium\"><a href=\"https://takeshape.io\"><img src=\"https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png\"/></a><figcaption><span class=\"caption\">Image Caption</span> <span class=\"credit\">Image Credit</span></figcaption></figure>\n\n### Image without caption or credit\n\n <figure><img src=\"https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png\"/></figure>\n\n### Image with caption and credit in asset, not in draftjs\n\n <figure><img src=\"https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png\"/><figcaption><span class=\"caption\">Asset Caption</span> <span class=\"credit\">Asset Credit</span></figcaption></figure>\n\n### Media URL\n\n <div class=\"oembed\"><blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog\u00AE (@dog_feelings) <a href=\"https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw\">August 24, 2021</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n</div>\n\n### Code Block\n\n```javascript\nif (true \\+ true &#x3E; 1) {\n console.log(&#x27;true&#x27;);\n}\n```\n\n*** \n\n## Basic Markdown\n\nNormal ^Super^ ~Sub~ `Pre` link **bold** _italic_ ++underline++\n\n> Block Quote\n\n<aside style=\"font-style: italic; margin: 2em 2.5em;\">Pull Quote</aside>";
@@ -1,39 +0,0 @@
1
- export const data = `# Draftjs / Markdown Test Document
2
-
3
- ## Fancy Stuff
4
-
5
- ### Image
6
-
7
- <figure class="right medium"><a href="https://takeshape.io"><img src="https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png"/></a><figcaption><span class="caption">Image Caption</span> <span class="credit">Image Credit</span></figcaption></figure>
8
-
9
- ### Image without caption or credit
10
-
11
- <figure><img src="https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png"/></figure>
12
-
13
- ### Image with caption and credit in asset, not in draftjs
14
-
15
- <figure><img src="https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png"/><figcaption><span class="caption">Asset Caption</span> <span class="credit">Asset Credit</span></figcaption></figure>
16
-
17
- ### Media URL
18
-
19
- <div class="oembed"><blockquote class="twitter-tweet"><p lang="en" dir="ltr">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog® (@dog_feelings) <a href="https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw">August 24, 2021</a></blockquote>
20
- <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
21
- </div>
22
-
23
- ### Code Block
24
-
25
- \`\`\`javascript
26
- if (true \\+ true &#x3E; 1) {
27
- console.log(&#x27;true&#x27;);
28
- }
29
- \`\`\`
30
-
31
- ***
32
-
33
- ## Basic Markdown
34
-
35
- Normal ^Super^ ~Sub~ \`Pre\` link **bold** _italic_ ++underline++
36
-
37
- > Block Quote
38
-
39
- <aside style="font-style: italic; margin: 2em 2.5em;">Pull Quote</aside>`;
@@ -1 +0,0 @@
1
- export declare const data = "# Draftjs / Markdown Test Document\n\n## Fancy Stuff\n\n### Image\n\n <figure class=\"right medium\"><a href=\"https://takeshape.io\" target=\"blank\" rel=\"noopener noreferrer\"><img src=\"https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png\"/></a><figcaption><span class=\"caption\">Image Caption</span> <span class=\"credit\">Image Credit</span></figcaption></figure>\n\n### Image without caption or credit\n\n <figure><img src=\"https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png\"/></figure>\n\n### Image with caption and credit in asset, not in draftjs\n\n <figure><img src=\"https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png\"/><figcaption><span class=\"caption\">Asset Caption</span> <span class=\"credit\">Asset Credit</span></figcaption></figure>\n\n### Media URL\n\n <div class=\"oembed\"><blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog\u00AE (@dog_feelings) <a href=\"https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw\">August 24, 2021</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n</div>\n\n### Code Block\n\n```javascript\nif (true \\+ true &#x3E; 1) {\n console.log(&#x27;true&#x27;);\n}\n```\n\n*** \n\n## Basic Markdown\n\nNormal ^Super^ ~Sub~ `Pre` <TSExternalLink text=\"link\" href=\"https://google.com\">link</TSExternalLink> **bold** _italic_ ++underline++\n\n> Block Quote\n\n<aside style=\"font-style: italic; margin: 2em 2.5em;\">Pull Quote</aside>";
@@ -1,39 +0,0 @@
1
- export const data = `# Draftjs / Markdown Test Document
2
-
3
- ## Fancy Stuff
4
-
5
- ### Image
6
-
7
- <figure class="right medium"><a href="https://takeshape.io" target="blank" rel="noopener noreferrer"><img src="https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png"/></a><figcaption><span class="caption">Image Caption</span> <span class="credit">Image Credit</span></figcaption></figure>
8
-
9
- ### Image without caption or credit
10
-
11
- <figure><img src="https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png"/></figure>
12
-
13
- ### Image with caption and credit in asset, not in draftjs
14
-
15
- <figure><img src="https://images.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png"/><figcaption><span class="caption">Asset Caption</span> <span class="credit">Asset Credit</span></figcaption></figure>
16
-
17
- ### Media URL
18
-
19
- <div class="oembed"><blockquote class="twitter-tweet"><p lang="en" dir="ltr">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog® (@dog_feelings) <a href="https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw">August 24, 2021</a></blockquote>
20
- <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
21
- </div>
22
-
23
- ### Code Block
24
-
25
- \`\`\`javascript
26
- if (true \\+ true &#x3E; 1) {
27
- console.log(&#x27;true&#x27;);
28
- }
29
- \`\`\`
30
-
31
- ***
32
-
33
- ## Basic Markdown
34
-
35
- Normal ^Super^ ~Sub~ \`Pre\` <TSExternalLink text="link" href="https://google.com">link</TSExternalLink> **bold** _italic_ ++underline++
36
-
37
- > Block Quote
38
-
39
- <aside style="font-style: italic; margin: 2em 2.5em;">Pull Quote</aside>`;
@@ -1 +0,0 @@
1
- export declare const data = "# Draftjs / Markdown Test Document\n\n## Fancy Stuff\n\n### Image\n\n <TSImage id=\"92d98a89-52c1-4761-a4f5-1cc3463f3c0f\" caption=\"Image Caption\" credit=\"Image Credit\" link=\"https://takeshape.io\" linkisexternal=\"true\" alignment=\"right\" size=\"medium\" src=\"https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png\"/>\n\n### Image without caption or credit\n\n <TSImage id=\"885f34b5-8dea-483a-8909-c50b9932862c\" caption=\"\" credit=\"\" link=\"\" linkisexternal=\"false\" alignment=\"\" size=\"\" src=\"https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png\"/>\n\n### Image with caption and credit in asset, not in draftjs\n\n <TSImage id=\"a251340c-e8c0-4df7-b38b-51dc7a9d6a44\" caption=\"Asset Caption\" credit=\"Asset Credit\" link=\"\" linkisexternal=\"false\" alignment=\"\" size=\"\" src=\"https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png\"/>\n\n### Media URL\n\n <TSOembed url=\"https://twitter.com/dog_feelings/status/1430266037182767105\" author_name=\"Thoughts of Dog\u00AE\" author_url=\"https://twitter.com/dog_feelings\" width=\"550\" height=\"\" type=\"rich\" cache_age=\"3153600000\" provider_name=\"Twitter\" version=\"1.0\">\n<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog\u00AE (@dog_feelings) <a href=\"https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw\">August 24, 2021</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n</TSOembed>\n\n### Code Block\n\n```javascript\nif (true \\+ true &#x3E; 1) {\n console.log(&#x27;true&#x27;);\n}\n```\n\n*** \n\n## Basic Markdown\n\nNormal ^Super^ ~Sub~ `Pre` <TSExternalLink text=\"link\" href=\"https://google.com\">link</TSExternalLink> **bold** _italic_ ++underline++\n\n> Block Quote\n\n<TSPullquote>Pull Quote</TSPullquote>";
@@ -1,40 +0,0 @@
1
- export const data = `# Draftjs / Markdown Test Document
2
-
3
- ## Fancy Stuff
4
-
5
- ### Image
6
-
7
- <TSImage id="92d98a89-52c1-4761-a4f5-1cc3463f3c0f" caption="Image Caption" credit="Image Credit" link="https://takeshape.io" linkisexternal="true" alignment="right" size="medium" src="https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png"/>
8
-
9
- ### Image without caption or credit
10
-
11
- <TSImage id="885f34b5-8dea-483a-8909-c50b9932862c" caption="" credit="" link="" linkisexternal="false" alignment="" size="" src="https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png"/>
12
-
13
- ### Image with caption and credit in asset, not in draftjs
14
-
15
- <TSImage id="a251340c-e8c0-4df7-b38b-51dc7a9d6a44" caption="Asset Caption" credit="Asset Credit" link="" linkisexternal="false" alignment="" size="" src="https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png"/>
16
-
17
- ### Media URL
18
-
19
- <TSOembed url="https://twitter.com/dog_feelings/status/1430266037182767105" author_name="Thoughts of Dog®" author_url="https://twitter.com/dog_feelings" width="550" height="" type="rich" cache_age="3153600000" provider_name="Twitter" version="1.0">
20
- <blockquote class="twitter-tweet"><p lang="en" dir="ltr">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog® (@dog_feelings) <a href="https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw">August 24, 2021</a></blockquote>
21
- <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
22
- </TSOembed>
23
-
24
- ### Code Block
25
-
26
- \`\`\`javascript
27
- if (true \\+ true &#x3E; 1) {
28
- console.log(&#x27;true&#x27;);
29
- }
30
- \`\`\`
31
-
32
- ***
33
-
34
- ## Basic Markdown
35
-
36
- Normal ^Super^ ~Sub~ \`Pre\` <TSExternalLink text="link" href="https://google.com">link</TSExternalLink> **bold** _italic_ ++underline++
37
-
38
- > Block Quote
39
-
40
- <TSPullquote>Pull Quote</TSPullquote>`;
@@ -1 +0,0 @@
1
- export declare const data = "# Draftjs / Markdown Test Document\n\n## Fancy Stuff\n\n### Image\n\n <TSImage id=\"92d98a89-52c1-4761-a4f5-1cc3463f3c0f\" caption=\"Image Caption\" credit=\"Image Credit\" link=\"https://takeshape.io\" linkisexternal=\"true\" alignment=\"right\" size=\"medium\" src=\"https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png\"/>\n\n### Image without caption or credit\n\n <TSImage id=\"885f34b5-8dea-483a-8909-c50b9932862c\" caption=\"\" credit=\"\" link=\"\" linkisexternal=\"false\" alignment=\"\" size=\"\" src=\"https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png\"/>\n\n### Image with caption and credit in asset, not in draftjs\n\n <TSImage id=\"a251340c-e8c0-4df7-b38b-51dc7a9d6a44\" caption=\"Asset Caption\" credit=\"Asset Credit\" link=\"\" linkisexternal=\"false\" alignment=\"\" size=\"\" src=\"https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png\"/>\n\n### Media URL\n\n <TSOembed url=\"https://twitter.com/dog_feelings/status/1430266037182767105\" author_name=\"Thoughts of Dog\u00AE\" author_url=\"https://twitter.com/dog_feelings\" width=\"550\" height=\"\" type=\"rich\" cache_age=\"3153600000\" provider_name=\"Twitter\" version=\"1.0\">\n<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog\u00AE (@dog_feelings) <a href=\"https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw\">August 24, 2021</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n</TSOembed>\n\n### Code Block\n\n```javascript\nif (true \\+ true &#x3E; 1) {\n console.log(&#x27;true&#x27;);\n}\n```\n\n*** \n\n## Basic Markdown\n\nNormal ^Super^ ~Sub~ `Pre` <TSExternalLink text=\"link\" href=\"https://google.com\">link</TSExternalLink> **bold** _italic_ ++underline++\n\n> Block Quote\n\n<TSPullquote>Pull Quote</TSPullquote>";
@@ -1,40 +0,0 @@
1
- export const data = `# Draftjs / Markdown Test Document
2
-
3
- ## Fancy Stuff
4
-
5
- ### Image
6
-
7
- <TSImage id="92d98a89-52c1-4761-a4f5-1cc3463f3c0f" caption="Image Caption" credit="Image Credit" link="https://takeshape.io" linkisexternal="true" alignment="right" size="medium" src="https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/92d98a89-52c1-4761-a4f5-1cc3463f3c0f/file.png"/>
8
-
9
- ### Image without caption or credit
10
-
11
- <TSImage id="885f34b5-8dea-483a-8909-c50b9932862c" caption="" credit="" link="" linkisexternal="false" alignment="" size="" src="https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/885f34b5-8dea-483a-8909-c50b9932862c/file.png"/>
12
-
13
- ### Image with caption and credit in asset, not in draftjs
14
-
15
- <TSImage id="a251340c-e8c0-4df7-b38b-51dc7a9d6a44" caption="Asset Caption" credit="Asset Credit" link="" linkisexternal="false" alignment="" size="" src="https://images.dev.takeshape.io/7b508a95-738b-4a65-9567-1c8d98009888/dev/a251340c-e8c0-4df7-b38b-51dc7a9d6a44/file.png"/>
16
-
17
- ### Media URL
18
-
19
- <TSOembed url="https://twitter.com/dog_feelings/status/1430266037182767105" author_name="Thoughts of Dog®" author_url="https://twitter.com/dog_feelings" width="550" height="" type="rich" cache_age="3153600000" provider_name="Twitter" version="1.0">
20
- <blockquote class="twitter-tweet"><p lang="en" dir="ltr">the FDA. has also fully approved. giving my forehead. a little smooch</p>&mdash; Thoughts of Dog® (@dog_feelings) <a href="https://twitter.com/dog_feelings/status/1430266037182767105?ref_src=twsrc%5Etfw">August 24, 2021</a></blockquote>
21
- <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
22
- </TSOembed>
23
-
24
- ### Code Block
25
-
26
- \`\`\`javascript
27
- if (true \\+ true &#x3E; 1) {
28
- console.log(&#x27;true&#x27;);
29
- }
30
- \`\`\`
31
-
32
- ***
33
-
34
- ## Basic Markdown
35
-
36
- Normal ^Super^ ~Sub~ \`Pre\` <TSExternalLink text="link" href="https://google.com">link</TSExternalLink> **bold** _italic_ ++underline++
37
-
38
- > Block Quote
39
-
40
- <TSPullquote>Pull Quote</TSPullquote>`;
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- import { expect, test } from 'vitest';
2
- import { backoff, delay, randomDelay } from "../delay.js";
3
- test('delay', async () => {
4
- const value = 'sjdfalkjdlkasjdfl';
5
- expect(await delay(1)).toBe(undefined);
6
- expect(await delay(1, value)).toBe(value);
7
- });
8
- test('randomDelay', async () => {
9
- const value = 'sjdfalkjdlkasjdfl';
10
- expect(await randomDelay(1, 2)).toBe(undefined);
11
- expect(await randomDelay(1, 2, value)).toBe(value);
12
- });
13
- test('backoff', async () => {
14
- const secondAttempt = await backoff(1, 10);
15
- expect(secondAttempt.num).toBe(2);
16
- expect(secondAttempt.lastDelay).toBeGreaterThanOrEqual(1);
17
- expect(secondAttempt.lastDelay).toBeLessThanOrEqual(10);
18
- const thirdAttempt = await backoff(1, 10, secondAttempt);
19
- expect(thirdAttempt.num).toBe(3);
20
- expect(thirdAttempt.lastDelay).toBeGreaterThanOrEqual(1);
21
- expect(thirdAttempt.lastDelay).toBeLessThanOrEqual(10);
22
- });
@@ -1 +0,0 @@
1
- export {};