@arbidocs/blocks 0.4.97 → 0.4.98
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/{chunk-RSUOOMPT.js → chunk-6B2AWE3I.js} +3 -3
- package/dist/{chunk-RSUOOMPT.js.map → chunk-6B2AWE3I.js.map} +1 -1
- package/dist/{chunk-QIEEFBZ5.js → chunk-FIEAWH4K.js} +354 -69
- package/dist/chunk-FIEAWH4K.js.map +1 -0
- package/dist/{chunk-YH6SSJDW.js → chunk-LZ5AFAWC.js} +3 -3
- package/dist/{chunk-YH6SSJDW.js.map → chunk-LZ5AFAWC.js.map} +1 -1
- package/dist/{chunk-HGJGALLN.cjs → chunk-MIMVRMKC.cjs} +359 -67
- package/dist/chunk-MIMVRMKC.cjs.map +1 -0
- package/dist/{chunk-GVOTXXZG.cjs → chunk-MUYZP5FB.cjs} +5 -5
- package/dist/{chunk-GVOTXXZG.cjs.map → chunk-MUYZP5FB.cjs.map} +1 -1
- package/dist/{chunk-EHB7J6SR.cjs → chunk-VJO66VVF.cjs} +5 -5
- package/dist/{chunk-EHB7J6SR.cjs.map → chunk-VJO66VVF.cjs.map} +1 -1
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +3 -3
- package/dist/connect/index.js +2 -2
- package/dist/docx/NativeDocxEditor.d.ts +7 -0
- package/dist/docx/RibbonMenu.d.ts +3 -1
- package/dist/docx/index.cjs +52 -24
- package/dist/docx/index.d.ts +2 -0
- package/dist/docx/index.js +3 -3
- package/dist/docx/template/HouseTemplate.d.ts +64 -0
- package/dist/docx/template/HouseTemplatePanel.d.ts +6 -0
- package/dist/docx/template/QuickParts.d.ts +7 -0
- package/dist/docx/wordStyles.d.ts +3 -0
- package/dist/index.cjs +41 -41
- package/dist/index.js +2 -2
- package/package.json +4 -4
- package/src/docx/styles.css +102 -0
- package/dist/chunk-HGJGALLN.cjs.map +0 -1
- package/dist/chunk-QIEEFBZ5.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/blocks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.98",
|
|
4
4
|
"description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -266,8 +266,8 @@
|
|
|
266
266
|
"example:test:e2e": "playwright test -c examples/custom-ui/playwright.config.ts"
|
|
267
267
|
},
|
|
268
268
|
"dependencies": {
|
|
269
|
-
"@arbidocs/client": "0.4.
|
|
270
|
-
"@arbidocs/coedit": "0.4.
|
|
269
|
+
"@arbidocs/client": "0.4.98",
|
|
270
|
+
"@arbidocs/coedit": "0.4.98",
|
|
271
271
|
"@dnd-kit/core": "^6.3.1",
|
|
272
272
|
"@dnd-kit/sortable": "^10.0.0",
|
|
273
273
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
"zustand": "^5.0.14"
|
|
294
294
|
},
|
|
295
295
|
"peerDependencies": {
|
|
296
|
-
"@arbidocs/react": "0.4.
|
|
296
|
+
"@arbidocs/react": "0.4.98",
|
|
297
297
|
"@docx-editor.dev/core": "2.28.0",
|
|
298
298
|
"@docx-editor.dev/react": "2.28.0",
|
|
299
299
|
"@lexical/html": "0.35.0",
|
package/src/docx/styles.css
CHANGED
|
@@ -966,3 +966,105 @@
|
|
|
966
966
|
color: hsl(var(--muted-foreground));
|
|
967
967
|
font-size: 13px;
|
|
968
968
|
}
|
|
969
|
+
|
|
970
|
+
/* House template: a dot on the style box (and on a style) that differs from the house template. */
|
|
971
|
+
.native-docx-style-diverged {
|
|
972
|
+
flex: none;
|
|
973
|
+
width: 6px;
|
|
974
|
+
height: 6px;
|
|
975
|
+
margin-left: auto;
|
|
976
|
+
border-radius: 50%;
|
|
977
|
+
background: hsl(var(--warning, 38 92% 50%));
|
|
978
|
+
}
|
|
979
|
+
.native-docx-style-list > li {
|
|
980
|
+
display: flex;
|
|
981
|
+
align-items: center;
|
|
982
|
+
gap: 6px;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/* Insert › Quick Parts and Design › House template panels. */
|
|
986
|
+
.native-docx-ribbon-menu:has([data-testid='docx-quick-parts']) .native-docx-ribbon-popover,
|
|
987
|
+
.native-docx-ribbon-menu:has([data-testid='docx-house-template']) .native-docx-ribbon-popover {
|
|
988
|
+
width: 340px;
|
|
989
|
+
padding: 8px;
|
|
990
|
+
}
|
|
991
|
+
.native-docx-quick-parts {
|
|
992
|
+
display: flex;
|
|
993
|
+
flex-direction: column;
|
|
994
|
+
gap: 8px;
|
|
995
|
+
width: 100%;
|
|
996
|
+
max-height: 60vh;
|
|
997
|
+
overflow-y: auto;
|
|
998
|
+
}
|
|
999
|
+
.native-docx-quick-parts h3 {
|
|
1000
|
+
margin: 0 0 4px;
|
|
1001
|
+
color: hsl(var(--muted-foreground));
|
|
1002
|
+
font-size: 11px;
|
|
1003
|
+
font-weight: 600;
|
|
1004
|
+
text-transform: uppercase;
|
|
1005
|
+
letter-spacing: 0.04em;
|
|
1006
|
+
}
|
|
1007
|
+
.native-docx-quick-parts ul {
|
|
1008
|
+
margin: 0;
|
|
1009
|
+
padding: 0;
|
|
1010
|
+
list-style: none;
|
|
1011
|
+
}
|
|
1012
|
+
.native-docx-quick-parts button {
|
|
1013
|
+
display: flex;
|
|
1014
|
+
flex-direction: column;
|
|
1015
|
+
width: 100%;
|
|
1016
|
+
padding: 6px 8px;
|
|
1017
|
+
border: 0;
|
|
1018
|
+
border-radius: 4px;
|
|
1019
|
+
background: transparent;
|
|
1020
|
+
color: inherit;
|
|
1021
|
+
text-align: left;
|
|
1022
|
+
cursor: pointer;
|
|
1023
|
+
}
|
|
1024
|
+
.native-docx-quick-parts button:hover:not(:disabled) {
|
|
1025
|
+
background: hsl(var(--muted));
|
|
1026
|
+
}
|
|
1027
|
+
.native-docx-quick-part-name {
|
|
1028
|
+
font-size: 13px;
|
|
1029
|
+
font-weight: 500;
|
|
1030
|
+
}
|
|
1031
|
+
.native-docx-quick-part-preview {
|
|
1032
|
+
overflow: hidden;
|
|
1033
|
+
color: hsl(var(--muted-foreground));
|
|
1034
|
+
font-size: 12px;
|
|
1035
|
+
text-overflow: ellipsis;
|
|
1036
|
+
white-space: nowrap;
|
|
1037
|
+
}
|
|
1038
|
+
.native-docx-quick-parts-source,
|
|
1039
|
+
.native-docx-house-template p {
|
|
1040
|
+
margin: 0;
|
|
1041
|
+
color: hsl(var(--muted-foreground));
|
|
1042
|
+
font-size: 12px;
|
|
1043
|
+
}
|
|
1044
|
+
.native-docx-house-template {
|
|
1045
|
+
display: flex;
|
|
1046
|
+
flex-direction: column;
|
|
1047
|
+
gap: 8px;
|
|
1048
|
+
width: 100%;
|
|
1049
|
+
}
|
|
1050
|
+
.native-docx-house-template strong {
|
|
1051
|
+
color: hsl(var(--foreground));
|
|
1052
|
+
font-size: 13px;
|
|
1053
|
+
}
|
|
1054
|
+
.native-docx-house-template-actions {
|
|
1055
|
+
display: flex;
|
|
1056
|
+
flex-wrap: wrap;
|
|
1057
|
+
gap: 6px;
|
|
1058
|
+
}
|
|
1059
|
+
.native-docx-house-template-actions button {
|
|
1060
|
+
display: inline-flex;
|
|
1061
|
+
align-items: center;
|
|
1062
|
+
gap: 4px;
|
|
1063
|
+
padding: 4px 8px;
|
|
1064
|
+
border: 1px solid hsl(var(--border));
|
|
1065
|
+
border-radius: 4px;
|
|
1066
|
+
background: hsl(var(--background));
|
|
1067
|
+
color: inherit;
|
|
1068
|
+
font-size: 12px;
|
|
1069
|
+
cursor: pointer;
|
|
1070
|
+
}
|