gbpptx 0.5.2 → 0.6.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/web/index.html CHANGED
@@ -7,7 +7,7 @@
7
7
  <link rel="stylesheet" href="/web/styles/tokens.css" />
8
8
  <link rel="stylesheet" href="/web/styles/slides.css" />
9
9
  <link rel="stylesheet" href="/web/styles/office.css" />
10
- <link rel="stylesheet" href="/vendor/gbofficeui/office-chrome.css" />
10
+ <link rel="stylesheet" href="/vendor/gbofficeui/styles/office-chrome.css" />
11
11
  <style>
12
12
  /* 独立运行时撑满视口;嵌入宿主由宿主容器给高度,不依赖这条 */
13
13
  html, body { height: 100%; margin: 0; }
@@ -16,7 +16,8 @@
16
16
  {
17
17
  "imports": {
18
18
  "gbooxml": "/vendor/gbooxml/index.js",
19
- "guabiutils": "/vendor/guabiutils/index.js"
19
+ "guabiutils": "/vendor/guabiutils/index.js",
20
+ "gbofficeui/head": "/vendor/gbofficeui/src/head.js"
20
21
  }
21
22
  }
22
23
  </script>
package/web/serve.mjs CHANGED
@@ -5,7 +5,7 @@ import { startStaticServer } from 'guabiutils/dev-server';
5
5
 
6
6
  const ooxmlSrc = fileURLToPath(new URL('../../gbooxml/src/', import.meta.url));
7
7
  const utilsSrc = fileURLToPath(new URL('../../../guabiutils/src/', import.meta.url));
8
- const officeChrome = fileURLToPath(new URL('../../gbofficeui/styles/', import.meta.url));
8
+ const officeUi = fileURLToPath(new URL('../../gbofficeui/', import.meta.url));
9
9
 
10
10
  const { origin } = await startStaticServer({
11
11
  root: fileURLToPath(new URL('..', import.meta.url)),
@@ -14,7 +14,8 @@ const { origin } = await startStaticServer({
14
14
  mounts: [
15
15
  { prefix: '/vendor/gbooxml/', dir: ooxmlSrc },
16
16
  { prefix: '/vendor/guabiutils/', dir: utilsSrc },
17
- { prefix: '/vendor/gbofficeui/', dir: officeChrome },
17
+ // gbofficeui:共享文档头模块(src/head.js)与顶栏皮肤(styles/)同属一个包根
18
+ { prefix: '/vendor/gbofficeui/', dir: officeUi },
18
19
  ],
19
20
  });
20
21
 
@@ -28,7 +28,7 @@
28
28
  }
29
29
  .sl-obj--gbp-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
30
30
  .sl-obj--gbp-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
31
- .sl-obj--gbp-table { display: block; }
31
+ .sl-obj--gbp-table { display: block; }
32
32
  .sl-obj.gbp-is-editing { outline: 1px dashed var(--gbp-dt-accent); outline-offset: 1px; }
33
33
  .sl-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
34
34
  .sl-table td { border: 1px solid var(--gbp-dt-border-strong); padding: 2px 6px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }