Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat (base) implemented new methods #11

Merged
merged 17 commits into from
Aug 16, 2024
Merged

Feat (base) implemented new methods #11

merged 17 commits into from
Aug 16, 2024

Conversation

e11sy
Copy link
Contributor

@e11sy e11sy commented Aug 14, 2024

Caret

  • focus method
  • CaretSaver class with save method
  • checkContenteditableSliceForEmptiness method (moved from dom)
  • extractContenteditableSlice method

Dom

  • fragmentToString method
  • removed checkContenteditableSliceForEmptiness method

Additional

  • fixed tsconfig extending parent one
  • add README generator that will generate readme.md for each package

@editorjs/helpers

Utils useful for Editor.js tools development

Installation

  npm install @editorjs/helpers
  • beautifyShortcut - Make shortcut command more human-readable
  • cacheable - Decorator which provides ability to cache method or accessor result
  • capitalize - Capitalizes first letter of the string
  • copyTextToClipboard - Copies passed text to the clipboard
  • debounce - Debouncing method
  • deepMerge - Merge two objects recursively
  • deprecationAssert - Common method for printing a warning about the usage of deprecated property or method.
  • notEmpty - True if passed variable is not null/undefined/''/{}
  • isEmpty - True if passed variable is null/undefined/''/{}
  • getValidUrl - Returns valid URL. If it is going outside and valid, it returns itself
  • isPrintableKey - Returns true if passed key code is printable (a-Z, 0-9, etc) character.
  • throttle - Returns a function, that, when invoked, will only be triggered at most once during a given window of time.
  • typeOf - Return string representation of the object type
  • isFunction - Check if passed variable is a function
  • isObject - Checks if passed argument is an object
  • isString - Checks if passed argument is a string
  • isBoolean - Checks if passed argument is boolean
  • isNumber - Checks if passed argument is number
  • isUndefined - Checks if passed argument is undefined
  • isClass - Check if passed function is a class
  • isPromise - Check if passed object is a Promise
  • getUserOS - Returns object with os name as key and boolean as value. Shows current user OS
  • equals - Compares two values with unknown type

About CodeX

CodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are open for young people who want to constantly improve their skills and grow professionally with experiments in cutting-edge technologies.

🌐 Join 👋 Twitter Instagram
codex.so codex.so/join @codex_team @codex_team

@e11sy e11sy requested a review from neSpecc August 15, 2024 16:54
@e11sy e11sy merged commit a6c057d into main Aug 16, 2024
2 checks passed
@e11sy e11sy deleted the add-secrets branch August 16, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants