@cedarjs/vite 3.1.1-rc.4 → 3.1.1-rc.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.
- package/dist/bundled/react-server-dom-webpack.server.js +0 -58
- 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/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/package.json +10 -10
|
@@ -7622,7 +7622,6 @@ var require_react_dom_development = __commonJS({
|
|
|
7622
7622
|
}
|
|
7623
7623
|
switch (typeof value) {
|
|
7624
7624
|
case "function":
|
|
7625
|
-
// $FlowIssue symbol is perfectly valid here
|
|
7626
7625
|
case "symbol":
|
|
7627
7626
|
return true;
|
|
7628
7627
|
case "boolean": {
|
|
@@ -8637,7 +8636,6 @@ var require_react_dom_development = __commonJS({
|
|
|
8637
8636
|
return "SuspenseList";
|
|
8638
8637
|
case TracingMarkerComponent:
|
|
8639
8638
|
return "TracingMarker";
|
|
8640
|
-
// The display name for this tags come from the user-provided type:
|
|
8641
8639
|
case ClassComponent:
|
|
8642
8640
|
case FunctionComponent:
|
|
8643
8641
|
case IncompleteClassComponent:
|
|
@@ -9635,10 +9633,6 @@ var require_react_dom_development = __commonJS({
|
|
|
9635
9633
|
return typeof props.is === "string";
|
|
9636
9634
|
}
|
|
9637
9635
|
switch (tagName) {
|
|
9638
|
-
// These are reserved SVG and MathML elements.
|
|
9639
|
-
// We don't mind this list too much because we expect it to never grow.
|
|
9640
|
-
// The alternative is to track the namespace in a few places which is convoluted.
|
|
9641
|
-
// https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
|
|
9642
9636
|
case "annotation-xml":
|
|
9643
9637
|
case "color-profile":
|
|
9644
9638
|
case "font-face":
|
|
@@ -12468,7 +12462,6 @@ var require_react_dom_development = __commonJS({
|
|
|
12468
12462
|
}
|
|
12469
12463
|
function getEventPriority(domEventName) {
|
|
12470
12464
|
switch (domEventName) {
|
|
12471
|
-
// Used by SimpleEventPlugin:
|
|
12472
12465
|
case "cancel":
|
|
12473
12466
|
case "click":
|
|
12474
12467
|
case "close":
|
|
@@ -12504,20 +12497,14 @@ var require_react_dom_development = __commonJS({
|
|
|
12504
12497
|
case "touchend":
|
|
12505
12498
|
case "touchstart":
|
|
12506
12499
|
case "volumechange":
|
|
12507
|
-
// Used by polyfills:
|
|
12508
|
-
// eslint-disable-next-line no-fallthrough
|
|
12509
12500
|
case "change":
|
|
12510
12501
|
case "selectionchange":
|
|
12511
12502
|
case "textInput":
|
|
12512
12503
|
case "compositionstart":
|
|
12513
12504
|
case "compositionend":
|
|
12514
12505
|
case "compositionupdate":
|
|
12515
|
-
// Only enableCreateEventHandleAPI:
|
|
12516
|
-
// eslint-disable-next-line no-fallthrough
|
|
12517
12506
|
case "beforeblur":
|
|
12518
12507
|
case "afterblur":
|
|
12519
|
-
// Not used by React but could be by user code:
|
|
12520
|
-
// eslint-disable-next-line no-fallthrough
|
|
12521
12508
|
case "beforeinput":
|
|
12522
12509
|
case "blur":
|
|
12523
12510
|
case "fullscreenchange":
|
|
@@ -12542,8 +12529,6 @@ var require_react_dom_development = __commonJS({
|
|
|
12542
12529
|
case "toggle":
|
|
12543
12530
|
case "touchmove":
|
|
12544
12531
|
case "wheel":
|
|
12545
|
-
// Not used by React but could be by user code:
|
|
12546
|
-
// eslint-disable-next-line no-fallthrough
|
|
12547
12532
|
case "mouseenter":
|
|
12548
12533
|
case "mouseleave":
|
|
12549
12534
|
case "pointerenter":
|
|
@@ -13729,7 +13714,6 @@ var require_react_dom_development = __commonJS({
|
|
|
13729
13714
|
function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
|
|
13730
13715
|
var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
|
|
13731
13716
|
switch (domEventName) {
|
|
13732
|
-
// Track the input node that has focus.
|
|
13733
13717
|
case "focusin":
|
|
13734
13718
|
if (isTextInputElement(targetNode) || targetNode.contentEditable === "true") {
|
|
13735
13719
|
activeElement$1 = targetNode;
|
|
@@ -13742,8 +13726,6 @@ var require_react_dom_development = __commonJS({
|
|
|
13742
13726
|
activeElementInst$1 = null;
|
|
13743
13727
|
lastSelection = null;
|
|
13744
13728
|
break;
|
|
13745
|
-
// Don't fire the event while the user is dragging. This matches the
|
|
13746
|
-
// semantics of the native select event.
|
|
13747
13729
|
case "mousedown":
|
|
13748
13730
|
mouseDown = true;
|
|
13749
13731
|
break;
|
|
@@ -13753,20 +13735,10 @@ var require_react_dom_development = __commonJS({
|
|
|
13753
13735
|
mouseDown = false;
|
|
13754
13736
|
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
13755
13737
|
break;
|
|
13756
|
-
// Chrome and IE fire non-standard event when selection is changed (and
|
|
13757
|
-
// sometimes when it hasn't). IE's event fires out of order with respect
|
|
13758
|
-
// to key and input events on deletion, so we discard it.
|
|
13759
|
-
//
|
|
13760
|
-
// Firefox doesn't support selectionchange, so check selection status
|
|
13761
|
-
// after each key entry. The selection changes after keydown and before
|
|
13762
|
-
// keyup, but we check on keydown as well in the case of holding down a
|
|
13763
|
-
// key, when multiple keydown events are fired but only one keyup is.
|
|
13764
|
-
// This is also our approach for IE handling, for the reason above.
|
|
13765
13738
|
case "selectionchange":
|
|
13766
13739
|
if (skipSelectionChangeEvent) {
|
|
13767
13740
|
break;
|
|
13768
13741
|
}
|
|
13769
|
-
// falls through
|
|
13770
13742
|
case "keydown":
|
|
13771
13743
|
case "keyup":
|
|
13772
13744
|
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
@@ -13849,7 +13821,6 @@ var require_react_dom_development = __commonJS({
|
|
|
13849
13821
|
if (getEventCharCode(nativeEvent) === 0) {
|
|
13850
13822
|
return;
|
|
13851
13823
|
}
|
|
13852
|
-
/* falls through */
|
|
13853
13824
|
case "keydown":
|
|
13854
13825
|
case "keyup":
|
|
13855
13826
|
SyntheticEventCtor = SyntheticKeyboardEvent;
|
|
@@ -13870,14 +13841,11 @@ var require_react_dom_development = __commonJS({
|
|
|
13870
13841
|
if (nativeEvent.button === 2) {
|
|
13871
13842
|
return;
|
|
13872
13843
|
}
|
|
13873
|
-
/* falls through */
|
|
13874
13844
|
case "auxclick":
|
|
13875
13845
|
case "dblclick":
|
|
13876
13846
|
case "mousedown":
|
|
13877
13847
|
case "mousemove":
|
|
13878
13848
|
case "mouseup":
|
|
13879
|
-
// TODO: Disabled elements should not respond to mouse events
|
|
13880
|
-
/* falls through */
|
|
13881
13849
|
case "mouseout":
|
|
13882
13850
|
case "mouseover":
|
|
13883
13851
|
case "contextmenu":
|
|
@@ -14791,8 +14759,6 @@ var require_react_dom_development = __commonJS({
|
|
|
14791
14759
|
for (var _i = 0; _i < attributes.length; _i++) {
|
|
14792
14760
|
var name = attributes[_i].name.toLowerCase();
|
|
14793
14761
|
switch (name) {
|
|
14794
|
-
// Controlled attributes are not validated
|
|
14795
|
-
// TODO: Only ignore them on controlled tags.
|
|
14796
14762
|
case "value":
|
|
14797
14763
|
break;
|
|
14798
14764
|
case "checked":
|
|
@@ -15060,37 +15026,24 @@ var require_react_dom_development = __commonJS({
|
|
|
15060
15026
|
};
|
|
15061
15027
|
var isTagValidWithParent = function(tag, parentTag) {
|
|
15062
15028
|
switch (parentTag) {
|
|
15063
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
|
|
15064
15029
|
case "select":
|
|
15065
15030
|
return tag === "option" || tag === "optgroup" || tag === "#text";
|
|
15066
15031
|
case "optgroup":
|
|
15067
15032
|
return tag === "option" || tag === "#text";
|
|
15068
|
-
// Strictly speaking, seeing an <option> doesn't mean we're in a <select>
|
|
15069
|
-
// but
|
|
15070
15033
|
case "option":
|
|
15071
15034
|
return tag === "#text";
|
|
15072
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
|
|
15073
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
|
|
15074
|
-
// No special behavior since these rules fall back to "in body" mode for
|
|
15075
|
-
// all except special table nodes which cause bad parsing behavior anyway.
|
|
15076
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
|
|
15077
15035
|
case "tr":
|
|
15078
15036
|
return tag === "th" || tag === "td" || tag === "style" || tag === "script" || tag === "template";
|
|
15079
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
|
|
15080
15037
|
case "tbody":
|
|
15081
15038
|
case "thead":
|
|
15082
15039
|
case "tfoot":
|
|
15083
15040
|
return tag === "tr" || tag === "style" || tag === "script" || tag === "template";
|
|
15084
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
|
|
15085
15041
|
case "colgroup":
|
|
15086
15042
|
return tag === "col" || tag === "template";
|
|
15087
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
|
|
15088
15043
|
case "table":
|
|
15089
15044
|
return tag === "caption" || tag === "colgroup" || tag === "tbody" || tag === "tfoot" || tag === "thead" || tag === "style" || tag === "script" || tag === "template";
|
|
15090
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
|
|
15091
15045
|
case "head":
|
|
15092
15046
|
return tag === "base" || tag === "basefont" || tag === "bgsound" || tag === "link" || tag === "meta" || tag === "title" || tag === "noscript" || tag === "noframes" || tag === "style" || tag === "script" || tag === "template";
|
|
15093
|
-
// https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
|
|
15094
15047
|
case "html":
|
|
15095
15048
|
return tag === "head" || tag === "body" || tag === "frameset";
|
|
15096
15049
|
case "frameset":
|
|
@@ -18049,7 +18002,6 @@ var require_react_dom_development = __commonJS({
|
|
|
18049
18002
|
case CaptureUpdate: {
|
|
18050
18003
|
workInProgress2.flags = workInProgress2.flags & ~ShouldCapture | DidCapture;
|
|
18051
18004
|
}
|
|
18052
|
-
// Intentional fallthrough
|
|
18053
18005
|
case UpdateState: {
|
|
18054
18006
|
var _payload = update.payload;
|
|
18055
18007
|
var partialState;
|
|
@@ -24367,7 +24319,6 @@ var require_react_dom_development = __commonJS({
|
|
|
24367
24319
|
insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent);
|
|
24368
24320
|
break;
|
|
24369
24321
|
}
|
|
24370
|
-
// eslint-disable-next-line-no-fallthrough
|
|
24371
24322
|
default:
|
|
24372
24323
|
throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.");
|
|
24373
24324
|
}
|
|
@@ -24467,7 +24418,6 @@ var require_react_dom_development = __commonJS({
|
|
|
24467
24418
|
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
24468
24419
|
}
|
|
24469
24420
|
}
|
|
24470
|
-
// eslint-disable-next-line-no-fallthrough
|
|
24471
24421
|
case HostText: {
|
|
24472
24422
|
{
|
|
24473
24423
|
var prevHostParent = hostParent;
|
|
@@ -25729,9 +25679,6 @@ var require_react_dom_development = __commonJS({
|
|
|
25729
25679
|
case RootFatalErrored: {
|
|
25730
25680
|
throw new Error("Root did not complete. This is a bug in React.");
|
|
25731
25681
|
}
|
|
25732
|
-
// Flow knows about invariant, so it complains if I add a break
|
|
25733
|
-
// statement, but eslint doesn't know about invariant, so it complains
|
|
25734
|
-
// if I do. eslint-disable-next-line no-fallthrough
|
|
25735
25682
|
case RootErrored: {
|
|
25736
25683
|
commitRoot(root2, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
25737
25684
|
break;
|
|
@@ -27377,15 +27324,10 @@ var require_react_dom_development = __commonJS({
|
|
|
27377
27324
|
case REACT_OFFSCREEN_TYPE:
|
|
27378
27325
|
return createFiberFromOffscreen(pendingProps, mode, lanes, key);
|
|
27379
27326
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
27380
|
-
// eslint-disable-next-line no-fallthrough
|
|
27381
27327
|
case REACT_SCOPE_TYPE:
|
|
27382
|
-
// eslint-disable-next-line no-fallthrough
|
|
27383
27328
|
case REACT_CACHE_TYPE:
|
|
27384
|
-
// eslint-disable-next-line no-fallthrough
|
|
27385
27329
|
case REACT_TRACING_MARKER_TYPE:
|
|
27386
|
-
// eslint-disable-next-line no-fallthrough
|
|
27387
27330
|
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
27388
|
-
// eslint-disable-next-line no-fallthrough
|
|
27389
27331
|
default: {
|
|
27390
27332
|
if (typeof type === "object" && type !== null) {
|
|
27391
27333
|
switch (type.$$typeof) {
|
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
|
cedarAutoImportsPlugin: () => import_vite_plugin_cedar_auto_import.cedarAutoImportsPlugin,
|
|
33
33
|
cedarCellTransform: () => import_vite_plugin_cedar_cell2.cedarCellTransform,
|
|
@@ -41,9 +41,9 @@ __export(index_exports, {
|
|
|
41
41
|
cedarTransformJsAsJsx: () => import_vite_plugin_jsx_loader2.cedarTransformJsAsJsx,
|
|
42
42
|
cedarjsDirectoryNamedImportPlugin: () => import_vite_plugin_cedarjs_directory_named_import.cedarjsDirectoryNamedImportPlugin,
|
|
43
43
|
cedarjsJobPathInjectorPlugin: () => import_vite_plugin_cedarjs_job_path_injector.cedarjsJobPathInjectorPlugin,
|
|
44
|
-
default: () =>
|
|
44
|
+
default: () => src_default
|
|
45
45
|
});
|
|
46
|
-
module.exports = __toCommonJS(
|
|
46
|
+
module.exports = __toCommonJS(src_exports);
|
|
47
47
|
var import_plugin_react = __toESM(require("@vitejs/plugin-react"), 1);
|
|
48
48
|
var import_babel_config = require("@cedarjs/babel-config");
|
|
49
49
|
var import_project_config = require("@cedarjs/project-config");
|
|
@@ -99,7 +99,7 @@ function cedar({ mode } = {}) {
|
|
|
99
99
|
(0, import_plugin_react.default)({ babel: babelConfig })
|
|
100
100
|
];
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var src_default = cedar;
|
|
103
103
|
// Annotate the CommonJS export names for ESM import in node:
|
|
104
104
|
0 && (module.exports = {
|
|
105
105
|
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/index.js
CHANGED
|
@@ -57,7 +57,7 @@ function cedar({ mode } = {}) {
|
|
|
57
57
|
react({ babel: babelConfig })
|
|
58
58
|
];
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var src_default = cedar;
|
|
61
61
|
export {
|
|
62
62
|
cedar,
|
|
63
63
|
cedarAutoImportsPlugin,
|
|
@@ -72,5 +72,5 @@ export {
|
|
|
72
72
|
cedarTransformJsAsJsx2 as cedarTransformJsAsJsx,
|
|
73
73
|
cedarjsDirectoryNamedImportPlugin,
|
|
74
74
|
cedarjsJobPathInjectorPlugin,
|
|
75
|
-
|
|
75
|
+
src_default as default
|
|
76
76
|
};
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "3.1.1-rc.
|
|
3
|
+
"version": "3.1.1-rc.5",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"@babel/generator": "7.29.1",
|
|
65
65
|
"@babel/parser": "7.29.2",
|
|
66
66
|
"@babel/traverse": "7.29.0",
|
|
67
|
-
"@cedarjs/auth": "3.1.1-rc.
|
|
68
|
-
"@cedarjs/babel-config": "3.1.1-rc.
|
|
69
|
-
"@cedarjs/cookie-jar": "3.1.1-rc.
|
|
70
|
-
"@cedarjs/internal": "3.1.1-rc.
|
|
71
|
-
"@cedarjs/project-config": "3.1.1-rc.
|
|
72
|
-
"@cedarjs/server-store": "3.1.1-rc.
|
|
73
|
-
"@cedarjs/testing": "3.1.1-rc.
|
|
74
|
-
"@cedarjs/web": "3.1.1-rc.
|
|
67
|
+
"@cedarjs/auth": "3.1.1-rc.5",
|
|
68
|
+
"@cedarjs/babel-config": "3.1.1-rc.5",
|
|
69
|
+
"@cedarjs/cookie-jar": "3.1.1-rc.5",
|
|
70
|
+
"@cedarjs/internal": "3.1.1-rc.5",
|
|
71
|
+
"@cedarjs/project-config": "3.1.1-rc.5",
|
|
72
|
+
"@cedarjs/server-store": "3.1.1-rc.5",
|
|
73
|
+
"@cedarjs/testing": "3.1.1-rc.5",
|
|
74
|
+
"@cedarjs/web": "3.1.1-rc.5",
|
|
75
75
|
"@swc/core": "1.15.21",
|
|
76
76
|
"@vitejs/plugin-react": "4.7.0",
|
|
77
77
|
"@whatwg-node/fetch": "0.10.13",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"publishConfig": {
|
|
119
119
|
"access": "public"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "6eef6b029defde8c2c677b1424dcc5b5258fb564"
|
|
122
122
|
}
|