vobi_document 1.0.2 → 1.1.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/README.md +23 -6
- package/dist/blocks.cjs +100 -0
- package/dist/blocks.cjs.map +1 -0
- package/dist/blocks.d.cts +201 -0
- package/dist/blocks.d.ts +201 -0
- package/dist/blocks.js +7 -0
- package/dist/blocks.js.map +1 -0
- package/dist/catalogContext-DenbX-OW.d.cts +15 -0
- package/dist/catalogContext-HGMU-w_4.d.ts +15 -0
- package/dist/chunk-2EBYURIX.js +90 -0
- package/dist/chunk-2EBYURIX.js.map +1 -0
- package/dist/chunk-6GRYRVU5.js +824 -0
- package/dist/chunk-6GRYRVU5.js.map +1 -0
- package/dist/chunk-ABIEQHS2.js +159 -0
- package/dist/chunk-ABIEQHS2.js.map +1 -0
- package/dist/chunk-AQ5FAAP6.cjs +168 -0
- package/dist/chunk-AQ5FAAP6.cjs.map +1 -0
- package/dist/chunk-ERKU5FDV.cjs +407 -0
- package/dist/chunk-ERKU5FDV.cjs.map +1 -0
- package/dist/chunk-FKX46GKE.cjs +36 -0
- package/dist/chunk-FKX46GKE.cjs.map +1 -0
- package/dist/chunk-HMTCQOEV.js +1319 -0
- package/dist/chunk-HMTCQOEV.js.map +1 -0
- package/dist/chunk-IRFFN74K.cjs +89 -0
- package/dist/chunk-IRFFN74K.cjs.map +1 -0
- package/dist/chunk-IUDN2CGP.js +863 -0
- package/dist/chunk-IUDN2CGP.js.map +1 -0
- package/dist/chunk-JEVWEGSE.js +95 -0
- package/dist/chunk-JEVWEGSE.js.map +1 -0
- package/dist/chunk-KCZKC3OG.js +61 -0
- package/dist/chunk-KCZKC3OG.js.map +1 -0
- package/dist/chunk-KUB3TYG2.cjs +102 -0
- package/dist/chunk-KUB3TYG2.cjs.map +1 -0
- package/dist/chunk-L5FXGEKX.cjs +114 -0
- package/dist/chunk-L5FXGEKX.cjs.map +1 -0
- package/dist/chunk-LNBAFOVK.cjs +14 -0
- package/dist/chunk-LNBAFOVK.cjs.map +1 -0
- package/dist/chunk-M2TPAU2F.js +79 -0
- package/dist/chunk-M2TPAU2F.js.map +1 -0
- package/dist/chunk-MHTTFNK2.cjs +890 -0
- package/dist/chunk-MHTTFNK2.cjs.map +1 -0
- package/dist/chunk-NDHTMYPA.cjs +844 -0
- package/dist/chunk-NDHTMYPA.cjs.map +1 -0
- package/dist/chunk-PLQNNXS2.js +382 -0
- package/dist/chunk-PLQNNXS2.js.map +1 -0
- package/dist/chunk-QYBWIJXZ.js +98 -0
- package/dist/chunk-QYBWIJXZ.js.map +1 -0
- package/dist/chunk-U56KVTK5.cjs +68 -0
- package/dist/chunk-U56KVTK5.cjs.map +1 -0
- package/dist/chunk-X2BLERM5.cjs +1346 -0
- package/dist/chunk-X2BLERM5.cjs.map +1 -0
- package/dist/chunk-ZOJBDFKU.js +12 -0
- package/dist/chunk-ZOJBDFKU.js.map +1 -0
- package/dist/chunk-ZXWOZZXO.cjs +94 -0
- package/dist/chunk-ZXWOZZXO.cjs.map +1 -0
- package/dist/editor.cjs +60 -0
- package/dist/editor.cjs.map +1 -0
- package/dist/editor.d.cts +190 -0
- package/dist/editor.d.ts +190 -0
- package/dist/editor.js +7 -0
- package/dist/editor.js.map +1 -0
- package/dist/index.cjs +412 -3753
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -7892
- package/dist/index.d.ts +72 -7892
- package/dist/index.js +22 -3662
- package/dist/index.js.map +1 -1
- package/dist/messages-Bi0JxNIH.d.cts +23 -0
- package/dist/messages-Bi0JxNIH.d.ts +23 -0
- package/dist/print.cjs +354 -0
- package/dist/print.cjs.map +1 -0
- package/dist/print.d.cts +43 -0
- package/dist/print.d.ts +43 -0
- package/dist/print.js +336 -0
- package/dist/print.js.map +1 -0
- package/dist/puck.cjs +8 -8
- package/dist/puck.cjs.map +1 -1
- package/dist/render.cjs +72 -0
- package/dist/render.cjs.map +1 -0
- package/dist/render.d.cts +93 -0
- package/dist/render.d.ts +93 -0
- package/dist/render.js +7 -0
- package/dist/render.js.map +1 -0
- package/dist/theme-BuEFpQeZ.d.cts +112 -0
- package/dist/theme-BuEFpQeZ.d.ts +112 -0
- package/dist/types-BgIugNWW.d.cts +25 -0
- package/dist/types-BgIugNWW.d.ts +25 -0
- package/dist/types-CvKSS1Sy.d.cts +38 -0
- package/dist/types-CvKSS1Sy.d.ts +38 -0
- package/dist/variables.cjs +95 -0
- package/dist/variables.cjs.map +1 -0
- package/dist/variables.d.cts +74 -0
- package/dist/variables.d.ts +74 -0
- package/dist/variables.js +6 -0
- package/dist/variables.js.map +1 -0
- package/package.json +39 -8
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkAQ5FAAP6_cjs = require('./chunk-AQ5FAAP6.cjs');
|
|
4
|
+
var chunkKUB3TYG2_cjs = require('./chunk-KUB3TYG2.cjs');
|
|
5
|
+
var chunkZXWOZZXO_cjs = require('./chunk-ZXWOZZXO.cjs');
|
|
6
|
+
var chunkIRFFN74K_cjs = require('./chunk-IRFFN74K.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "VariableMenu", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkAQ5FAAP6_cjs.VariableMenu; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "variableCatalogSchema", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkAQ5FAAP6_cjs.variableCatalogSchema; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "variableDefSchema", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkAQ5FAAP6_cjs.variableDefSchema; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "variableTypeSchema", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkAQ5FAAP6_cjs.variableTypeSchema; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "CHIP_CLASS", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkKUB3TYG2_cjs.CHIP_CLASS; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "INVALID_CHIP_CLASS", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkKUB3TYG2_cjs.INVALID_CHIP_CLASS; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "NOT_INFORMED_LABEL", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkKUB3TYG2_cjs.NOT_INFORMED_LABEL; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "buildVariableChipHtml", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkKUB3TYG2_cjs.buildVariableChipHtml; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "collectVariableIssues", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkKUB3TYG2_cjs.collectVariableIssues; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "resolveVariableHtml", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkKUB3TYG2_cjs.resolveVariableHtml; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "formatResolvedValues", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkZXWOZZXO_cjs.formatResolvedValues; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "formatValue", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkZXWOZZXO_cjs.formatValue; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "resolveDocumentVariables", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkZXWOZZXO_cjs.resolveDocumentVariables; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "CatalogProvider", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunkIRFFN74K_cjs.CatalogProvider; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ResolvedProvider", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunkIRFFN74K_cjs.ResolvedProvider; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "extractBindingKeys", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunkIRFFN74K_cjs.extractBindingKeys; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "findInvalidBindings", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunkIRFFN74K_cjs.findInvalidBindings; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "useCatalog", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkIRFFN74K_cjs.useCatalog; }
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "useResolvedVariables", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () { return chunkIRFFN74K_cjs.useResolvedVariables; }
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "useTranslator", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () { return chunkIRFFN74K_cjs.useTranslator; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "useUnresolvedDisplay", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunkIRFFN74K_cjs.useUnresolvedDisplay; }
|
|
93
|
+
});
|
|
94
|
+
//# sourceMappingURL=variables.cjs.map
|
|
95
|
+
//# sourceMappingURL=variables.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"variables.cjs"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as VariableCatalog, V as VariableDef, d as VariableType, R as ResolvedVariables, c as VariableResolver, b as VariableContext, U as UnresolvedDisplay } from './types-BgIugNWW.cjs';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
export { C as CatalogProvider, T as Translator, u as useCatalog, a as useTranslator } from './catalogContext-DenbX-OW.cjs';
|
|
6
|
+
|
|
7
|
+
type Schema<T> = z.ZodType<T, z.ZodTypeDef, unknown>;
|
|
8
|
+
declare const variableTypeSchema: Schema<VariableType>;
|
|
9
|
+
declare const variableDefSchema: Schema<VariableDef>;
|
|
10
|
+
declare const variableCatalogSchema: Schema<VariableCatalog>;
|
|
11
|
+
|
|
12
|
+
/** Format a raw resolved value by its catalog type, pt-BR. preview == PDF. */
|
|
13
|
+
declare function formatValue(type: VariableType, raw: unknown): string;
|
|
14
|
+
|
|
15
|
+
/** Walk any document structure and collect every distinct variable key. */
|
|
16
|
+
declare function extractBindingKeys(node: unknown): string[];
|
|
17
|
+
/** Variable keys present in the document but absent from the catalog (orphans). */
|
|
18
|
+
declare function findInvalidBindings(node: unknown, catalog: VariableDef[]): string[];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Formata valores crus por tipo do catálogo. Keys sem valor ficam FORA do mapa
|
|
22
|
+
* (`undefined` = "não resolvida" — ver docs/variables.md).
|
|
23
|
+
*/
|
|
24
|
+
declare function formatResolvedValues(defs: VariableDef[], raw: Record<string, unknown>): ResolvedVariables;
|
|
25
|
+
/** Resolve os bindings de `node` em strings pt-BR formatadas (preview == PDF). */
|
|
26
|
+
declare function resolveDocumentVariables(node: unknown, catalog: VariableDef[], resolver: VariableResolver, ctx: VariableContext): Promise<ResolvedVariables>;
|
|
27
|
+
|
|
28
|
+
type Props = {
|
|
29
|
+
accept?: VariableType[];
|
|
30
|
+
model?: string;
|
|
31
|
+
onPick: (def: VariableDef) => void;
|
|
32
|
+
};
|
|
33
|
+
declare function VariableMenu({ accept, model, onPick }: Props): react.JSX.Element;
|
|
34
|
+
|
|
35
|
+
declare const NOT_INFORMED_LABEL = "N\u00E3o informado";
|
|
36
|
+
declare const CHIP_CLASS = "dg-var";
|
|
37
|
+
declare const INVALID_CHIP_CLASS = "dg-var--invalid";
|
|
38
|
+
/** Markup canônico do chip de variável — editores de host inserem por aqui. */
|
|
39
|
+
declare const buildVariableChipHtml: (def: {
|
|
40
|
+
key: string;
|
|
41
|
+
label?: string;
|
|
42
|
+
fullLabel?: string;
|
|
43
|
+
}) => string;
|
|
44
|
+
type ResolveOptions = {
|
|
45
|
+
keepChip?: boolean;
|
|
46
|
+
catalog?: VariableDef[];
|
|
47
|
+
unresolved?: UnresolvedDisplay;
|
|
48
|
+
};
|
|
49
|
+
/** Classifica os chips do documento em `unknown` (fora do catálogo) e `unresolved` (sem valor). */
|
|
50
|
+
declare const collectVariableIssues: (data: unknown, catalog?: VariableDef[], resolved?: ResolvedVariables) => {
|
|
51
|
+
unknown: string[];
|
|
52
|
+
unresolved: string[];
|
|
53
|
+
hasIssues: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Resolve os chips de variável de um HTML: valor, "Não informado" ou inválido (⚠).
|
|
57
|
+
* `keepChip: false` (render/PDF) mantém um span marcador (data-var-key/data-var-type, sem class).
|
|
58
|
+
* `unresolved: 'label'` (contexto de template) preserva o chip (texto + class) e não marca chip fora do
|
|
59
|
+
* catálogo como inválido — o template não está ligado a um documento, então "key desconhecida" ali é ruído.
|
|
60
|
+
* Ver docs/variables.md.
|
|
61
|
+
*/
|
|
62
|
+
declare const resolveVariableHtml: (html: string, resolved?: ResolvedVariables, { keepChip, catalog, unresolved }?: ResolveOptions) => string;
|
|
63
|
+
|
|
64
|
+
type EnsureResolved = (keys: string[]) => Promise<void>;
|
|
65
|
+
declare function ResolvedProvider({ resolved, ensureResolved, unresolvedDisplay, children }: {
|
|
66
|
+
resolved?: ResolvedVariables;
|
|
67
|
+
ensureResolved?: EnsureResolved;
|
|
68
|
+
unresolvedDisplay?: UnresolvedDisplay;
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
}): react.JSX.Element;
|
|
71
|
+
declare function useResolvedVariables(): ResolvedVariables;
|
|
72
|
+
declare function useUnresolvedDisplay(): UnresolvedDisplay;
|
|
73
|
+
|
|
74
|
+
export { CHIP_CLASS, INVALID_CHIP_CLASS, NOT_INFORMED_LABEL, ResolvedProvider, ResolvedVariables, UnresolvedDisplay, VariableCatalog, VariableContext, VariableDef, VariableMenu, VariableResolver, VariableType, buildVariableChipHtml, collectVariableIssues, extractBindingKeys, findInvalidBindings, formatResolvedValues, formatValue, resolveDocumentVariables, resolveVariableHtml, useResolvedVariables, useUnresolvedDisplay, variableCatalogSchema, variableDefSchema, variableTypeSchema };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as VariableCatalog, V as VariableDef, d as VariableType, R as ResolvedVariables, c as VariableResolver, b as VariableContext, U as UnresolvedDisplay } from './types-BgIugNWW.js';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
export { C as CatalogProvider, T as Translator, u as useCatalog, a as useTranslator } from './catalogContext-HGMU-w_4.js';
|
|
6
|
+
|
|
7
|
+
type Schema<T> = z.ZodType<T, z.ZodTypeDef, unknown>;
|
|
8
|
+
declare const variableTypeSchema: Schema<VariableType>;
|
|
9
|
+
declare const variableDefSchema: Schema<VariableDef>;
|
|
10
|
+
declare const variableCatalogSchema: Schema<VariableCatalog>;
|
|
11
|
+
|
|
12
|
+
/** Format a raw resolved value by its catalog type, pt-BR. preview == PDF. */
|
|
13
|
+
declare function formatValue(type: VariableType, raw: unknown): string;
|
|
14
|
+
|
|
15
|
+
/** Walk any document structure and collect every distinct variable key. */
|
|
16
|
+
declare function extractBindingKeys(node: unknown): string[];
|
|
17
|
+
/** Variable keys present in the document but absent from the catalog (orphans). */
|
|
18
|
+
declare function findInvalidBindings(node: unknown, catalog: VariableDef[]): string[];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Formata valores crus por tipo do catálogo. Keys sem valor ficam FORA do mapa
|
|
22
|
+
* (`undefined` = "não resolvida" — ver docs/variables.md).
|
|
23
|
+
*/
|
|
24
|
+
declare function formatResolvedValues(defs: VariableDef[], raw: Record<string, unknown>): ResolvedVariables;
|
|
25
|
+
/** Resolve os bindings de `node` em strings pt-BR formatadas (preview == PDF). */
|
|
26
|
+
declare function resolveDocumentVariables(node: unknown, catalog: VariableDef[], resolver: VariableResolver, ctx: VariableContext): Promise<ResolvedVariables>;
|
|
27
|
+
|
|
28
|
+
type Props = {
|
|
29
|
+
accept?: VariableType[];
|
|
30
|
+
model?: string;
|
|
31
|
+
onPick: (def: VariableDef) => void;
|
|
32
|
+
};
|
|
33
|
+
declare function VariableMenu({ accept, model, onPick }: Props): react.JSX.Element;
|
|
34
|
+
|
|
35
|
+
declare const NOT_INFORMED_LABEL = "N\u00E3o informado";
|
|
36
|
+
declare const CHIP_CLASS = "dg-var";
|
|
37
|
+
declare const INVALID_CHIP_CLASS = "dg-var--invalid";
|
|
38
|
+
/** Markup canônico do chip de variável — editores de host inserem por aqui. */
|
|
39
|
+
declare const buildVariableChipHtml: (def: {
|
|
40
|
+
key: string;
|
|
41
|
+
label?: string;
|
|
42
|
+
fullLabel?: string;
|
|
43
|
+
}) => string;
|
|
44
|
+
type ResolveOptions = {
|
|
45
|
+
keepChip?: boolean;
|
|
46
|
+
catalog?: VariableDef[];
|
|
47
|
+
unresolved?: UnresolvedDisplay;
|
|
48
|
+
};
|
|
49
|
+
/** Classifica os chips do documento em `unknown` (fora do catálogo) e `unresolved` (sem valor). */
|
|
50
|
+
declare const collectVariableIssues: (data: unknown, catalog?: VariableDef[], resolved?: ResolvedVariables) => {
|
|
51
|
+
unknown: string[];
|
|
52
|
+
unresolved: string[];
|
|
53
|
+
hasIssues: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Resolve os chips de variável de um HTML: valor, "Não informado" ou inválido (⚠).
|
|
57
|
+
* `keepChip: false` (render/PDF) mantém um span marcador (data-var-key/data-var-type, sem class).
|
|
58
|
+
* `unresolved: 'label'` (contexto de template) preserva o chip (texto + class) e não marca chip fora do
|
|
59
|
+
* catálogo como inválido — o template não está ligado a um documento, então "key desconhecida" ali é ruído.
|
|
60
|
+
* Ver docs/variables.md.
|
|
61
|
+
*/
|
|
62
|
+
declare const resolveVariableHtml: (html: string, resolved?: ResolvedVariables, { keepChip, catalog, unresolved }?: ResolveOptions) => string;
|
|
63
|
+
|
|
64
|
+
type EnsureResolved = (keys: string[]) => Promise<void>;
|
|
65
|
+
declare function ResolvedProvider({ resolved, ensureResolved, unresolvedDisplay, children }: {
|
|
66
|
+
resolved?: ResolvedVariables;
|
|
67
|
+
ensureResolved?: EnsureResolved;
|
|
68
|
+
unresolvedDisplay?: UnresolvedDisplay;
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
}): react.JSX.Element;
|
|
71
|
+
declare function useResolvedVariables(): ResolvedVariables;
|
|
72
|
+
declare function useUnresolvedDisplay(): UnresolvedDisplay;
|
|
73
|
+
|
|
74
|
+
export { CHIP_CLASS, INVALID_CHIP_CLASS, NOT_INFORMED_LABEL, ResolvedProvider, ResolvedVariables, UnresolvedDisplay, VariableCatalog, VariableContext, VariableDef, VariableMenu, VariableResolver, VariableType, buildVariableChipHtml, collectVariableIssues, extractBindingKeys, findInvalidBindings, formatResolvedValues, formatValue, resolveDocumentVariables, resolveVariableHtml, useResolvedVariables, useUnresolvedDisplay, variableCatalogSchema, variableDefSchema, variableTypeSchema };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { VariableMenu, variableCatalogSchema, variableDefSchema, variableTypeSchema } from './chunk-ABIEQHS2.js';
|
|
2
|
+
export { CHIP_CLASS, INVALID_CHIP_CLASS, NOT_INFORMED_LABEL, buildVariableChipHtml, collectVariableIssues, resolveVariableHtml } from './chunk-JEVWEGSE.js';
|
|
3
|
+
export { formatResolvedValues, formatValue, resolveDocumentVariables } from './chunk-2EBYURIX.js';
|
|
4
|
+
export { CatalogProvider, ResolvedProvider, extractBindingKeys, findInvalidBindings, useCatalog, useResolvedVariables, useTranslator, useUnresolvedDisplay } from './chunk-M2TPAU2F.js';
|
|
5
|
+
//# sourceMappingURL=variables.js.map
|
|
6
|
+
//# sourceMappingURL=variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"variables.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vobi_document",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -20,11 +20,37 @@
|
|
|
20
20
|
"import": "./dist/index.js",
|
|
21
21
|
"require": "./dist/index.cjs"
|
|
22
22
|
},
|
|
23
|
+
"./blocks": {
|
|
24
|
+
"types": "./dist/blocks.d.ts",
|
|
25
|
+
"import": "./dist/blocks.js",
|
|
26
|
+
"require": "./dist/blocks.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./editor": {
|
|
29
|
+
"types": "./dist/editor.d.ts",
|
|
30
|
+
"import": "./dist/editor.js",
|
|
31
|
+
"require": "./dist/editor.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./render": {
|
|
34
|
+
"types": "./dist/render.d.ts",
|
|
35
|
+
"import": "./dist/render.js",
|
|
36
|
+
"require": "./dist/render.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./print": {
|
|
39
|
+
"types": "./dist/print.d.ts",
|
|
40
|
+
"import": "./dist/print.js",
|
|
41
|
+
"require": "./dist/print.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./variables": {
|
|
44
|
+
"types": "./dist/variables.d.ts",
|
|
45
|
+
"import": "./dist/variables.js",
|
|
46
|
+
"require": "./dist/variables.cjs"
|
|
47
|
+
},
|
|
23
48
|
"./puck": {
|
|
24
49
|
"types": "./dist/puck.d.ts",
|
|
25
50
|
"import": "./dist/puck.js",
|
|
26
51
|
"require": "./dist/puck.cjs"
|
|
27
|
-
}
|
|
52
|
+
},
|
|
53
|
+
"./package.json": "./package.json"
|
|
28
54
|
},
|
|
29
55
|
"files": [
|
|
30
56
|
"dist"
|
|
@@ -34,19 +60,19 @@
|
|
|
34
60
|
"node": ">=20"
|
|
35
61
|
},
|
|
36
62
|
"dependencies": {
|
|
37
|
-
"react-colorful": "^5.7.0"
|
|
38
|
-
"zod": "^3.24.1"
|
|
63
|
+
"react-colorful": "^5.7.0"
|
|
39
64
|
},
|
|
40
65
|
"peerDependencies": {
|
|
41
|
-
"@puckeditor/core": "^0.
|
|
66
|
+
"@puckeditor/core": "^0.23.0",
|
|
42
67
|
"react": "^18.2.0",
|
|
43
68
|
"react-dom": "^18.2.0",
|
|
44
|
-
"styled-components": "^5.3.5"
|
|
69
|
+
"styled-components": "^5.3.5",
|
|
70
|
+
"zod": "^3.24.1"
|
|
45
71
|
},
|
|
46
72
|
"devDependencies": {
|
|
47
73
|
"@eslint/eslintrc": "^3.2.0",
|
|
48
74
|
"@eslint/js": "^9.18.0",
|
|
49
|
-
"@puckeditor/core": "^0.
|
|
75
|
+
"@puckeditor/core": "^0.23.0",
|
|
50
76
|
"@testing-library/jest-dom": "^6.6.3",
|
|
51
77
|
"@testing-library/react": "^16.1.0",
|
|
52
78
|
"@types/jest": "^29.5.14",
|
|
@@ -75,19 +101,24 @@
|
|
|
75
101
|
"ts-jest": "^29.2.5",
|
|
76
102
|
"tsup": "^8.3.5",
|
|
77
103
|
"typescript": "^5.7.3",
|
|
78
|
-
"
|
|
104
|
+
"vite": "^6.0.7",
|
|
105
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
106
|
+
"yalc": "^1.0.0-pre.53",
|
|
107
|
+
"zod": "^3.24.1"
|
|
79
108
|
},
|
|
80
109
|
"scripts": {
|
|
81
110
|
"embed:pagedjs": "node scripts/embed-pagedjs.mjs",
|
|
82
111
|
"prebuild": "pnpm embed:pagedjs",
|
|
83
112
|
"build": "tsup",
|
|
84
113
|
"dev": "tsup --watch",
|
|
114
|
+
"play": "vite",
|
|
85
115
|
"pretest": "pnpm embed:pagedjs",
|
|
86
116
|
"test": "jest",
|
|
87
117
|
"test:watch": "jest --watch",
|
|
88
118
|
"test:coverage": "jest --coverage",
|
|
89
119
|
"pretypecheck": "pnpm embed:pagedjs",
|
|
90
120
|
"typecheck": "tsc --noEmit",
|
|
121
|
+
"typecheck:play": "tsc --noEmit -p tsconfig.playground.json",
|
|
91
122
|
"lint": "eslint .",
|
|
92
123
|
"lint:fix": "eslint . --fix",
|
|
93
124
|
"format": "prettier --write .",
|