{"id":22098163,"url":"https://github.com/katochimoto/x-bubbles","last_synced_at":"2025-10-25T20:09:13.249Z","repository":{"id":57400715,"uuid":"68330383","full_name":"Katochimoto/x-bubbles","owner":"Katochimoto","description":"XBubbles provides a simple way to create set of editable elements.","archived":false,"fork":false,"pushed_at":"2019-05-14T16:58:14.000Z","size":1920,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-12T14:25:04.669Z","etag":null,"topics":["bubble","custom-elements","customelements","javascript"],"latest_commit_sha":null,"homepage":"https://katochimoto.github.io/x-bubbles/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Katochimoto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-15T20:51:24.000Z","updated_at":"2022-12-15T18:10:06.000Z","dependencies_parsed_at":"2022-09-05T03:01:31.535Z","dependency_job_id":null,"html_url":"https://github.com/Katochimoto/x-bubbles","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/Katochimoto/x-bubbles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katochimoto%2Fx-bubbles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katochimoto%2Fx-bubbles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katochimoto%2Fx-bubbles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katochimoto%2Fx-bubbles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Katochimoto","download_url":"https://codeload.github.com/Katochimoto/x-bubbles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katochimoto%2Fx-bubbles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266913701,"owners_count":24005580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bubble","custom-elements","customelements","javascript"],"created_at":"2024-12-01T04:18:32.322Z","updated_at":"2025-10-25T20:09:08.223Z","avatar_url":"https://github.com/Katochimoto.png","language":"JavaScript","readme":"XBubbles custom element\n\n[![Build Status][build]][build-link] [![NPM version][version]][version-link] [![Dependency Status][dependency]][dependency-link] [![devDependency Status][dev-dependency]][dev-dependency-link] [![Code Climate][climate]][climate-link] [![Test Coverage][coverage]][coverage-link] [![Inline docs][inch]][inch-link]\n\nXBubbles provides a simple way to create set of editable elements.\n\nAll you need to do is create an element set and specify the necessary conditions.\n\n```html\n\u003cdiv is=\"x-bubbles\"\u003e\n123,456,789\n\u003c/div\u003e\n```\n\n### Options\n\nSettings you can declare the function via `options()` or via data attributes.\n\nFor example:\n\n```html\n\u003cscript\u003e\nfunction bubbleDeformation(node) {\n  return node.innerText;\n}\n\u003c/script\u003e\n\u003cdiv is=\"x-bubbles\"\n  data-separator=\"/[,]/\"\n  data-selection=\"off\"\n  data-class-bubble=\"bubble\"\n  data-bubble-deformation=\"bubbleDeformation\"\u003e\n  123,456,789\n\u003c/div\u003e\n```\n\n- `begining` - Regular expression to determine the rules for the formation of a bubble since the beginning of the input text.\n- `bubbleCopy` - Conversion function list bablow in the text when copying.\n- `bubbleDeformation` - The transformation function of the bubble in the text for editing.\n- `bubbleFormation` - A function to convert text to bubble.\n- `checkBubblePaste` - Check function of the ability to insert text automatically converted to the bubble.\n- `classBubble` - Class of bubble.\n- `disableControls` - Disabling controls navigation bubble.\n- `draggable` - The ability to drag bubble.\n- `ending` - Regular expression to determine the rules for the formation of dough from the end of the input text.\n- `selection` - The ability to select bubble.\n- `separator` - Regular expression to declare delimiters of bubbles.\n- `separatorCond` - A function to check the conditions of formation of the bubble after you enter the delimiter.\n- `tokenizer` - The function of the formation bubbles. Ignores `begining`, `ending` and `separator`.\n\n### Events\n\n- `before-remove` - Triggered before removing the bubble.\n- `bubble-edit` - Triggered after the start of the edit bubble.\n- `bubble-input` - Срабатывает в процессе ввода значения пузыря.\n- `change` - Change the list of bubbles.\n- `x-bubbles-ready` - Event readiness custom elements. Triggered on the window.\n\n### Properties\n\n- `items` - The list of bubbles.\n- `inputValue` - Input value.\n\n### Methods\n\n- `options(string: name, [value]): *` - Changing and getting options.\n- `setContent(string: data): boolean` - Set contents of the bubbles.\n- `addBubble(string: bubbleText, [object: data]): boolean` - Add bubble.\n- `removeBubble(HTMLElement: nodeBubble): boolean` - Remove bubble.\n- `editBubble(HTMLElement: nodeBubble): boolean` - Edit bubble.\n- `bubbling()` - Starting formation bubbles.\n\n\n\n[build]: https://travis-ci.org/Katochimoto/x-bubbles.svg?branch=master\n[build-link]: https://travis-ci.org/Katochimoto/x-bubbles\n[version]: https://badge.fury.io/js/x-bubbles.svg\n[version-link]: http://badge.fury.io/js/x-bubbles\n[dependency]: https://david-dm.org/Katochimoto/x-bubbles.svg\n[dependency-link]: https://david-dm.org/Katochimoto/x-bubbles\n[dev-dependency]: https://david-dm.org/Katochimoto/x-bubbles/dev-status.svg\n[dev-dependency-link]: https://david-dm.org/Katochimoto/x-bubbles#info=devDependencies\n[climate]: https://codeclimate.com/github/Katochimoto/x-bubbles/badges/gpa.svg\n[climate-link]: https://codeclimate.com/github/Katochimoto/x-bubbles\n[coverage]: https://codeclimate.com/github/Katochimoto/x-bubbles/badges/coverage.svg\n[coverage-link]: https://codeclimate.com/github/Katochimoto/x-bubbles\n[inch]: https://inch-ci.org/github/Katochimoto/x-bubbles.svg?branch=master\n[inch-link]: https://inch-ci.org/github/Katochimoto/x-bubbles\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatochimoto%2Fx-bubbles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatochimoto%2Fx-bubbles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatochimoto%2Fx-bubbles/lists"}