@next-core/brick-kit 2.131.0 → 2.131.1
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/CHANGELOG.md +11 -0
- package/dist/index.bundle.js +8 -4
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +8 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Kernel.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.131.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.131.0...@next-core/brick-kit@2.131.1) (2022-08-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* preview error when legacy was iframe ([f79e45f](https://github.com/easyops-cn/next-core/commit/f79e45f5e09afa70a02912e6086f02947563312a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.131.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.130.0...@next-core/brick-kit@2.131.0) (2022-08-25)
|
|
7
18
|
|
|
8
19
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -9230,7 +9230,8 @@
|
|
|
9230
9230
|
|
|
9231
9231
|
_dev_only_updateTemplatePreviewSettings(appId, templateId, settings) {
|
|
9232
9232
|
var {
|
|
9233
|
-
routes
|
|
9233
|
+
routes,
|
|
9234
|
+
app
|
|
9234
9235
|
} = this.bootstrapData.storyboards.find(item => item.app.id === appId);
|
|
9235
9236
|
var previewPath = "${APP.homepage}/_dev_only_/template-preview/".concat(templateId);
|
|
9236
9237
|
var previewRouteIndex = routes.findIndex(route => route.path === previewPath);
|
|
@@ -9240,7 +9241,8 @@
|
|
|
9240
9241
|
brick: templateId
|
|
9241
9242
|
}, _.pick(settings, "properties", "events", "lifeCycle", "context"))],
|
|
9242
9243
|
menu: false,
|
|
9243
|
-
exact: true
|
|
9244
|
+
exact: true,
|
|
9245
|
+
hybrid: app.legacy === "iframe"
|
|
9244
9246
|
};
|
|
9245
9247
|
|
|
9246
9248
|
if (previewRouteIndex === -1) {
|
|
@@ -9254,7 +9256,8 @@
|
|
|
9254
9256
|
var _snippetData$bricks;
|
|
9255
9257
|
|
|
9256
9258
|
var {
|
|
9257
|
-
routes
|
|
9259
|
+
routes,
|
|
9260
|
+
app
|
|
9258
9261
|
} = this.bootstrapData.storyboards.find(item => item.app.id === appId);
|
|
9259
9262
|
var previewPath = "${APP.homepage}/_dev_only_/snippet-preview/".concat(snippetData.snippetId);
|
|
9260
9263
|
var previewRouteIndex = routes.findIndex(route => route.path === previewPath);
|
|
@@ -9264,7 +9267,8 @@
|
|
|
9264
9267
|
brick: "span"
|
|
9265
9268
|
}],
|
|
9266
9269
|
menu: false,
|
|
9267
|
-
exact: true
|
|
9270
|
+
exact: true,
|
|
9271
|
+
hybrid: app.legacy === "iframe"
|
|
9268
9272
|
};
|
|
9269
9273
|
|
|
9270
9274
|
if (previewRouteIndex === -1) {
|