@json-to-office/core-docx 2.6.0 → 3.0.0
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/blocks/document.d.ts +16 -0
- package/dist/blocks/document.d.ts.map +1 -0
- package/dist/blocks/index.d.ts +1 -57
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/core/generationContext.d.ts +3 -0
- package/dist/core/generationContext.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +322 -234
- package/dist/index.js.map +1 -1
- package/dist/ir/compiler.d.ts.map +1 -1
- package/dist/plugin/createDocumentGenerator.d.ts.map +1 -1
- package/dist/plugin/example/index.js +317 -227
- package/dist/plugin/example/index.js.map +1 -1
- package/dist/plugin/types.d.ts +2 -0
- package/dist/plugin/types.d.ts.map +1 -1
- package/dist/quality/facts.d.ts +2 -2
- package/dist/quality/facts.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/blocks/keyTakeaways.d.ts +0 -20
- package/dist/blocks/keyTakeaways.d.ts.map +0 -1
- package/dist/blocks/types.d.ts +0 -15
- package/dist/blocks/types.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@json-to-office/core-docx",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Core DOCX document generation engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"adm-zip": "0.5.16",
|
|
25
25
|
"date-fns": "3.6.0",
|
|
26
26
|
"probe-image-size": "7.2.3",
|
|
27
|
-
"@json-to-office/quality": "^
|
|
28
|
-
"@json-to-office/shared": "^
|
|
29
|
-
"@json-to-office/shared-docx": "^
|
|
27
|
+
"@json-to-office/quality": "^3.0.0",
|
|
28
|
+
"@json-to-office/shared": "^3.0.0",
|
|
29
|
+
"@json-to-office/shared-docx": "^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"docx": "9.7.1"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `key-takeaways` block, lowered to primitives.
|
|
3
|
-
*
|
|
4
|
-
* A rule in the theme's accent, a label in the theme's label role, the
|
|
5
|
-
* takeaways as a list the theme's list defaults already style, and a hairline
|
|
6
|
-
* to close the box. Nothing here is a coordinate or a colour of its own:
|
|
7
|
-
* every value is read from the resolved theme's `chrome.keyTakeaways` recipe,
|
|
8
|
-
* with defaults that hold on a theme that declares none, so the same block
|
|
9
|
-
* looks like the house on `consulting` and like itself on any other theme.
|
|
10
|
-
*
|
|
11
|
-
* The compiled children carry a source map back to the slots — the label to
|
|
12
|
-
* `/props/label`, the list items to `/props/items` — so a finding on a
|
|
13
|
-
* compiled paragraph is reported at the takeaway the author can patch.
|
|
14
|
-
*/
|
|
15
|
-
import type { KeyTakeawaysProps } from '@json-to-office/shared-docx';
|
|
16
|
-
import type { ThemeConfig } from '../styles';
|
|
17
|
-
import type { BlockCompilation } from './types';
|
|
18
|
-
export declare const KEY_TAKEAWAYS_DEFAULT_LABEL = "Key takeaways";
|
|
19
|
-
export declare function compileKeyTakeaways(props: KeyTakeawaysProps, theme: ThemeConfig): BlockCompilation;
|
|
20
|
-
//# sourceMappingURL=keyTakeaways.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyTakeaways.d.ts","sourceRoot":"","sources":["../../src/blocks/keyTakeaways.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAU3D,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,WAAW,GACjB,gBAAgB,CAqElB"}
|
package/dist/blocks/types.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ComponentDefinition } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* What lowering one block produces: the primitives, in flow order, and a
|
|
4
|
-
* source map from each emitted pointer to the authored one it came from.
|
|
5
|
-
*
|
|
6
|
-
* Pointers are relative to the block node. A value of `''` maps an emitted
|
|
7
|
-
* node to the block itself; a slot pointer such as `/props/items` maps an
|
|
8
|
-
* emitted region onto the authored slot, and anything beneath it (`/props/
|
|
9
|
-
* items/2`) carries the remainder across unchanged.
|
|
10
|
-
*/
|
|
11
|
-
export interface BlockCompilation {
|
|
12
|
-
children: ComponentDefinition[];
|
|
13
|
-
sourceMap: Readonly<Record<string, string>>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/blocks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC7C"}
|