@drghaliasri/butex 6.1.1 → 6.1.3
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/document2.d.mts +1 -1
- package/dist/document2.d.ts +1 -1
- package/dist/document2.js +1 -1
- package/dist/document2.js.map +1 -1
- package/dist/document2.mjs +1 -1
- package/dist/document2.mjs.map +1 -1
- package/dist/react-document2.js +149 -70
- package/dist/react-document2.js.map +1 -1
- package/dist/react-document2.mjs +341 -262
- package/dist/react-document2.mjs.map +1 -1
- package/dist/react.js +20 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +20 -0
- package/dist/react.mjs.map +1 -1
- package/package.json +2 -2
package/dist/document2.d.mts
CHANGED
|
@@ -842,7 +842,7 @@ declare function document2Outline(json: Document2Json): Document2OutlineEntry[];
|
|
|
842
842
|
type Document2KeyError = 'empty' | 'invalid' | 'duplicate';
|
|
843
843
|
/** NFC-normalize and trim a document key (label or bibliography). */
|
|
844
844
|
declare function normalizeDocument2Key(key: string): string;
|
|
845
|
-
/** True when key matches Unicode letters/marks,
|
|
845
|
+
/** True when key matches Unicode letters/marks, decimal digits, and :._- with no spaces. */
|
|
846
846
|
declare function isValidDocument2Key(key: string): boolean;
|
|
847
847
|
type Document2KeyNamespace = {
|
|
848
848
|
references?: Array<Pick<Reference2, 'id' | 'key'>>;
|
package/dist/document2.d.ts
CHANGED
|
@@ -842,7 +842,7 @@ declare function document2Outline(json: Document2Json): Document2OutlineEntry[];
|
|
|
842
842
|
type Document2KeyError = 'empty' | 'invalid' | 'duplicate';
|
|
843
843
|
/** NFC-normalize and trim a document key (label or bibliography). */
|
|
844
844
|
declare function normalizeDocument2Key(key: string): string;
|
|
845
|
-
/** True when key matches Unicode letters/marks,
|
|
845
|
+
/** True when key matches Unicode letters/marks, decimal digits, and :._- with no spaces. */
|
|
846
846
|
declare function isValidDocument2Key(key: string): boolean;
|
|
847
847
|
type Document2KeyNamespace = {
|
|
848
848
|
references?: Array<Pick<Reference2, 'id' | 'key'>>;
|
package/dist/document2.js
CHANGED
|
@@ -6693,7 +6693,7 @@ function document2Outline(json) {
|
|
|
6693
6693
|
}
|
|
6694
6694
|
|
|
6695
6695
|
// src/document2/keys.ts
|
|
6696
|
-
var DOCUMENT2_KEY_PATTERN = /^[\p{L}\p{M}
|
|
6696
|
+
var DOCUMENT2_KEY_PATTERN = /^[\p{L}\p{M}\p{Nd}:._-]+$/u;
|
|
6697
6697
|
function normalizeDocument2Key(key) {
|
|
6698
6698
|
return key.normalize("NFC").trim();
|
|
6699
6699
|
}
|