@cedarjs/vite 2.2.1 → 2.2.2-next.31
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/dist/bundled/react-server-dom-webpack.server.js +62 -114
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/plugins/vite-plugin-rsc-transform-client.js +0 -1
- package/dist/cjs/plugins/vite-plugin-rsc-transform-server.js +0 -1
- package/dist/cjs/runFeServer.js +0 -2
- package/dist/index.js +2 -2
- package/dist/plugins/vite-plugin-rsc-transform-client.js +0 -1
- package/dist/plugins/vite-plugin-rsc-transform-server.js +0 -1
- package/dist/runFeServer.d.ts.map +1 -1
- package/dist/runFeServer.js +0 -2
- package/package.json +11 -11
|
@@ -910,19 +910,24 @@ var require_react_dom_production_min = __commonJS({
|
|
|
910
910
|
if (null !== e ? 0 !== e.type : d || !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1]) qa(b, c, e, d) && (c = null), d || null === e ? oa(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? false : "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && true === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)));
|
|
911
911
|
}
|
|
912
912
|
var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
913
|
-
var va =
|
|
914
|
-
var wa =
|
|
915
|
-
var ya =
|
|
916
|
-
var za =
|
|
917
|
-
var Aa =
|
|
918
|
-
var Ba =
|
|
919
|
-
var Ca =
|
|
920
|
-
var Da =
|
|
921
|
-
var Ea =
|
|
922
|
-
var Fa =
|
|
923
|
-
var Ga =
|
|
924
|
-
var Ha =
|
|
925
|
-
|
|
913
|
+
var va = Symbol.for("react.element");
|
|
914
|
+
var wa = Symbol.for("react.portal");
|
|
915
|
+
var ya = Symbol.for("react.fragment");
|
|
916
|
+
var za = Symbol.for("react.strict_mode");
|
|
917
|
+
var Aa = Symbol.for("react.profiler");
|
|
918
|
+
var Ba = Symbol.for("react.provider");
|
|
919
|
+
var Ca = Symbol.for("react.context");
|
|
920
|
+
var Da = Symbol.for("react.forward_ref");
|
|
921
|
+
var Ea = Symbol.for("react.suspense");
|
|
922
|
+
var Fa = Symbol.for("react.suspense_list");
|
|
923
|
+
var Ga = Symbol.for("react.memo");
|
|
924
|
+
var Ha = Symbol.for("react.lazy");
|
|
925
|
+
Symbol.for("react.scope");
|
|
926
|
+
Symbol.for("react.debug_trace_mode");
|
|
927
|
+
var Ia = Symbol.for("react.offscreen");
|
|
928
|
+
Symbol.for("react.legacy_hidden");
|
|
929
|
+
Symbol.for("react.cache");
|
|
930
|
+
Symbol.for("react.tracing_marker");
|
|
926
931
|
var Ja = Symbol.iterator;
|
|
927
932
|
function Ka(a) {
|
|
928
933
|
if (null === a || "object" !== typeof a) return null;
|
|
@@ -1275,13 +1280,13 @@ var require_react_dom_production_min = __commonJS({
|
|
|
1275
1280
|
return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a;
|
|
1276
1281
|
}
|
|
1277
1282
|
var mb;
|
|
1278
|
-
var nb =
|
|
1283
|
+
var nb = function(a) {
|
|
1279
1284
|
return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
|
|
1280
1285
|
MSApp.execUnsafeLocalFunction(function() {
|
|
1281
1286
|
return a(b, c, d, e);
|
|
1282
1287
|
});
|
|
1283
1288
|
} : a;
|
|
1284
|
-
}
|
|
1289
|
+
}(function(a, b) {
|
|
1285
1290
|
if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;
|
|
1286
1291
|
else {
|
|
1287
1292
|
mb = mb || document.createElement("div");
|
|
@@ -7617,7 +7622,6 @@ var require_react_dom_development = __commonJS({
|
|
|
7617
7622
|
}
|
|
7618
7623
|
switch (typeof value) {
|
|
7619
7624
|
case "function":
|
|
7620
|
-
// $FlowIssue symbol is perfectly valid here
|
|
7621
7625
|
case "symbol":
|
|
7622
7626
|
return true;
|
|
7623
7627
|
case "boolean": {
|
|
@@ -8190,24 +8194,24 @@ var require_react_dom_development = __commonJS({
|
|
|
8190
8194
|
}
|
|
8191
8195
|
}
|
|
8192
8196
|
}
|
|
8193
|
-
var REACT_ELEMENT_TYPE =
|
|
8194
|
-
var REACT_PORTAL_TYPE =
|
|
8195
|
-
var REACT_FRAGMENT_TYPE =
|
|
8196
|
-
var REACT_STRICT_MODE_TYPE =
|
|
8197
|
-
var REACT_PROFILER_TYPE =
|
|
8198
|
-
var REACT_PROVIDER_TYPE =
|
|
8199
|
-
var REACT_CONTEXT_TYPE =
|
|
8200
|
-
var REACT_FORWARD_REF_TYPE =
|
|
8201
|
-
var REACT_SUSPENSE_TYPE =
|
|
8202
|
-
var REACT_SUSPENSE_LIST_TYPE =
|
|
8203
|
-
var REACT_MEMO_TYPE =
|
|
8204
|
-
var REACT_LAZY_TYPE =
|
|
8205
|
-
var REACT_SCOPE_TYPE =
|
|
8206
|
-
var REACT_DEBUG_TRACING_MODE_TYPE =
|
|
8207
|
-
var REACT_OFFSCREEN_TYPE =
|
|
8208
|
-
var REACT_LEGACY_HIDDEN_TYPE =
|
|
8209
|
-
var REACT_CACHE_TYPE =
|
|
8210
|
-
var REACT_TRACING_MARKER_TYPE =
|
|
8197
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
8198
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
8199
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
8200
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
8201
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
8202
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
8203
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
8204
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
8205
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
8206
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
8207
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
8208
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
8209
|
+
var REACT_SCOPE_TYPE = Symbol.for("react.scope");
|
|
8210
|
+
var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode");
|
|
8211
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
8212
|
+
var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden");
|
|
8213
|
+
var REACT_CACHE_TYPE = Symbol.for("react.cache");
|
|
8214
|
+
var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker");
|
|
8211
8215
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
8212
8216
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
8213
8217
|
function getIteratorFn(maybeIterable) {
|
|
@@ -8632,7 +8636,6 @@ var require_react_dom_development = __commonJS({
|
|
|
8632
8636
|
return "SuspenseList";
|
|
8633
8637
|
case TracingMarkerComponent:
|
|
8634
8638
|
return "TracingMarker";
|
|
8635
|
-
// The display name for this tags come from the user-provided type:
|
|
8636
8639
|
case ClassComponent:
|
|
8637
8640
|
case FunctionComponent:
|
|
8638
8641
|
case IncompleteClassComponent:
|
|
@@ -9630,10 +9633,6 @@ var require_react_dom_development = __commonJS({
|
|
|
9630
9633
|
return typeof props.is === "string";
|
|
9631
9634
|
}
|
|
9632
9635
|
switch (tagName) {
|
|
9633
|
-
// These are reserved SVG and MathML elements.
|
|
9634
|
-
// We don't mind this list too much because we expect it to never grow.
|
|
9635
|
-
// The alternative is to track the namespace in a few places which is convoluted.
|
|
9636
|
-
// https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
|
|
9637
9636
|
case "annotation-xml":
|
|
9638
9637
|
case "color-profile":
|
|
9639
9638
|
case "font-face":
|
|
@@ -12463,7 +12462,6 @@ var require_react_dom_development = __commonJS({
|
|
|
12463
12462
|
}
|
|
12464
12463
|
function getEventPriority(domEventName) {
|
|
12465
12464
|
switch (domEventName) {
|
|
12466
|
-
// Used by SimpleEventPlugin:
|
|
12467
12465
|
case "cancel":
|
|
12468
12466
|
case "click":
|
|
12469
12467
|
case "close":
|
|
@@ -12499,20 +12497,14 @@ var require_react_dom_development = __commonJS({
|
|
|
12499
12497
|
case "touchend":
|
|
12500
12498
|
case "touchstart":
|
|
12501
12499
|
case "volumechange":
|
|
12502
|
-
// Used by polyfills:
|
|
12503
|
-
// eslint-disable-next-line no-fallthrough
|
|
12504
12500
|
case "change":
|
|
12505
12501
|
case "selectionchange":
|
|
12506
12502
|
case "textInput":
|
|
12507
12503
|
case "compositionstart":
|
|
12508
12504
|
case "compositionend":
|
|
12509
12505
|
case "compositionupdate":
|
|
12510
|
-
// Only enableCreateEventHandleAPI:
|
|
12511
|
-
// eslint-disable-next-line no-fallthrough
|
|
12512
12506
|
case "beforeblur":
|
|
12513
12507
|
case "afterblur":
|
|
12514
|
-
// Not used by React but could be by user code:
|
|
12515
|
-
// eslint-disable-next-line no-fallthrough
|
|
12516
12508
|
case "beforeinput":
|
|
12517
12509
|
case "blur":
|
|
12518
12510
|
case "fullscreenchange":
|
|
@@ -12537,8 +12529,6 @@ var require_react_dom_development = __commonJS({
|
|
|
12537
12529
|
case "toggle":
|
|
12538
12530
|
case "touchmove":
|
|
12539
12531
|
case "wheel":
|
|
12540
|
-
// Not used by React but could be by user code:
|
|
12541
|
-
// eslint-disable-next-line no-fallthrough
|
|
12542
12532
|
case "mouseenter":
|
|
12543
12533
|
case "mouseleave":
|
|
12544
12534
|
case "pointerenter":
|
|
@@ -13724,7 +13714,6 @@ var require_react_dom_development = __commonJS({
|
|
|
13724
13714
|
function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
|
|
13725
13715
|
var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
|
|
13726
13716
|
switch (domEventName) {
|
|
13727
|
-
// Track the input node that has focus.
|
|
13728
13717
|
case "focusin":
|
|
13729
13718
|
if (isTextInputElement(targetNode) || targetNode.contentEditable === "true") {
|
|
13730
13719
|
activeElement$1 = targetNode;
|
|
@@ -13737,8 +13726,6 @@ var require_react_dom_development = __commonJS({
|
|
|
13737
13726
|
activeElementInst$1 = null;
|
|
13738
13727
|
lastSelection = null;
|
|
13739
13728
|
break;
|
|
13740
|
-
// Don't fire the event while the user is dragging. This matches the
|
|
13741
|
-
// semantics of the native select event.
|
|
13742
13729
|
case "mousedown":
|
|
13743
13730
|
mouseDown = true;
|
|
13744
13731
|
break;
|
|
@@ -13748,20 +13735,10 @@ var require_react_dom_development = __commonJS({
|
|
|
13748
13735
|
mouseDown = false;
|
|
13749
13736
|
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
13750
13737
|
break;
|
|
13751
|
-
// Chrome and IE fire non-standard event when selection is changed (and
|
|
13752
|
-
// sometimes when it hasn't). IE's event fires out of order with respect
|
|
13753
|
-
// to key and input events on deletion, so we discard it.
|
|
13754
|
-
//
|
|
13755
|
-
// Firefox doesn't support selectionchange, so check selection status
|
|
13756
|
-
// after each key entry. The selection changes after keydown and before
|
|
13757
|
-
// keyup, but we check on keydown as well in the case of holding down a
|
|
13758
|
-
// key, when multiple keydown events are fired but only one keyup is.
|
|
13759
|
-
// This is also our approach for IE handling, for the reason above.
|
|
13760
13738
|
case "selectionchange":
|
|
13761
13739
|
if (skipSelectionChangeEvent) {
|
|
13762
13740
|
break;
|
|
13763
13741
|
}
|
|
13764
|
-
// falls through
|
|
13765
13742
|
case "keydown":
|
|
13766
13743
|
case "keyup":
|
|
13767
13744
|
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
@@ -13844,7 +13821,6 @@ var require_react_dom_development = __commonJS({
|
|
|
13844
13821
|
if (getEventCharCode(nativeEvent) === 0) {
|
|
13845
13822
|
return;
|
|
13846
13823
|
}
|
|
13847
|
-
/* falls through */
|
|
13848
13824
|
case "keydown":
|
|
13849
13825
|
case "keyup":
|
|
13850
13826
|
SyntheticEventCtor = SyntheticKeyboardEvent;
|
|
@@ -13865,14 +13841,11 @@ var require_react_dom_development = __commonJS({
|
|
|
13865
13841
|
if (nativeEvent.button === 2) {
|
|
13866
13842
|
return;
|
|
13867
13843
|
}
|
|
13868
|
-
/* falls through */
|
|
13869
13844
|
case "auxclick":
|
|
13870
13845
|
case "dblclick":
|
|
13871
13846
|
case "mousedown":
|
|
13872
13847
|
case "mousemove":
|
|
13873
13848
|
case "mouseup":
|
|
13874
|
-
// TODO: Disabled elements should not respond to mouse events
|
|
13875
|
-
/* falls through */
|
|
13876
13849
|
case "mouseout":
|
|
13877
13850
|
case "mouseover":
|
|
13878
13851
|
case "contextmenu":
|
|
@@ -14786,8 +14759,6 @@ var require_react_dom_development = __commonJS({
|
|
|
14786
14759
|
for (var _i = 0; _i < attributes.length; _i++) {
|
|
14787
14760
|
var name = attributes[_i].name.toLowerCase();
|
|
14788
14761
|
switch (name) {
|
|
14789
|
-
// Controlled attributes are not validated
|
|
14790
|
-
// TODO: Only ignore them on controlled tags.
|
|
14791
14762
|
case "value":
|
|
14792
14763
|
break;
|
|
14793
14764
|
case "checked":
|
|
@@ -15055,37 +15026,24 @@ var require_react_dom_development = __commonJS({
|
|
|
15055
15026
|
};
|
|
15056
15027
|
var isTagValidWithParent = function(tag, parentTag) {
|
|
15057
15028
|
switch (parentTag) {
|
|
15058
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
|
|
15059
15029
|
case "select":
|
|
15060
15030
|
return tag === "option" || tag === "optgroup" || tag === "#text";
|
|
15061
15031
|
case "optgroup":
|
|
15062
15032
|
return tag === "option" || tag === "#text";
|
|
15063
|
-
// Strictly speaking, seeing an <option> doesn't mean we're in a <select>
|
|
15064
|
-
// but
|
|
15065
15033
|
case "option":
|
|
15066
15034
|
return tag === "#text";
|
|
15067
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
|
|
15068
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
|
|
15069
|
-
// No special behavior since these rules fall back to "in body" mode for
|
|
15070
|
-
// all except special table nodes which cause bad parsing behavior anyway.
|
|
15071
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
|
|
15072
15035
|
case "tr":
|
|
15073
15036
|
return tag === "th" || tag === "td" || tag === "style" || tag === "script" || tag === "template";
|
|
15074
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
|
|
15075
15037
|
case "tbody":
|
|
15076
15038
|
case "thead":
|
|
15077
15039
|
case "tfoot":
|
|
15078
15040
|
return tag === "tr" || tag === "style" || tag === "script" || tag === "template";
|
|
15079
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
|
|
15080
15041
|
case "colgroup":
|
|
15081
15042
|
return tag === "col" || tag === "template";
|
|
15082
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
|
|
15083
15043
|
case "table":
|
|
15084
15044
|
return tag === "caption" || tag === "colgroup" || tag === "tbody" || tag === "tfoot" || tag === "thead" || tag === "style" || tag === "script" || tag === "template";
|
|
15085
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
|
|
15086
15045
|
case "head":
|
|
15087
15046
|
return tag === "base" || tag === "basefont" || tag === "bgsound" || tag === "link" || tag === "meta" || tag === "title" || tag === "noscript" || tag === "noframes" || tag === "style" || tag === "script" || tag === "template";
|
|
15088
|
-
// https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
|
|
15089
15047
|
case "html":
|
|
15090
15048
|
return tag === "head" || tag === "body" || tag === "frameset";
|
|
15091
15049
|
case "frameset":
|
|
@@ -18044,7 +18002,6 @@ var require_react_dom_development = __commonJS({
|
|
|
18044
18002
|
case CaptureUpdate: {
|
|
18045
18003
|
workInProgress2.flags = workInProgress2.flags & ~ShouldCapture | DidCapture;
|
|
18046
18004
|
}
|
|
18047
|
-
// Intentional fallthrough
|
|
18048
18005
|
case UpdateState: {
|
|
18049
18006
|
var _payload = update.payload;
|
|
18050
18007
|
var partialState;
|
|
@@ -24362,7 +24319,6 @@ var require_react_dom_development = __commonJS({
|
|
|
24362
24319
|
insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent);
|
|
24363
24320
|
break;
|
|
24364
24321
|
}
|
|
24365
|
-
// eslint-disable-next-line-no-fallthrough
|
|
24366
24322
|
default:
|
|
24367
24323
|
throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.");
|
|
24368
24324
|
}
|
|
@@ -24462,7 +24418,6 @@ var require_react_dom_development = __commonJS({
|
|
|
24462
24418
|
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
24463
24419
|
}
|
|
24464
24420
|
}
|
|
24465
|
-
// eslint-disable-next-line-no-fallthrough
|
|
24466
24421
|
case HostText: {
|
|
24467
24422
|
{
|
|
24468
24423
|
var prevHostParent = hostParent;
|
|
@@ -25724,9 +25679,6 @@ var require_react_dom_development = __commonJS({
|
|
|
25724
25679
|
case RootFatalErrored: {
|
|
25725
25680
|
throw new Error("Root did not complete. This is a bug in React.");
|
|
25726
25681
|
}
|
|
25727
|
-
// Flow knows about invariant, so it complains if I add a break
|
|
25728
|
-
// statement, but eslint doesn't know about invariant, so it complains
|
|
25729
|
-
// if I do. eslint-disable-next-line no-fallthrough
|
|
25730
25682
|
case RootErrored: {
|
|
25731
25683
|
commitRoot(root2, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
25732
25684
|
break;
|
|
@@ -27372,15 +27324,10 @@ var require_react_dom_development = __commonJS({
|
|
|
27372
27324
|
case REACT_OFFSCREEN_TYPE:
|
|
27373
27325
|
return createFiberFromOffscreen(pendingProps, mode, lanes, key);
|
|
27374
27326
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
27375
|
-
// eslint-disable-next-line no-fallthrough
|
|
27376
27327
|
case REACT_SCOPE_TYPE:
|
|
27377
|
-
// eslint-disable-next-line no-fallthrough
|
|
27378
27328
|
case REACT_CACHE_TYPE:
|
|
27379
|
-
// eslint-disable-next-line no-fallthrough
|
|
27380
27329
|
case REACT_TRACING_MARKER_TYPE:
|
|
27381
|
-
// eslint-disable-next-line no-fallthrough
|
|
27382
27330
|
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
27383
|
-
// eslint-disable-next-line no-fallthrough
|
|
27384
27331
|
default: {
|
|
27385
27332
|
if (typeof type === "object" && type !== null) {
|
|
27386
27333
|
switch (type.$$typeof) {
|
|
@@ -28591,16 +28538,17 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
28591
28538
|
var async_hooks = __import_async_hooks;
|
|
28592
28539
|
var ReactDOM = import_react_dom.default;
|
|
28593
28540
|
var React = import_react.default;
|
|
28594
|
-
var REACT_LEGACY_ELEMENT_TYPE =
|
|
28595
|
-
var REACT_ELEMENT_TYPE =
|
|
28596
|
-
var REACT_FRAGMENT_TYPE =
|
|
28597
|
-
var REACT_CONTEXT_TYPE =
|
|
28598
|
-
var REACT_FORWARD_REF_TYPE =
|
|
28599
|
-
var REACT_SUSPENSE_TYPE =
|
|
28600
|
-
var REACT_SUSPENSE_LIST_TYPE =
|
|
28601
|
-
var REACT_MEMO_TYPE =
|
|
28602
|
-
var REACT_LAZY_TYPE =
|
|
28603
|
-
var REACT_MEMO_CACHE_SENTINEL =
|
|
28541
|
+
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element");
|
|
28542
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
28543
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
28544
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
28545
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
28546
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
28547
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
28548
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
28549
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
28550
|
+
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
|
28551
|
+
Symbol.for("react.postpone");
|
|
28604
28552
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
28605
28553
|
function getIteratorFn(maybeIterable) {
|
|
28606
28554
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -28650,8 +28598,8 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
28650
28598
|
function byteLengthOfChunk(chunk) {
|
|
28651
28599
|
return "string" === typeof chunk ? Buffer.byteLength(chunk, "utf8") : chunk.byteLength;
|
|
28652
28600
|
}
|
|
28653
|
-
var CLIENT_REFERENCE_TAG$1 =
|
|
28654
|
-
var SERVER_REFERENCE_TAG =
|
|
28601
|
+
var CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference");
|
|
28602
|
+
var SERVER_REFERENCE_TAG = Symbol.for("react.server.reference");
|
|
28655
28603
|
function registerClientReferenceImpl(proxyImplementation, id, async) {
|
|
28656
28604
|
return Object.defineProperties(proxyImplementation, {
|
|
28657
28605
|
$$typeof: { value: CLIENT_REFERENCE_TAG$1 },
|
|
@@ -28976,7 +28924,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
28976
28924
|
}
|
|
28977
28925
|
}
|
|
28978
28926
|
var requestStorage = new async_hooks.AsyncLocalStorage();
|
|
28979
|
-
var TEMPORARY_REFERENCE_TAG =
|
|
28927
|
+
var TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference");
|
|
28980
28928
|
var proxyHandlers = {
|
|
28981
28929
|
get: function(target, name) {
|
|
28982
28930
|
switch (name) {
|
|
@@ -29218,7 +29166,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
29218
29166
|
}
|
|
29219
29167
|
return "";
|
|
29220
29168
|
}
|
|
29221
|
-
var CLIENT_REFERENCE_TAG =
|
|
29169
|
+
var CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference");
|
|
29222
29170
|
function describeObjectForErrorMessage(objectOrArray, expandedName) {
|
|
29223
29171
|
var objKind = objectName(objectOrArray);
|
|
29224
29172
|
if ("Object" !== objKind && "Array" !== objKind) return objKind;
|
|
@@ -30274,7 +30222,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
30274
30222
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
30275
30223
|
return moduleExports[metadata[2]];
|
|
30276
30224
|
}
|
|
30277
|
-
var RESPONSE_SYMBOL =
|
|
30225
|
+
var RESPONSE_SYMBOL = Symbol();
|
|
30278
30226
|
function ReactPromise(status, value, reason) {
|
|
30279
30227
|
this.status = status;
|
|
30280
30228
|
this.value = value;
|
|
@@ -31293,7 +31241,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
31293
31241
|
"use strict";
|
|
31294
31242
|
var import_react_dom = __toESM(require_react_dom());
|
|
31295
31243
|
var import_react = __toESM(require_react_shared_subset());
|
|
31296
|
-
"production" !== process.env.NODE_ENV &&
|
|
31244
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
31297
31245
|
function voidHandler() {
|
|
31298
31246
|
}
|
|
31299
31247
|
function getIteratorFn(maybeIterable) {
|
|
@@ -35212,9 +35160,9 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
35212
35160
|
}
|
|
35213
35161
|
var stream = __import_stream2, util = __import_util2;
|
|
35214
35162
|
__import_crypto2;
|
|
35215
|
-
var async_hooks = __import_async_hooks2, ReactDOM = import_react_dom.default, React = import_react.default, REACT_LEGACY_ELEMENT_TYPE =
|
|
35216
|
-
|
|
35217
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, ASYNC_ITERATOR = Symbol.asyncIterator, scheduleMicrotask = queueMicrotask, currentView = null, writtenBytes = 0, destinationHasCapacity = true, textEncoder = new util.TextEncoder(), CLIENT_REFERENCE_TAG$1 =
|
|
35163
|
+
var async_hooks = __import_async_hooks2, ReactDOM = import_react_dom.default, React = import_react.default, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
|
35164
|
+
Symbol.for("react.postpone");
|
|
35165
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, ASYNC_ITERATOR = Symbol.asyncIterator, scheduleMicrotask = queueMicrotask, currentView = null, writtenBytes = 0, destinationHasCapacity = true, textEncoder = new util.TextEncoder(), CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"), SERVER_REFERENCE_TAG = Symbol.for("react.server.reference"), FunctionBind = Function.prototype.bind, ArraySlice = Array.prototype.slice, serverReferenceToString = {
|
|
35218
35166
|
value: function() {
|
|
35219
35167
|
return "function () { [omitted code] }";
|
|
35220
35168
|
},
|
|
@@ -35344,7 +35292,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
35344
35292
|
}
|
|
35345
35293
|
}
|
|
35346
35294
|
};
|
|
35347
|
-
var currentOwner = null, getAsyncId = async_hooks.AsyncResource.prototype.asyncId, pendingOperations = /* @__PURE__ */ new Map(), lastRanAwait = null, emptyStack = [], framesToSkip = 0, collectedStackTrace = null, identifierRegExp = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, frameRegExp = /^ {3} at (?:(.+) \((?:(.+):(\d+):(\d+)|<anonymous>)\)|(?:async )?(.+):(\d+):(\d+)|<anonymous>)$/, stackTraceCache = /* @__PURE__ */ new WeakMap(), requestStorage = new async_hooks.AsyncLocalStorage(), componentStorage = new async_hooks.AsyncLocalStorage(), TEMPORARY_REFERENCE_TAG =
|
|
35295
|
+
var currentOwner = null, getAsyncId = async_hooks.AsyncResource.prototype.asyncId, pendingOperations = /* @__PURE__ */ new Map(), lastRanAwait = null, emptyStack = [], framesToSkip = 0, collectedStackTrace = null, identifierRegExp = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, frameRegExp = /^ {3} at (?:(.+) \((?:(.+):(\d+):(\d+)|<anonymous>)\)|(?:async )?(.+):(\d+):(\d+)|<anonymous>)$/, stackTraceCache = /* @__PURE__ */ new WeakMap(), requestStorage = new async_hooks.AsyncLocalStorage(), componentStorage = new async_hooks.AsyncLocalStorage(), TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference"), proxyHandlers = {
|
|
35348
35296
|
get: function(target, name) {
|
|
35349
35297
|
switch (name) {
|
|
35350
35298
|
case "$$typeof":
|
|
@@ -35493,7 +35441,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
35493
35441
|
react_stack_bottom_frame: function(iterator, progress, error) {
|
|
35494
35442
|
iterator.next().then(progress, error);
|
|
35495
35443
|
}
|
|
35496
|
-
}, callIteratorInDEV = callIterator.react_stack_bottom_frame.bind(callIterator), isArrayImpl = Array.isArray, getPrototypeOf = Object.getPrototypeOf, jsxPropsParents = /* @__PURE__ */ new WeakMap(), jsxChildrenParents = /* @__PURE__ */ new WeakMap(), CLIENT_REFERENCE_TAG =
|
|
35444
|
+
}, callIteratorInDEV = callIterator.react_stack_bottom_frame.bind(callIterator), isArrayImpl = Array.isArray, getPrototypeOf = Object.getPrototypeOf, jsxPropsParents = /* @__PURE__ */ new WeakMap(), jsxChildrenParents = /* @__PURE__ */ new WeakMap(), CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"), hasOwnProperty = Object.prototype.hasOwnProperty, doNotLimit = /* @__PURE__ */ new WeakSet();
|
|
35497
35445
|
(function() {
|
|
35498
35446
|
async_hooks.createHook({
|
|
35499
35447
|
init: function(asyncId, type, triggerAsyncId, resource) {
|
|
@@ -35621,7 +35569,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
35621
35569
|
}).enable();
|
|
35622
35570
|
})();
|
|
35623
35571
|
"object" === typeof console && null !== console && (patchConsole(console, "assert"), patchConsole(console, "debug"), patchConsole(console, "dir"), patchConsole(console, "dirxml"), patchConsole(console, "error"), patchConsole(console, "group"), patchConsole(console, "groupCollapsed"), patchConsole(console, "groupEnd"), patchConsole(console, "info"), patchConsole(console, "log"), patchConsole(console, "table"), patchConsole(console, "trace"), patchConsole(console, "warn"));
|
|
35624
|
-
var ObjectPrototype = Object.prototype, stringify = JSON.stringify, ABORTING = 12, CLOSED = 14, defaultPostponeHandler = noop, currentRequest = null, canEmitDebugInfo = false, serializedSize = 0, MAX_ROW_SIZE = 3200, modelRoot = false, CONSTRUCTOR_MARKER =
|
|
35572
|
+
var ObjectPrototype = Object.prototype, stringify = JSON.stringify, ABORTING = 12, CLOSED = 14, defaultPostponeHandler = noop, currentRequest = null, canEmitDebugInfo = false, serializedSize = 0, MAX_ROW_SIZE = 3200, modelRoot = false, CONSTRUCTOR_MARKER = Symbol(), debugModelRoot = null, debugNoOutline = null, emptyRoot = {}, decoderOptions = { stream: true }, chunkCache = /* @__PURE__ */ new Map(), RESPONSE_SYMBOL = Symbol();
|
|
35625
35573
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
35626
35574
|
ReactPromise.prototype.then = function(resolve, reject) {
|
|
35627
35575
|
switch (this.status) {
|
|
@@ -35999,7 +35947,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
35999
35947
|
{ highWaterMark: 0 }
|
|
36000
35948
|
);
|
|
36001
35949
|
};
|
|
36002
|
-
}
|
|
35950
|
+
}();
|
|
36003
35951
|
}
|
|
36004
35952
|
});
|
|
36005
35953
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var src_exports = {};
|
|
30
|
+
__export(src_exports, {
|
|
31
31
|
cedar: () => cedar,
|
|
32
32
|
cedarCellTransform: () => import_vite_plugin_cedar_cell2.cedarCellTransform,
|
|
33
33
|
cedarEntryInjectionPlugin: () => import_vite_plugin_cedar_entry_injection2.cedarEntryInjectionPlugin,
|
|
@@ -39,9 +39,9 @@ __export(index_exports, {
|
|
|
39
39
|
cedarTransformJsAsJsx: () => import_vite_plugin_jsx_loader2.cedarTransformJsAsJsx,
|
|
40
40
|
cedarjsDirectoryNamedImportPlugin: () => import_vite_plugin_cedarjs_directory_named_import.cedarjsDirectoryNamedImportPlugin,
|
|
41
41
|
cedarjsJobPathInjectorPlugin: () => import_vite_plugin_cedarjs_job_path_injector.cedarjsJobPathInjectorPlugin,
|
|
42
|
-
default: () =>
|
|
42
|
+
default: () => src_default
|
|
43
43
|
});
|
|
44
|
-
module.exports = __toCommonJS(
|
|
44
|
+
module.exports = __toCommonJS(src_exports);
|
|
45
45
|
var import_plugin_react = __toESM(require("@vitejs/plugin-react"), 1);
|
|
46
46
|
var import_babel_config = require("@cedarjs/babel-config");
|
|
47
47
|
var import_project_config = require("@cedarjs/project-config");
|
|
@@ -93,7 +93,7 @@ function cedar({ mode } = {}) {
|
|
|
93
93
|
(0, import_plugin_react.default)({ babel: babelConfig })
|
|
94
94
|
];
|
|
95
95
|
}
|
|
96
|
-
var
|
|
96
|
+
var src_default = cedar;
|
|
97
97
|
// Annotate the CommonJS export names for ESM import in node:
|
|
98
98
|
0 && (module.exports = {
|
|
99
99
|
cedar,
|
|
@@ -115,7 +115,6 @@ function transformServerModule(mod, url, code) {
|
|
|
115
115
|
const localTypes = /* @__PURE__ */ new Map();
|
|
116
116
|
for (const node of mod.body) {
|
|
117
117
|
switch (node.type) {
|
|
118
|
-
// TODO (RSC): Add code comments with examples of each type of node
|
|
119
118
|
case "ExportDeclaration":
|
|
120
119
|
if (node.declaration.type === "FunctionDeclaration") {
|
|
121
120
|
const name = node.declaration.identifier.value;
|
package/dist/cjs/runFeServer.js
CHANGED
|
@@ -49,8 +49,6 @@ var import_utils = require("./utils.js");
|
|
|
49
49
|
(0, import_dotenv_defaults.config)({
|
|
50
50
|
path: import_node_path.default.join((0, import_project_config.getPaths)().base, ".env"),
|
|
51
51
|
defaults: import_node_path.default.join((0, import_project_config.getPaths)().base, ".env.defaults"),
|
|
52
|
-
// @ts-expect-error - Old typings. @types/dotenv-defaults depends on dotenv
|
|
53
|
-
// v8. dotenv-defaults uses dotenv v14
|
|
54
52
|
multiline: true
|
|
55
53
|
});
|
|
56
54
|
async function runFeServer() {
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ function cedar({ mode } = {}) {
|
|
|
53
53
|
react({ babel: babelConfig })
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var src_default = cedar;
|
|
57
57
|
export {
|
|
58
58
|
cedar,
|
|
59
59
|
cedarCellTransform2 as cedarCellTransform,
|
|
@@ -66,5 +66,5 @@ export {
|
|
|
66
66
|
cedarTransformJsAsJsx2 as cedarTransformJsAsJsx,
|
|
67
67
|
cedarjsDirectoryNamedImportPlugin,
|
|
68
68
|
cedarjsJobPathInjectorPlugin,
|
|
69
|
-
|
|
69
|
+
src_default as default
|
|
70
70
|
};
|
|
@@ -82,7 +82,6 @@ function transformServerModule(mod, url, code) {
|
|
|
82
82
|
const localTypes = /* @__PURE__ */ new Map();
|
|
83
83
|
for (const node of mod.body) {
|
|
84
84
|
switch (node.type) {
|
|
85
|
-
// TODO (RSC): Add code comments with examples of each type of node
|
|
86
85
|
case "ExportDeclaration":
|
|
87
86
|
if (node.declaration.type === "FunctionDeclaration") {
|
|
88
87
|
const name = node.declaration.identifier.value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFeServer.d.ts","sourceRoot":"","sources":["../src/runFeServer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runFeServer.d.ts","sourceRoot":"","sources":["../src/runFeServer.ts"],"names":[],"mappings":"AAgDA,wBAAsB,WAAW,kBAsJhC"}
|
package/dist/runFeServer.js
CHANGED
|
@@ -16,8 +16,6 @@ import { convertExpressHeaders, getFullUrl } from "./utils.js";
|
|
|
16
16
|
loadDotEnv({
|
|
17
17
|
path: path.join(getPaths().base, ".env"),
|
|
18
18
|
defaults: path.join(getPaths().base, ".env.defaults"),
|
|
19
|
-
// @ts-expect-error - Old typings. @types/dotenv-defaults depends on dotenv
|
|
20
|
-
// v8. dotenv-defaults uses dotenv v14
|
|
21
19
|
multiline: true
|
|
22
20
|
});
|
|
23
21
|
async function runFeServer() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2-next.31+ff2776832",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"@babel/generator": "7.28.5",
|
|
65
65
|
"@babel/parser": "7.28.5",
|
|
66
66
|
"@babel/traverse": "7.28.5",
|
|
67
|
-
"@cedarjs/auth": "2.2.
|
|
68
|
-
"@cedarjs/babel-config": "2.2.
|
|
69
|
-
"@cedarjs/cookie-jar": "2.2.
|
|
70
|
-
"@cedarjs/internal": "2.2.
|
|
71
|
-
"@cedarjs/project-config": "2.2.
|
|
72
|
-
"@cedarjs/server-store": "2.2.
|
|
73
|
-
"@cedarjs/testing": "2.2.
|
|
74
|
-
"@cedarjs/web": "2.2.
|
|
67
|
+
"@cedarjs/auth": "2.2.2-next.31+ff2776832",
|
|
68
|
+
"@cedarjs/babel-config": "2.2.2-next.31+ff2776832",
|
|
69
|
+
"@cedarjs/cookie-jar": "2.2.2-next.31+ff2776832",
|
|
70
|
+
"@cedarjs/internal": "2.2.2-next.31+ff2776832",
|
|
71
|
+
"@cedarjs/project-config": "2.2.2-next.31+ff2776832",
|
|
72
|
+
"@cedarjs/server-store": "2.2.2-next.31+ff2776832",
|
|
73
|
+
"@cedarjs/testing": "2.2.2-next.31+ff2776832",
|
|
74
|
+
"@cedarjs/web": "2.2.2-next.31+ff2776832",
|
|
75
75
|
"@swc/core": "1.15.7",
|
|
76
76
|
"@vitejs/plugin-react": "4.7.0",
|
|
77
77
|
"@whatwg-node/fetch": "0.10.13",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"react": "18.3.1",
|
|
91
91
|
"react-server-dom-webpack": "19.2.3",
|
|
92
92
|
"rimraf": "6.1.2",
|
|
93
|
-
"vite": "5.4.
|
|
93
|
+
"vite": "5.4.21",
|
|
94
94
|
"vite-plugin-cjs-interop": "2.3.0",
|
|
95
95
|
"vite-plugin-node-polyfills": "0.24.0",
|
|
96
96
|
"ws": "8.18.3",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "ff2776832afcb70cd4ca38986ec4e37043e1c44b"
|
|
120
120
|
}
|