@gmb/bitmark-parser-generator 4.18.0 → 4.20.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/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +45 -6
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +39 -9
- package/dist/browser/esm/index.d.ts +39 -9
- package/dist/browser/esm/index.js +43 -6
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +45 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -9
- package/dist/index.d.ts +39 -9
- package/dist/index.js +43 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -388,6 +388,7 @@ declare const BitType: Readonly<{
|
|
|
388
388
|
multipleResponse: "multiple-response";
|
|
389
389
|
multipleResponse1: "multiple-response-1";
|
|
390
390
|
newspaperArticle: "newspaper-article";
|
|
391
|
+
nonProductionPrototypeIframe: "non-production-prototype-iframe";
|
|
391
392
|
note: "note";
|
|
392
393
|
noteAi: "note-ai";
|
|
393
394
|
noteAlt: "note-alt";
|
|
@@ -1004,6 +1005,7 @@ declare const BitType: Readonly<{
|
|
|
1004
1005
|
multipleResponse: "multiple-response";
|
|
1005
1006
|
multipleResponse1: "multiple-response-1";
|
|
1006
1007
|
newspaperArticle: "newspaper-article";
|
|
1008
|
+
nonProductionPrototypeIframe: "non-production-prototype-iframe";
|
|
1007
1009
|
note: "note";
|
|
1008
1010
|
noteAi: "note-ai";
|
|
1009
1011
|
noteAlt: "note-alt";
|
|
@@ -1427,6 +1429,8 @@ declare const ConfigKey: Readonly<{
|
|
|
1427
1429
|
property_icon: "@icon";
|
|
1428
1430
|
property_iconTag: "@iconTag";
|
|
1429
1431
|
property_id: "@id";
|
|
1432
|
+
property_iframeSrc: "@iframeSrc";
|
|
1433
|
+
property_iframeName: "@iframeName";
|
|
1430
1434
|
property_imageFirst: "@imageFirst";
|
|
1431
1435
|
property_imageSource: "@imageSource";
|
|
1432
1436
|
property_index: "@index";
|
|
@@ -1788,6 +1792,8 @@ declare const ConfigKey: Readonly<{
|
|
|
1788
1792
|
property_icon: "@icon";
|
|
1789
1793
|
property_iconTag: "@iconTag";
|
|
1790
1794
|
property_id: "@id";
|
|
1795
|
+
property_iframeSrc: "@iframeSrc";
|
|
1796
|
+
property_iframeName: "@iframeName";
|
|
1791
1797
|
property_imageFirst: "@imageFirst";
|
|
1792
1798
|
property_imageSource: "@imageSource";
|
|
1793
1799
|
property_index: "@index";
|
|
@@ -2282,6 +2288,10 @@ interface SectionTextNode extends TextNode {
|
|
|
2282
2288
|
type: 'heading';
|
|
2283
2289
|
section: string;
|
|
2284
2290
|
}
|
|
2291
|
+
interface TaskItemTextNode extends TextNode {
|
|
2292
|
+
type: 'taskItem';
|
|
2293
|
+
attrs?: TaskItemTextNodeAttributes;
|
|
2294
|
+
}
|
|
2285
2295
|
interface ImageTextNode extends TextNode {
|
|
2286
2296
|
type: 'image';
|
|
2287
2297
|
attrs?: ImageTextNodeAttributes;
|
|
@@ -2296,7 +2306,11 @@ interface CodeBlockTextNode extends TextNode {
|
|
|
2296
2306
|
}
|
|
2297
2307
|
interface LatexTextNode extends TextNode {
|
|
2298
2308
|
type: 'latex';
|
|
2299
|
-
attrs?:
|
|
2309
|
+
attrs?: LatexTextNodeAttributes;
|
|
2310
|
+
}
|
|
2311
|
+
interface ListTextNode extends TextNode {
|
|
2312
|
+
type: 'noBulletList' | 'bulletList' | 'orderedList' | 'orderedListRoman' | 'orderedListRomanLower' | 'letteredList' | 'letteredListLower';
|
|
2313
|
+
attrs?: ListTextNodeAttributes;
|
|
2300
2314
|
}
|
|
2301
2315
|
interface TextNodeAttibutes {
|
|
2302
2316
|
section: string;
|
|
@@ -2304,14 +2318,20 @@ interface TextNodeAttibutes {
|
|
|
2304
2318
|
interface HeadingTextNodeAttributes extends TextNodeAttibutes {
|
|
2305
2319
|
level: number;
|
|
2306
2320
|
}
|
|
2321
|
+
interface TaskItemTextNodeAttributes extends TextNodeAttibutes {
|
|
2322
|
+
checked: boolean;
|
|
2323
|
+
}
|
|
2307
2324
|
interface ImageTextNodeAttributes extends TextNodeAttibutes, MediaAttributes {
|
|
2308
2325
|
}
|
|
2309
2326
|
interface CodeBlockTextNodeAttributes extends TextNodeAttibutes {
|
|
2310
2327
|
language: string;
|
|
2311
2328
|
}
|
|
2312
|
-
interface
|
|
2329
|
+
interface LatexTextNodeAttributes extends TextNodeAttibutes {
|
|
2313
2330
|
formula: string;
|
|
2314
2331
|
}
|
|
2332
|
+
interface ListTextNodeAttributes extends TextNodeAttibutes {
|
|
2333
|
+
start: number;
|
|
2334
|
+
}
|
|
2315
2335
|
interface TextMarkAttibutes {
|
|
2316
2336
|
}
|
|
2317
2337
|
interface LinkMarkAttibutes extends TextMarkAttibutes {
|
|
@@ -2711,6 +2731,8 @@ interface BitJson {
|
|
|
2711
2731
|
releaseVersion: string;
|
|
2712
2732
|
releaseKind: string;
|
|
2713
2733
|
releaseDate: string;
|
|
2734
|
+
iframeSrc: string;
|
|
2735
|
+
iframeName: string;
|
|
2714
2736
|
ageRange: number | number[];
|
|
2715
2737
|
lang: string;
|
|
2716
2738
|
language: string | string[];
|
|
@@ -2883,9 +2905,9 @@ interface BitJson {
|
|
|
2883
2905
|
platformBorderColor: string;
|
|
2884
2906
|
platformSelectionTextColor: string;
|
|
2885
2907
|
platformBaseLayerColor: string;
|
|
2886
|
-
platformMargin:
|
|
2887
|
-
platformBorderRadius:
|
|
2888
|
-
platformSelectionBorderRadius:
|
|
2908
|
+
platformMargin: number;
|
|
2909
|
+
platformBorderRadius: number;
|
|
2910
|
+
platformSelectionBorderRadius: number;
|
|
2889
2911
|
platformNeedsShadow: boolean;
|
|
2890
2912
|
productId: string | string[];
|
|
2891
2913
|
product: string;
|
|
@@ -3309,6 +3331,8 @@ interface Bit {
|
|
|
3309
3331
|
releaseVersion?: Property;
|
|
3310
3332
|
releaseKind?: Property;
|
|
3311
3333
|
releaseDate?: Property;
|
|
3334
|
+
iframeSrc?: Property;
|
|
3335
|
+
iframeName?: Property;
|
|
3312
3336
|
ageRange?: Property;
|
|
3313
3337
|
lang?: Property;
|
|
3314
3338
|
language?: Property;
|
|
@@ -3851,6 +3875,8 @@ declare const NodeType: Readonly<{
|
|
|
3851
3875
|
iconValue: "iconValue";
|
|
3852
3876
|
id: "id";
|
|
3853
3877
|
idValue: "idValue";
|
|
3878
|
+
iframeSrc: "iframeSrc";
|
|
3879
|
+
iframeName: "iframeName";
|
|
3854
3880
|
image: "image";
|
|
3855
3881
|
imageFirst: "imageFirst";
|
|
3856
3882
|
imageFirstValue: "imageFirstValue";
|
|
@@ -4523,6 +4549,8 @@ declare const NodeType: Readonly<{
|
|
|
4523
4549
|
iconValue: "iconValue";
|
|
4524
4550
|
id: "id";
|
|
4525
4551
|
idValue: "idValue";
|
|
4552
|
+
iframeSrc: "iframeSrc";
|
|
4553
|
+
iframeName: "iframeName";
|
|
4526
4554
|
image: "image";
|
|
4527
4555
|
imageFirst: "imageFirst";
|
|
4528
4556
|
imageFirstValue: "imageFirstValue";
|
|
@@ -5831,6 +5859,8 @@ declare class Builder extends BaseBuilder {
|
|
|
5831
5859
|
releaseVersion?: string;
|
|
5832
5860
|
releaseKind?: string;
|
|
5833
5861
|
releaseDate?: string;
|
|
5862
|
+
iframeSrc?: string;
|
|
5863
|
+
iframeName?: string;
|
|
5834
5864
|
ageRange?: number | number[];
|
|
5835
5865
|
lang?: string;
|
|
5836
5866
|
language?: string | string[];
|
|
@@ -6008,9 +6038,9 @@ declare class Builder extends BaseBuilder {
|
|
|
6008
6038
|
platformBorderColor?: string;
|
|
6009
6039
|
platformSelectionTextColor?: string;
|
|
6010
6040
|
platformBaseLayerColor?: string;
|
|
6011
|
-
platformMargin?:
|
|
6012
|
-
platformBorderRadius?:
|
|
6013
|
-
platformSelectionBorderRadius?:
|
|
6041
|
+
platformMargin?: number;
|
|
6042
|
+
platformBorderRadius?: number;
|
|
6043
|
+
platformSelectionBorderRadius?: number;
|
|
6014
6044
|
platformNeedsShadow?: boolean;
|
|
6015
6045
|
productId?: string | string[];
|
|
6016
6046
|
product?: string | string[];
|
|
@@ -8609,4 +8639,4 @@ declare class JsonFileGenerator implements Generator<BitmarkAst> {
|
|
|
8609
8639
|
generateSync(_ast: BitmarkAst): void;
|
|
8610
8640
|
}
|
|
8611
8641
|
|
|
8612
|
-
export { type AppLinkResourceJson, type AppLinkResourceWrapperJson, type ArticleResourceJson, type ArticleResourceWrapperJson, Ast, type AstWalkCallbacks, type AudioEmbedResourceJson, type AudioEmbedResourceWrapperJson, type AudioLinkResourceJson, type AudioLinkResourceWrapperJson, type AudioResourceJson, type AudioResourceWrapperJson, type Bit, type BitJson, BitType, type BitTypeType, type BitWrapperJson, type BitmarkAst, BitmarkFileGenerator, BitmarkGenerator, type BitmarkOptions, BitmarkParser, BitmarkParserGenerator, BitmarkParserType, type BitmarkParserTypeType, BitmarkStringGenerator, BitmarkVersion, type BitmarkVersionType, type Body, type BodyBitJson, type BodyBitsJson, type BodyPart, BodyTextFormat, type BodyTextFormatType, type BookJson, type BookReferenceJson, type BotResponseJson, type BreakscapeOptions, type BreakscapedString, Builder, type CardBit, type CardNode, CardSetVersion, type CardSetVersionType, type ChoiceJson, type ConvertOptions, type ConvertTextOptions, type CreateAstOptions, type DefinitionListItemJson, type DocumentDownloadResourceJson, type DocumentDownloadResourceWrapperJson, type DocumentEmbedResourceJson, type DocumentEmbedResourceWrapperJson, type DocumentLinkResourceJson, type DocumentLinkResourceWrapperJson, type DocumentResourceJson, type DocumentResourceWrapperJson, type Example, type ExampleJson, type ExtraProperties, type FeedbackChoiceJson, type FeedbackJson, type FeedbackReasonJson, type FileOptions, FileWriter, type FlashcardJson, type Footer, type GapJson, type Generator, type GroupTagJson, type HeadingJson, type HighlightJson, type HighlightTextJson, type ImageLinkResourceJson, type ImageLinkResourceWrapperJson, type ImageResourceJson, type ImageResourceWrapperJson, type ImageSourceJson, InfoFormat, type InfoFormatType, type InfoOptions, InfoType, type InfoTypeType, type IngredientJson, Input, type InputType, JsonFileGenerator, JsonGenerator, type JsonOptions, JsonParser, JsonStringGenerator, type ListItemJson, type MarkConfigJson, type MarkJson, type MatrixCellJson, type MatrixJson, type Node, type NodeInfo, NodeType, type NodeTypeType, Output, type OutputType, type PairJson, type ParserJson, type PersonJson, type UpgradeOptions as PrettifyOptions, type PronunciationTableCellJson, type PronunciationTableJson, type Property, type QuestionJson, type QuizJson, type RatingLevelStartEndJson, ResourceBuilder, type ResourceDataJson, type ResourceJson, type ResourceTypeType, type ResourceWrapperJson, type ResponseJson, type SelectJson, type SelectOptionJson, type ServingsJson, type StatementJson, type StillImageFilmEmbedResourceJson, type StillImageFilmEmbedResourceWrapperJson, type StillImageFilmLinkResourceJson, type StillImageFilmLinkResourceWrapperJson, type StillImageFilmResourceJson, type StillImageFilmResourceWrapperJson, StreamWriter, StringWriter, type TableCellJson, type TableExtendedJson, type TableJson, type TableRowJson, type TableSectionJson, type TechnicalTermJson, type JsonText as Text, type TextAndIconJson, type TextAst, type TextJsonOptions, type UnbreakscapeOptions, type UpgradeOptions, type VideoEmbedResourceJson, type VideoEmbedResourceWrapperJson, type VideoLinkResourceJson, type VideoLinkResourceWrapperJson, type VideoResourceJson, type VideoResourceWrapperJson, type WebsiteLinkResourceJson, type WebsiteLinkResourceWrapperJson, type Writer, parse as bitmarkTextParse };
|
|
8642
|
+
export { type AppLinkResourceJson, type AppLinkResourceWrapperJson, type ArticleResourceJson, type ArticleResourceWrapperJson, Ast, type AstWalkCallbacks, type AudioEmbedResourceJson, type AudioEmbedResourceWrapperJson, type AudioLinkResourceJson, type AudioLinkResourceWrapperJson, type AudioResourceJson, type AudioResourceWrapperJson, type Bit, type BitJson, BitType, type BitTypeType, type BitWrapperJson, type BitmarkAst, BitmarkFileGenerator, BitmarkGenerator, type BitmarkOptions, BitmarkParser, BitmarkParserGenerator, BitmarkParserType, type BitmarkParserTypeType, BitmarkStringGenerator, BitmarkVersion, type BitmarkVersionType, type Body, type BodyBitJson, type BodyBitsJson, type BodyPart, BodyTextFormat, type BodyTextFormatType, type BookJson, type BookReferenceJson, type BotResponseJson, type BreakscapeOptions, type BreakscapedString, Builder, type CardBit, type CardNode, CardSetVersion, type CardSetVersionType, type ChoiceJson, type CodeBlockTextNode, type CodeBlockTextNodeAttributes, type CommentMark, type ConvertOptions, type ConvertTextOptions, type CreateAstOptions, type DefinitionListItemJson, type DocumentDownloadResourceJson, type DocumentDownloadResourceWrapperJson, type DocumentEmbedResourceJson, type DocumentEmbedResourceWrapperJson, type DocumentLinkResourceJson, type DocumentLinkResourceWrapperJson, type DocumentResourceJson, type DocumentResourceWrapperJson, type Example, type ExampleJson, type ExtRefMark, type ExtRefMarkAttibutes, type ExtraProperties, type FeedbackChoiceJson, type FeedbackJson, type FeedbackReasonJson, type FileOptions, FileWriter, type FlashcardJson, type Footer, type FootnoteAttibutes, type FootnoteMark, type GapJson, type Generator, type GroupTagJson, type HeadingJson, type HeadingTextNode, type HeadingTextNodeAttributes, type HighlightJson, type HighlightTextJson, type ImageInlineTextNode, type ImageLinkResourceJson, type ImageLinkResourceWrapperJson, type ImageResourceJson, type ImageResourceWrapperJson, type ImageSourceJson, type ImageTextNode, type ImageTextNodeAttributes, InfoFormat, type InfoFormatType, type InfoOptions, InfoType, type InfoTypeType, type IngredientJson, Input, type InputType, JsonFileGenerator, JsonGenerator, type JsonOptions, JsonParser, JsonStringGenerator, type LatexTextNode, type LatexTextNodeAttributes, type LinkMark, type LinkMarkAttibutes, type ListItemJson, type ListTextNode, type ListTextNodeAttributes, type MarkConfigJson, type MarkJson, type MatrixCellJson, type MatrixJson, type MediaAttributes, type Node, type NodeInfo, NodeType, type NodeTypeType, Output, type OutputType, type PairJson, type ParserJson, type PersonJson, type UpgradeOptions as PrettifyOptions, type PronunciationTableCellJson, type PronunciationTableJson, type Property, type QuestionJson, type QuizJson, type RatingLevelStartEndJson, type RefMark, type RefMarkAttibutes, ResourceBuilder, type ResourceDataJson, type ResourceJson, type ResourceTypeType, type ResourceWrapperJson, type ResponseJson, type SectionTextNode, type SelectJson, type SelectOptionJson, type ServingsJson, type StatementJson, type StillImageFilmEmbedResourceJson, type StillImageFilmEmbedResourceWrapperJson, type StillImageFilmLinkResourceJson, type StillImageFilmLinkResourceWrapperJson, type StillImageFilmResourceJson, type StillImageFilmResourceWrapperJson, StreamWriter, StringWriter, type SymbolMark, type TableCellJson, type TableExtendedJson, type TableJson, type TableRowJson, type TableSectionJson, type TaskItemTextNode, type TaskItemTextNodeAttributes, type TechnicalTermJson, type JsonText as Text, type TextAndIconJson, type TextAst, type TextJsonOptions, type TextMark, type TextMarkAttibutes, TextMarkType, type TextMarkTypeType, type TextNode, type TextNodeAttibutes, TextNodeType, type TextNodeTypeType, type UnbreakscapeOptions, type UpgradeOptions, type VideoEmbedResourceJson, type VideoEmbedResourceWrapperJson, type VideoLinkResourceJson, type VideoLinkResourceWrapperJson, type VideoResourceJson, type VideoResourceWrapperJson, type WebsiteLinkResourceJson, type WebsiteLinkResourceWrapperJson, type Writer, type XRefMark, type XRefMarkAttibutes, parse as bitmarkTextParse };
|
package/dist/index.d.ts
CHANGED
|
@@ -388,6 +388,7 @@ declare const BitType: Readonly<{
|
|
|
388
388
|
multipleResponse: "multiple-response";
|
|
389
389
|
multipleResponse1: "multiple-response-1";
|
|
390
390
|
newspaperArticle: "newspaper-article";
|
|
391
|
+
nonProductionPrototypeIframe: "non-production-prototype-iframe";
|
|
391
392
|
note: "note";
|
|
392
393
|
noteAi: "note-ai";
|
|
393
394
|
noteAlt: "note-alt";
|
|
@@ -1004,6 +1005,7 @@ declare const BitType: Readonly<{
|
|
|
1004
1005
|
multipleResponse: "multiple-response";
|
|
1005
1006
|
multipleResponse1: "multiple-response-1";
|
|
1006
1007
|
newspaperArticle: "newspaper-article";
|
|
1008
|
+
nonProductionPrototypeIframe: "non-production-prototype-iframe";
|
|
1007
1009
|
note: "note";
|
|
1008
1010
|
noteAi: "note-ai";
|
|
1009
1011
|
noteAlt: "note-alt";
|
|
@@ -1427,6 +1429,8 @@ declare const ConfigKey: Readonly<{
|
|
|
1427
1429
|
property_icon: "@icon";
|
|
1428
1430
|
property_iconTag: "@iconTag";
|
|
1429
1431
|
property_id: "@id";
|
|
1432
|
+
property_iframeSrc: "@iframeSrc";
|
|
1433
|
+
property_iframeName: "@iframeName";
|
|
1430
1434
|
property_imageFirst: "@imageFirst";
|
|
1431
1435
|
property_imageSource: "@imageSource";
|
|
1432
1436
|
property_index: "@index";
|
|
@@ -1788,6 +1792,8 @@ declare const ConfigKey: Readonly<{
|
|
|
1788
1792
|
property_icon: "@icon";
|
|
1789
1793
|
property_iconTag: "@iconTag";
|
|
1790
1794
|
property_id: "@id";
|
|
1795
|
+
property_iframeSrc: "@iframeSrc";
|
|
1796
|
+
property_iframeName: "@iframeName";
|
|
1791
1797
|
property_imageFirst: "@imageFirst";
|
|
1792
1798
|
property_imageSource: "@imageSource";
|
|
1793
1799
|
property_index: "@index";
|
|
@@ -2282,6 +2288,10 @@ interface SectionTextNode extends TextNode {
|
|
|
2282
2288
|
type: 'heading';
|
|
2283
2289
|
section: string;
|
|
2284
2290
|
}
|
|
2291
|
+
interface TaskItemTextNode extends TextNode {
|
|
2292
|
+
type: 'taskItem';
|
|
2293
|
+
attrs?: TaskItemTextNodeAttributes;
|
|
2294
|
+
}
|
|
2285
2295
|
interface ImageTextNode extends TextNode {
|
|
2286
2296
|
type: 'image';
|
|
2287
2297
|
attrs?: ImageTextNodeAttributes;
|
|
@@ -2296,7 +2306,11 @@ interface CodeBlockTextNode extends TextNode {
|
|
|
2296
2306
|
}
|
|
2297
2307
|
interface LatexTextNode extends TextNode {
|
|
2298
2308
|
type: 'latex';
|
|
2299
|
-
attrs?:
|
|
2309
|
+
attrs?: LatexTextNodeAttributes;
|
|
2310
|
+
}
|
|
2311
|
+
interface ListTextNode extends TextNode {
|
|
2312
|
+
type: 'noBulletList' | 'bulletList' | 'orderedList' | 'orderedListRoman' | 'orderedListRomanLower' | 'letteredList' | 'letteredListLower';
|
|
2313
|
+
attrs?: ListTextNodeAttributes;
|
|
2300
2314
|
}
|
|
2301
2315
|
interface TextNodeAttibutes {
|
|
2302
2316
|
section: string;
|
|
@@ -2304,14 +2318,20 @@ interface TextNodeAttibutes {
|
|
|
2304
2318
|
interface HeadingTextNodeAttributes extends TextNodeAttibutes {
|
|
2305
2319
|
level: number;
|
|
2306
2320
|
}
|
|
2321
|
+
interface TaskItemTextNodeAttributes extends TextNodeAttibutes {
|
|
2322
|
+
checked: boolean;
|
|
2323
|
+
}
|
|
2307
2324
|
interface ImageTextNodeAttributes extends TextNodeAttibutes, MediaAttributes {
|
|
2308
2325
|
}
|
|
2309
2326
|
interface CodeBlockTextNodeAttributes extends TextNodeAttibutes {
|
|
2310
2327
|
language: string;
|
|
2311
2328
|
}
|
|
2312
|
-
interface
|
|
2329
|
+
interface LatexTextNodeAttributes extends TextNodeAttibutes {
|
|
2313
2330
|
formula: string;
|
|
2314
2331
|
}
|
|
2332
|
+
interface ListTextNodeAttributes extends TextNodeAttibutes {
|
|
2333
|
+
start: number;
|
|
2334
|
+
}
|
|
2315
2335
|
interface TextMarkAttibutes {
|
|
2316
2336
|
}
|
|
2317
2337
|
interface LinkMarkAttibutes extends TextMarkAttibutes {
|
|
@@ -2711,6 +2731,8 @@ interface BitJson {
|
|
|
2711
2731
|
releaseVersion: string;
|
|
2712
2732
|
releaseKind: string;
|
|
2713
2733
|
releaseDate: string;
|
|
2734
|
+
iframeSrc: string;
|
|
2735
|
+
iframeName: string;
|
|
2714
2736
|
ageRange: number | number[];
|
|
2715
2737
|
lang: string;
|
|
2716
2738
|
language: string | string[];
|
|
@@ -2883,9 +2905,9 @@ interface BitJson {
|
|
|
2883
2905
|
platformBorderColor: string;
|
|
2884
2906
|
platformSelectionTextColor: string;
|
|
2885
2907
|
platformBaseLayerColor: string;
|
|
2886
|
-
platformMargin:
|
|
2887
|
-
platformBorderRadius:
|
|
2888
|
-
platformSelectionBorderRadius:
|
|
2908
|
+
platformMargin: number;
|
|
2909
|
+
platformBorderRadius: number;
|
|
2910
|
+
platformSelectionBorderRadius: number;
|
|
2889
2911
|
platformNeedsShadow: boolean;
|
|
2890
2912
|
productId: string | string[];
|
|
2891
2913
|
product: string;
|
|
@@ -3309,6 +3331,8 @@ interface Bit {
|
|
|
3309
3331
|
releaseVersion?: Property;
|
|
3310
3332
|
releaseKind?: Property;
|
|
3311
3333
|
releaseDate?: Property;
|
|
3334
|
+
iframeSrc?: Property;
|
|
3335
|
+
iframeName?: Property;
|
|
3312
3336
|
ageRange?: Property;
|
|
3313
3337
|
lang?: Property;
|
|
3314
3338
|
language?: Property;
|
|
@@ -3851,6 +3875,8 @@ declare const NodeType: Readonly<{
|
|
|
3851
3875
|
iconValue: "iconValue";
|
|
3852
3876
|
id: "id";
|
|
3853
3877
|
idValue: "idValue";
|
|
3878
|
+
iframeSrc: "iframeSrc";
|
|
3879
|
+
iframeName: "iframeName";
|
|
3854
3880
|
image: "image";
|
|
3855
3881
|
imageFirst: "imageFirst";
|
|
3856
3882
|
imageFirstValue: "imageFirstValue";
|
|
@@ -4523,6 +4549,8 @@ declare const NodeType: Readonly<{
|
|
|
4523
4549
|
iconValue: "iconValue";
|
|
4524
4550
|
id: "id";
|
|
4525
4551
|
idValue: "idValue";
|
|
4552
|
+
iframeSrc: "iframeSrc";
|
|
4553
|
+
iframeName: "iframeName";
|
|
4526
4554
|
image: "image";
|
|
4527
4555
|
imageFirst: "imageFirst";
|
|
4528
4556
|
imageFirstValue: "imageFirstValue";
|
|
@@ -5831,6 +5859,8 @@ declare class Builder extends BaseBuilder {
|
|
|
5831
5859
|
releaseVersion?: string;
|
|
5832
5860
|
releaseKind?: string;
|
|
5833
5861
|
releaseDate?: string;
|
|
5862
|
+
iframeSrc?: string;
|
|
5863
|
+
iframeName?: string;
|
|
5834
5864
|
ageRange?: number | number[];
|
|
5835
5865
|
lang?: string;
|
|
5836
5866
|
language?: string | string[];
|
|
@@ -6008,9 +6038,9 @@ declare class Builder extends BaseBuilder {
|
|
|
6008
6038
|
platformBorderColor?: string;
|
|
6009
6039
|
platformSelectionTextColor?: string;
|
|
6010
6040
|
platformBaseLayerColor?: string;
|
|
6011
|
-
platformMargin?:
|
|
6012
|
-
platformBorderRadius?:
|
|
6013
|
-
platformSelectionBorderRadius?:
|
|
6041
|
+
platformMargin?: number;
|
|
6042
|
+
platformBorderRadius?: number;
|
|
6043
|
+
platformSelectionBorderRadius?: number;
|
|
6014
6044
|
platformNeedsShadow?: boolean;
|
|
6015
6045
|
productId?: string | string[];
|
|
6016
6046
|
product?: string | string[];
|
|
@@ -8609,4 +8639,4 @@ declare class JsonFileGenerator implements Generator<BitmarkAst> {
|
|
|
8609
8639
|
generateSync(_ast: BitmarkAst): void;
|
|
8610
8640
|
}
|
|
8611
8641
|
|
|
8612
|
-
export { type AppLinkResourceJson, type AppLinkResourceWrapperJson, type ArticleResourceJson, type ArticleResourceWrapperJson, Ast, type AstWalkCallbacks, type AudioEmbedResourceJson, type AudioEmbedResourceWrapperJson, type AudioLinkResourceJson, type AudioLinkResourceWrapperJson, type AudioResourceJson, type AudioResourceWrapperJson, type Bit, type BitJson, BitType, type BitTypeType, type BitWrapperJson, type BitmarkAst, BitmarkFileGenerator, BitmarkGenerator, type BitmarkOptions, BitmarkParser, BitmarkParserGenerator, BitmarkParserType, type BitmarkParserTypeType, BitmarkStringGenerator, BitmarkVersion, type BitmarkVersionType, type Body, type BodyBitJson, type BodyBitsJson, type BodyPart, BodyTextFormat, type BodyTextFormatType, type BookJson, type BookReferenceJson, type BotResponseJson, type BreakscapeOptions, type BreakscapedString, Builder, type CardBit, type CardNode, CardSetVersion, type CardSetVersionType, type ChoiceJson, type ConvertOptions, type ConvertTextOptions, type CreateAstOptions, type DefinitionListItemJson, type DocumentDownloadResourceJson, type DocumentDownloadResourceWrapperJson, type DocumentEmbedResourceJson, type DocumentEmbedResourceWrapperJson, type DocumentLinkResourceJson, type DocumentLinkResourceWrapperJson, type DocumentResourceJson, type DocumentResourceWrapperJson, type Example, type ExampleJson, type ExtraProperties, type FeedbackChoiceJson, type FeedbackJson, type FeedbackReasonJson, type FileOptions, FileWriter, type FlashcardJson, type Footer, type GapJson, type Generator, type GroupTagJson, type HeadingJson, type HighlightJson, type HighlightTextJson, type ImageLinkResourceJson, type ImageLinkResourceWrapperJson, type ImageResourceJson, type ImageResourceWrapperJson, type ImageSourceJson, InfoFormat, type InfoFormatType, type InfoOptions, InfoType, type InfoTypeType, type IngredientJson, Input, type InputType, JsonFileGenerator, JsonGenerator, type JsonOptions, JsonParser, JsonStringGenerator, type ListItemJson, type MarkConfigJson, type MarkJson, type MatrixCellJson, type MatrixJson, type Node, type NodeInfo, NodeType, type NodeTypeType, Output, type OutputType, type PairJson, type ParserJson, type PersonJson, type UpgradeOptions as PrettifyOptions, type PronunciationTableCellJson, type PronunciationTableJson, type Property, type QuestionJson, type QuizJson, type RatingLevelStartEndJson, ResourceBuilder, type ResourceDataJson, type ResourceJson, type ResourceTypeType, type ResourceWrapperJson, type ResponseJson, type SelectJson, type SelectOptionJson, type ServingsJson, type StatementJson, type StillImageFilmEmbedResourceJson, type StillImageFilmEmbedResourceWrapperJson, type StillImageFilmLinkResourceJson, type StillImageFilmLinkResourceWrapperJson, type StillImageFilmResourceJson, type StillImageFilmResourceWrapperJson, StreamWriter, StringWriter, type TableCellJson, type TableExtendedJson, type TableJson, type TableRowJson, type TableSectionJson, type TechnicalTermJson, type JsonText as Text, type TextAndIconJson, type TextAst, type TextJsonOptions, type UnbreakscapeOptions, type UpgradeOptions, type VideoEmbedResourceJson, type VideoEmbedResourceWrapperJson, type VideoLinkResourceJson, type VideoLinkResourceWrapperJson, type VideoResourceJson, type VideoResourceWrapperJson, type WebsiteLinkResourceJson, type WebsiteLinkResourceWrapperJson, type Writer, parse as bitmarkTextParse };
|
|
8642
|
+
export { type AppLinkResourceJson, type AppLinkResourceWrapperJson, type ArticleResourceJson, type ArticleResourceWrapperJson, Ast, type AstWalkCallbacks, type AudioEmbedResourceJson, type AudioEmbedResourceWrapperJson, type AudioLinkResourceJson, type AudioLinkResourceWrapperJson, type AudioResourceJson, type AudioResourceWrapperJson, type Bit, type BitJson, BitType, type BitTypeType, type BitWrapperJson, type BitmarkAst, BitmarkFileGenerator, BitmarkGenerator, type BitmarkOptions, BitmarkParser, BitmarkParserGenerator, BitmarkParserType, type BitmarkParserTypeType, BitmarkStringGenerator, BitmarkVersion, type BitmarkVersionType, type Body, type BodyBitJson, type BodyBitsJson, type BodyPart, BodyTextFormat, type BodyTextFormatType, type BookJson, type BookReferenceJson, type BotResponseJson, type BreakscapeOptions, type BreakscapedString, Builder, type CardBit, type CardNode, CardSetVersion, type CardSetVersionType, type ChoiceJson, type CodeBlockTextNode, type CodeBlockTextNodeAttributes, type CommentMark, type ConvertOptions, type ConvertTextOptions, type CreateAstOptions, type DefinitionListItemJson, type DocumentDownloadResourceJson, type DocumentDownloadResourceWrapperJson, type DocumentEmbedResourceJson, type DocumentEmbedResourceWrapperJson, type DocumentLinkResourceJson, type DocumentLinkResourceWrapperJson, type DocumentResourceJson, type DocumentResourceWrapperJson, type Example, type ExampleJson, type ExtRefMark, type ExtRefMarkAttibutes, type ExtraProperties, type FeedbackChoiceJson, type FeedbackJson, type FeedbackReasonJson, type FileOptions, FileWriter, type FlashcardJson, type Footer, type FootnoteAttibutes, type FootnoteMark, type GapJson, type Generator, type GroupTagJson, type HeadingJson, type HeadingTextNode, type HeadingTextNodeAttributes, type HighlightJson, type HighlightTextJson, type ImageInlineTextNode, type ImageLinkResourceJson, type ImageLinkResourceWrapperJson, type ImageResourceJson, type ImageResourceWrapperJson, type ImageSourceJson, type ImageTextNode, type ImageTextNodeAttributes, InfoFormat, type InfoFormatType, type InfoOptions, InfoType, type InfoTypeType, type IngredientJson, Input, type InputType, JsonFileGenerator, JsonGenerator, type JsonOptions, JsonParser, JsonStringGenerator, type LatexTextNode, type LatexTextNodeAttributes, type LinkMark, type LinkMarkAttibutes, type ListItemJson, type ListTextNode, type ListTextNodeAttributes, type MarkConfigJson, type MarkJson, type MatrixCellJson, type MatrixJson, type MediaAttributes, type Node, type NodeInfo, NodeType, type NodeTypeType, Output, type OutputType, type PairJson, type ParserJson, type PersonJson, type UpgradeOptions as PrettifyOptions, type PronunciationTableCellJson, type PronunciationTableJson, type Property, type QuestionJson, type QuizJson, type RatingLevelStartEndJson, type RefMark, type RefMarkAttibutes, ResourceBuilder, type ResourceDataJson, type ResourceJson, type ResourceTypeType, type ResourceWrapperJson, type ResponseJson, type SectionTextNode, type SelectJson, type SelectOptionJson, type ServingsJson, type StatementJson, type StillImageFilmEmbedResourceJson, type StillImageFilmEmbedResourceWrapperJson, type StillImageFilmLinkResourceJson, type StillImageFilmLinkResourceWrapperJson, type StillImageFilmResourceJson, type StillImageFilmResourceWrapperJson, StreamWriter, StringWriter, type SymbolMark, type TableCellJson, type TableExtendedJson, type TableJson, type TableRowJson, type TableSectionJson, type TaskItemTextNode, type TaskItemTextNodeAttributes, type TechnicalTermJson, type JsonText as Text, type TextAndIconJson, type TextAst, type TextJsonOptions, type TextMark, type TextMarkAttibutes, TextMarkType, type TextMarkTypeType, type TextNode, type TextNodeAttibutes, TextNodeType, type TextNodeTypeType, type UnbreakscapeOptions, type UpgradeOptions, type VideoEmbedResourceJson, type VideoEmbedResourceWrapperJson, type VideoLinkResourceJson, type VideoLinkResourceWrapperJson, type VideoResourceJson, type VideoResourceWrapperJson, type WebsiteLinkResourceJson, type WebsiteLinkResourceWrapperJson, type Writer, type XRefMark, type XRefMarkAttibutes, parse as bitmarkTextParse };
|
package/dist/index.js
CHANGED
|
@@ -393,6 +393,7 @@ var BitType = superenum({
|
|
|
393
393
|
multipleResponse: "multiple-response",
|
|
394
394
|
multipleResponse1: "multiple-response-1",
|
|
395
395
|
newspaperArticle: "newspaper-article",
|
|
396
|
+
nonProductionPrototypeIframe: "non-production-prototype-iframe",
|
|
396
397
|
note: "note",
|
|
397
398
|
noteAi: "note-ai",
|
|
398
399
|
noteAlt: "note-alt",
|
|
@@ -1221,6 +1222,8 @@ var propertyKeys = {
|
|
|
1221
1222
|
property_icon: "@icon",
|
|
1222
1223
|
property_iconTag: "@iconTag",
|
|
1223
1224
|
property_id: "@id",
|
|
1225
|
+
property_iframeSrc: "@iframeSrc",
|
|
1226
|
+
property_iframeName: "@iframeName",
|
|
1224
1227
|
property_imageFirst: "@imageFirst",
|
|
1225
1228
|
property_imageSource: "@imageSource",
|
|
1226
1229
|
property_index: "@index",
|
|
@@ -3554,17 +3557,17 @@ var GROUPS = {
|
|
|
3554
3557
|
{
|
|
3555
3558
|
key: ConfigKey.property_platformMargin,
|
|
3556
3559
|
description: "The platform margin",
|
|
3557
|
-
format: TagFormat.
|
|
3560
|
+
format: TagFormat.number
|
|
3558
3561
|
},
|
|
3559
3562
|
{
|
|
3560
3563
|
key: ConfigKey.property_platformBorderRadius,
|
|
3561
3564
|
description: "The platform border radius",
|
|
3562
|
-
format: TagFormat.
|
|
3565
|
+
format: TagFormat.number
|
|
3563
3566
|
},
|
|
3564
3567
|
{
|
|
3565
3568
|
key: ConfigKey.property_platformSelectionBorderRadius,
|
|
3566
3569
|
description: "The platform selection border radius",
|
|
3567
|
-
format: TagFormat.
|
|
3570
|
+
format: TagFormat.number
|
|
3568
3571
|
},
|
|
3569
3572
|
{
|
|
3570
3573
|
key: ConfigKey.property_platformNeedsShadow,
|
|
@@ -8679,6 +8682,10 @@ var BITS = {
|
|
|
8679
8682
|
}
|
|
8680
8683
|
],
|
|
8681
8684
|
maxCount: 1
|
|
8685
|
+
},
|
|
8686
|
+
{
|
|
8687
|
+
key: ConfigKey.group_platformStylesCommon,
|
|
8688
|
+
description: "Common platform styles"
|
|
8682
8689
|
}
|
|
8683
8690
|
]
|
|
8684
8691
|
},
|
|
@@ -9139,6 +9146,7 @@ var BITS = {
|
|
|
9139
9146
|
key: ConfigKey.property_tableHeaderWhitespaceNoWrap,
|
|
9140
9147
|
description: "No wrap for table header whitespace, used to prevent header text wrapping",
|
|
9141
9148
|
format: TagFormat.boolean
|
|
9149
|
+
// defaultValue: 'false',
|
|
9142
9150
|
},
|
|
9143
9151
|
{
|
|
9144
9152
|
key: ConfigKey.property_tableSearch,
|
|
@@ -9171,7 +9179,7 @@ var BITS = {
|
|
|
9171
9179
|
key: ConfigKey.property_tableWhitespaceNoWrap,
|
|
9172
9180
|
description: "No wrap for table whitespace, used to prevent text wrapping in table cells",
|
|
9173
9181
|
format: TagFormat.boolean
|
|
9174
|
-
// defaultValue: '
|
|
9182
|
+
// defaultValue: 'false',
|
|
9175
9183
|
},
|
|
9176
9184
|
{
|
|
9177
9185
|
key: ConfigKey.property_tableAutoWidth,
|
|
@@ -9837,6 +9845,22 @@ var BITS = {
|
|
|
9837
9845
|
}
|
|
9838
9846
|
],
|
|
9839
9847
|
resourceAttachmentAllowed: false
|
|
9848
|
+
},
|
|
9849
|
+
[BitType.nonProductionPrototypeIframe]: {
|
|
9850
|
+
since: "4.20.0",
|
|
9851
|
+
baseBitType: BitType._standard,
|
|
9852
|
+
description: "A non-production prototype iframe bit, used to embed prototype iframes",
|
|
9853
|
+
tags: [
|
|
9854
|
+
{
|
|
9855
|
+
key: ConfigKey.property_iframeSrc,
|
|
9856
|
+
description: "Iframe source URL, used to define the source of the iframe"
|
|
9857
|
+
},
|
|
9858
|
+
{
|
|
9859
|
+
key: ConfigKey.property_iframeName,
|
|
9860
|
+
description: "Iframe name, used to define the name of the iframe",
|
|
9861
|
+
minCount: 1
|
|
9862
|
+
}
|
|
9863
|
+
]
|
|
9840
9864
|
}
|
|
9841
9865
|
};
|
|
9842
9866
|
|
|
@@ -10179,7 +10203,7 @@ var instance2 = new Config();
|
|
|
10179
10203
|
// src/generated/package_info.ts
|
|
10180
10204
|
var PACKAGE_INFO = {
|
|
10181
10205
|
"name": "@gmb/bitmark-parser-generator",
|
|
10182
|
-
"version": "4.
|
|
10206
|
+
"version": "4.20.0",
|
|
10183
10207
|
"author": "Get More Brain Ltd",
|
|
10184
10208
|
"license": "ISC",
|
|
10185
10209
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10773,6 +10797,8 @@ var NodeType = superenum20({
|
|
|
10773
10797
|
iconValue: "iconValue",
|
|
10774
10798
|
id: "id",
|
|
10775
10799
|
idValue: "idValue",
|
|
10800
|
+
iframeSrc: "iframeSrc",
|
|
10801
|
+
iframeName: "iframeName",
|
|
10776
10802
|
image: "image",
|
|
10777
10803
|
imageFirst: "imageFirst",
|
|
10778
10804
|
imageFirstValue: "imageFirstValue",
|
|
@@ -23762,6 +23788,13 @@ var Builder = class extends BaseBuilder {
|
|
|
23762
23788
|
data.releaseDate,
|
|
23763
23789
|
options
|
|
23764
23790
|
),
|
|
23791
|
+
iframeSrc: this.toAstProperty(bitType, ConfigKey.property_iframeSrc, data.iframeSrc, options),
|
|
23792
|
+
iframeName: this.toAstProperty(
|
|
23793
|
+
bitType,
|
|
23794
|
+
ConfigKey.property_iframeName,
|
|
23795
|
+
data.iframeName,
|
|
23796
|
+
options
|
|
23797
|
+
),
|
|
23765
23798
|
book: this.buildBooks(context, data.book),
|
|
23766
23799
|
ageRange: this.toAstProperty(bitType, ConfigKey.property_ageRange, data.ageRange, options),
|
|
23767
23800
|
lang: this.toAstProperty(bitType, ConfigKey.property_lang, data.lang, options),
|
|
@@ -30029,7 +30062,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30029
30062
|
}
|
|
30030
30063
|
if (instance2.isOfBitType(bitType, BitType.table)) {
|
|
30031
30064
|
if (bitJson.tableFixedHeader == null) bitJson.tableFixedHeader = false;
|
|
30032
|
-
if (bitJson.tableHeaderWhitespaceNoWrap == null)
|
|
30065
|
+
if (bitJson.tableHeaderWhitespaceNoWrap == null) {
|
|
30066
|
+
bitJson.tableHeaderWhitespaceNoWrap = false;
|
|
30067
|
+
}
|
|
30033
30068
|
if (bitJson.tableSearch == null) bitJson.tableSearch = false;
|
|
30034
30069
|
if (bitJson.tableSort == null) bitJson.tableSort = false;
|
|
30035
30070
|
if (bitJson.tablePagination == null) bitJson.tablePagination = false;
|
|
@@ -39533,6 +39568,8 @@ export {
|
|
|
39533
39568
|
ResourceBuilder,
|
|
39534
39569
|
StreamWriter,
|
|
39535
39570
|
StringWriter,
|
|
39571
|
+
TextMarkType,
|
|
39572
|
+
TextNodeType,
|
|
39536
39573
|
parse as bitmarkTextParse
|
|
39537
39574
|
};
|
|
39538
39575
|
//# sourceMappingURL=index.js.map
|