@rankingcoach/vanguard 1.3.1 → 1.4.2
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/index-AMPMMidnightParser.js +1 -1
- package/dist/index-AMPMParser.js +1 -1
- package/dist/index-Accordion2.js +1 -1
- package/dist/index-AccordionDetails.js +1 -1
- package/dist/index-AccordionSummary.js +1 -1
- package/dist/index-AiGlow.js +1 -1
- package/dist/index-AppBar2.js +1 -1
- package/dist/index-Autocomplete.js +2 -2
- package/dist/index-Autocomplete2.js +1 -1
- package/dist/index-Backdrop.js +1 -1
- package/dist/index-BasePopper.js +1 -1
- package/dist/index-Box.js +1 -1
- package/dist/index-Button2.js +1 -1
- package/dist/index-ButtonBase.js +1 -1
- package/dist/index-CSSTransition.js +1 -1
- package/dist/index-Calendar.js +20 -20
- package/dist/index-CalendarPicker.js +1 -1
- package/dist/index-Chip.js +1 -1
- package/dist/index-ClickAwayListener.js +1 -1
- package/dist/index-ClockPicker.js +1 -1
- package/dist/index-Collapse2.js +1 -1
- package/dist/index-CreditCard.js +1 -1
- package/dist/index-DateInput.js +1 -1
- package/dist/index-DateParser.js +1 -1
- package/dist/index-DatePicker2.js +1 -1
- package/dist/index-DateRange2.js +7 -7
- package/dist/index-DateRangePicker2.js +1 -1
- package/dist/index-DayCell.js +5 -5
- package/dist/index-DayOfYearParser.js +1 -1
- package/dist/index-DayParser.js +1 -1
- package/dist/index-DayPeriodParser.js +1 -1
- package/dist/index-DefaultPropsProvider.js +1 -1
- package/dist/index-DefaultPropsProvider2.js +1 -1
- package/dist/index-DefinedRange.js +1 -1
- package/dist/index-DesktopDatePicker.js +1 -1
- package/dist/index-Dialog.js +1 -1
- package/dist/index-DialogActions.js +1 -1
- package/dist/index-DialogContent.js +1 -1
- package/dist/index-Drawer.js +1 -1
- package/dist/index-Drawer2.js +1 -1
- package/dist/index-EraParser.js +1 -1
- package/dist/index-ExtendedYearParser.js +1 -1
- package/dist/index-Fade.js +1 -1
- package/dist/index-FilledInput.js +1 -1
- package/dist/index-FocusTrap.js +1 -1
- package/dist/index-FormControl2.js +1 -1
- package/dist/index-FormHelperText.js +1 -1
- package/dist/index-FormLabel.js +1 -1
- package/dist/index-FractionOfSecondParser.js +1 -1
- package/dist/index-GlobalStyles.js +1 -1
- package/dist/index-GlobalStyles2.js +1 -1
- package/dist/index-GlobalStyles3.js +1 -1
- package/dist/index-Grid.js +1 -1
- package/dist/index-Grow.js +1 -1
- package/dist/index-Header.js +1 -1
- package/dist/index-Hour0To11Parser.js +1 -1
- package/dist/index-Hour0to23Parser.js +1 -1
- package/dist/index-Hour1To24Parser.js +1 -1
- package/dist/index-Hour1to12Parser.js +1 -1
- package/dist/index-ISODayParser.js +1 -1
- package/dist/index-ISOTimezoneParser.js +1 -1
- package/dist/index-ISOTimezoneWithZParser.js +1 -1
- package/dist/index-ISOWeekParser.js +1 -1
- package/dist/index-ISOWeekYearParser.js +1 -1
- package/dist/index-IconButton2.js +1 -1
- package/dist/index-Input2.js +1 -1
- package/dist/index-InputAdornment.js +1 -1
- package/dist/index-InputBase.js +155 -150
- package/dist/index-InputBase2.js +1 -1
- package/dist/index-InputLabel.js +1 -1
- package/dist/index-LinearProgress.js +1 -1
- package/dist/index-List2.js +1 -1
- package/dist/index-ListSubheader.js +1 -1
- package/dist/index-LocalDayParser.js +1 -1
- package/dist/index-LocalWeekParser.js +1 -1
- package/dist/index-LocalWeekYearParser.js +1 -1
- package/dist/index-LocalizationProvider.js +1 -1
- package/dist/index-LoginButton.js +1 -1
- package/dist/index-Menu.js +1 -1
- package/dist/index-MenuItem.js +1 -1
- package/dist/index-MenuList.js +1 -1
- package/dist/index-MinuteParser.js +1 -1
- package/dist/index-MobileDatePicker.js +1 -1
- package/dist/index-Modal2.js +1 -1
- package/dist/index-Month.js +9 -9
- package/dist/index-MonthParser.js +1 -1
- package/dist/index-MonthPicker.js +1 -1
- package/dist/index-NativeSelectInput.js +1 -1
- package/dist/index-NotchedOutline.js +1 -1
- package/dist/index-OutlinedInput.js +1 -1
- package/dist/index-Paper.js +1 -1
- package/dist/index-Parser2.js +315 -255
- package/dist/index-Parser3.js +129 -2
- package/dist/index-PickersDay.js +1 -1
- package/dist/index-Popover2.js +1 -1
- package/dist/index-Popper.js +1 -1
- package/dist/index-Portal.js +1 -1
- package/dist/index-PropTypes.js +1 -1
- package/dist/index-QuarterParser.js +1 -1
- package/dist/index-QuoteContainer.js +1 -1
- package/dist/index-Ripple.js +1 -1
- package/dist/index-RtlProvider.js +1 -1
- package/dist/index-ScrollbarSize.js +1 -1
- package/dist/index-SecondParser.js +1 -1
- package/dist/index-Select2.js +1 -1
- package/dist/index-SelectInput2.js +1 -1
- package/dist/index-Skeleton2.js +1 -1
- package/dist/index-Slide.js +1 -1
- package/dist/index-Slider2.js +1 -1
- package/dist/index-SliderValueLabel.js +1 -1
- package/dist/index-Snackbar2.js +1 -1
- package/dist/index-SnackbarContent.js +1 -1
- package/dist/index-StandAloneLocalDayParser.js +1 -1
- package/dist/index-StandAloneMonthParser.js +1 -1
- package/dist/index-StandAloneQuarterParser.js +1 -1
- package/dist/index-StyledEngineProvider.js +1 -1
- package/dist/index-StyledSVG2.js +1 -1
- package/dist/index-SvgIcon.js +1 -1
- package/dist/index-Tab2.js +1 -1
- package/dist/index-TabScrollButton.js +1 -1
- package/dist/index-Tabs2.js +1 -1
- package/dist/index-Text.js +18 -18
- package/dist/index-TextField.js +1 -1
- package/dist/index-TextHighlighted.js +23 -19
- package/dist/index-TextareaAutosize.js +1 -1
- package/dist/index-TimestampMillisecondsParser.js +1 -1
- package/dist/index-TimestampSecondsParser.js +1 -1
- package/dist/index-ToggleButton2.js +1 -1
- package/dist/index-ToggleButtonGroup2.js +1 -1
- package/dist/index-Tokenizer.js +411 -334
- package/dist/index-Tokenizer2.js +139 -2
- package/dist/index-Toolbar2.js +1 -1
- package/dist/index-Tooltip.js +1 -1
- package/dist/index-TouchRipple.js +1 -1
- package/dist/index-Transition.js +1 -1
- package/dist/index-TransitionGroup.js +1 -1
- package/dist/index-Typography.js +1 -1
- package/dist/index-YearParser.js +1 -1
- package/dist/index-YearPicker.js +1 -1
- package/dist/index-_virtual12.js +1 -1
- package/dist/index-_virtual15.js +2 -5
- package/dist/index-_virtual16.js +5 -3
- package/dist/index-_virtual17.js +5 -2
- package/dist/index-_virtual18.js +2 -7
- package/dist/index-_virtual19.js +5 -2
- package/dist/index-_virtual2.js +5 -5
- package/dist/index-_virtual20.js +2 -5
- package/dist/index-_virtual23.js +1 -1
- package/dist/index-_virtual3.js +4 -4
- package/dist/index-_virtual34.js +2 -2
- package/dist/index-_virtual35.js +2 -4
- package/dist/index-_virtual36.js +1 -1
- package/dist/index-_virtual37.js +1 -1
- package/dist/index-_virtual38.js +1 -1
- package/dist/index-_virtual39.js +1 -1
- package/dist/index-_virtual4.js +5 -5
- package/dist/index-_virtual40.js +1 -1
- package/dist/index-_virtual41.js +4 -2
- package/dist/index-_virtual42.js +2 -4
- package/dist/index-_virtual43.js +1 -1
- package/dist/index-_virtual44.js +1 -1
- package/dist/index-_virtual45.js +1 -1
- package/dist/index-_virtual46.js +1 -1
- package/dist/index-_virtual47.js +1 -1
- package/dist/index-_virtual48.js +1 -1
- package/dist/index-_virtual49.js +1 -1
- package/dist/index-_virtual50.js +1 -1
- package/dist/index-_virtual51.js +1 -1
- package/dist/index-_virtual52.js +1 -1
- package/dist/index-_virtual53.js +1 -1
- package/dist/index-_virtual54.js +1 -1
- package/dist/index-_virtual55.js +1 -1
- package/dist/index-_virtual56.js +1 -1
- package/dist/index-_virtual57.js +1 -1
- package/dist/index-_virtual58.js +4 -2
- package/dist/index-_virtual60.js +2 -4
- package/dist/index-_virtual61.js +1 -1
- package/dist/index-_virtual62.js +4 -2
- package/dist/index-_virtual63.js +2 -2
- package/dist/index-_virtual75.js +1 -1
- package/dist/index-_virtual77.js +4 -2
- package/dist/index-_virtual78.js +1 -1
- package/dist/index-_virtual79.js +1 -1
- package/dist/index-_virtual80.js +1 -1
- package/dist/index-_virtual81.js +1 -1
- package/dist/index-_virtual82.js +1 -1
- package/dist/index-_virtual83.js +1 -1
- package/dist/index-_virtual84.js +1 -1
- package/dist/index-_virtual85.js +2 -4
- package/dist/index-_virtual86.js +2 -2
- package/dist/index-applyInternationalSeparatorStyle.js +1 -1
- package/dist/index-attributes-to-props.js +1 -1
- package/dist/index-cjs.js +19 -75
- package/dist/index-colorManipulator3.js +2 -2
- package/dist/index-constants.js +38 -8
- package/dist/index-constants2.js +8 -38
- package/dist/index-createExtensionPattern.js +1 -1
- package/dist/index-createStyled2.js +6 -6
- package/dist/index-decode-data-html.js +5 -11
- package/dist/index-decode-data-xml.js +5 -11
- package/dist/index-decode.js +263 -216
- package/dist/index-decode_codepoint.js +43 -53
- package/dist/index-defaultRanges.js +10 -10
- package/dist/index-dist4.js +1 -1
- package/dist/index-dist5.js +1 -1
- package/dist/index-elementAcceptingRef.js +1 -1
- package/dist/index-elementTypeAcceptingRef.js +1 -1
- package/dist/index-emotion-cache.browser.esm.js +2 -2
- package/dist/index-escape.js +43 -48
- package/dist/index-esm2.js +108 -129
- package/dist/index-esm3.js +12 -301
- package/dist/index-esm4.js +135 -17
- package/dist/index-esm5.js +303 -0
- package/dist/index-esm6.js +21 -0
- package/dist/index-esm7.js +102 -0
- package/dist/index-exenv.js +1 -1
- package/dist/index-extractCountryCallingCode.js +1 -1
- package/dist/index-extractPhoneContext.js +1 -1
- package/dist/index-foreignNames.js +101 -108
- package/dist/index-helpers3.js +1 -1
- package/dist/index-http.store.js +1 -1
- package/dist/index-isViablePhoneNumber.js +1 -1
- package/dist/index-lib.js +2 -2
- package/dist/index-lib2.js +424 -111
- package/dist/index-lib3.js +14 -433
- package/dist/index-lib4.js +120 -14
- package/dist/index-lib5.js +10 -69
- package/dist/index-node.js +1 -1
- package/dist/index-node2.js +1 -1
- package/dist/index-parse2.js +1 -1
- package/dist/index-parse3.js +122 -20
- package/dist/index-refType.js +1 -1
- package/dist/index-responsivePropType.js +1 -1
- package/dist/index-sanitize-html.js +91 -48
- package/dist/index-stripIddPrefix.js +1 -1
- package/dist/index-style-to-object.js +1 -1
- package/dist/index-text-animate-words-style.js +12 -12
- package/dist/index-tiny-emitter.js +1 -1
- package/dist/index-useRteAiAssistant-selection.js +5 -5
- package/dist/index-useThemeWithoutDefault3.js +1 -1
- package/dist/index-utilities.js +1 -1
- package/dist/index-utilities2.js +1 -1
- package/dist/index-utils2.js +1 -1
- package/dist/index-utils6.js +7 -7
- package/dist/index.js +428 -426
- package/dist/types/core/Form/stories/SelectChangeDetection.story.d.ts +2 -0
- package/dist/types/core/Form/stories/bootstrap/form.test.slice.d.ts +58 -17
- package/dist/types/core/RichTextEditor/stories/RichTextEditorStory.story.d.ts +2 -0
- package/dist/types/core/RichTextEditor/stories/RichTextEditorWithXSSAttackStory.story.d.ts +2 -0
- package/dist/types/core/RichTextEditor/stories/_RichTextEditor.default.d.ts +4 -0
- package/dist/types/core/RichTextEditor/stories/bootstrap/richtexteditor.test.slice.d.ts +1 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedStory2.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedWithEmphasisStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedWithXSSAttackStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/_TextHighlighted.default.d.ts +7 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightLengthExceededTest.story.d.ts +2 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightUrlTest.story.d.ts +2 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightWordsTest.story.d.ts +2 -0
- package/dist/types/helpers/sanitize-html.d.ts +18 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +23637 -22231
- package/package.json +5 -2
- package/scripts/check-meta-coverage.js +117 -0
- package/scripts/generate-exports-props.js +855 -0
- package/dist/index-Parser5.js +0 -131
- package/dist/index-Tokenizer3.js +0 -141
- package/dist/index-_virtual87.js +0 -4
- package/dist/index-_virtual88.js +0 -4
- package/dist/index-_virtual89.js +0 -4
- package/dist/index-_virtual90.js +0 -4
- package/dist/index-_virtual91.js +0 -4
- package/dist/index-at-rule.js +0 -22
- package/dist/index-cjs2.js +0 -23
- package/dist/index-comment.js +0 -16
- package/dist/index-container.js +0 -223
- package/dist/index-css-syntax-error.js +0 -56
- package/dist/index-declaration.js +0 -19
- package/dist/index-decode-data-html2.js +0 -4
- package/dist/index-decode-data-xml2.js +0 -4
- package/dist/index-decode2.js +0 -4
- package/dist/index-decode_codepoint2.js +0 -4
- package/dist/index-document3.js +0 -23
- package/dist/index-encode-html.js +0 -15
- package/dist/index-encode-html2.js +0 -4
- package/dist/index-encode.js +0 -49
- package/dist/index-encode2.js +0 -4
- package/dist/index-escape-string-regexp.js +0 -11
- package/dist/index-escape2.js +0 -4
- package/dist/index-feeds.js +0 -92
- package/dist/index-feeds2.js +0 -4
- package/dist/index-foreignNames2.js +0 -4
- package/dist/index-fromJSON.js +0 -46
- package/dist/index-helpers4.js +0 -54
- package/dist/index-helpers5.js +0 -4
- package/dist/index-input3.js +0 -139
- package/dist/index-is-plain-object.js +0 -17
- package/dist/index-is-plain-object2.js +0 -4
- package/dist/index-lazy-result.js +0 -343
- package/dist/index-legacy.js +0 -75
- package/dist/index-legacy2.js +0 -4
- package/dist/index-lib6.js +0 -13
- package/dist/index-lib7.js +0 -43
- package/dist/index-lib8.js +0 -147
- package/dist/index-lib9.js +0 -90
- package/dist/index-list3.js +0 -25
- package/dist/index-manipulation.js +0 -61
- package/dist/index-manipulation2.js +0 -4
- package/dist/index-map-generator.js +0 -171
- package/dist/index-no-work-result.js +0 -94
- package/dist/index-node4.js +0 -259
- package/dist/index-non-secure.js +0 -20
- package/dist/index-parse-srcset.js +0 -71
- package/dist/index-parse-srcset2.js +0 -4
- package/dist/index-parse4.js +0 -127
- package/dist/index-parser4.js +0 -322
- package/dist/index-picocolors.browser.js +0 -13
- package/dist/index-picocolors.browser2.js +0 -4
- package/dist/index-postcss.js +0 -46
- package/dist/index-previous-map.js +0 -92
- package/dist/index-processor.js +0 -43
- package/dist/index-querying.js +0 -63
- package/dist/index-querying2.js +0 -4
- package/dist/index-result.js +0 -30
- package/dist/index-root.js +0 -38
- package/dist/index-rule.js +0 -24
- package/dist/index-sanitize-html2.js +0 -672
- package/dist/index-stringifier.js +0 -196
- package/dist/index-stringify.js +0 -14
- package/dist/index-stringify2.js +0 -36
- package/dist/index-stringify3.js +0 -4
- package/dist/index-symbols.js +0 -8
- package/dist/index-symbols2.js +0 -4
- package/dist/index-tokenize.js +0 -114
- package/dist/index-traversal.js +0 -48
- package/dist/index-traversal2.js +0 -4
- package/dist/index-warn-once.js +0 -12
- package/dist/index-warning2.js +0 -25
- /package/dist/{index-Parser6.js → index-Parser4.js} +0 -0
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
var u, o;
|
|
2
|
-
function b() {
|
|
3
|
-
if (o) return u;
|
|
4
|
-
o = 1;
|
|
5
|
-
const w = {
|
|
6
|
-
after: `
|
|
7
|
-
`,
|
|
8
|
-
beforeClose: `
|
|
9
|
-
`,
|
|
10
|
-
beforeComment: `
|
|
11
|
-
`,
|
|
12
|
-
beforeDecl: `
|
|
13
|
-
`,
|
|
14
|
-
beforeOpen: " ",
|
|
15
|
-
beforeRule: `
|
|
16
|
-
`,
|
|
17
|
-
colon: ": ",
|
|
18
|
-
commentLeft: " ",
|
|
19
|
-
commentRight: " ",
|
|
20
|
-
emptyBody: "",
|
|
21
|
-
indent: " ",
|
|
22
|
-
semicolon: !1
|
|
23
|
-
};
|
|
24
|
-
function p(s) {
|
|
25
|
-
return s[0].toUpperCase() + s.slice(1);
|
|
26
|
-
}
|
|
27
|
-
class n {
|
|
28
|
-
constructor(e) {
|
|
29
|
-
this.builder = e;
|
|
30
|
-
}
|
|
31
|
-
atrule(e, t) {
|
|
32
|
-
let r = "@" + e.name, l = e.params ? this.rawValue(e, "params") : "";
|
|
33
|
-
if (typeof e.raws.afterName < "u" ? r += e.raws.afterName : l && (r += " "), e.nodes)
|
|
34
|
-
this.block(e, r + l);
|
|
35
|
-
else {
|
|
36
|
-
let a = (e.raws.between || "") + (t ? ";" : "");
|
|
37
|
-
this.builder(r + l + a, e);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
beforeAfter(e, t) {
|
|
41
|
-
let r;
|
|
42
|
-
e.type === "decl" ? r = this.raw(e, null, "beforeDecl") : e.type === "comment" ? r = this.raw(e, null, "beforeComment") : t === "before" ? r = this.raw(e, null, "beforeRule") : r = this.raw(e, null, "beforeClose");
|
|
43
|
-
let l = e.parent, a = 0;
|
|
44
|
-
for (; l && l.type !== "root"; )
|
|
45
|
-
a += 1, l = l.parent;
|
|
46
|
-
if (r.includes(`
|
|
47
|
-
`)) {
|
|
48
|
-
let f = this.raw(e, null, "indent");
|
|
49
|
-
if (f.length)
|
|
50
|
-
for (let i = 0; i < a; i++) r += f;
|
|
51
|
-
}
|
|
52
|
-
return r;
|
|
53
|
-
}
|
|
54
|
-
block(e, t) {
|
|
55
|
-
let r = this.raw(e, "between", "beforeOpen");
|
|
56
|
-
this.builder(t + r + "{", e, "start");
|
|
57
|
-
let l;
|
|
58
|
-
e.nodes && e.nodes.length ? (this.body(e), l = this.raw(e, "after")) : l = this.raw(e, "after", "emptyBody"), l && this.builder(l), this.builder("}", e, "end");
|
|
59
|
-
}
|
|
60
|
-
body(e) {
|
|
61
|
-
let t = e.nodes.length - 1;
|
|
62
|
-
for (; t > 0 && e.nodes[t].type === "comment"; )
|
|
63
|
-
t -= 1;
|
|
64
|
-
let r = this.raw(e, "semicolon");
|
|
65
|
-
for (let l = 0; l < e.nodes.length; l++) {
|
|
66
|
-
let a = e.nodes[l], f = this.raw(a, "before");
|
|
67
|
-
f && this.builder(f), this.stringify(a, t !== l || r);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
comment(e) {
|
|
71
|
-
let t = this.raw(e, "left", "commentLeft"), r = this.raw(e, "right", "commentRight");
|
|
72
|
-
this.builder("/*" + t + e.text + r + "*/", e);
|
|
73
|
-
}
|
|
74
|
-
decl(e, t) {
|
|
75
|
-
let r = this.raw(e, "between", "colon"), l = e.prop + r + this.rawValue(e, "value");
|
|
76
|
-
e.important && (l += e.raws.important || " !important"), t && (l += ";"), this.builder(l, e);
|
|
77
|
-
}
|
|
78
|
-
document(e) {
|
|
79
|
-
this.body(e);
|
|
80
|
-
}
|
|
81
|
-
raw(e, t, r) {
|
|
82
|
-
let l;
|
|
83
|
-
if (r || (r = t), t && (l = e.raws[t], typeof l < "u"))
|
|
84
|
-
return l;
|
|
85
|
-
let a = e.parent;
|
|
86
|
-
if (r === "before" && (!a || a.type === "root" && a.first === e || a && a.type === "document"))
|
|
87
|
-
return "";
|
|
88
|
-
if (!a) return w[r];
|
|
89
|
-
let f = e.root();
|
|
90
|
-
if (f.rawCache || (f.rawCache = {}), typeof f.rawCache[r] < "u")
|
|
91
|
-
return f.rawCache[r];
|
|
92
|
-
if (r === "before" || r === "after")
|
|
93
|
-
return this.beforeAfter(e, r);
|
|
94
|
-
{
|
|
95
|
-
let i = "raw" + p(r);
|
|
96
|
-
this[i] ? l = this[i](f, e) : f.walk((h) => {
|
|
97
|
-
if (l = h.raws[t], typeof l < "u") return !1;
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
return typeof l > "u" && (l = w[r]), f.rawCache[r] = l, l;
|
|
101
|
-
}
|
|
102
|
-
rawBeforeClose(e) {
|
|
103
|
-
let t;
|
|
104
|
-
return e.walk((r) => {
|
|
105
|
-
if (r.nodes && r.nodes.length > 0 && typeof r.raws.after < "u")
|
|
106
|
-
return t = r.raws.after, t.includes(`
|
|
107
|
-
`) && (t = t.replace(/[^\n]+$/, "")), !1;
|
|
108
|
-
}), t && (t = t.replace(/\S/g, "")), t;
|
|
109
|
-
}
|
|
110
|
-
rawBeforeComment(e, t) {
|
|
111
|
-
let r;
|
|
112
|
-
return e.walkComments((l) => {
|
|
113
|
-
if (typeof l.raws.before < "u")
|
|
114
|
-
return r = l.raws.before, r.includes(`
|
|
115
|
-
`) && (r = r.replace(/[^\n]+$/, "")), !1;
|
|
116
|
-
}), typeof r > "u" ? r = this.raw(t, null, "beforeDecl") : r && (r = r.replace(/\S/g, "")), r;
|
|
117
|
-
}
|
|
118
|
-
rawBeforeDecl(e, t) {
|
|
119
|
-
let r;
|
|
120
|
-
return e.walkDecls((l) => {
|
|
121
|
-
if (typeof l.raws.before < "u")
|
|
122
|
-
return r = l.raws.before, r.includes(`
|
|
123
|
-
`) && (r = r.replace(/[^\n]+$/, "")), !1;
|
|
124
|
-
}), typeof r > "u" ? r = this.raw(t, null, "beforeRule") : r && (r = r.replace(/\S/g, "")), r;
|
|
125
|
-
}
|
|
126
|
-
rawBeforeOpen(e) {
|
|
127
|
-
let t;
|
|
128
|
-
return e.walk((r) => {
|
|
129
|
-
if (r.type !== "decl" && (t = r.raws.between, typeof t < "u"))
|
|
130
|
-
return !1;
|
|
131
|
-
}), t;
|
|
132
|
-
}
|
|
133
|
-
rawBeforeRule(e) {
|
|
134
|
-
let t;
|
|
135
|
-
return e.walk((r) => {
|
|
136
|
-
if (r.nodes && (r.parent !== e || e.first !== r) && typeof r.raws.before < "u")
|
|
137
|
-
return t = r.raws.before, t.includes(`
|
|
138
|
-
`) && (t = t.replace(/[^\n]+$/, "")), !1;
|
|
139
|
-
}), t && (t = t.replace(/\S/g, "")), t;
|
|
140
|
-
}
|
|
141
|
-
rawColon(e) {
|
|
142
|
-
let t;
|
|
143
|
-
return e.walkDecls((r) => {
|
|
144
|
-
if (typeof r.raws.between < "u")
|
|
145
|
-
return t = r.raws.between.replace(/[^\s:]/g, ""), !1;
|
|
146
|
-
}), t;
|
|
147
|
-
}
|
|
148
|
-
rawEmptyBody(e) {
|
|
149
|
-
let t;
|
|
150
|
-
return e.walk((r) => {
|
|
151
|
-
if (r.nodes && r.nodes.length === 0 && (t = r.raws.after, typeof t < "u"))
|
|
152
|
-
return !1;
|
|
153
|
-
}), t;
|
|
154
|
-
}
|
|
155
|
-
rawIndent(e) {
|
|
156
|
-
if (e.raws.indent) return e.raws.indent;
|
|
157
|
-
let t;
|
|
158
|
-
return e.walk((r) => {
|
|
159
|
-
let l = r.parent;
|
|
160
|
-
if (l && l !== e && l.parent && l.parent === e && typeof r.raws.before < "u") {
|
|
161
|
-
let a = r.raws.before.split(`
|
|
162
|
-
`);
|
|
163
|
-
return t = a[a.length - 1], t = t.replace(/\S/g, ""), !1;
|
|
164
|
-
}
|
|
165
|
-
}), t;
|
|
166
|
-
}
|
|
167
|
-
rawSemicolon(e) {
|
|
168
|
-
let t;
|
|
169
|
-
return e.walk((r) => {
|
|
170
|
-
if (r.nodes && r.nodes.length && r.last.type === "decl" && (t = r.raws.semicolon, typeof t < "u"))
|
|
171
|
-
return !1;
|
|
172
|
-
}), t;
|
|
173
|
-
}
|
|
174
|
-
rawValue(e, t) {
|
|
175
|
-
let r = e[t], l = e.raws[t];
|
|
176
|
-
return l && l.value === r ? l.raw : r;
|
|
177
|
-
}
|
|
178
|
-
root(e) {
|
|
179
|
-
this.body(e), e.raws.after && this.builder(e.raws.after);
|
|
180
|
-
}
|
|
181
|
-
rule(e) {
|
|
182
|
-
this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(e.raws.ownSemicolon, e, "end");
|
|
183
|
-
}
|
|
184
|
-
stringify(e, t) {
|
|
185
|
-
if (!this[e.type])
|
|
186
|
-
throw new Error(
|
|
187
|
-
"Unknown AST node type " + e.type + ". Maybe you need to change PostCSS stringifier."
|
|
188
|
-
);
|
|
189
|
-
this[e.type](e, t);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return u = n, n.default = n, u;
|
|
193
|
-
}
|
|
194
|
-
export {
|
|
195
|
-
b as __require
|
|
196
|
-
};
|
package/dist/index-stringify.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __require as u } from "./index-stringifier.js";
|
|
2
|
-
var i, e;
|
|
3
|
-
function a() {
|
|
4
|
-
if (e) return i;
|
|
5
|
-
e = 1;
|
|
6
|
-
let t = u();
|
|
7
|
-
function r(n, f) {
|
|
8
|
-
new t(f).stringify(n);
|
|
9
|
-
}
|
|
10
|
-
return i = r, r.default = r, i;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
a as __require
|
|
14
|
-
};
|
package/dist/index-stringify2.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __exports as e } from "./index-stringify3.js";
|
|
2
|
-
import { __require as c } from "./index-lib.js";
|
|
3
|
-
import { __require as h } from "./index-lib8.js";
|
|
4
|
-
import { __require as y } from "./index-lib4.js";
|
|
5
|
-
var s;
|
|
6
|
-
function o() {
|
|
7
|
-
if (s) return e;
|
|
8
|
-
s = 1;
|
|
9
|
-
var _ = e && e.__importDefault || function(r) {
|
|
10
|
-
return r && r.__esModule ? r : { default: r };
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.getOuterHTML = f, e.getInnerHTML = p, e.getText = i, e.textContent = n, e.innerText = u;
|
|
13
|
-
var t = /* @__PURE__ */ c(), l = _(/* @__PURE__ */ h()), m = /* @__PURE__ */ y();
|
|
14
|
-
function f(r, a) {
|
|
15
|
-
return (0, l.default)(r, a);
|
|
16
|
-
}
|
|
17
|
-
function p(r, a) {
|
|
18
|
-
return (0, t.hasChildren)(r) ? r.children.map(function(T) {
|
|
19
|
-
return f(T, a);
|
|
20
|
-
}).join("") : "";
|
|
21
|
-
}
|
|
22
|
-
function i(r) {
|
|
23
|
-
return Array.isArray(r) ? r.map(i).join("") : (0, t.isTag)(r) ? r.name === "br" ? `
|
|
24
|
-
` : i(r.children) : (0, t.isCDATA)(r) ? i(r.children) : (0, t.isText)(r) ? r.data : "";
|
|
25
|
-
}
|
|
26
|
-
function n(r) {
|
|
27
|
-
return Array.isArray(r) ? r.map(n).join("") : (0, t.hasChildren)(r) && !(0, t.isComment)(r) ? n(r.children) : (0, t.isText)(r) ? r.data : "";
|
|
28
|
-
}
|
|
29
|
-
function u(r) {
|
|
30
|
-
return Array.isArray(r) ? r.map(u).join("") : (0, t.hasChildren)(r) && (r.type === m.ElementType.Tag || (0, t.isCDATA)(r)) ? u(r.children) : (0, t.isText)(r) ? r.data : "";
|
|
31
|
-
}
|
|
32
|
-
return e;
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
o as __require
|
|
36
|
-
};
|
package/dist/index-stringify3.js
DELETED
package/dist/index-symbols.js
DELETED
package/dist/index-symbols2.js
DELETED
package/dist/index-tokenize.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
var T, m;
|
|
2
|
-
function Z() {
|
|
3
|
-
if (m) return T;
|
|
4
|
-
m = 1;
|
|
5
|
-
const k = 39, p = 34, d = 92, w = 47, h = 10, l = 32, A = 12, C = 9, f = 13, B = 91, H = 93, q = 40, v = 41, z = 123, Q = 125, K = 59, F = 42, W = 58, Y = 64, E = /[\t\n\f\r "#'()/;[\\\]{}]/g, u = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, G = /.[\r\n"'(/\\]/, L = /[\da-f]/i;
|
|
6
|
-
return T = function(N, M = {}) {
|
|
7
|
-
let c = N.css.valueOf(), _ = M.ignoreErrors, r, g, O, e, I, o, n, a, s, U, P = c.length, t = 0, R = [], S = [];
|
|
8
|
-
function X() {
|
|
9
|
-
return t;
|
|
10
|
-
}
|
|
11
|
-
function b(i) {
|
|
12
|
-
throw N.error("Unclosed " + i, t);
|
|
13
|
-
}
|
|
14
|
-
function j() {
|
|
15
|
-
return S.length === 0 && t >= P;
|
|
16
|
-
}
|
|
17
|
-
function y(i) {
|
|
18
|
-
if (S.length) return S.pop();
|
|
19
|
-
if (t >= P) return;
|
|
20
|
-
let x = i ? i.ignoreUnclosed : !1;
|
|
21
|
-
switch (r = c.charCodeAt(t), r) {
|
|
22
|
-
case h:
|
|
23
|
-
case l:
|
|
24
|
-
case C:
|
|
25
|
-
case f:
|
|
26
|
-
case A: {
|
|
27
|
-
e = t;
|
|
28
|
-
do
|
|
29
|
-
e += 1, r = c.charCodeAt(e);
|
|
30
|
-
while (r === l || r === h || r === C || r === f || r === A);
|
|
31
|
-
o = ["space", c.slice(t, e)], t = e - 1;
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
case B:
|
|
35
|
-
case H:
|
|
36
|
-
case z:
|
|
37
|
-
case Q:
|
|
38
|
-
case W:
|
|
39
|
-
case K:
|
|
40
|
-
case v: {
|
|
41
|
-
let D = String.fromCharCode(r);
|
|
42
|
-
o = [D, D, t];
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
case q: {
|
|
46
|
-
if (U = R.length ? R.pop()[1] : "", s = c.charCodeAt(t + 1), U === "url" && s !== k && s !== p && s !== l && s !== h && s !== C && s !== A && s !== f) {
|
|
47
|
-
e = t;
|
|
48
|
-
do {
|
|
49
|
-
if (n = !1, e = c.indexOf(")", e + 1), e === -1)
|
|
50
|
-
if (_ || x) {
|
|
51
|
-
e = t;
|
|
52
|
-
break;
|
|
53
|
-
} else
|
|
54
|
-
b("bracket");
|
|
55
|
-
for (a = e; c.charCodeAt(a - 1) === d; )
|
|
56
|
-
a -= 1, n = !n;
|
|
57
|
-
} while (n);
|
|
58
|
-
o = ["brackets", c.slice(t, e + 1), t, e], t = e;
|
|
59
|
-
} else
|
|
60
|
-
e = c.indexOf(")", t + 1), g = c.slice(t, e + 1), e === -1 || G.test(g) ? o = ["(", "(", t] : (o = ["brackets", g, t, e], t = e);
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
case k:
|
|
64
|
-
case p: {
|
|
65
|
-
I = r === k ? "'" : '"', e = t;
|
|
66
|
-
do {
|
|
67
|
-
if (n = !1, e = c.indexOf(I, e + 1), e === -1)
|
|
68
|
-
if (_ || x) {
|
|
69
|
-
e = t + 1;
|
|
70
|
-
break;
|
|
71
|
-
} else
|
|
72
|
-
b("string");
|
|
73
|
-
for (a = e; c.charCodeAt(a - 1) === d; )
|
|
74
|
-
a -= 1, n = !n;
|
|
75
|
-
} while (n);
|
|
76
|
-
o = ["string", c.slice(t, e + 1), t, e], t = e;
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
case Y: {
|
|
80
|
-
E.lastIndex = t + 1, E.test(c), E.lastIndex === 0 ? e = c.length - 1 : e = E.lastIndex - 2, o = ["at-word", c.slice(t, e + 1), t, e], t = e;
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
case d: {
|
|
84
|
-
for (e = t, O = !0; c.charCodeAt(e + 1) === d; )
|
|
85
|
-
e += 1, O = !O;
|
|
86
|
-
if (r = c.charCodeAt(e + 1), O && r !== w && r !== l && r !== h && r !== C && r !== f && r !== A && (e += 1, L.test(c.charAt(e)))) {
|
|
87
|
-
for (; L.test(c.charAt(e + 1)); )
|
|
88
|
-
e += 1;
|
|
89
|
-
c.charCodeAt(e + 1) === l && (e += 1);
|
|
90
|
-
}
|
|
91
|
-
o = ["word", c.slice(t, e + 1), t, e], t = e;
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
default: {
|
|
95
|
-
r === w && c.charCodeAt(t + 1) === F ? (e = c.indexOf("*/", t + 2) + 1, e === 0 && (_ || x ? e = c.length : b("comment")), o = ["comment", c.slice(t, e + 1), t, e], t = e) : (u.lastIndex = t + 1, u.test(c), u.lastIndex === 0 ? e = c.length - 1 : e = u.lastIndex - 2, o = ["word", c.slice(t, e + 1), t, e], R.push(o), t = e);
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return t++, o;
|
|
100
|
-
}
|
|
101
|
-
function J(i) {
|
|
102
|
-
S.push(i);
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
back: J,
|
|
106
|
-
endOfFile: j,
|
|
107
|
-
nextToken: y,
|
|
108
|
-
position: X
|
|
109
|
-
};
|
|
110
|
-
}, T;
|
|
111
|
-
}
|
|
112
|
-
export {
|
|
113
|
-
Z as __require
|
|
114
|
-
};
|
package/dist/index-traversal.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { __exports as n } from "./index-traversal2.js";
|
|
2
|
-
import { __require as d } from "./index-lib.js";
|
|
3
|
-
var b;
|
|
4
|
-
function m() {
|
|
5
|
-
if (b) return n;
|
|
6
|
-
b = 1, Object.defineProperty(n, "__esModule", { value: !0 }), n.getChildren = s, n.getParent = v, n.getSiblings = g, n.getAttributeValue = p, n.hasAttrib = h, n.getName = f, n.nextElementSibling = _, n.prevElementSibling = c;
|
|
7
|
-
var u = /* @__PURE__ */ d();
|
|
8
|
-
function s(r) {
|
|
9
|
-
return (0, u.hasChildren)(r) ? r.children : [];
|
|
10
|
-
}
|
|
11
|
-
function v(r) {
|
|
12
|
-
return r.parent || null;
|
|
13
|
-
}
|
|
14
|
-
function g(r) {
|
|
15
|
-
var t, e, o = v(r);
|
|
16
|
-
if (o != null)
|
|
17
|
-
return s(o);
|
|
18
|
-
for (var l = [r], i = r.prev, a = r.next; i != null; )
|
|
19
|
-
l.unshift(i), t = i, i = t.prev;
|
|
20
|
-
for (; a != null; )
|
|
21
|
-
l.push(a), e = a, a = e.next;
|
|
22
|
-
return l;
|
|
23
|
-
}
|
|
24
|
-
function p(r, t) {
|
|
25
|
-
var e;
|
|
26
|
-
return (e = r.attribs) === null || e === void 0 ? void 0 : e[t];
|
|
27
|
-
}
|
|
28
|
-
function h(r, t) {
|
|
29
|
-
return r.attribs != null && Object.prototype.hasOwnProperty.call(r.attribs, t) && r.attribs[t] != null;
|
|
30
|
-
}
|
|
31
|
-
function f(r) {
|
|
32
|
-
return r.name;
|
|
33
|
-
}
|
|
34
|
-
function _(r) {
|
|
35
|
-
for (var t, e = r.next; e !== null && !(0, u.isTag)(e); )
|
|
36
|
-
t = e, e = t.next;
|
|
37
|
-
return e;
|
|
38
|
-
}
|
|
39
|
-
function c(r) {
|
|
40
|
-
for (var t, e = r.prev; e !== null && !(0, u.isTag)(e); )
|
|
41
|
-
t = e, e = t.prev;
|
|
42
|
-
return e;
|
|
43
|
-
}
|
|
44
|
-
return n;
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
m as __require
|
|
48
|
-
};
|
package/dist/index-traversal2.js
DELETED
package/dist/index-warn-once.js
DELETED
package/dist/index-warning2.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var t, r;
|
|
2
|
-
function h() {
|
|
3
|
-
if (r) return t;
|
|
4
|
-
r = 1;
|
|
5
|
-
class e {
|
|
6
|
-
constructor(s, i = {}) {
|
|
7
|
-
if (this.type = "warning", this.text = s, i.node && i.node.source) {
|
|
8
|
-
let n = i.node.rangeBy(i);
|
|
9
|
-
this.line = n.start.line, this.column = n.start.column, this.endLine = n.end.line, this.endColumn = n.end.column;
|
|
10
|
-
}
|
|
11
|
-
for (let n in i) this[n] = i[n];
|
|
12
|
-
}
|
|
13
|
-
toString() {
|
|
14
|
-
return this.node ? this.node.error(this.text, {
|
|
15
|
-
index: this.index,
|
|
16
|
-
plugin: this.plugin,
|
|
17
|
-
word: this.word
|
|
18
|
-
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return t = e, e.default = e, t;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
h as __require
|
|
25
|
-
};
|
|
File without changes
|