{"_id":"@artemsemkin/elementor-types","_rev":"7-056dd2f90f32885d99a748ab047f139d","name":"@artemsemkin/elementor-types","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.2":{"name":"@artemsemkin/elementor-types","version":"1.0.2","keywords":["elementor","wordpress","typescript","types","definitions"],"author":{"name":"Artem Semkin"},"license":"MIT","_id":"@artemsemkin/elementor-types@1.0.2","maintainers":[{"name":"artemsemkin","email":"me@artemsemkin.com"}],"homepage":"https://github.com/artkrsk/elementor-types#readme","bugs":{"url":"https://github.com/artkrsk/elementor-types/issues"},"dist":{"shasum":"157704212e01d4751843d6c57d774cdee608491c","tarball":"https://registry.npmjs.org/@artemsemkin/elementor-types/-/elementor-types-1.0.2.tgz","fileCount":1779,"integrity":"sha512-shpyKdVSt8xi4ZltJNJI78KkXEjT+5HdxMzjylfwY4mcyALsYdyFt7s7AOKhwgc0b8F4+IRIyUM62GJfnnzxYg==","signatures":[{"sig":"MEUCIG40jfycnSca2b9PEvz/9/FxTW9tO3H9pTXYXveZBU5hAiEAjaazei0HLi3oiNPmkO1N7Hd/VG39ZLr3ThJcSAUuiIM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3448285},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"ba018eeda7ac790522674d74a76d8d63cce067fd","scripts":{"dev":"tsc --watch","lint":"tsc --noEmit --strict","build":"tsc","clean":"rm -rf dist","prepack":"pnpm run clean && pnpm run build","type-check":"tsc --noEmit"},"_npmUser":{"name":"artemsemkin","email":"me@artemsemkin.com"},"repository":{"url":"git+https://github.com/artkrsk/elementor-types.git","type":"git"},"_npmVersion":"11.6.2","description":"TypeScript type definitions for Elementor WordPress plugin","directories":{},"_nodeVersion":"25.1.0","dependencies":{"@types/jquery":"^3.5.29","@types/select2":"^4.0.63","@types/backbone":"^1.4.23"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"swiper":"^12.0.1","backbone":"^1.6.1","typescript":"^5.2.0","underscore":"^1.13.7","@types/node":"^24.4.0","backbone.radio":"^2.0.0","backbone.marionette":"^4.1.3"},"peerDependencies":{"swiper":"^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elementor-types_1.0.2_1767901300296_0.8684450455662149","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@artemsemkin/elementor-types","version":"1.0.7","keywords":["elementor","wordpress","typescript","types","definitions"],"author":{"name":"Artem Semkin"},"license":"MIT","_id":"@artemsemkin/elementor-types@1.0.7","maintainers":[{"name":"artemsemkin","email":"me@artemsemkin.com"}],"homepage":"https://github.com/artkrsk/elementor-types#readme","bugs":{"url":"https://github.com/artkrsk/elementor-types/issues"},"dist":{"shasum":"191c14274c1541af098d3f7283bd9d180b75fdb6","tarball":"https://registry.npmjs.org/@artemsemkin/elementor-types/-/elementor-types-1.0.7.tgz","fileCount":1779,"integrity":"sha512-3XIRysYtJ9jc0n8o+dgK044Ey+wYtAdGClIaoP/QNVxP2JngCoL1jNr4b+W3uvEh0VN3zUmZpcCwNv0XTYBf8g==","signatures":[{"sig":"MEUCIQDnF4LEYnnFGAnmv5AdAQDmgvXH5CtF6Lq43DcMFvUl1AIgA3FoM3KP6IrmTXTZF5SHinnZLsreYdPHgKiYhCOc0hg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@artemsemkin%2felementor-types@1.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3448293},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"d92da75991aa11389521f5f1e81fe960a7afdf39","scripts":{"dev":"tsc --watch","lint":"tsc --noEmit --strict","build":"tsc","clean":"rm -rf dist","prepack":"pnpm run clean && pnpm run build","type-check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fedbc9e-9e49-48d7-b683-d0e47d0af01b"}},"repository":{"url":"git+https://github.com/artkrsk/elementor-types.git","type":"git"},"_npmVersion":"11.10.1","description":"TypeScript type definitions for Elementor WordPress plugin","directories":{},"_nodeVersion":"22.22.0","dependencies":{"@types/jquery":"^3.5.33","@types/select2":"^4.0.63","@types/backbone":"^1.4.23"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.30.0","devDependencies":{"swiper":"^12.1.2","backbone":"^1.6.1","typescript":"^5.9.3","underscore":"^1.13.8","@types/node":"^25.3.0","backbone.radio":"^2.0.0","backbone.marionette":"^4.1.3"},"peerDependencies":{"swiper":">=11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elementor-types_1.0.7_1771670350315_0.6967754268946307","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@artemsemkin/elementor-types","version":"1.0.10","keywords":["elementor","wordpress","typescript","types","definitions"],"author":{"name":"Artem Semkin"},"license":"MIT","_id":"@artemsemkin/elementor-types@1.0.10","maintainers":[{"name":"artemsemkin","email":"me@artemsemkin.com"}],"homepage":"https://github.com/artkrsk/elementor-types#readme","bugs":{"url":"https://github.com/artkrsk/elementor-types/issues"},"dist":{"shasum":"1a53dbb58b754e32c2b17ecec161157accab7839","tarball":"https://registry.npmjs.org/@artemsemkin/elementor-types/-/elementor-types-1.0.10.tgz","fileCount":1755,"integrity":"sha512-qFDBsVEtAo0okwpHNpxXaNLlt1yt/ILaFKBTeKe2KdI5qw7dkH64gWHRA5zsO1joaqXwFh6gu9Jx1FTULkqlGw==","signatures":[{"sig":"MEQCIGp9oAOzZLE9RFdWcWDxSEh4ta/c1DznuZTaoLEKhS6iAiAWMVIEVaMa0Z8KU/sPf4VZvP6amfBT5KIapCcfOmpfIw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@artemsemkin%2felementor-types@1.0.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3210656},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"d6f3be74043a24128c7478e3d4210b8ef3f529fe","scripts":{"dev":"tsc --watch","lint":"tsc --noEmit --strict","build":"tsc","clean":"rm -rf dist","prepack":"pnpm run clean && pnpm run build","type-check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fedbc9e-9e49-48d7-b683-d0e47d0af01b"}},"repository":{"url":"git+https://github.com/artkrsk/elementor-types.git","type":"git"},"_npmVersion":"11.9.0","description":"TypeScript type definitions for Elementor WordPress plugin","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@types/jquery":"^3.5.33","@types/select2":"^4.0.63","@types/backbone":"^1.4.23"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.30.0","devDependencies":{"swiper":"^12.1.2","backbone":"^1.6.1","typescript":"^5.9.3","underscore":"^1.13.8","@types/node":"^25.3.0","backbone.radio":"^2.0.0","backbone.marionette":"^4.1.3"},"peerDependencies":{"swiper":">=11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elementor-types_1.0.10_1774088456252_0.7139734546406595","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@artemsemkin/elementor-types","version":"2.0.0","keywords":["elementor","wordpress","typescript","types","definitions"],"author":{"name":"Artem Semkin"},"license":"MIT","_id":"@artemsemkin/elementor-types@2.0.0","maintainers":[{"name":"artemsemkin","email":"me@artemsemkin.com"}],"homepage":"https://github.com/artkrsk/elementor-types#readme","bugs":{"url":"https://github.com/artkrsk/elementor-types/issues"},"dist":{"shasum":"0d888fe0b4bb66c439d2301d89ecab9102ed3d95","tarball":"https://registry.npmjs.org/@artemsemkin/elementor-types/-/elementor-types-2.0.0.tgz","fileCount":1723,"integrity":"sha512-5LGOrhjBD7F+jSZNHYxFhEUCSfZLmu9dbwsbaDsak3vZqaT84MmZksPfxXYFZBC/RN/m71uIQcklertJEcssNg==","signatures":[{"sig":"MEYCIQCli1NQNR2Cqg7cAeca4l2Fd/oyhY0M1nkJz+fVhkWt+AIhAO3/CdXHCioIOgGmVX7HEr4ycJl3ZT8eZocRyX3yOTxR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@artemsemkin%2felementor-types@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3105410},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"7d75c1d1f4a8a225fdde20259e044d19397dbe55","scripts":{"dev":"tsc --watch","lint":"tsc --noEmit --strict","build":"tsc","clean":"rm -rf dist","prepack":"pnpm run clean && pnpm run build","type-check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fedbc9e-9e49-48d7-b683-d0e47d0af01b"}},"elementor":{"version":"4.4.0"},"repository":{"url":"git+https://github.com/artkrsk/elementor-types.git","type":"git"},"_npmVersion":"11.17.0","description":"TypeScript type definitions for Elementor WordPress plugin","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@types/jquery":"^3.5.33","@types/select2":"^4.0.63","@types/backbone":"^1.4.23"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.30.0","devDependencies":{"swiper":"^12.1.2","backbone":"^1.6.1","typescript":"^5.9.3","underscore":"^1.13.8","@types/node":"^25.3.0","backbone.radio":"^2.0.0","backbone.marionette":"^4.1.3"},"peerDependencies":{"swiper":">=12.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elementor-types_2.0.0_1787985555927_0.43037091376648995","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@artemsemkin/elementor-types","version":"2.1.0","description":"TypeScript type definitions for Elementor WordPress plugin","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/artkrsk/elementor-types.git"},"homepage":"https://github.com/artkrsk/elementor-types#readme","bugs":{"url":"https://github.com/artkrsk/elementor-types/issues"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc","dev":"tsc --watch","clean":"rm -rf dist","prepack":"pnpm run clean && pnpm run build","type-check":"tsc --noEmit","lint":"tsc --noEmit --strict"},"keywords":["elementor","wordpress","typescript","types","definitions"],"author":{"name":"Artem Semkin"},"license":"MIT","dependencies":{"@types/backbone":"^1.4.23","@types/jquery":"^3.5.33","@types/select2":"^4.0.63"},"devDependencies":{"@types/node":"^25.3.0","backbone":"^1.6.1","backbone.marionette":"^4.1.3","backbone.radio":"^2.0.0","swiper":"^12.1.2","typescript":"^5.9.3","underscore":"^1.13.8"},"peerDependencies":{"swiper":">=12.0.0"},"packageManager":"pnpm@10.30.0","publishConfig":{"access":"public"},"elementor":{"version":"4.4.0"},"elementorPro":{"version":"4.2.2"},"gitHead":"6dedd6d5d9b44b2c41d633fe6725e85b19877e2b","_id":"@artemsemkin/elementor-types@2.1.0","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-JIFBjYEAG/vzh6nr532qZbtPKCkPuvnGNKWQjcdI4pItTrgX8cYq20FtHKczDN5N9aiXd0uA0T2ehG02pLfKug==","shasum":"fbcda06402c31049941b6162f1139e77adf714cd","tarball":"https://registry.npmjs.org/@artemsemkin/elementor-types/-/elementor-types-2.1.0.tgz","fileCount":1735,"unpackedSize":3119411,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@artemsemkin%2felementor-types@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDYkHnMilchOMCEf6Okw2KMxWte+RFqxjWPQPGR3OTRXAIhALB5Crbb5WNMajiqc7ysp9d5gSKqhitiZ0uPK7JbtA+J"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fedbc9e-9e49-48d7-b683-d0e47d0af01b"}},"directories":{},"maintainers":[{"name":"artemsemkin","email":"me@artemsemkin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/elementor-types_2.1.0_1788350257776_0.9216715874269008"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-08T19:41:40.195Z","modified":"2026-09-02T11:57:38.258Z","1.0.1":"2026-01-08T19:32:57.075Z","1.0.2":"2026-01-08T19:41:40.515Z","1.0.7":"2026-02-21T10:39:10.507Z","1.0.10":"2026-03-21T10:20:56.501Z","2.0.0":"2026-08-29T06:39:16.083Z","2.1.0":"2026-09-02T11:57:37.975Z"},"bugs":{"url":"https://github.com/artkrsk/elementor-types/issues"},"author":{"name":"Artem Semkin"},"license":"MIT","homepage":"https://github.com/artkrsk/elementor-types#readme","keywords":["elementor","wordpress","typescript","types","definitions"],"repository":{"type":"git","url":"git+https://github.com/artkrsk/elementor-types.git"},"description":"TypeScript type definitions for Elementor WordPress plugin","maintainers":[{"name":"artemsemkin","email":"me@artemsemkin.com"}],"readme":"# @artemsemkin/elementor-types\n\nTypeScript type definitions for [Elementor](https://elementor.com/). Covers the frontend, editor, `$e` command system, controls, containers, hooks, and Backbone/Marionette internals.\n\nTargets **Elementor 4.4.0** (the legacy v3-style JS API surface that v4 retains). The targeted version is also recorded in the `elementor.version` field of `package.json`.\n\n## Install\n\n```bash\nnpm install --save-dev @artemsemkin/elementor-types\n```\n\n## Usage\n\n### Global declarations\n\nAugment `Window` so TypeScript knows about Elementor globals:\n\n```typescript\nimport type { ElementorEditor, ElementorCommon, $e } from '@artemsemkin/elementor-types'\n\ndeclare global {\n  interface Window {\n    $e?: $e\n    elementor?: ElementorEditor\n    elementorCommon?: ElementorCommon\n  }\n}\n```\n\n### Extending a control view\n\n```typescript\nimport type { ElementorEditor } from '@artemsemkin/elementor-types'\n\nconst editor = window.elementor as ElementorEditor\n\nconst CustomSlider = editor.modules.controls.Slider.extend({\n  onReady() {\n    // your logic\n  },\n})\n\neditor.addControlView('slider', CustomSlider)\n```\n\n### Editor hooks\n\n```typescript\nimport type { HookArgs } from '@artemsemkin/elementor-types'\n\nconst $e = window.$e!\n\nclass OnRepeaterInsert extends $e.modules.hookUI.After {\n  getCommand(): string {\n    return 'document/repeater/insert'\n  }\n\n  getId(): string {\n    return 'my-plugin-on-repeater-insert'\n  }\n\n  getConditions(args: HookArgs): boolean {\n    return args.name === 'my_repeater'\n  }\n\n  apply(args: HookArgs): void {\n    const { container, model } = args\n    // respond to the repeater insert\n  }\n}\n```\n\n### Namespaces\n\nEverything is organized under namespaces you can import selectively:\n\n```typescript\nimport type { Frontend, Editor, Core, Utils } from '@artemsemkin/elementor-types'\n```\n\n| Namespace | What's there |\n|-----------|-------------|\n| `Core` | Module system, commands, hooks base classes |\n| `Frontend` | Widget handlers, element managers, frontend config |\n| `Editor` | Controls, elements, containers, panels, documents |\n| `Admin` | Admin panel types |\n| `Utils` | AJAX helpers, type guards, common utilities |\n| `Globals` | Window augmentations, module registry |\n| `ThirdParty` | Backbone, Marionette, Swiper, jQuery types |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}