From c374f2929725372646c11e3f842b47bd94a510f7 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Thu, 6 Apr 2023 22:38:50 -0400 Subject: [PATCH] bump trpc-panel & patch json tree viewer --- apps/app/package.json | 2 +- package.json | 2 +- .../api/generated/attributesByCategory.ts | 4 +- patches/trpc-panel@1.2.13.patch | 252 +++++++++++++++++ patches/trpc-panel@1.2.9.patch | 254 ------------------ pnpm-lock.yaml | 14 +- 6 files changed, 263 insertions(+), 265 deletions(-) create mode 100644 patches/trpc-panel@1.2.13.patch delete mode 100644 patches/trpc-panel@1.2.9.patch diff --git a/apps/app/package.json b/apps/app/package.json index d9702a2ca7..e148afbb52 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -102,7 +102,7 @@ "listr2": "5.0.8", "prettier": "2.8.7", "trpc-client-devtools-link": "0.2.1-next", - "trpc-panel": "1.2.9", + "trpc-panel": "1.2.13", "trpc-playground": "1.0.4", "tslog": "4.8.2", "typescript": "5.0.3" diff --git a/package.json b/package.json index d40013dc96..57894533cd 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "patchedDependencies": { "eslint-plugin-node@11.1.0": "patches/eslint-plugin-node@11.1.0.patch", "iso-google-locales@3.0.4": "patches/iso-google-locales@3.0.4.patch", - "trpc-panel@1.2.9": "patches/trpc-panel@1.2.9.patch" + "trpc-panel@1.2.13": "patches/trpc-panel@1.2.13.patch" }, "peerDependencyRules": { "allowedVersions": { diff --git a/packages/api/generated/attributesByCategory.ts b/packages/api/generated/attributesByCategory.ts index f32b81a3ef..cc24959542 100644 --- a/packages/api/generated/attributesByCategory.ts +++ b/packages/api/generated/attributesByCategory.ts @@ -112,7 +112,7 @@ export const attributesByCategory = [ { attribute: { id: 'attr_01GW2HHFVGDTNW9PDQNXK6TF1T', - icon: null, + icon: 'carbon:piggy-bank', tag: 'cost-free', tsKey: 'cost.cost-free', tsNs: 'attribute', @@ -124,7 +124,7 @@ export const attributesByCategory = [ { attribute: { id: 'attr_01GW2HHFVGWKWB53HWAAHQ9AAZ', - icon: null, + icon: 'carbon:piggy-bank', tag: 'cost-fees', tsKey: 'cost.cost-fees', tsNs: 'attribute', diff --git a/patches/trpc-panel@1.2.13.patch b/patches/trpc-panel@1.2.13.patch new file mode 100644 index 0000000000..9cafd9ed9c --- /dev/null +++ b/patches/trpc-panel@1.2.13.patch @@ -0,0 +1,252 @@ +diff --git a/lib/react-app/bundle.js b/lib/react-app/bundle.js +index 00772300d3eaabb610363c96ad3adf9e39b73d16..b678d3d7b9a1a0c1c4b793028682c88553c7ea1a 100644 +--- a/lib/react-app/bundle.js ++++ b/lib/react-app/bundle.js +@@ -1,4 +1,4 @@ +-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["trpc-panel"]={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={},i={get exports(){return o},set exports(e){o=e}},s={},l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,E={};function k(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||w}function _(){}function S(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||w}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=k.prototype;var C=S.prototype=new _;C.constructor=S,x(C,k.prototype),C.isPureReactComponent=!0;var $=Array.isArray,P=Object.prototype.hasOwnProperty,O={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,a={},o=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)P.call(t,r)&&!N.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1>>1,o=e[r];if(!(0>>1;ra(l,n))ua(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(ua(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))break;r(u),a.sortIndex=a.expirationTime,t(l,a)}a=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,R(x);else{var t=n(u);null!==t&&j(w,t.startTime-e)}}function x(t,a){h=!1,m&&(m=!1,v(S),S=-1),p=!0;var o=f;try{for(b(a),d=n(l);null!==d&&(!(d.expirationTime>a)||t&&!P());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(a)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var y=n(u);null!==y&&j(w,y.startTime-a),c=!1}return c}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,_=null,S=-1,C=5,$=-1;function P(){return!(e.unstable_now()-$e||125i?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(v(S),S=-1):m=!0,j(w,o-i))):(r.sortIndex=s,t(l,r),h||p||(h=!0,R(x))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(Q),function(e){e.exports=Q}(Z); ++!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ra(l,n))ua(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(ua(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))break;r(u),a.sortIndex=a.expirationTime,t(l,a)}a=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,R(x);else{var t=n(u);null!==t&&j(w,t.startTime-e)}}function x(t,a){h=!1,m&&(m=!1,v(_),_=-1),p=!0;var o=f;try{for(b(a),d=n(l);null!==d&&(!(d.expirationTime>a)||t&&!P());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(a)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var y=n(u);null!==y&&j(w,y.startTime-a),c=!1}return c}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,S=null,_=-1,C=5,$=-1;function P(){return!(e.unstable_now()-$e||125i?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(v(_),_=-1):m=!0,j(w,o-i))):(r.sortIndex=s,t(l,r),h||p||(h=!0,R(x))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(Q),function(e){e.exports=Q}(Z); + /** + * @license React + * react-dom.production.min.js +@@ -18,21 +18,21 @@ + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +-var G=o,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n