@20minutes/tyr 2.43.4 → 2.43.5

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.
@@ -1,2 +1,2 @@
1
- !function(){"use strict";var r=(r=>(r.down="down",r.heart="heart",r.laughing="laughing",r.sad="sad",r.shock="shock",r.up="up",r))(r||{});r.up,r.down,r.sad,r.heart,r.laughing,r.shock;const t=r=>{const t=document.createElement("script");if(t.type="text/javascript","async"===r.load?t.async=!0:"defer"===r.load&&(t.defer=!0),"src"in r&&r.src){const i=eval;t.src=r.src?.replace(/%(.*?)%/,(r,t)=>i(t))}r.name&&(performance.mark(`20mn:${r.name}:Start`),t.onerror=i=>{performance.mark(`20mn:${r.name}:Error`),console.error(`Script failed to load: ${r.name}${t.src?` (${t.src})`:""}`,i)}),(r.name||r.onLoad)&&(t.onload=()=>{r.name&&performance.mark(`20mn:${r.name}:End`),r.onLoad&&r.onLoad()}),"text"in r&&r.text&&(t.innerHTML=r.text),r.id&&(t.id=r.id),r.dataAttributes&&Object.entries(r.dataAttributes).forEach(([r,i])=>{var o;t.setAttribute(`data-${o=r,o.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}`,i)}),"head"===r.target&&document.head?document.head.appendChild(t):document.body?document.body.appendChild(t):(window.bodyScripts=window.bodyScripts||[],window.bodyScripts.push(t))},i=r=>{r?.waitCMP?(r=>{window.didomiOnReady=window.didomiOnReady||[];const i=(i,o)=>{!o||"tcloaded"!==i.eventStatus&&"useractioncomplete"!==i.eventStatus?console.log(`Issue with ${r.name} callback`):("src"in r&&t(r),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,i.listenerId))};window.didomiOnReady.push(()=>{void 0!==i&&window.__tcfapi("addEventListener",2,i)})})(r):t(r)};(()=>{const r=new MutationObserver(()=>{document.body&&((window.bodyScripts||[]).forEach(r=>{document.body.appendChild(r)}),r.disconnect())});r.observe(document.documentElement,{childList:!0})})(),(()=>{if(!window.thirdPartiesConfig)return;const{thirdPartiesConfig:r}=window;(({veryHighPriority:r,highPriority:t,mediumPriority:o,lowPriority:e})=>{r?.forEach(r=>{i({...r,target:"head"})}),t?.forEach(r=>{i({...r,target:"head"})}),o?.forEach(r=>{i(r)}),e?.forEach(r=>{i(r)})})({veryHighPriority:(r?.veryHighPriority??[]).sort((r,t)=>r.priority-t.priority),highPriority:(r?.highPriority??[]).sort((r,t)=>r.priority-t.priority),mediumPriority:(r?.mediumPriority??[]).sort((r,t)=>r.priority-t.priority),lowPriority:(r?.lowPriority??[]).sort((r,t)=>r.priority-t.priority)})})()}();
1
+ !function(){"use strict";var r=(r=>(r.down="down",r.heart="heart",r.laughing="laughing",r.sad="sad",r.shock="shock",r.up="up",r))(r||{});r.up,r.down,r.sad,r.heart,r.laughing,r.shock;const t=r=>{const t=document.createElement("script");if(t.type="text/javascript","async"===r.load?t.async=!0:"defer"===r.load&&(t.defer=!0),"src"in r&&r.src){const i=eval;t.src=r.src?.replace(/%(.*?)%/,(r,t)=>i(t))}r.name&&(performance.mark(`20mn:${r.name}:Start`),t.onerror=i=>{performance.mark(`20mn:${r.name}:Error`),console.error(`Script failed to load: ${r.name}${t.src?` (${t.src})`:""}`,i)}),(r.name||r.onLoad)&&(t.onload=()=>{r.name&&performance.mark(`20mn:${r.name}:End`),r.onLoad&&r.onLoad()}),"text"in r&&r.text&&(t.innerHTML=r.text),r.id&&(t.id=r.id),r.dataAttributes&&Object.entries(r.dataAttributes).forEach(([r,i])=>{var o;t.setAttribute(`data-${o=r,o.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}`,i)}),"head"===r.target&&document.head?document.head.appendChild(t):document.body?document.body.appendChild(t):(window.bodyScripts=window.bodyScripts||[],window.bodyScripts.push(t))},i=r=>{r?.waitCMP?(r=>{window.didomiOnReady=window.didomiOnReady||[];const i=(i,o)=>{!o||"tcloaded"!==i.eventStatus&&"useractioncomplete"!==i.eventStatus?console.warn(`Issue with ${r.name} callback`):("src"in r&&t(r),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,i.listenerId))};window.didomiOnReady.push(()=>{void 0!==i&&window.__tcfapi("addEventListener",2,i)})})(r):t(r)};(()=>{const r=new MutationObserver(()=>{document.body&&((window.bodyScripts||[]).forEach(r=>{document.body.appendChild(r)}),r.disconnect())});r.observe(document.documentElement,{childList:!0})})(),(()=>{if(!window.thirdPartiesConfig)return;const{thirdPartiesConfig:r}=window;(({veryHighPriority:r,highPriority:t,mediumPriority:o,lowPriority:e})=>{r?.forEach(r=>{i({...r,target:"head"})}),t?.forEach(r=>{i({...r,target:"head"})}),o?.forEach(r=>{i(r)}),e?.forEach(r=>{i(r)})})({veryHighPriority:(r?.veryHighPriority??[]).sort((r,t)=>r.priority-t.priority),highPriority:(r?.highPriority??[]).sort((r,t)=>r.priority-t.priority),mediumPriority:(r?.mediumPriority??[]).sort((r,t)=>r.priority-t.priority),lowPriority:(r?.lowPriority??[]).sort((r,t)=>r.priority-t.priority)})})()}();
2
2
  //# sourceMappingURL=script-helpers.min.js.map
@@ -1223,6 +1223,7 @@ export type TBrand = {
1223
1223
  livePostLabelTypes?: Maybe<TLivePostLabelTypeListConnection>;
1224
1224
  livePostLabels?: Maybe<TLivePostLabelListConnection>;
1225
1225
  lives?: Maybe<TLiveListConnection>;
1226
+ logo?: Maybe<Scalars['String']['output']>;
1226
1227
  newsDispatch?: Maybe<TNewsDispatchSingleConnection>;
1227
1228
  newsDispatchCounter?: Maybe<TNewsDispatchCounterSingleConnection>;
1228
1229
  newsDispatchCounters?: Maybe<TNewsDispatchCounterListConnection>;
@@ -1268,6 +1269,7 @@ export type TBrand = {
1268
1269
  tagsCategory?: Maybe<TTagCategoryListConnection>;
1269
1270
  themeColor?: Maybe<TThemeColorSingleConnection>;
1270
1271
  themeColors?: Maybe<TThemeColorListConnection>;
1272
+ theme_colors?: Maybe<Scalars['JSONObject']['output']>;
1271
1273
  userFront?: Maybe<TUserFrontSingleConnection>;
1272
1274
  userFrontAverageScore?: Maybe<TUserFrontAverageScoreSingleConnection>;
1273
1275
  userFrontCheckUsernameEmail?: Maybe<TUserFrontCheckUsernameEmailSingleConnection>;
@@ -1811,6 +1813,10 @@ export type TBrandEdge = {
1811
1813
  cursor: Scalars['String']['output'];
1812
1814
  node?: Maybe<TBrand>;
1813
1815
  };
1816
+ export type TBrandIdentifierInputType = {
1817
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
1818
+ id: Scalars['ID']['input'];
1819
+ };
1814
1820
  export type TBrandListConnection = {
1815
1821
  __typename?: 'BrandListConnection';
1816
1822
  edges?: Maybe<Array<Maybe<TBrandEdge>>>;
@@ -1825,6 +1831,12 @@ export type TBrandOrder = {
1825
1831
  export declare enum BrandOrderField {
1826
1832
  LABEL = "LABEL"
1827
1833
  }
1834
+ export type TBrandPayload = {
1835
+ __typename?: 'BrandPayload';
1836
+ brand?: Maybe<TBrand>;
1837
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1838
+ resolveInfo?: Maybe<TResolveInfo>;
1839
+ };
1828
1840
  export type TBrandSingleConnection = {
1829
1841
  __typename?: 'BrandSingleConnection';
1830
1842
  node?: Maybe<TBrand>;
@@ -2704,6 +2716,13 @@ export type TCreateBookType = {
2704
2716
  publisher?: InputMaybe<Scalars['String']['input']>;
2705
2717
  title?: InputMaybe<Scalars['String']['input']>;
2706
2718
  };
2719
+ export type TCreateBrandType = {
2720
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
2721
+ databaseId: Scalars['String']['input'];
2722
+ label: Scalars['String']['input'];
2723
+ logo?: InputMaybe<Scalars['String']['input']>;
2724
+ theme_colors?: InputMaybe<Scalars['JSONObject']['input']>;
2725
+ };
2707
2726
  export type TCreateCommentType = {
2708
2727
  associated_content: TEditorialContentInput;
2709
2728
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
@@ -7404,6 +7423,7 @@ export type TMutation = {
7404
7423
  createBlockLink?: Maybe<TBlockLinkPayload>;
7405
7424
  createBook?: Maybe<TBookPayload>;
7406
7425
  createBookReview?: Maybe<TBookReviewPayload>;
7426
+ createBrand?: Maybe<TBrandPayload>;
7407
7427
  createComment?: Maybe<TCommentPayload>;
7408
7428
  createConsent?: Maybe<TConsentPayload>;
7409
7429
  createContentLabel?: Maybe<TContentLabelPayload>;
@@ -7479,6 +7499,7 @@ export type TMutation = {
7479
7499
  deleteBlockLink?: Maybe<TBlockLinkPayload>;
7480
7500
  deleteBook?: Maybe<TBookPayload>;
7481
7501
  deleteBookReview?: Maybe<TBookReviewPayload>;
7502
+ deleteBrand?: Maybe<TBrandPayload>;
7482
7503
  deleteComment?: Maybe<TCommentPayload>;
7483
7504
  deleteConsent?: Maybe<TConsentPayload>;
7484
7505
  deleteContentLabel?: Maybe<TContentLabelPayload>;
@@ -7639,6 +7660,7 @@ export type TMutation = {
7639
7660
  updateBlockLink?: Maybe<TBlockLinkPayload>;
7640
7661
  updateBook?: Maybe<TBookPayload>;
7641
7662
  updateBookReview?: Maybe<TBookReviewPayload>;
7663
+ updateBrand?: Maybe<TBrandPayload>;
7642
7664
  updateComment?: Maybe<TCommentPayload>;
7643
7665
  updateConsent?: Maybe<TConsentPayload>;
7644
7666
  updateContentLabel?: Maybe<TContentLabelPayload>;
@@ -7782,6 +7804,10 @@ export type TMutationCreateBookReviewArgs = {
7782
7804
  input?: InputMaybe<TCreateBookReviewType>;
7783
7805
  options?: InputMaybe<TOptionsCreateBookReviewType>;
7784
7806
  };
7807
+ export type TMutationCreateBrandArgs = {
7808
+ input?: InputMaybe<TCreateBrandType>;
7809
+ options?: InputMaybe<TOptionsCreateBrandType>;
7810
+ };
7785
7811
  export type TMutationCreateCommentArgs = {
7786
7812
  input?: InputMaybe<TCreateCommentType>;
7787
7813
  options?: InputMaybe<TOptionsCreateCommentType>;
@@ -8077,6 +8103,9 @@ export type TMutationDeleteBookArgs = {
8077
8103
  export type TMutationDeleteBookReviewArgs = {
8078
8104
  input?: InputMaybe<TBookReviewIdentifierInputType>;
8079
8105
  };
8106
+ export type TMutationDeleteBrandArgs = {
8107
+ input?: InputMaybe<TBrandIdentifierInputType>;
8108
+ };
8080
8109
  export type TMutationDeleteCommentArgs = {
8081
8110
  input?: InputMaybe<TGlobalIdInputType>;
8082
8111
  };
@@ -8565,6 +8594,10 @@ export type TMutationUpdateBookReviewArgs = {
8565
8594
  input?: InputMaybe<TUpdateBookReviewType>;
8566
8595
  options?: InputMaybe<TOptionsUpdateBookReviewType>;
8567
8596
  };
8597
+ export type TMutationUpdateBrandArgs = {
8598
+ input?: InputMaybe<TUpdateBrandType>;
8599
+ options?: InputMaybe<TOptionsUpdateBrandType>;
8600
+ };
8568
8601
  export type TMutationUpdateCommentArgs = {
8569
8602
  input?: InputMaybe<TUpdateCommentType>;
8570
8603
  options?: InputMaybe<TOptionsUpdateCommentType>;
@@ -9671,6 +9704,9 @@ export type TOptionsCreateBookReviewType = {
9671
9704
  export type TOptionsCreateBookType = {
9672
9705
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
9673
9706
  };
9707
+ export type TOptionsCreateBrandType = {
9708
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
9709
+ };
9674
9710
  export type TOptionsCreateCommentType = {
9675
9711
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
9676
9712
  };
@@ -9912,6 +9948,9 @@ export type TOptionsUpdateBookReviewType = {
9912
9948
  export type TOptionsUpdateBookType = {
9913
9949
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
9914
9950
  };
9951
+ export type TOptionsUpdateBrandType = {
9952
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
9953
+ };
9915
9954
  export type TOptionsUpdateCommentType = {
9916
9955
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
9917
9956
  };
@@ -15678,6 +15717,13 @@ export type TUpdateBookType = {
15678
15717
  publisher?: InputMaybe<Scalars['String']['input']>;
15679
15718
  title?: InputMaybe<Scalars['String']['input']>;
15680
15719
  };
15720
+ export type TUpdateBrandType = {
15721
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
15722
+ id: Scalars['ID']['input'];
15723
+ label?: InputMaybe<Scalars['String']['input']>;
15724
+ logo?: InputMaybe<Scalars['String']['input']>;
15725
+ theme_colors?: InputMaybe<Scalars['JSONObject']['input']>;
15726
+ };
15681
15727
  export type TUpdateCommentType = {
15682
15728
  associated_content?: InputMaybe<TEditorialContentInput>;
15683
15729
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/tyr",
3
- "version": "2.43.4",
3
+ "version": "2.43.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/tyr.git"
@@ -54,14 +54,14 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@20minutes/draft-convert": "^3.1.2",
57
- "@20minutes/hela": "^2.22.4",
57
+ "@20minutes/hela": "^2.22.6",
58
58
  "classnames": "^2.5.1",
59
59
  "draft-js": "^0.11.7",
60
60
  "html-entities": "^2.6.0",
61
61
  "html-react-parser": "^6.1.3",
62
62
  "html-to-react": "^1.7.0",
63
63
  "jwt-decode": "^4.0.0",
64
- "node-html-parser": "^7.1.0",
64
+ "node-html-parser": "^8.0.3",
65
65
  "react": "^18.3.1",
66
66
  "react-dom": "^18.3.1",
67
67
  "uri-js": "npm:uri-js-replace",
@@ -69,8 +69,8 @@
69
69
  "whatwg-url": "^16.0.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@20minutes/eslint-config": "^3.0.3",
73
- "@aws-sdk/client-s3": "3.1071.0",
72
+ "@20minutes/eslint-config": "^3.0.4",
73
+ "@aws-sdk/client-s3": "3.1075.0",
74
74
  "@graphql-codegen/cli": "^7.1.3",
75
75
  "@graphql-codegen/typescript": "^6.0.2",
76
76
  "@graphql-codegen/typescript-operations": "^6.0.4",
@@ -97,7 +97,7 @@
97
97
  "@vitest/coverage-v8": "4.0.18",
98
98
  "dotenv": "^17.4.2",
99
99
  "esbuild": "^0.28.1",
100
- "globals": "^17.6.0",
100
+ "globals": "^17.7.0",
101
101
  "graphql": "^16.14.2",
102
102
  "husky": "^9.1.7",
103
103
  "jest-worker": "^30.4.1",
@@ -106,7 +106,7 @@
106
106
  "postcss": "^8.5.15",
107
107
  "purgecss": "^8.0.0",
108
108
  "purgecss-from-html": "^8.0.0",
109
- "rollup": "^4.62.0",
109
+ "rollup": "^4.62.2",
110
110
  "rollup-plugin-esbuild": "^6.2.1",
111
111
  "rollup-plugin-typescript-paths": "^1.5.0",
112
112
  "rollup-plugin-visualizer": "^7.0.1",