create-knapsack 4.83.0 → 4.83.1--canary.112f8ea.0
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.
- package/package.json +16 -16
- package/.temp/packages/knapsack/data/db.yml +0 -9
- package/.temp/packages/knapsack/data/knapsack.asset-sets.json +0 -4
- package/.temp/packages/knapsack/data/knapsack.design-tokens.json +0 -1
- package/.temp/packages/knapsack/data/knapsack.files.json +0 -3
- package/.temp/packages/knapsack/data/knapsack.navs.yml +0 -2
- package/.temp/packages/knapsack/data/knapsack.patterns.json +0 -35
- package/.temp/packages/knapsack/dist/meta/ks-meta.json +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.android.xml +0 -3
- package/.temp/packages/knapsack/dist/tokens/design-tokens.cjs +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.css +0 -2
- package/.temp/packages/knapsack/dist/tokens/design-tokens.css.scss +0 -2
- package/.temp/packages/knapsack/dist/tokens/design-tokens.d.cts +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.d.mts +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.d.ts +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.js +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.json +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.less +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.mjs +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.nested.json +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.scss +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.style-dictionary.json +0 -1
- package/.temp/packages/knapsack/dist/tokens/design-tokens.swift +0 -3
- package/.temp/packages/knapsack/dist/tokens/design-tokens.w3c-spec.json +0 -1
- package/.temp/packages/knapsack/knapsack.config.cjs +0 -25
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/app-client-data.json +0 -1
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/discovery.json +0 -1
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/hydrate.renderer-react.json +0 -1
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/apps_client_libs_renderer-react-components_dist_demo-wrapper_js.chunk.5ba7983c98e2c202e214.js +0 -22
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/ks-pattern-import-global-setup.js +0 -17
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/main.bundle.5ba7983c98e2c202e214.js +0 -3993
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/manifest.json +0 -4
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/react-dom.development.18.3.1.js +0 -29924
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/react-dom.production.min.18.3.1.js +0 -267
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/react.development.18.3.1.js +0 -3343
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/knapsack-renderer-react/react.production.min.18.3.1.js +0 -31
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/renderer-client/renderer-client.mjs +0 -132
- package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/renderer-discovery-react.json +0 -1
- package/.temp/packages/knapsack/package.json +0 -17
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
(function(){'use strict';(function(c,x){"object"===typeof exports&&"undefined"!==typeof module?x(exports):"function"===typeof define&&define.amd?define(["exports"],x):(c=c||self,x(c.React={}))})(this,function(c){function x(a){if(null===a||"object"!==typeof a)return null;a=V&&a[V]||a["@@iterator"];return"function"===typeof a?a:null}function w(a,b,e){this.props=a;this.context=b;this.refs=W;this.updater=e||X}function Y(){}function K(a,b,e){this.props=a;this.context=b;this.refs=W;this.updater=e||X}function Z(a,b,
|
|
11
|
-
e){var m,d={},c=null,h=null;if(null!=b)for(m in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(c=""+b.key),b)aa.call(b,m)&&!ba.hasOwnProperty(m)&&(d[m]=b[m]);var l=arguments.length-2;if(1===l)d.children=e;else if(1<l){for(var f=Array(l),k=0;k<l;k++)f[k]=arguments[k+2];d.children=f}if(a&&a.defaultProps)for(m in l=a.defaultProps,l)void 0===d[m]&&(d[m]=l[m]);return{$$typeof:y,type:a,key:c,ref:h,props:d,_owner:L.current}}function oa(a,b){return{$$typeof:y,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}
|
|
12
|
-
function M(a){return"object"===typeof a&&null!==a&&a.$$typeof===y}function pa(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?pa(""+a.key):b.toString(36)}function B(a,b,e,m,d){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var h=!1;if(null===a)h=!0;else switch(c){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case y:case qa:h=!0}}if(h)return h=a,d=d(h),a=""===m?"."+
|
|
13
|
-
N(h,0):m,ca(d)?(e="",null!=a&&(e=a.replace(da,"$&/")+"/"),B(d,b,e,"",function(a){return a})):null!=d&&(M(d)&&(d=oa(d,e+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(da,"$&/")+"/")+a)),b.push(d)),1;h=0;m=""===m?".":m+":";if(ca(a))for(var l=0;l<a.length;l++){c=a[l];var f=m+N(c,l);h+=B(c,b,e,f,d)}else if(f=x(a),"function"===typeof f)for(a=f.call(a),l=0;!(c=a.next()).done;)c=c.value,f=m+N(c,l++),h+=B(c,b,e,f,d);else if("object"===c)throw b=String(a),Error("Objects are not valid as a React child (found: "+
|
|
14
|
-
("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}function C(a,b,e){if(null==a)return a;var c=[],d=0;B(a,c,"","",function(a){return b.call(e,a,d++)});return c}function ra(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=
|
|
15
|
-
0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function O(a,b){var e=a.length;a.push(b);a:for(;0<e;){var c=e-1>>>1,d=a[c];if(0<D(d,b))a[c]=b,a[e]=d,e=c;else break a}}function p(a){return 0===a.length?null:a[0]}function E(a){if(0===a.length)return null;var b=a[0],e=a.pop();if(e!==b){a[0]=e;a:for(var c=0,d=a.length,k=d>>>1;c<k;){var h=2*(c+1)-1,l=a[h],f=h+1,g=a[f];if(0>D(l,e))f<d&&0>D(g,l)?(a[c]=g,a[f]=e,c=f):(a[c]=l,a[h]=e,c=h);else if(f<d&&0>D(g,e))a[c]=g,a[f]=e,c=f;else break a}}return b}
|
|
16
|
-
function D(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function P(a){for(var b=p(r);null!==b;){if(null===b.callback)E(r);else if(b.startTime<=a)E(r),b.sortIndex=b.expirationTime,O(q,b);else break;b=p(r)}}function Q(a){z=!1;P(a);if(!u)if(null!==p(q))u=!0,R(S);else{var b=p(r);null!==b&&T(Q,b.startTime-a)}}function S(a,b){u=!1;z&&(z=!1,ea(A),A=-1);F=!0;var c=k;try{P(b);for(n=p(q);null!==n&&(!(n.expirationTime>b)||a&&!fa());){var m=n.callback;if("function"===typeof m){n.callback=null;
|
|
17
|
-
k=n.priorityLevel;var d=m(n.expirationTime<=b);b=v();"function"===typeof d?n.callback=d:n===p(q)&&E(q);P(b)}else E(q);n=p(q)}if(null!==n)var g=!0;else{var h=p(r);null!==h&&T(Q,h.startTime-b);g=!1}return g}finally{n=null,k=c,F=!1}}function fa(){return v()-ha<ia?!1:!0}function R(a){G=a;H||(H=!0,I())}function T(a,b){A=ja(function(){a(v())},b)}function ka(a){throw Error("act(...) is not supported in production builds of React.");}var y=Symbol.for("react.element"),qa=Symbol.for("react.portal"),sa=Symbol.for("react.fragment"),
|
|
18
|
-
ta=Symbol.for("react.strict_mode"),ua=Symbol.for("react.profiler"),va=Symbol.for("react.provider"),wa=Symbol.for("react.context"),xa=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),za=Symbol.for("react.memo"),Aa=Symbol.for("react.lazy"),V=Symbol.iterator,X={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,m){},enqueueSetState:function(a,b,c,m){}},la=Object.assign,W={};w.prototype.isReactComponent={};w.prototype.setState=function(a,
|
|
19
|
-
b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)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,a,b,"setState")};w.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Y.prototype=w.prototype;var t=K.prototype=new Y;t.constructor=K;la(t,w.prototype);t.isPureReactComponent=!0;var ca=Array.isArray,aa=Object.prototype.hasOwnProperty,L={current:null},
|
|
20
|
-
ba={key:!0,ref:!0,__self:!0,__source:!0},da=/\/+/g,g={current:null},J={transition:null};if("object"===typeof performance&&"function"===typeof performance.now){var Ba=performance;var v=function(){return Ba.now()}}else{var ma=Date,Ca=ma.now();v=function(){return ma.now()-Ca}}var q=[],r=[],Da=1,n=null,k=3,F=!1,u=!1,z=!1,ja="function"===typeof setTimeout?setTimeout:null,ea="function"===typeof clearTimeout?clearTimeout:null,na="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&
|
|
21
|
-
void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var H=!1,G=null,A=-1,ia=5,ha=-1,U=function(){if(null!==G){var a=v();ha=a;var b=!0;try{b=G(!0,a)}finally{b?I():(H=!1,G=null)}}else H=!1};if("function"===typeof na)var I=function(){na(U)};else if("undefined"!==typeof MessageChannel){t=new MessageChannel;var Ea=t.port2;t.port1.onmessage=U;I=function(){Ea.postMessage(null)}}else I=function(){ja(U,0)};t={ReactCurrentDispatcher:g,
|
|
22
|
-
ReactCurrentOwner:L,ReactCurrentBatchConfig:J,Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=k;k=a;try{return b()}finally{k=c}},unstable_next:function(a){switch(k){case 1:case 2:case 3:var b=3;break;default:b=k}var c=k;k=b;try{return a()}finally{k=c}},unstable_scheduleCallback:function(a,
|
|
23
|
-
b,c){var e=v();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?e+c:e):c=e;switch(a){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=1E4;break;default:d=5E3}d=c+d;a={id:Da++,callback:b,priorityLevel:a,startTime:c,expirationTime:d,sortIndex:-1};c>e?(a.sortIndex=c,O(r,a),null===p(q)&&a===p(r)&&(z?(ea(A),A=-1):z=!0,T(Q,c-e))):(a.sortIndex=d,O(q,a),u||F||(u=!0,R(S)));return a},unstable_cancelCallback:function(a){a.callback=null},unstable_wrapCallback:function(a){var b=
|
|
24
|
-
k;return function(){var c=k;k=b;try{return a.apply(this,arguments)}finally{k=c}}},unstable_getCurrentPriorityLevel:function(){return k},unstable_shouldYield:fa,unstable_requestPaint:function(){},unstable_continueExecution:function(){u||F||(u=!0,R(S))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return p(q)},get unstable_now(){return v},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):
|
|
25
|
-
ia=0<a?Math.floor(1E3/a):5},unstable_Profiling:null}};c.Children={map:C,forEach:function(a,b,c){C(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;C(a,function(){b++});return b},toArray:function(a){return C(a,function(a){return a})||[]},only:function(a){if(!M(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};c.Component=w;c.Fragment=sa;c.Profiler=ua;c.PureComponent=K;c.StrictMode=ta;c.Suspense=ya;c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=
|
|
26
|
-
t;c.act=ka;c.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var e=la({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=L.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(f in b)aa.call(b,f)&&!ba.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==l?l[f]:b[f])}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){l=
|
|
27
|
-
Array(f);for(var g=0;g<f;g++)l[g]=arguments[g+2];e.children=l}return{$$typeof:y,type:a.type,key:d,ref:k,props:e,_owner:h}};c.createContext=function(a){a={$$typeof:wa,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:va,_context:a};return a.Consumer=a};c.createElement=Z;c.createFactory=function(a){var b=Z.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:xa,
|
|
28
|
-
render:a}};c.isValidElement=M;c.lazy=function(a){return{$$typeof:Aa,_payload:{_status:-1,_result:a},_init:ra}};c.memo=function(a,b){return{$$typeof:za,type:a,compare:void 0===b?null:b}};c.startTransition=function(a,b){b=J.transition;J.transition={};try{a()}finally{J.transition=b}};c.unstable_act=ka;c.useCallback=function(a,b){return g.current.useCallback(a,b)};c.useContext=function(a){return g.current.useContext(a)};c.useDebugValue=function(a,b){};c.useDeferredValue=function(a){return g.current.useDeferredValue(a)};
|
|
29
|
-
c.useEffect=function(a,b){return g.current.useEffect(a,b)};c.useId=function(){return g.current.useId()};c.useImperativeHandle=function(a,b,c){return g.current.useImperativeHandle(a,b,c)};c.useInsertionEffect=function(a,b){return g.current.useInsertionEffect(a,b)};c.useLayoutEffect=function(a,b){return g.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return g.current.useMemo(a,b)};c.useReducer=function(a,b,c){return g.current.useReducer(a,b,c)};c.useRef=function(a){return g.current.useRef(a)};
|
|
30
|
-
c.useState=function(a){return g.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return g.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return g.current.useTransition()};c.version="18.3.1"});
|
|
31
|
-
})();
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
const metaTag = document.getElementById('ks-meta');
|
|
2
|
-
const metaString = metaTag?.innerText;
|
|
3
|
-
const meta = JSON.parse(metaString ?? '{}');
|
|
4
|
-
const {
|
|
5
|
-
websocketsPort
|
|
6
|
-
} = meta;
|
|
7
|
-
// an extra check in case the meta tag is wrong
|
|
8
|
-
const isReallyInIframe = window.parent !== window;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A type-safe wrapper for `window.parent.postMessage()`
|
|
12
|
-
*/
|
|
13
|
-
function postMessage(message) {
|
|
14
|
-
window.parent.postMessage(message, '*');
|
|
15
|
-
}
|
|
16
|
-
if (websocketsPort) {
|
|
17
|
-
if ('WebSocket' in window && window.location.hostname === 'localhost') {
|
|
18
|
-
const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
|
19
|
-
const socket = new window.WebSocket(`${protocol}://localhost:${websocketsPort}`);
|
|
20
|
-
socket.addEventListener('message', msg => {
|
|
21
|
-
const theMsg = JSON.parse(msg?.data ?? {});
|
|
22
|
-
if (!theMsg?.event) return;
|
|
23
|
-
const event = theMsg.event;
|
|
24
|
-
switch (event) {
|
|
25
|
-
case 'RENDERER_CLIENT_RELOAD':
|
|
26
|
-
window.location.reload();
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (isReallyInIframe) {
|
|
33
|
-
/**
|
|
34
|
-
* Prevents the natural click behavior of any links within the iframe.
|
|
35
|
-
* Otherwise the iframe reloads with the current page or follows the url provided.
|
|
36
|
-
*/
|
|
37
|
-
const links = document.querySelectorAll('a');
|
|
38
|
-
links.forEach(link => {
|
|
39
|
-
link.addEventListener('click', e => {
|
|
40
|
-
e.preventDefault();
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
let resizeTimeoutId;
|
|
44
|
-
let scrollDebounceTimer;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Sends a message to the parent window with the current height and width of the iframe's content.
|
|
48
|
-
* Search code base for the value in `event.type` to see how it's used.
|
|
49
|
-
*/
|
|
50
|
-
function sendResizeEvent({
|
|
51
|
-
height,
|
|
52
|
-
width
|
|
53
|
-
}) {
|
|
54
|
-
clearTimeout(resizeTimeoutId);
|
|
55
|
-
// slight delay to prevent spamming the parent window with resize events
|
|
56
|
-
resizeTimeoutId = setTimeout(() => {
|
|
57
|
-
postMessage({
|
|
58
|
-
type: 'ksRendererClient.contentResized',
|
|
59
|
-
// round up to the nearest pixel
|
|
60
|
-
height: Math.ceil(height),
|
|
61
|
-
width: Math.ceil(width)
|
|
62
|
-
});
|
|
63
|
-
}, 100);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Sends a message to the parent window with the current scroll position of the iframe's content.
|
|
68
|
-
*/
|
|
69
|
-
function sendScrollEvent() {
|
|
70
|
-
// Clear any existing timeout
|
|
71
|
-
window.clearTimeout(scrollDebounceTimer);
|
|
72
|
-
|
|
73
|
-
// Set new timeout - only send position after 150ms of no scrolling
|
|
74
|
-
scrollDebounceTimer = window.setTimeout(() => {
|
|
75
|
-
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
76
|
-
const scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
|
|
77
|
-
postMessage({
|
|
78
|
-
type: 'ksRendererClient.scrollPosition',
|
|
79
|
-
scrollTop,
|
|
80
|
-
scrollLeft
|
|
81
|
-
});
|
|
82
|
-
}, 150);
|
|
83
|
-
}
|
|
84
|
-
window.addEventListener('message', event => {
|
|
85
|
-
switch (event.data?.type) {
|
|
86
|
-
case 'ksRendererClient.updateScrollPosition':
|
|
87
|
-
{
|
|
88
|
-
if (document.documentElement) {
|
|
89
|
-
document.documentElement.scrollTop = event.data.scrollTop;
|
|
90
|
-
document.documentElement.scrollLeft = event.data.scrollLeft;
|
|
91
|
-
}
|
|
92
|
-
if (document.body) {
|
|
93
|
-
document.body.scrollTop = event.data.scrollTop;
|
|
94
|
-
document.body.scrollLeft = event.data.scrollLeft;
|
|
95
|
-
}
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
default:
|
|
99
|
-
{
|
|
100
|
-
const _exhaustiveCheck = event.data?.type;
|
|
101
|
-
console.log('Unhandled message type:', _exhaustiveCheck);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
window.addEventListener('scroll', sendScrollEvent, {
|
|
106
|
-
passive: true
|
|
107
|
-
});
|
|
108
|
-
// Send ready message when content is fully loaded
|
|
109
|
-
window.addEventListener('load', () => {
|
|
110
|
-
postMessage({
|
|
111
|
-
type: 'ksRendererClient.ready'
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
if (ResizeObserver) {
|
|
115
|
-
// watch for any changes to the content's width/height
|
|
116
|
-
const resizeObserver = new ResizeObserver(entries => {
|
|
117
|
-
const [entry] = entries;
|
|
118
|
-
if (!entry) return;
|
|
119
|
-
const {
|
|
120
|
-
height,
|
|
121
|
-
width
|
|
122
|
-
} = entry.contentRect;
|
|
123
|
-
sendResizeEvent({
|
|
124
|
-
height,
|
|
125
|
-
width
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
// watch the <body> element
|
|
130
|
-
resizeObserver.observe(document.body);
|
|
131
|
-
}
|
|
132
|
-
}
|
package/.temp/packages/knapsack/node_modules/.cache/@knapsack/app/renderer-discovery-react.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"rendererId":"react","meta":{"id":"react","title":"React","aliasUse":"optional","aliasTitle":"Named Export","aliasIsJsNamedExport":true,"aliasDescription":"If `export X` was used instead of `export default`, then provide X.","enableDataDemos":true,"enableTemplateDemos":true,"hasSlotsSupport":true,"hasSlotOptionsSupport":true,"version":"4.82.3","hasInferSpecSupport":true,"syntaxHighlightingLanguage":"jsx","hasTemplateSuggestionsSupport":true,"prototypingTemplate":{"path":"@knapsack/renderer-react/prototype-template","spec":{"isInferred":false,"props":{"type":"object","properties":{}},"slots":{"children":{"title":"Children"}}}}},"codeSrcsByPath":{},"templates":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@my-org/knapsack",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "knapsack build",
|
|
7
|
-
"start": "knapsack start",
|
|
8
|
-
"serve": "NODE_ENV=production knapsack serve",
|
|
9
|
-
"test": "knapsack test"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@knapsack/app": "^4.82.3",
|
|
13
|
-
"@knapsack/renderer-react": "^4.82.3"
|
|
14
|
-
},
|
|
15
|
-
"author": "KnapsackBot 53622700+KnapsackBot@users.noreply.github.com",
|
|
16
|
-
"license": "ISC"
|
|
17
|
-
}
|