@blocklet/pages-kit-inner-components 0.4.27 → 0.4.28

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.
@@ -1,15 +1,10 @@
1
- "use strict";const N=require("vite-plugin-node-polyfills/shims/process"),_=require("./_chunks/site-state-DNRKik3e.js"),P=require("@blocklet/crawler/middlewares"),G=require("@blocklet/pages-kit/types"),J=require("@blocklet/pages-kit/utils/preload"),W=require("@blocklet/sdk/lib/component"),R=require("@blocklet/sdk/lib/config"),K=require("express"),M=require("fs"),Q=require("mustache"),x=require("path"),S=require("ufo"),T=o=>o&&o.__esModule?o:{default:o},U=T(N),p=T(R),z=T(Q),V=["/assets/"],q=()=>[!0,"true"].includes(p.default.env.preferences.allowCrawler);function D(){q()?P.initCronCrawlBlocklet({time:"30 30 */12 * * *",options:{}}):P.cancelCronCrawlBlocklet()}D();p.default.events.on(p.default.Events.envUpdate,D);function X({app:o,viteDevServer:g,state:c}){let w;if(g){const n=M.readFileSync(x.resolve(U.default.cwd(),"./index.html"),"utf-8");o.use(async(C,v,k)=>{const b=C.originalUrl;w=await g.transformIndexHtml(b,n),k()})}else w=M.readFileSync(x.resolve(U.default.env.BLOCKLET_APP_DIR,"dist/index.html"),"utf-8");const y=K.Router();y.use(P.initSEOMiddleware({autoReturnHtml:!1,allowCrawler:q})),y.get("/:path(*)?",async(n,C,v)=>{var $,L,j;if(V.some(r=>n.path.startsWith(r))){v();return}const k=performance.now(),b=()=>Math.round(performance.now()-k),O="production";let e,u,s=w;if(n.path.startsWith("/pages")){const r=n.params.lang,i=n.cookies.nf_lang,d=new Set([...p.default.env.languages.map(f=>f.code)]);let m=(r&&d.has(r)?r:void 0)||(d.has(i)?i:void 0)||[...d][0];if((!m||!(($=c.supportedLocales)!=null&&$.find(f=>f.locale===m)))&&(m=((j=(L=c.supportedLocales)==null?void 0:L[0])==null?void 0:j.locale)||""),m){const f=[];Object.values(c.pages).forEach(l=>{const E=Object.values((l==null?void 0:l.sections)??{}).filter(a=>{var h;return a.component==="custom-component"&&((h=a.config)==null?void 0:h.componentId)}).map(a=>{var h,I;return{id:a.id,componentId:a.config.componentId,useCache:a.config.useCache,cacheDuration:a.config.cacheDuration,properties:(I=(h=a.locales)==null?void 0:h[m])==null?void 0:I.properties}});f.push(...E)});const H=new Promise((l,E)=>{setTimeout(()=>{E(new Error("getPreloadComponents timeout in promise race, skip it"))},90*1e3)});try{await Promise.race([H,_.getPreloadComponents({mode:O,req:n,state:c,locale:m,instances:f,module:G.PreloadComponentScriptModule.UMD_FN}).then(l=>{l&&(u=J.injectPreloadComponents(l))})])}catch(l){_.logger.warn("getPreloadComponents timeout in promise race, skip inject html elements"),_.logger.warn(l)}}}try{const r=(e==null?void 0:e.title)||p.default.env.appName,i=(e==null?void 0:e.description)||p.default.env.appDescription,d=S.withQuery(S.joinURL(p.default.env.appUrl,"/.well-known/service/blocklet/og.png"),{title:r,description:i});s=z.default.render(w,{ogTitle:r,ogDescription:i,ogImage:Y(e==null?void 0:e.image)||d,pagesPublishedAt:(c==null?void 0:c.config.publishedAt)||new Date().getTime()})}catch{}const t=c==null?void 0:c.config.fontFamily,B=n.query.mode==="draft"||n.url.includes("preview");s=s.replace('<script id="injected-head-elements"><\/script>',`
2
- ${e!=null&&e.backgroundColor?`<meta name="theme-color" content="${e.backgroundColor}" /><style>html,body,#app {background-color: ${e.backgroundColor} !important;}</style>`:""}
3
- ${t!=null&&t.title?`<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=${t.title}&display=swap">`:""}
4
- ${t!=null&&t.description&&(t==null?void 0:t.description)!==(t==null?void 0:t.title)?`<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=${t.description}&display=swap">`:""}
5
-
6
- <script type="application/json" id="__PAGE_STATE__">
7
- ${JSON.stringify(c).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026")}
8
- <\/script>
9
-
1
+ "use strict";const J=require("vite-plugin-node-polyfills/shims/process"),k=require("./_chunks/site-state-DNRKik3e.js"),S=require("@blocklet/crawler/middlewares"),G=require("@blocklet/pages-kit/types"),z=require("@blocklet/pages-kit/utils/preload"),K=require("@blocklet/sdk/lib/component"),R=require("@blocklet/sdk/lib/config"),Q=require("cheerio"),V=require("express"),I=require("fs"),X=require("mustache"),U=require("path"),j=require("ufo"),T=e=>e&&e.__esModule?e:{default:e};function Y(e){if(e&&e.__esModule)return e;const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const d=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,d.get?d:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const q=T(J),a=T(R),D=Y(Q),Z=T(X),F=["/assets/"],x=()=>[!0,"true"].includes(a.default.env.preferences.allowCrawler);function B(){x()?S.initCronCrawlBlocklet({time:"30 30 */12 * * *",options:{}}):S.cancelCronCrawlBlocklet()}B();a.default.events.on(a.default.Events.envUpdate,B);function ee({app:e,viteDevServer:l,state:t}){let d;if(l){const r=I.readFileSync(U.resolve(q.default.cwd(),"./index.html"),"utf-8");e.use(async(b,$,y)=>{const v=b.originalUrl;d=await l.transformIndexHtml(v,r),y()})}else d=I.readFileSync(U.resolve(q.default.env.BLOCKLET_APP_DIR,"dist/index.html"),"utf-8");const C=V.Router();C.use(S.initSEOMiddleware({autoReturnHtml:!1,allowCrawler:x})),C.get("/:path(*)?",async(r,b,$)=>{var L,M,O;if(F.some(c=>r.path.startsWith(c))){$();return}const y=performance.now(),v=()=>Math.round(performance.now()-y),H="production";let o,p,h=d;if(r.path.startsWith("/pages")){const c=r.params.lang,g=r.cookies.nf_lang,w=new Set([...a.default.env.languages.map(f=>f.code)]);let m=(c&&w.has(c)?c:void 0)||(w.has(g)?g:void 0)||[...w][0];if((!m||!((L=t.supportedLocales)!=null&&L.find(f=>f.locale===m)))&&(m=((O=(M=t.supportedLocales)==null?void 0:M[0])==null?void 0:O.locale)||""),m){const f=[];Object.values(t.pages).forEach(s=>{const P=Object.values((s==null?void 0:s.sections)??{}).filter(i=>{var _;return i.component==="custom-component"&&((_=i.config)==null?void 0:_.componentId)}).map(i=>{var _,A;return{id:i.id,componentId:i.config.componentId,useCache:i.config.useCache,cacheDuration:i.config.cacheDuration,properties:(A=(_=i.locales)==null?void 0:_[m])==null?void 0:A.properties}});f.push(...P)});const W=new Promise((s,P)=>{setTimeout(()=>{P(new Error("getPreloadComponents timeout in promise race, skip it"))},90*1e3)});try{await Promise.race([W,k.getPreloadComponents({mode:H,req:r,state:t,locale:m,instances:f,module:G.PreloadComponentScriptModule.UMD_FN}).then(s=>{s&&(p=z.injectPreloadComponents(s))})])}catch(s){k.logger.warn("getPreloadComponents timeout in promise race, skip inject html elements"),k.logger.warn(s)}}}try{const c=(o==null?void 0:o.title)||a.default.env.appName,g=(o==null?void 0:o.description)||a.default.env.appDescription,w=j.withQuery(j.joinURL(a.default.env.appUrl,"/.well-known/service/blocklet/og.png"),{title:c,description:g});h=Z.default.render(d,{ogTitle:c,ogDescription:g,ogImage:te(o==null?void 0:o.image)||w,pagesPublishedAt:(t==null?void 0:t.config.publishedAt)||new Date().getTime()})}catch{}const n=t==null?void 0:t.config.fontFamily,N=r.query.mode==="draft"||r.url.includes("preview"),u=D.load(h);u("head").find("#injected-head-elements").replaceWith(`
2
+ ${o!=null&&o.backgroundColor?`<meta name="theme-color" content="${o.backgroundColor}" /><style>html,body,#app {background-color: ${o.backgroundColor} !important;}</style>`:""}
3
+ ${n!=null&&n.title?`<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=${n.title}&display=swap">`:""}
4
+ ${n!=null&&n.description&&(n==null?void 0:n.description)!==(n==null?void 0:n.title)?`<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=${n.description}&display=swap">`:""}
10
5
  <script>
11
6
 
12
- window.__PAGE_STATE__ = JSON.parse(document.getElementById('__PAGE_STATE__').textContent)
7
+ window.__PAGE_STATE__ = ${JSON.stringify(t,null,0)}
13
8
 
14
9
  document.querySelectorAll('link[rel="preload"][as="style"]').forEach(function (link) {
15
10
  const l = document.createElement('link');
@@ -19,10 +14,10 @@
19
14
  });
20
15
  <\/script>
21
16
 
22
- ${B?`<script src="https://cdn.tailwindcss.com"><\/script>
17
+ ${N?`<script src="https://cdn.tailwindcss.com"><\/script>
23
18
  <script>
24
19
  window.tailwind.config = {
25
20
  darkMode: "class",
26
21
  };
27
22
  <\/script>`:""}
28
- `);const A=R.getBlockletJs();if(A&&(s=s.replace('<script src="__blocklet__.js"><\/script>',`<script>${A}<\/script>`)),u!=null&&u.html&&(s=s.replace('<script id="injected-html-elements"><\/script>',u.html)),n.cachedHtml){const r=/<body>([\s\S]*?)<\/body>/,i=r.exec(n.cachedHtml),d=i?i[1]:"";s=s.replace(r,`<body>${d}</body>`)}C.send(s),_.logger.info(`[html] render: ${n.path}, ${b()}ms`),s=null,e=null,u=null}),o.use(y)}function Y(o){const g=W.getComponentMountPoint("image-bin");return g&&o&&!/^(https?:\/\/|\/)/.test(o)?p.default.env.appUrl+S.joinURL(g,"uploads",o):o}module.exports=X;
23
+ `);const E=R.getBlockletJs();if(E&&u('script[src="__blocklet__.js"]').replaceWith(`<script>${E}<\/script>`),p!=null&&p.html&&u("head").find("#injected-html-elements").replaceWith(p.html),r.cachedHtml){const c=D.load(r.cachedHtml);u("body").html(c("body").html()||"")}h=u.html(),b.send(h),k.logger.info(`[html] render: ${r.path}, ${v()}ms`),u.root().children().remove(),h=null,o=null,p=null}),e.use(C)}function te(e){const l=K.getComponentMountPoint("image-bin");return l&&e&&!/^(https?:\/\/|\/)/.test(e)?a.default.env.appUrl+j.joinURL(l,"uploads",e):e}module.exports=ee;
@@ -1,128 +1,122 @@
1
1
  import I from "vite-plugin-node-polyfills/shims/process";
2
- import { b as D, l as E } from "./_chunks/site-state-B0nM69Rk.js";
3
- import { initCronCrawlBlocklet as H, cancelCronCrawlBlocklet as N, initSEOMiddleware as G } from "@blocklet/crawler/middlewares";
4
- import { PreloadComponentScriptModule as J } from "@blocklet/pages-kit/types";
5
- import { injectPreloadComponents as W } from "@blocklet/pages-kit/utils/preload";
6
- import { getComponentMountPoint as K } from "@blocklet/sdk/lib/component";
7
- import p, { getBlockletJs as Q } from "@blocklet/sdk/lib/config";
8
- import { Router as z } from "express";
9
- import { readFileSync as L } from "fs";
10
- import V from "mustache";
11
- import { resolve as j } from "path";
12
- import { withQuery as X, joinURL as x } from "ufo";
13
- const Y = ["/assets/"], M = () => [!0, "true"].includes(p.env.preferences.allowCrawler);
14
- function U() {
15
- M() ? H({
2
+ import { b as W, l as P } from "./_chunks/site-state-B0nM69Rk.js";
3
+ import { initCronCrawlBlocklet as N, cancelCronCrawlBlocklet as J, initSEOMiddleware as G } from "@blocklet/crawler/middlewares";
4
+ import { PreloadComponentScriptModule as K } from "@blocklet/pages-kit/types";
5
+ import { injectPreloadComponents as Q } from "@blocklet/pages-kit/utils/preload";
6
+ import { getComponentMountPoint as z } from "@blocklet/sdk/lib/component";
7
+ import s, { getBlockletJs as V } from "@blocklet/sdk/lib/config";
8
+ import * as j from "cheerio";
9
+ import { Router as X } from "express";
10
+ import { readFileSync as U } from "fs";
11
+ import Y from "mustache";
12
+ import { resolve as M } from "path";
13
+ import { withQuery as Z, joinURL as D } from "ufo";
14
+ const F = ["/assets/"], O = () => [!0, "true"].includes(s.env.preferences.allowCrawler);
15
+ function R() {
16
+ O() ? N({
16
17
  time: "30 30 */12 * * *",
17
18
  options: {}
18
- }) : N();
19
+ }) : J();
19
20
  }
20
- U();
21
- p.events.on(p.Events.envUpdate, U);
22
- function me({
23
- app: s,
24
- viteDevServer: g,
21
+ R();
22
+ s.events.on(s.Events.envUpdate, R);
23
+ function ue({
24
+ app: c,
25
+ viteDevServer: u,
25
26
  // projectId,
26
27
  state: n
27
28
  }) {
28
- let w;
29
- if (g) {
30
- const t = L(j(I.cwd(), "./index.html"), "utf-8");
31
- s.use(async (C, P, y) => {
32
- const k = C.originalUrl;
33
- w = await g.transformIndexHtml(k, t), y();
29
+ let C;
30
+ if (u) {
31
+ const t = U(M(I.cwd(), "./index.html"), "utf-8");
32
+ c.use(async (b, $, y) => {
33
+ const _ = b.originalUrl;
34
+ C = await u.transformIndexHtml(_, t), y();
34
35
  });
35
36
  } else
36
- w = L(j(I.env.BLOCKLET_APP_DIR, "dist/index.html"), "utf-8");
37
- const _ = z();
38
- _.use(
37
+ C = U(M(I.env.BLOCKLET_APP_DIR, "dist/index.html"), "utf-8");
38
+ const k = X();
39
+ k.use(
39
40
  G({
40
41
  autoReturnHtml: !1,
41
- allowCrawler: M
42
+ allowCrawler: O
42
43
  })
43
- ), _.get("/:path(*)?", async (t, C, P) => {
44
- var S, v, A;
45
- if (Y.some((c) => t.path.startsWith(c))) {
46
- P();
44
+ ), k.get("/:path(*)?", async (t, b, $) => {
45
+ var T, S, L;
46
+ if (F.some((r) => t.path.startsWith(r))) {
47
+ $();
47
48
  return;
48
49
  }
49
- const y = performance.now(), k = () => Math.round(performance.now() - y), O = "production";
50
- let e, d, r = w;
50
+ const y = performance.now(), _ = () => Math.round(performance.now() - y), x = "production";
51
+ let e, a, h = C;
51
52
  if (t.path.startsWith("/pages")) {
52
- const c = t.params.lang, i = t.cookies.nf_lang, m = /* @__PURE__ */ new Set([...p.env.languages.map((f) => f.code)]);
53
- let u = (c && m.has(c) ? c : void 0) || (m.has(i) ? i : void 0) || [...m][0];
54
- if ((!u || !((S = n.supportedLocales) != null && S.find((f) => f.locale === u))) && (u = ((A = (v = n.supportedLocales) == null ? void 0 : v[0]) == null ? void 0 : A.locale) || ""), u) {
55
- const f = [];
53
+ const r = t.params.lang, f = t.cookies.nf_lang, g = /* @__PURE__ */ new Set([...s.env.languages.map((d) => d.code)]);
54
+ let m = (r && g.has(r) ? r : void 0) || (g.has(f) ? f : void 0) || [...g][0];
55
+ if ((!m || !((T = n.supportedLocales) != null && T.find((d) => d.locale === m))) && (m = ((L = (S = n.supportedLocales) == null ? void 0 : S[0]) == null ? void 0 : L.locale) || ""), m) {
56
+ const d = [];
56
57
  Object.values(n.pages).forEach((l) => {
57
- const b = Object.values((l == null ? void 0 : l.sections) ?? {}).filter(
58
- (a) => {
59
- var h;
60
- return a.component === "custom-component" && ((h = a.config) == null ? void 0 : h.componentId);
58
+ const v = Object.values((l == null ? void 0 : l.sections) ?? {}).filter(
59
+ (i) => {
60
+ var w;
61
+ return i.component === "custom-component" && ((w = i.config) == null ? void 0 : w.componentId);
61
62
  }
62
- ).map((a) => {
63
- var h, $;
63
+ ).map((i) => {
64
+ var w, A;
64
65
  return {
65
- id: a.id,
66
- componentId: a.config.componentId,
67
- useCache: a.config.useCache,
68
- cacheDuration: a.config.cacheDuration,
69
- properties: ($ = (h = a.locales) == null ? void 0 : h[u]) == null ? void 0 : $.properties
66
+ id: i.id,
67
+ componentId: i.config.componentId,
68
+ useCache: i.config.useCache,
69
+ cacheDuration: i.config.cacheDuration,
70
+ properties: (A = (w = i.locales) == null ? void 0 : w[m]) == null ? void 0 : A.properties
70
71
  };
71
72
  });
72
- f.push(...b);
73
+ d.push(...v);
73
74
  });
74
- const B = new Promise((l, b) => {
75
+ const H = new Promise((l, v) => {
75
76
  setTimeout(() => {
76
- b(new Error("getPreloadComponents timeout in promise race, skip it"));
77
+ v(new Error("getPreloadComponents timeout in promise race, skip it"));
77
78
  }, 90 * 1e3);
78
79
  });
79
80
  try {
80
81
  await Promise.race([
81
- B,
82
- D({
83
- mode: O,
82
+ H,
83
+ W({
84
+ mode: x,
84
85
  req: t,
85
86
  state: n,
86
- locale: u,
87
- instances: f,
88
- module: J.UMD_FN
87
+ locale: m,
88
+ instances: d,
89
+ module: K.UMD_FN
89
90
  }).then((l) => {
90
- l && (d = W(l));
91
+ l && (a = Q(l));
91
92
  })
92
93
  ]);
93
94
  } catch (l) {
94
- E.warn("getPreloadComponents timeout in promise race, skip inject html elements"), E.warn(l);
95
+ P.warn("getPreloadComponents timeout in promise race, skip inject html elements"), P.warn(l);
95
96
  }
96
97
  }
97
98
  }
98
99
  try {
99
- const c = (e == null ? void 0 : e.title) || p.env.appName, i = (e == null ? void 0 : e.description) || p.env.appDescription, m = X(x(p.env.appUrl, "/.well-known/service/blocklet/og.png"), {
100
- title: c,
101
- description: i
100
+ const r = (e == null ? void 0 : e.title) || s.env.appName, f = (e == null ? void 0 : e.description) || s.env.appDescription, g = Z(D(s.env.appUrl, "/.well-known/service/blocklet/og.png"), {
101
+ title: r,
102
+ description: f
102
103
  });
103
- r = V.render(w, {
104
- ogTitle: c,
105
- ogDescription: i,
106
- ogImage: Z(e == null ? void 0 : e.image) || m,
104
+ h = Y.render(C, {
105
+ ogTitle: r,
106
+ ogDescription: f,
107
+ ogImage: q(e == null ? void 0 : e.image) || g,
107
108
  pagesPublishedAt: (n == null ? void 0 : n.config.publishedAt) || (/* @__PURE__ */ new Date()).getTime()
108
109
  });
109
110
  } catch {
110
111
  }
111
- const o = n == null ? void 0 : n.config.fontFamily, R = t.query.mode === "draft" || t.url.includes("preview");
112
- r = r.replace(
113
- '<script id="injected-head-elements"><\/script>',
114
- `
112
+ const o = n == null ? void 0 : n.config.fontFamily, B = t.query.mode === "draft" || t.url.includes("preview"), p = j.load(h);
113
+ p("head").find("#injected-head-elements").replaceWith(`
115
114
  ${e != null && e.backgroundColor ? `<meta name="theme-color" content="${e.backgroundColor}" /><style>html,body,#app {background-color: ${e.backgroundColor} !important;}</style>` : ""}
116
115
  ${o != null && o.title ? `<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=${o.title}&display=swap">` : ""}
117
116
  ${o != null && o.description && (o == null ? void 0 : o.description) !== (o == null ? void 0 : o.title) ? `<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=${o.description}&display=swap">` : ""}
118
-
119
- <script type="application/json" id="__PAGE_STATE__">
120
- ${JSON.stringify(n).replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026")}
121
- <\/script>
122
-
123
117
  <script>
124
118
 
125
- window.__PAGE_STATE__ = JSON.parse(document.getElementById('__PAGE_STATE__').textContent)
119
+ window.__PAGE_STATE__ = ${JSON.stringify(n, null, 0)}
126
120
 
127
121
  document.querySelectorAll('link[rel="preload"][as="style"]').forEach(function (link) {
128
122
  const l = document.createElement('link');
@@ -132,26 +126,25 @@ function me({
132
126
  });
133
127
  <\/script>
134
128
 
135
- ${R ? `<script src="https://cdn.tailwindcss.com"><\/script>
129
+ ${B ? `<script src="https://cdn.tailwindcss.com"><\/script>
136
130
  <script>
137
131
  window.tailwind.config = {
138
132
  darkMode: "class",
139
133
  };
140
134
  <\/script>` : ""}
141
- `
142
- );
143
- const T = Q();
144
- if (T && (r = r.replace('<script src="__blocklet__.js"><\/script>', `<script>${T}<\/script>`)), d != null && d.html && (r = r.replace('<script id="injected-html-elements"><\/script>', d.html)), t.cachedHtml) {
145
- const c = /<body>([\s\S]*?)<\/body>/, i = c.exec(t.cachedHtml), m = i ? i[1] : "";
146
- r = r.replace(c, `<body>${m}</body>`);
135
+ `);
136
+ const E = V();
137
+ if (E && p('script[src="__blocklet__.js"]').replaceWith(`<script>${E}<\/script>`), a != null && a.html && p("head").find("#injected-html-elements").replaceWith(a.html), t.cachedHtml) {
138
+ const r = j.load(t.cachedHtml);
139
+ p("body").html(r("body").html() || "");
147
140
  }
148
- C.send(r), E.info(`[html] render: ${t.path}, ${k()}ms`), r = null, e = null, d = null;
149
- }), s.use(_);
141
+ h = p.html(), b.send(h), P.info(`[html] render: ${t.path}, ${_()}ms`), p.root().children().remove(), h = null, e = null, a = null;
142
+ }), c.use(k);
150
143
  }
151
- function Z(s) {
152
- const g = K("image-bin");
153
- return g && s && !/^(https?:\/\/|\/)/.test(s) ? p.env.appUrl + x(g, "uploads", s) : s;
144
+ function q(c) {
145
+ const u = z("image-bin");
146
+ return u && c && !/^(https?:\/\/|\/)/.test(c) ? s.env.appUrl + D(u, "uploads", c) : c;
154
147
  }
155
148
  export {
156
- me as default
149
+ ue as default
157
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit-inner-components",
3
- "version": "0.4.27",
3
+ "version": "0.4.28",
4
4
  "description": "Pages Kit inner components library",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -202,8 +202,8 @@
202
202
  "yaml": "^2.5.0",
203
203
  "yjs": "^13.6.18",
204
204
  "zustand": "^4.5.5",
205
- "@blocklet/pages-kit": "^0.4.27",
206
- "@blocklet/pages-kit-block-studio": "^0.4.27"
205
+ "@blocklet/pages-kit": "^0.4.28",
206
+ "@blocklet/pages-kit-block-studio": "^0.4.28"
207
207
  },
208
208
  "devDependencies": {
209
209
  "@trivago/prettier-plugin-sort-imports": "^5.2.1",