-
-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3077 from udecode/fix/orderList
fix: ordered list
- Loading branch information
Showing
7 changed files
with
106 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@udecode/plate-indent-list": patch | ||
--- | ||
|
||
Fix ordered list regression. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,67 @@ | ||
import { PlateEditor, TElement, Value } from '@udecode/plate-common'; | ||
|
||
export enum ListStyleType { | ||
// The marker is traditional Armenian numbering | ||
Armenian = 'armenian', | ||
|
||
// The marker is a circle | ||
Circle = 'circle', | ||
|
||
// The marker is plain ideographic numbers | ||
CjkIdeographic = 'cjk-ideographic', | ||
|
||
// The marker is a number. This is default for <ol> | ||
Decimal = 'decimal', | ||
|
||
// The marker is a number with leading zeros (01, 02, 03, etc.) | ||
DecimalLeadingZero = 'decimal-leading-zero', | ||
|
||
// The marker is a filled circle. This is default for <ul> | ||
Disc = 'disc', | ||
|
||
// The marker is traditional Georgian numbering | ||
ArabicIndic = 'arabic-indic', | ||
Armenian = 'armenian', | ||
UpperArmenian = 'upper-armenian', | ||
LowerArmenian = 'lower-armenian', | ||
Bengali = 'bengali', | ||
Cambodian = 'cambodian', | ||
Khmer = 'khmer', | ||
CjkDecimal = 'cjk-decimal', | ||
Devanagari = 'devanagari', | ||
Georgian = 'georgian', | ||
|
||
// The marker is traditional Hebrew numbering | ||
Gujarati = 'gujarati', | ||
Gurmukhi = 'gurmukhi', | ||
Hebrew = 'hebrew', | ||
|
||
// The marker is traditional Hiragana numbering | ||
Kannada = 'kannada', | ||
Lao = 'lao', | ||
Malayalam = 'malayalam', | ||
Mongolian = 'mongolian', | ||
Myanmar = 'myanmar', | ||
Oriya = 'oriya', | ||
Persian = 'persian', | ||
LowerRoman = 'lower-roman', | ||
UpperRoman = 'upper-roman', | ||
Tamil = 'tamil', | ||
Telugu = 'telugu', | ||
Thai = 'thai', | ||
Tibetan = 'tibetan', | ||
LowerAlpha = 'lower-alpha', | ||
LowerLatin = 'lower-latin', | ||
UpperAlpha = 'upper-alpha', | ||
UpperLatin = 'upper-latin', | ||
LowerGreek = 'lower-greek', | ||
Hiragana = 'hiragana', | ||
|
||
// The marker is traditional Hiragana iroha numbering | ||
HiraganaIroha = 'hiragana-iroha', | ||
|
||
// The marker is traditional Katakana numbering | ||
Katakana = 'katakana', | ||
|
||
// The marker is traditional Katakana iroha numbering | ||
KatakanaIroha = 'katakana-iroha', | ||
|
||
// The marker is lower-alpha (a, b, c, d, e, etc.) | ||
LowerAlpha = 'lower-alpha', | ||
|
||
// The marker is lower-greek | ||
LowerGreek = 'lower-greek', | ||
|
||
// The marker is lower-latin (a, b, c, d, e, etc.) | ||
LowerLatin = 'lower-latin', | ||
|
||
// The marker is lower-roman (i, ii, iii, iv, v, etc.) | ||
LowerRoman = 'lower-roman', | ||
|
||
// No marker is shown | ||
CjkEarthlyBranch = 'cjk-earthly-branch', | ||
CjkHeavenlyStem = 'cjk-heavenly-stem', | ||
JapaneseInformal = 'japanese-informal', | ||
JapaneseFormal = 'japanese-formal', | ||
KoreanHangulFormal = 'korean-hangul-formal', | ||
KoreanHanjaInformal = 'korean-hanja-informal', | ||
KoreanHanjaFormal = 'korean-hanja-formal', | ||
SimpChineseInformal = 'simp-chinese-informal', | ||
SimpChineseFormal = 'simp-chinese-formal', | ||
TradChineseInformal = 'trad-chinese-informal', | ||
TradChineseFormal = 'trad-chinese-formal', | ||
EthiopicNumeric = 'ethiopic-numeric', | ||
DisclosureOpen = 'disclosure-open', | ||
DisclosureClosed = 'disclosure-closed', | ||
None = 'none', | ||
|
||
// The marker is a square | ||
Circle = 'circle', | ||
Disc = 'disc', | ||
Square = 'square', | ||
|
||
// The marker is upper-alpha (A, B, C, D, E, etc.) | ||
UpperAlpha = 'upper-alpha', | ||
|
||
// The marker is upper-latin (A, B, C, D, E, etc.) | ||
UpperLatin = 'upper-latin', | ||
|
||
// The marker is upper-roman (I, II, III, IV, V, etc.) | ||
UpperRoman = 'upper-roman', | ||
|
||
// Sets this property to its default value. Read about initial | ||
Initial = 'initial', | ||
|
||
// Inherits this property from its parent element. Read about inherit | ||
Inherit = 'inherit', | ||
} | ||
|
||
export interface LiComponentProps { | ||
element: TElement; | ||
children: any; | ||
} | ||
|
||
export interface MarkerComponentProps { | ||
onChange?: (checked: boolean) => void; | ||
element: TElement; | ||
editor: PlateEditor<Value>; | ||
} | ||
export const ULIST_STYLE_TYPES = [ | ||
ListStyleType.Disc, | ||
ListStyleType.Circle, | ||
ListStyleType.Square, | ||
ListStyleType.DisclosureOpen, | ||
ListStyleType.DisclosureClosed, | ||
] as const; |