Skip to content

Commit 00f80f4

Browse files
committed
Update to work with Paper 8.1.0
1 parent 9d234f8 commit 00f80f4

12 files changed

Lines changed: 498 additions & 334 deletions

File tree

package-lock.json

Lines changed: 202 additions & 150 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "paper",
3-
"version": "7.6.0",
3+
"version": "8.1.0",
44
"scripts": {
55
"dev": "npm-run-all --parallel vite_dev shopify_dev",
6-
"pull": "shopify theme pull --nodelete --store brickspacetestingstore.myshopify.com",
7-
"shopify_dev": "shopify theme dev --store brickspacetestingstore.myshopify.com",
6+
"pull": "shopify theme pull --nodelete --store high-variant-combined-testing-store.myshopify.com",
7+
"shopify_dev": "shopify theme dev --store high-variant-combined-testing-store.myshopify.com",
88
"vite_dev": "vite dev",
99
"test": "vitest",
1010
"coverage": "vitest run --coverage",
@@ -42,6 +42,6 @@
4242
"instant.page": "5.1.1"
4343
},
4444
"config": {
45-
"store": "brickspacetestingstore.myshopify.com"
45+
"store": "high-variant-combined-testing-store.myshopify.com"
4646
}
4747
}

src/css/base/typography.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,42 @@
2121
h1,
2222
.h1,
2323
h1 > * {
24+
text-transform: var(--type__header-capitilization);
2425
@apply type__heading--bold-1;
2526
@apply leading-none;
2627
}
2728
h2,
2829
.h2,
2930
h2 > * {
31+
text-transform: var(--type__header-capitilization);
3032
@apply type__heading--bold-2;
3133
@apply leading-none;
3234
}
3335
h3,
3436
.h3,
3537
h3 > * {
38+
text-transform: var(--type__header-capitilization);
3639
@apply type__heading--bold-3;
3740
@apply leading-none;
3841
}
3942
h4,
4043
.h4,
4144
h4 > * {
45+
text-transform: var(--type__header-capitilization);
4246
@apply type__heading--bold-4;
4347
@apply leading-tight;
4448
}
4549
h5,
4650
.h5,
4751
h5 > * {
52+
text-transform: var(--type__header-capitilization);
4853
@apply type__heading--bold-5;
4954
@apply leading-tight;
5055
}
5156
h6,
5257
.h6,
5358
h6 > * {
59+
text-transform: var(--type__header-capitilization);
5460
@apply type__heading--bold-6;
5561
@apply leading-tight;
5662
}

src/css/components/buttons.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
/* standard button */
66
.btn {
77
@apply inline-flex items-center justify-center w-auto px-6 py-2 overflow-hidden text-center no-underline cursor-pointer type__nav border__button--radius color__button-primary border__button animation-500;
8-
text-transform: var(--type__button-capiliziation);
8+
text-transform: var(--type__button-capitilization);
99

1010
* {
1111
@apply type__nav;
12-
text-transform: var(--type__button-capiliziation);
12+
text-transform: var(--type__button-capitilization);
1313
}
1414

1515
&__content {

src/css/utilities/typography.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,48 +30,55 @@
3030
font-family: var(--type__font-header-family);
3131
font-style: var(--type__font-header-style);
3232
font-weight: var(--type__font-header-weight);
33+
text-transform: var(--type__header-capitilization);
3334
@apply underline-offset-2 tracking-normal;
3435
@apply leading-tight;
3536
}
3637
.type__heading--bold-1 {
3738
font-family: var(--type__font-header-family);
3839
font-style: var(--type__font-header-style);
3940
font-weight: var(--type__font-header-weight);
41+
text-transform: var(--type__header-capitilization);
4042
@apply md:text-5xl underline-offset-2 text-4xl tracking-normal;
4143
@apply leading-tight;
4244
}
4345
.type__heading--bold-2 {
4446
font-family: var(--type__font-header-family);
4547
font-style: var(--type__font-header-style);
4648
font-weight: var(--type__font-header-weight);
49+
text-transform: var(--type__header-capitilization);
4750
@apply md:text-4xl underline-offset-2 text-3xl tracking-normal;
4851
@apply leading-tight;
4952
}
5053
.type__heading--bold-3 {
5154
font-family: var(--type__font-header-family);
5255
font-style: var(--type__font-header-style);
5356
font-weight: var(--type__font-header-weight);
57+
text-transform: var(--type__header-capitilization);
5458
@apply md:text-3xl underline-offset-2 text-2xl tracking-normal;
5559
@apply leading-tight;
5660
}
5761
.type__heading--bold-4 {
5862
font-family: var(--type__font-header-family);
5963
font-style: var(--type__font-header-style);
6064
font-weight: var(--type__font-header-weight);
65+
text-transform: var(--type__header-capitilization);
6166
@apply md:text-2xl underline-offset-2 text-xl tracking-normal;
6267
@apply leading-tight;
6368
}
6469
.type__heading--bold-5 {
6570
font-family: var(--type__font-header-family);
6671
font-style: var(--type__font-header-style);
6772
font-weight: var(--type__font-header-weight);
73+
text-transform: var(--type__header-capitilization);
6874
@apply md:text-xl underline-offset-2 text-lg tracking-normal;
6975
@apply leading-tight;
7076
}
7177
.type__heading--bold-6 {
7278
font-family: var(--type__font-header-family);
7379
font-style: var(--type__font-header-style);
7480
font-weight: var(--type__font-header-weight);
81+
text-transform: var(--type__header-capitilization);
7582
@apply md:text-lg underline-offset-2 text-base tracking-normal;
7683
@apply leading-tight;
7784
}

src/ts/cart/cart.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ export const cart = {
4545
try {
4646
const response = await fetch(`${window.Shopify.routes.root}cart.js`, {
4747
method: "GET",
48-
headers: {
49-
"Content-Type": "application/json",
50-
},
48+
credentials: "same-origin",
49+
cache: "no-store",
5150
});
5251

5352
// If response is not OK, throw an error

src/ts/globals/globals.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const globals = {
2424
quick_edit_popup: app.quick_edit_popup, // {boolean} To toggle the quick edit popup
2525
quick_edit_handle: app.quick_edit_handle, // {string} The product handle of the product being edited
2626
quick_add_handle: app.quick_add_handle, // {string} The product handle of the product being added
27+
quick_add_initial_load: app.quick_add_initial_load, // {boolean} To check if the quick add is loaded for the first time
2728
// Menu
2829
menu_drawer: app.menu_drawer, // {boolean} To toggle the menu drawer
2930
menu_nested: app.menu_nested, // {boolean} To check if the menu is nested

src/ts/models.interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface AppInterface {
1616
quick_edit_popup: boolean;
1717
quick_edit_handle: string;
1818
quick_add_handle: string;
19+
quick_add_initial_load: boolean;
1920
menu_drawer: boolean;
2021
menu_nested: boolean;
2122
hide_header: boolean;

0 commit comments

Comments
 (0)