Skip to content

Commit 3a610f3

Browse files
committed
Merge remote-tracking branch 'origin/v3' into next
2 parents d2c0e7b + 689c4d3 commit 3a610f3

File tree

96 files changed

+2958
-786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+2958
-786
lines changed

bricks/e2e/CHANGELOG.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,118 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.5.25](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-09-01)
7+
8+
**Note:** Version bump only for package @next-bricks/e2e
9+
10+
11+
12+
13+
14+
## [0.5.24](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-08-25)
15+
16+
**Note:** Version bump only for package @next-bricks/e2e
17+
18+
19+
20+
21+
22+
## [0.5.23](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-08-04)
23+
24+
**Note:** Version bump only for package @next-bricks/e2e
25+
26+
27+
28+
29+
30+
## [0.5.22](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-31)
31+
32+
**Note:** Version bump only for package @next-bricks/e2e
33+
34+
35+
36+
37+
38+
## [0.5.21](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-22)
39+
40+
**Note:** Version bump only for package @next-bricks/e2e
41+
42+
43+
44+
45+
46+
## [0.5.20](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-19)
47+
48+
**Note:** Version bump only for package @next-bricks/e2e
49+
50+
51+
52+
53+
54+
## [0.5.19](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-13)
55+
56+
**Note:** Version bump only for package @next-bricks/e2e
57+
58+
59+
60+
61+
62+
## [0.5.18](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-12)
63+
64+
**Note:** Version bump only for package @next-bricks/e2e
65+
66+
67+
68+
69+
70+
## [0.5.17](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-09)
71+
72+
**Note:** Version bump only for package @next-bricks/e2e
73+
74+
75+
76+
77+
78+
## [0.5.16](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-07)
79+
80+
**Note:** Version bump only for package @next-bricks/e2e
81+
82+
83+
84+
85+
86+
## [0.5.15](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-02)
87+
88+
**Note:** Version bump only for package @next-bricks/e2e
89+
90+
91+
92+
93+
94+
## [0.5.14](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-02)
95+
96+
**Note:** Version bump only for package @next-bricks/e2e
97+
98+
99+
100+
101+
102+
## [0.5.13](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-07-01)
103+
104+
**Note:** Version bump only for package @next-bricks/e2e
105+
106+
107+
108+
109+
110+
## [0.5.12](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-06-24)
111+
112+
**Note:** Version bump only for package @next-bricks/e2e
113+
114+
115+
116+
117+
6118
## [0.5.11](https://github.com/easyops-cn/next-core/compare/@next-bricks/[email protected]...@next-bricks/[email protected]) (2025-05-29)
7119

8120
**Note:** Version bump only for package @next-bricks/e2e

bricks/e2e/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next-bricks/e2e",
3-
"version": "0.5.11",
3+
"version": "0.5.25",
44
"private": true,
55
"homepage": "https://github.com/easyops-cn/next-core/tree/v3/bricks/e2e",
66
"repository": {
@@ -35,17 +35,17 @@
3535
"build": "cross-env NODE_ENV=production build-next-bricks"
3636
},
3737
"dependencies": {
38-
"@next-core/element": "^1.2.17",
39-
"@next-core/i18n": "^1.0.77",
40-
"@next-core/react-element": "^1.0.36",
41-
"@next-core/react-runtime": "^1.7.16",
42-
"@next-core/runtime": "^1.62.0",
43-
"@next-core/types": "^1.15.0",
44-
"@next-core/utils": "^1.7.35",
38+
"@next-core/element": "^1.2.18",
39+
"@next-core/i18n": "^1.0.83",
40+
"@next-core/react-element": "^1.0.37",
41+
"@next-core/react-runtime": "^1.7.29",
42+
"@next-core/runtime": "^1.65.7",
43+
"@next-core/types": "^1.17.0",
44+
"@next-core/utils": "^1.8.4",
4545
"react": "0.0.0-experimental-ee8509801-20230117"
4646
},
4747
"devDependencies": {
48-
"@next-core/build-next-bricks": "^1.23.12",
49-
"@next-core/test-next": "^1.1.9"
48+
"@next-core/build-next-bricks": "^1.23.14",
49+
"@next-core/test-next": "^2.0.0"
5050
}
5151
}

cypress/e2e/control-nodes.spec.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,5 +263,29 @@ for (const port of Cypress.env("ports")) {
263263

264264
cy.get("@console.error").should("not.be.called");
265265
});
266+
267+
it("should handle nested :if rerender", () => {
268+
cy.visit(`${origin}/e2e/nested-if`, {
269+
onBeforeLoad(win) {
270+
cy.spy(win.console, "error").as("console.error");
271+
},
272+
});
273+
274+
cy.expectMainContents([
275+
"Click 1Click 2Second button is not clicked",
276+
"This should always be shown",
277+
]);
278+
279+
cy.contains("Click 1").click();
280+
cy.expectMainContents([
281+
"Click 1Click 2Second button is not clicked",
282+
"This should always be shown",
283+
]);
284+
285+
cy.contains("Click 2").click();
286+
cy.expectMainContents(["Click 1Click 2", "This should always be shown"]);
287+
288+
cy.get("@console.error").should("not.be.called");
289+
});
266290
});
267291
}

etc/runtime.api.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ import type { RuntimeSnippet } from '@next-core/types';
3838
import type { RuntimeStoryboard } from '@next-core/types';
3939
import type { SiteMode } from '@next-core/types';
4040
import type { SiteTheme } from '@next-core/types';
41+
import type { SiteVariant } from '@next-core/types';
4142
import type { SlotConfOfRoutes } from '@next-core/types';
4243
import type { StaticMenuConf } from '@next-core/types';
4344
import type { Storyboard } from '@next-core/types';
4445
import { StoryboardFunction } from '@next-core/types';
4546
import { supply } from '@next-core/supply';
47+
import type { UseProviderContractConf } from '@next-core/types';
4648
import type { UseProviderResolveConf } from '@next-core/types';
4749
import type { UseSingleBrickConf } from '@next-core/types';
4850

@@ -118,6 +120,7 @@ export interface CreateRootOptions {
118120
// (undocumented)
119121
portal?: HTMLElement;
120122
scope?: "page" | "fragment";
123+
supportsUseChildren?: boolean;
121124
unknownBricks?: "silent" | "throw";
122125
unsafe_penetrate?: boolean;
123126
}
@@ -230,6 +233,9 @@ function getRenderId(): string | undefined;
230233
// @public (undocumented)
231234
export const getRuntime: () => Runtime;
232235

236+
// @public (undocumented)
237+
export function getThemeVariant(): SiteVariant;
238+
233239
// Warning: (ae-forgotten-export) The symbol "Kit" needs to be exported by the entry point index.d.ts
234240
//
235241
// @public (undocumented)
@@ -491,7 +497,7 @@ export interface RuntimeHooks {
491497
FLOW_API_PROVIDER: string;
492498
registerFlowApiProvider(): void;
493499
isFlowApiProvider(provider: string): boolean;
494-
getArgsOfFlowApi(provider: string, originalArgs: unknown[], method?: string, stream?: boolean): Promise<unknown[]>;
500+
getArgsOfFlowApi(provider: string, originalArgs: unknown[] | UseProviderContractConf, method?: string, stream?: boolean): Promise<unknown[]>;
495501
collectContract(contracts: Contract[] | undefined): void;
496502
collectWidgetContract(contracts: Contract[] | undefined): void;
497503
clearCollectWidgetContract(): void;
@@ -586,7 +592,7 @@ const symbolForRootRuntimeContext: unique symbol;
586592
function unmountUseBrick({ rendererContext }: RenderUseBrickResult, mountResult: MountUseBrickResult): void;
587593

588594
// @public (undocumented)
589-
export function unstable_createRoot(container: HTMLElement | DocumentFragment, { portal: _portal, scope, unknownBricks, unsafe_penetrate, }?: CreateRootOptions): {
595+
export function unstable_createRoot(container: HTMLElement | DocumentFragment, { portal: _portal, scope, unknownBricks, supportsUseChildren, unsafe_penetrate, }?: CreateRootOptions): {
590596
render(brick: BrickConf | BrickConf[], { theme, uiVersion, language, context, functions, templates, i18n: i18nData, url, app, }?: RenderOptions): Promise<void>;
591597
unmount(): void;
592598
};

mock-micro-apps/e2e/storyboard.yaml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,3 +1040,90 @@ routes:
10401040
# - path: '${APP.homepage}/initial-rerender/apps/:group?'
10411041
# exact: true
10421042
# bricks: []
1043+
1044+
- path: '${APP.homepage}/nested-if'
1045+
context:
1046+
- name: value
1047+
value: null
1048+
- name: alwaysFalsy
1049+
value: <% !!CTX.value %>
1050+
track: true
1051+
- name: secondButtonClicked
1052+
value: false
1053+
bricks:
1054+
- brick: div
1055+
iid: 1
1056+
children:
1057+
- brick: p
1058+
iid: 2
1059+
children:
1060+
- brick: button
1061+
iid: 3
1062+
properties:
1063+
textContent: Click 1
1064+
events:
1065+
click:
1066+
- action: context.replace
1067+
args:
1068+
- value
1069+
- false
1070+
- brick: button
1071+
iid: 4
1072+
properties:
1073+
textContent: Click 2
1074+
events:
1075+
click:
1076+
- action: context.replace
1077+
args:
1078+
- secondButtonClicked
1079+
- true
1080+
- brick: :if
1081+
iid: 5
1082+
dataSource: <%= !CTX.secondButtonClicked %>
1083+
children:
1084+
- brick: p
1085+
iid: 6
1086+
properties:
1087+
textContent: Second button is not clicked
1088+
- brick: :if
1089+
iid: 7
1090+
dataSource: <%= CTX.alwaysFalsy %>
1091+
children:
1092+
- brick: p
1093+
iid: 8
1094+
properties:
1095+
textContent: This should never be shown
1096+
- brick: p
1097+
iid: 9
1098+
properties:
1099+
textContent: This should always be shown
1100+
1101+
- path: '${APP.homepage}/debug'
1102+
context:
1103+
- name: debug
1104+
value: false
1105+
bricks:
1106+
- brick: button
1107+
properties:
1108+
textContent: Toggle Debug
1109+
events:
1110+
click:
1111+
- action: context.replace
1112+
args:
1113+
- debug
1114+
- <% !CTX.debug %>
1115+
- brick: e2e.list-by-use-brick
1116+
properties:
1117+
data: [1, 2]
1118+
useBrick:
1119+
- brick: div
1120+
children:
1121+
- brick: div
1122+
portal: true
1123+
children:
1124+
- brick: :if
1125+
dataSource: <%= CTX.debug %>
1126+
children:
1127+
- brick: p
1128+
properties:
1129+
textContent: '<% `Debug: ${DATA}` %>'

packages/babel-preset-next/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.0.26](https://github.com/easyops-cn/next-core/compare/@next-core/[email protected]...@next-core/[email protected]) (2025-06-24)
7+
8+
**Note:** Version bump only for package @next-core/babel-preset-next
9+
10+
11+
12+
13+
614
## [1.0.25](https://github.com/easyops-cn/next-core/compare/@next-core/[email protected]...@next-core/[email protected]) (2025-03-13)
715

816
**Note:** Version bump only for package @next-core/babel-preset-next

packages/babel-preset-next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next-core/babel-preset-next",
3-
"version": "1.0.25",
3+
"version": "1.0.26",
44
"description": "babel preset for brick-next related packages",
55
"homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/babel-preset-next",
66
"license": "GPL-3.0",

0 commit comments

Comments
 (0)