@stacksjs/defaults 0.75.105 → 0.75.107

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.
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.105",
5
+ "version": "0.75.107",
6
6
  "description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.105",
5
+ "version": "0.75.107",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -55,8 +55,8 @@
55
55
  "dependencies": {
56
56
  "@iconify-json/f7": "^1.2.2",
57
57
  "@iconify-json/hugeicons": "^1.2.35",
58
- "@stacksjs/mobile": "^0.75.105",
59
- "@stacksjs/sanitizer": "^0.2.419",
58
+ "@stacksjs/mobile": "^0.75.107",
59
+ "@stacksjs/sanitizer": "^0.2.422",
60
60
  "@xterm/addon-fit": "^0.11.0",
61
61
  "@xterm/xterm": "^6.0.0",
62
62
  "ts-qr-codes": "^0.1.8"
@@ -258,6 +258,15 @@ describe('Native components feel native', () => {
258
258
  expect(sheet).toContain('putBack ??= liftToBody(element)')
259
259
  })
260
260
 
261
+ it('slides a sheet up from where it was lifted to, rather than appearing up', () => {
262
+ const sheet = read('NativeSheet')
263
+ // is-open follows `shown`, which present() sets only after the lifted
264
+ // sheet's closed style is worked out in the body.
265
+ expect(sheet).toContain("const sheetClass = derived(() => `${shown() ? 'is-open' : ''}")
266
+ expect(sheet).toContain('getComputedStyle(sheetPanel).transform')
267
+ expect(sheet.indexOf('putBack ??= liftToBody(element)')).toBeLessThan(sheet.indexOf('shown.set(true)'))
268
+ })
269
+
261
270
  it('presses the page back into a card behind a large sheet, unless motion is reduced', () => {
262
271
  const sheet = read('NativeSheet')
263
272
  expect(sheet).toContain('presentPageAsCard(element.ownerDocument, want)')
@@ -34,6 +34,10 @@ const detents = derived<SheetDetent[]>(() => {
34
34
  })
35
35
  const hasDetents = derived(() => Boolean(detentsProp()) && detentsProp().length > 0)
36
36
  const detent = state<SheetDetent>('large')
37
+ // Whether the sheet is drawn up. It follows `open`, but only once the sheet
38
+ // sits in the body with its closed position worked out there (present()), so
39
+ // it has somewhere to slide up from.
40
+ const shown = state(false)
37
41
 
38
42
  const sheetRoot = useRef('nativeSheet')
39
43
  const panel = useRef('nativeSheetPanel')
@@ -69,10 +73,18 @@ function present(): void {
69
73
  releaseBackground = lockBackground(element)
70
74
  openedOn = currentPath()
71
75
  coverTabBar(element, true)
76
+ // A node moved in the document starts over with no style to transition
77
+ // from, so a sheet lifted and marked open in one go appears already up.
78
+ // Work its closed style out where it now is, then open it: the panel
79
+ // slides from there.
80
+ const sheetPanel = panel.current as HTMLElement | null
81
+ if (sheetPanel) void element.ownerDocument.defaultView?.getComputedStyle(sheetPanel).transform
82
+ shown.set(true)
72
83
  void nextTick(() => (panel.current as HTMLElement | null)?.focus())
73
84
  }
74
85
 
75
86
  function dismissed(): void {
87
+ shown.set(false)
76
88
  const element = root()
77
89
  if (element) coverTabBar(element, false)
78
90
  releaseBackground?.()
@@ -153,7 +165,7 @@ useEventListener('keydown', (event: KeyboardEvent) => {
153
165
  else if (panel.current) trapFocus(panel.current as HTMLElement, event)
154
166
  })
155
167
 
156
- const sheetClass = derived(() => `${open() ? 'is-open' : ''}${hasDetents() ? ' has-detents' : ''}${detent() === 'medium' ? ' is-medium' : ''}`.trim())
168
+ const sheetClass = derived(() => `${shown() ? 'is-open' : ''}${hasDetents() ? ' has-detents' : ''}${detent() === 'medium' ? ' is-medium' : ''}`.trim())
157
169
  </script>
158
170
 
159
171
  <div ref="nativeSheet" class="native-sheet" :class="sheetClass()" :aria-hidden="open() ? 'false' : 'true'" data-native-sheet>
@@ -39,6 +39,20 @@
39
39
  "highlight": true
40
40
  }
41
41
  },
42
+ {
43
+ "id": "automation",
44
+ "name": "Automation",
45
+ "icon": "tablecells.fill",
46
+ "hasDedicatedPage": false,
47
+ "category": "data"
48
+ },
49
+ {
50
+ "id": "automation-run",
51
+ "name": "AutomationRun",
52
+ "icon": "tablecells.fill",
53
+ "hasDedicatedPage": false,
54
+ "category": "data"
55
+ },
42
56
  {
43
57
  "id": "bid",
44
58
  "name": "Bid",
@@ -84,6 +98,13 @@
84
98
  "hasDedicatedPage": false,
85
99
  "category": "data"
86
100
  },
101
+ {
102
+ "id": "campaign-variant",
103
+ "name": "CampaignVariant",
104
+ "icon": "tablecells.fill",
105
+ "hasDedicatedPage": false,
106
+ "category": "data"
107
+ },
87
108
  {
88
109
  "id": "card",
89
110
  "name": "Card",
@@ -124,6 +145,13 @@
124
145
  "highlight": true
125
146
  }
126
147
  },
148
+ {
149
+ "id": "categorizable",
150
+ "name": "Categorizable",
151
+ "icon": "tablecells.fill",
152
+ "hasDedicatedPage": false,
153
+ "category": "content"
154
+ },
127
155
  {
128
156
  "id": "category",
129
157
  "name": "Category",
@@ -141,6 +169,20 @@
141
169
  "hasDedicatedPage": true,
142
170
  "category": "content"
143
171
  },
172
+ {
173
+ "id": "communication-suppression",
174
+ "name": "CommunicationSuppression",
175
+ "icon": "tablecells.fill",
176
+ "hasDedicatedPage": false,
177
+ "category": "data"
178
+ },
179
+ {
180
+ "id": "consent-event",
181
+ "name": "ConsentEvent",
182
+ "icon": "tablecells.fill",
183
+ "hasDedicatedPage": false,
184
+ "category": "data"
185
+ },
144
186
  {
145
187
  "id": "coupon",
146
188
  "name": "Coupon",
@@ -154,7 +196,7 @@
154
196
  {
155
197
  "id": "courier",
156
198
  "name": "Courier",
157
- "icon": "car.fill",
199
+ "icon": "tablecells.fill",
158
200
  "hasDedicatedPage": false,
159
201
  "category": "commerce",
160
202
  "dashboard": {
@@ -262,6 +304,34 @@
262
304
  "enabled": false
263
305
  }
264
306
  },
307
+ {
308
+ "id": "form",
309
+ "name": "Form",
310
+ "icon": "tablecells.fill",
311
+ "hasDedicatedPage": false,
312
+ "category": "data"
313
+ },
314
+ {
315
+ "id": "form-field",
316
+ "name": "FormField",
317
+ "icon": "tablecells.fill",
318
+ "hasDedicatedPage": false,
319
+ "category": "data"
320
+ },
321
+ {
322
+ "id": "form-submission",
323
+ "name": "FormSubmission",
324
+ "icon": "tablecells.fill",
325
+ "hasDedicatedPage": false,
326
+ "category": "data"
327
+ },
328
+ {
329
+ "id": "gdpr-request",
330
+ "name": "GdprRequest",
331
+ "icon": "tablecells.fill",
332
+ "hasDedicatedPage": false,
333
+ "category": "data"
334
+ },
265
335
  {
266
336
  "id": "gift-card",
267
337
  "name": "GiftCard",
@@ -326,6 +396,13 @@
326
396
  "highlight": true
327
397
  }
328
398
  },
399
+ {
400
+ "id": "magic-link-token",
401
+ "name": "MagicLinkToken",
402
+ "icon": "tablecells.fill",
403
+ "hasDedicatedPage": false,
404
+ "category": "data"
405
+ },
329
406
  {
330
407
  "id": "mail-preference",
331
408
  "name": "MailPreference",
@@ -343,6 +420,20 @@
343
420
  "highlight": true
344
421
  }
345
422
  },
423
+ {
424
+ "id": "menu",
425
+ "name": "Menu",
426
+ "icon": "tablecells.fill",
427
+ "hasDedicatedPage": false,
428
+ "category": "content"
429
+ },
430
+ {
431
+ "id": "menu-item",
432
+ "name": "MenuItem",
433
+ "icon": "tablecells.fill",
434
+ "hasDedicatedPage": false,
435
+ "category": "content"
436
+ },
346
437
  {
347
438
  "id": "notification",
348
439
  "name": "Notification",
@@ -391,6 +482,13 @@
391
482
  "hasDedicatedPage": true,
392
483
  "category": "content"
393
484
  },
485
+ {
486
+ "id": "page-revision",
487
+ "name": "PageRevision",
488
+ "icon": "tablecells.fill",
489
+ "hasDedicatedPage": false,
490
+ "category": "content"
491
+ },
394
492
  {
395
493
  "id": "payment",
396
494
  "name": "Payment",
@@ -422,6 +520,23 @@
422
520
  "hasDedicatedPage": false,
423
521
  "category": "commerce"
424
522
  },
523
+ {
524
+ "id": "payment-webhook-event",
525
+ "name": "PaymentWebhookEvent",
526
+ "icon": "tablecells.fill",
527
+ "hasDedicatedPage": false,
528
+ "category": "commerce",
529
+ "dashboard": {
530
+ "enabled": false
531
+ }
532
+ },
533
+ {
534
+ "id": "personal-access-token",
535
+ "name": "PersonalAccessToken",
536
+ "icon": "tablecells.fill",
537
+ "hasDedicatedPage": false,
538
+ "category": "data"
539
+ },
425
540
  {
426
541
  "id": "pledge",
427
542
  "name": "Pledge",
@@ -497,6 +612,27 @@
497
612
  "highlight": true
498
613
  }
499
614
  },
615
+ {
616
+ "id": "redirect",
617
+ "name": "Redirect",
618
+ "icon": "tablecells.fill",
619
+ "hasDedicatedPage": false,
620
+ "category": "content"
621
+ },
622
+ {
623
+ "id": "referral",
624
+ "name": "Referral",
625
+ "icon": "tablecells.fill",
626
+ "hasDedicatedPage": false,
627
+ "category": "data"
628
+ },
629
+ {
630
+ "id": "referral-code",
631
+ "name": "ReferralCode",
632
+ "icon": "tablecells.fill",
633
+ "hasDedicatedPage": false,
634
+ "category": "data"
635
+ },
500
636
  {
501
637
  "id": "release",
502
638
  "name": "Release",
@@ -517,6 +653,13 @@
517
653
  "highlight": true
518
654
  }
519
655
  },
656
+ {
657
+ "id": "sender-domain",
658
+ "name": "SenderDomain",
659
+ "icon": "tablecells.fill",
660
+ "hasDedicatedPage": false,
661
+ "category": "data"
662
+ },
520
663
  {
521
664
  "id": "shipping-method",
522
665
  "name": "ShippingMethod",
@@ -547,6 +690,30 @@
547
690
  "highlight": true
548
691
  }
549
692
  },
693
+ {
694
+ "id": "site",
695
+ "name": "Site",
696
+ "icon": "tablecells.fill",
697
+ "hasDedicatedPage": false,
698
+ "category": "data",
699
+ "dashboard": {
700
+ "highlight": true
701
+ }
702
+ },
703
+ {
704
+ "id": "site-domain",
705
+ "name": "SiteDomain",
706
+ "icon": "tablecells.fill",
707
+ "hasDedicatedPage": false,
708
+ "category": "data"
709
+ },
710
+ {
711
+ "id": "sms-opt-out",
712
+ "name": "SmsOptOut",
713
+ "icon": "tablecells.fill",
714
+ "hasDedicatedPage": false,
715
+ "category": "data"
716
+ },
550
717
  {
551
718
  "id": "social-account",
552
719
  "name": "SocialAccount",
@@ -561,6 +728,26 @@
561
728
  "hasDedicatedPage": false,
562
729
  "category": "marketing"
563
730
  },
731
+ {
732
+ "id": "storage-item",
733
+ "name": "StorageItem",
734
+ "icon": "tablecells.fill",
735
+ "hasDedicatedPage": false,
736
+ "category": "data",
737
+ "dashboard": {
738
+ "enabled": false
739
+ }
740
+ },
741
+ {
742
+ "id": "storage-item-task",
743
+ "name": "StorageItemTask",
744
+ "icon": "tablecells.fill",
745
+ "hasDedicatedPage": false,
746
+ "category": "data",
747
+ "dashboard": {
748
+ "enabled": false
749
+ }
750
+ },
564
751
  {
565
752
  "id": "subscriber",
566
753
  "name": "Subscriber",
@@ -639,6 +826,13 @@
639
826
  "highlight": true
640
827
  }
641
828
  },
829
+ {
830
+ "id": "usage-event",
831
+ "name": "UsageEvent",
832
+ "icon": "tablecells.fill",
833
+ "hasDedicatedPage": false,
834
+ "category": "data"
835
+ },
642
836
  {
643
837
  "id": "user",
644
838
  "name": "User",
@@ -696,4 +890,4 @@
696
890
  }
697
891
  },
698
892
  "nav": []
699
- }
893
+ }