@shopify/shop-minis-cli 0.0.35 → 0.0.37

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 (44) hide show
  1. package/LICENSE +21 -0
  2. package/build/commands/check/index.d.ts +5 -0
  3. package/build/commands/check/index.js +77 -0
  4. package/build/commands/check/index.js.map +1 -0
  5. package/build/commands/check/utils/versions.d.ts +1 -0
  6. package/build/commands/check/utils/versions.js +14 -0
  7. package/build/commands/check/utils/versions.js.map +1 -0
  8. package/build/commands/dev/utils/metro/metro-server-middleware.js +1 -1
  9. package/build/dev-panel/asset-manifest.json +16 -0
  10. package/build/dev-panel/index.html +1 -302
  11. package/build/dev-panel/middleware.d.ts +1 -1
  12. package/build/dev-panel/middleware.js +1 -1
  13. package/build/dev-panel/robots.txt +3 -0
  14. package/build/dev-panel/static/css/main.31436fe3.css +2 -0
  15. package/build/dev-panel/static/css/main.31436fe3.css.map +1 -0
  16. package/build/dev-panel/static/js/main.27f47095.js +3 -0
  17. package/build/dev-panel/static/js/main.27f47095.js.LICENSE.txt +41 -0
  18. package/build/dev-panel/static/js/main.27f47095.js.map +1 -0
  19. package/build/index.js +2 -0
  20. package/build/index.js.map +1 -1
  21. package/package.json +14 -7
  22. package/templates/__template_common/package.json +6 -9
  23. package/templates/__template_hello_world/src/components/ComponentLink.ts +12 -0
  24. package/templates/__template_hello_world/src/routes.tsx +18 -0
  25. package/templates/__template_hello_world/src/screens/ImageCarouselScreen.tsx +147 -0
  26. package/templates/__template_hello_world/src/screens/InputScreen.tsx +206 -0
  27. package/templates/__template_hello_world/src/screens/MultipleChoiceScreen.tsx +75 -0
  28. package/templates/__template_hello_world/src/types.ts +3 -0
  29. package/templates/__template_hello_world/src/utils/getFlagEmoji.spec.tsx +19 -0
  30. package/templates/__template_hello_world/src/utils/getFlagEmoji.ts +7 -0
  31. package/build/dev-panel/images/shop-minis-logo-inverse.svg +0 -5
  32. package/build/dev-panel/images/shop-minis-logo.svg +0 -5
  33. package/build/dev-panel/middleware.ts +0 -6
  34. package/build/dev-panel/styles.css +0 -507
  35. /package/build/dev-panel/{images/checkmark.svg → checkmark.svg} +0 -0
  36. /package/build/dev-panel/{images/chevron.svg → chevron.svg} +0 -0
  37. /package/build/dev-panel/{images/copy.svg → copy.svg} +0 -0
  38. /package/build/dev-panel/{images/get-started.svg → get-started.svg} +0 -0
  39. /package/build/dev-panel/{images/how-to.svg → how-to.svg} +0 -0
  40. /package/build/dev-panel/{images/references.svg → references.svg} +0 -0
  41. /package/build/dev-panel/{images/bottomsheet.png → static/media/bottomsheet.fe525b8722f6d504a185.png} +0 -0
  42. /package/build/dev-panel/{images/navigation.png → static/media/navigation.597434370a97c328a970.png} +0 -0
  43. /package/build/dev-panel/{images/stories.png → static/media/stories.a425b6972a5338fabdad.png} +0 -0
  44. /package/build/dev-panel/{images/topics.svg → topics.svg} +0 -0
@@ -1,507 +0,0 @@
1
- :root {
2
- /* Light colors */
3
- --light-backgrounds-regular: #fff;
4
- --light-backgrounds-secondary: #f4f4ed;
5
- --light-backgrounds-inverse: #0F1721;
6
- --light-foregrounds-regular: #0F1721;
7
- --light-foregrounds-regular-inverse: #fff;
8
- --light-foregrounds-primary: #5433EB;
9
- /* Dark colors */
10
- --dark-background-regular: #0F1721;
11
- --dark-background-secondary: #3F454D;
12
- --dark-backgrounds-inverse: #fff;
13
- --dark-foregrounds-regular: #fff;
14
- --dark-foregrounds-regular-inverse: #0F1721;
15
- --dark-foregrounds-primary: #9C83F8;
16
- }
17
- @font-face {
18
- font-family: 'GoodSans';
19
- src: local('GoodSans'),
20
- url('https://cdn.shopify.com/static/fonts/GoodSans-Bold.woff2') format('woff2');
21
- font-style: normal;
22
- font-weight: 700;
23
- font-display: swap;
24
- }
25
-
26
- @font-face {
27
- font-family: 'GoodSans';
28
- src: local('GoodSans'),
29
- url('https://cdn.shopify.com/static/fonts/GoodSans-Medium.woff2') format('woff2');
30
- font-style: normal;
31
- font-weight: 500;
32
- font-display: swap;
33
- }
34
-
35
- @font-face {
36
- font-family: 'GoodSans';
37
- src: local('GoodSans'),
38
- url('https://cdn.shopify.com/static/fonts/GoodSansText-Regular.woff') format('woff2');
39
- font-style: normal;
40
- font-weight: 400;
41
- font-display: swap;
42
- }
43
-
44
- *,
45
- *::before,
46
- *::after {
47
- box-sizing: border-box;
48
- }
49
-
50
- html,
51
- body {
52
- margin: 0;
53
- padding: 0;
54
- }
55
-
56
- html {
57
- font-family: 'GoodSans';
58
- font-size: 1em;
59
- }
60
-
61
- body {
62
- display: flex;
63
- flex-direction: column;
64
- align-items: center;
65
- /* height: 100vh; */
66
- padding-bottom: 100px;
67
- background: var(--light-backgrounds-secondary);
68
- color: var(--light-foregrounds-regular);
69
- }
70
-
71
- a {
72
- color: var(--light-foregrounds-regular);
73
- text-decoration: none;
74
- }
75
-
76
- body::-webkit-scrollbar {
77
- width: 10px;
78
- }
79
-
80
- body::-webkit-scrollbar-track {
81
- background: rgba(0, 0, 0, 0.1);
82
- }
83
-
84
- body::-webkit-scrollbar-track:hover {
85
- background: rgba(0, 0, 0, 0.3);
86
- }
87
-
88
- body::-webkit-scrollbar-thumb {
89
- background-color: rgba(0, 0, 0, 0.3);
90
- border-radius: 6px;
91
- border: 2px solid transparent;
92
- margin: 2px;
93
- background-clip: padding-box;
94
- }
95
-
96
- body::-webkit-scrollbar-thumb:hover {
97
- background-color: rgba(0, 0, 0, 0.8);
98
- }
99
-
100
- h1 {
101
- font-size: 1em;
102
- font-weight: 500;
103
- }
104
-
105
- .page {
106
- max-width: min(70em, 100%);
107
- display: flex;
108
- flex-direction: column;
109
- padding-left: 1em;
110
- padding-right: 1em;
111
- }
112
-
113
- .logo {
114
- margin-top: 2em;
115
- align-self: center;
116
- margin-bottom: 1em;
117
- }
118
-
119
- .link-label {
120
- margin-bottom: 0.4em;
121
- }
122
-
123
- .link {
124
- margin-top: 0;
125
- white-space: nowrap;
126
- overflow: hidden;
127
- text-overflow: ellipsis;
128
- display: block;
129
- font-style: normal;
130
- font-size: 13px;
131
- line-height: 118%;
132
- color: var(--light-foregrounds-regular);
133
- text-decoration: none;
134
- padding: 1rem 0 1rem 1rem;
135
- }
136
-
137
- .link a,
138
- .link a:active,
139
- .link a:visited {
140
- color: var(--light-foregrounds-primary);
141
- }
142
-
143
- .qrcode {
144
- flex: 0;
145
- width: 100%;
146
- position: relative;
147
- }
148
-
149
- .qr-canvas {
150
- display: none;
151
- }
152
-
153
- .content {
154
- flex: 1;
155
- width: 100%;
156
- }
157
-
158
- .container {
159
- margin-top: 1em;
160
- margin-bottom: 2em;
161
- display: flex;
162
- flex-direction: column;
163
- gap: 2em;
164
- word-wrap: break-word;
165
- }
166
-
167
- .param-row {
168
- display: flex;
169
- flex-direction: row;
170
- }
171
-
172
- input[type='text'] {
173
- width: 100%;
174
- padding: 12px 16px;
175
- margin: 4px 0 12px;
176
- box-sizing: border-box;
177
- border-radius: 6px;
178
- border: 1px solid #cbcbca;
179
- font-family: 'GoodSans';
180
- font-size: 0.875em;
181
- outline: none;
182
- }
183
-
184
- label {
185
- font-size: 12px;
186
- }
187
-
188
- .param-appendix {
189
- font-size: 13px;
190
- }
191
- b.param-appendix {
192
- font-family: 'Courier New', Courier, monospace;
193
- }
194
-
195
- .icon-checkmark {
196
- color: var(--light-foregrounds-regular-inverse);
197
- display: none;
198
- gap: 0.5rem;
199
- }
200
- .icon-copy {
201
- color: var(--light-foregrounds-regular-inverse);
202
- display: flex;
203
- gap: 0.5rem;
204
- }
205
-
206
- .icon-checkmark, .icon-copy span {
207
- font-size: 13px;
208
- }
209
-
210
- .cursor-pointer {
211
- cursor: pointer;
212
- }
213
-
214
- .button {
215
- background-color: var(--light-backgrounds-inverse);
216
- color: var(--light-foregrounds-regular-inverse);
217
- border-radius: 100px;
218
- padding: 16px;
219
- min-width: 200px;
220
- border: none;
221
- text-decoration: none;
222
- font-size: 1rem;
223
- margin-top: 20px;
224
- }
225
-
226
- .button:hover {
227
- cursor: pointer;
228
- }
229
-
230
- .Main {
231
- display: flex;
232
- flex-direction: column;
233
- gap: 2rem;
234
- flex: 3;
235
- }
236
-
237
- .rail {
238
- display: flex;
239
- flex-direction: row;
240
- gap: 1rem;
241
- }
242
-
243
- .button-link {
244
- display: flex;
245
- flex-direction: row;
246
- align-items: flex-start;
247
- background: var(--light-backgrounds-inverse);
248
- color: var(--light-foregrounds-regular-inverse);
249
- border-radius: 40px;
250
- padding: 8px 16px;
251
- gap: 10px;
252
- box-sizing: border-box;
253
- text-decoration: none;
254
- font-size: 0.8125rem;
255
- font-family: 'GoodSans', system-ui, -apple-system, BlinkMacSystemFont,
256
- 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
257
- sans-serif;
258
- }
259
-
260
- .card {
261
- display: flex;
262
- flex-direction: column;
263
- background: var(--light-backgrounds-regular);
264
- border-radius: 1rem;
265
- overflow: hidden;
266
- }
267
- .card h3 {
268
- margin: 0;
269
- }
270
-
271
- .p-2 {
272
- padding: 2rem;
273
- }
274
-
275
- .icon-container {
276
- width: 4rem;
277
- height: 4rem;
278
- background-color: #EEEAFF;
279
- border-radius: 0.5rem;
280
- display: flex;
281
- justify-content: center;
282
- align-items: center;
283
- margin-bottom: 1rem;
284
- }
285
-
286
- .deeplink-content {
287
- background: var(--light-backgrounds-regular);
288
- border-radius: 60px;
289
- display: flex;
290
- flex-direction: row;
291
- justify-content: center;
292
- align-items: center;
293
- margin-top: 1rem;
294
- position: relative;
295
- border: 1px solid #cbcbca;
296
- }
297
-
298
- .copy-deeplink {
299
- background: var(--light-backgrounds-inverse);
300
- border-radius: 0px 31px 31px 0px;
301
- padding: 1rem 1.5rem;
302
- }
303
-
304
- .copy-deeplink:hover {
305
- cursor: pointer;
306
- }
307
-
308
- .changelog-grid {
309
- position: relative;
310
- max-width: 1200px;
311
- margin: 0 auto;
312
- display: flex;
313
- flex-direction: column;
314
- gap: 20px;
315
- }
316
-
317
- .changelog-grid::after {
318
- content: '';
319
- position: none;
320
- }
321
-
322
- .changelog-entry {
323
- display: flex;
324
- flex-direction: column;
325
- gap: 16px;
326
- margin-top: 20px;
327
- }
328
-
329
- .date {
330
- font-size: 0.8rem;
331
- }
332
-
333
- .items {
334
- display: flex;
335
- flex-direction: column;
336
- position: relative;
337
- }
338
- .items p {
339
- margin-top: 0
340
- }
341
- .items ul {
342
- padding: 0 1rem;
343
- margin: 0;
344
- }
345
- .items ul li {
346
- padding: 0;
347
- margin: 0;
348
- }
349
-
350
- .pill {
351
- display: inline-flex;
352
- flex-direction: row;
353
- align-items: center;
354
- justify-content: center;
355
- color: white;
356
- padding: 4px 6px;
357
- border-radius: 30px;
358
- font-size: 0.6875rem;
359
- }
360
-
361
- .api {
362
- background-color: #00855B;
363
- }
364
- .sdk {
365
- background-color: #5433EB;
366
- }
367
-
368
- .w-50 {
369
- width: 50%;
370
- }
371
-
372
- @media only screen and (min-width: 800px) {
373
- .container {
374
- flex-direction: row;
375
- align-items: center;
376
- }
377
-
378
- .qr-canvas {
379
- display: block;
380
- border-radius: 1em;
381
- width: 100% !important;
382
- height: 100% !important;
383
- aspect-ratio: 1;
384
- }
385
-
386
- .qrcode {
387
- flex: 1;
388
- max-width: 50%;
389
- }
390
-
391
- .content {
392
- max-width: 50%;
393
- }
394
-
395
- input[type='text'] {
396
- width: 60%;
397
- }
398
-
399
- .open-mini {
400
- display: none;
401
- }
402
- .date {
403
- width: 6rem;
404
- }
405
- .changelog-entry {
406
- flex-direction: row;
407
- }
408
- .changelog-grid::after {
409
- content: '';
410
- position: absolute;
411
- width: 4px;
412
- background-color: white;
413
- top: 0;
414
- bottom: 0;
415
- left: 117px;
416
- border-radius: 12px;
417
- }
418
- .items {
419
- margin-left: 30px;
420
- }
421
- .items::before {
422
- content: '';
423
- position: absolute;
424
- width: 8px;
425
- height: 8px;
426
- left: -29px;
427
- top: 0px;
428
- background-color: black;
429
- border: 2px solid white;
430
- border-radius: 50%;
431
- z-index: 1;
432
- box-sizing: content-box;
433
- }
434
- }
435
-
436
- @media (prefers-color-scheme: dark) {
437
- body {
438
- background: var(--dark-background-regular);
439
- color: var(--dark-foregrounds-regular);
440
- }
441
-
442
- body::-webkit-scrollbar {
443
- width: 10px;
444
- }
445
-
446
- body::-webkit-scrollbar-track {
447
- background: rgba(255, 255, 255, 0.1);
448
- }
449
-
450
- body::-webkit-scrollbar-track:hover {
451
- background: rgba(255, 255, 255, 0.3);
452
- }
453
-
454
- body::-webkit-scrollbar-thumb {
455
- background-color: rgba(255, 255, 255, 0.3);
456
- border-radius: 6px;
457
- border: 2px solid transparent;
458
- margin: 2px;
459
- background-clip: padding-box;
460
- }
461
-
462
- body::-webkit-scrollbar-thumb:hover {
463
- background-color: rgba(255, 255, 255, 0.8);
464
- }
465
- input[type='text'] {
466
- background-color: var(--dark-background-secondary);
467
- color: var(--dark-foregrounds-regular);
468
- border: none;
469
- }
470
-
471
- a {
472
- color: var(--dark-foregrounds-regular);
473
- text-decoration: none;
474
- }
475
-
476
- .link {
477
- color: var(--dark-foregrounds-regular);
478
- }
479
- .link a,
480
- .link a:active,
481
- .link a:visited {
482
- color: var(--dark-foregrounds-primary);
483
- }
484
-
485
- .button, .button-link {
486
- background-color: var(--dark-backgrounds-inverse) !important;
487
- color: var(--dark-foregrounds-regular-inverse) !important;
488
- }
489
- .card {
490
- background-color: var(--dark-background-secondary);
491
- }
492
- .deeplink-content {
493
- background-color: var(--dark-background-secondary);
494
- border-color: var(--dark-background-secondary);
495
- color: var(--dark-foregrounds-regular);
496
- }
497
- .changelog-grid::after {
498
- content: '';
499
- position: absolute;
500
- width: 4px;
501
- background-color: rgba(255, 255, 255, 0.3);
502
- top: 0;
503
- bottom: 0;
504
- left: 117px;
505
- border-radius: 12px;
506
- }
507
- }
File without changes