UNPKG

@kontent-ai/smart-link

Version:

Kontent.ai Smart Link SDK allowing to automatically inject [smart links](https://docs.kontent.ai/tutorials/develop-apps/build-strong-foundation/set-up-editing-from-preview#a-using-smart-links) to Kontent.ai according to manually specified [HTML data attri

76 lines (75 loc) 2.62 kB
{ "name": "@kontent-ai/smart-link", "version": "5.0.3", "type": "module", "private": false, "repository": { "type": "git", "url": "https://github.com/kontent-ai/smart-link" }, "description": "Kontent.ai Smart Link SDK allowing to automatically inject [smart links](https://docs.kontent.ai/tutorials/develop-apps/build-strong-foundation/set-up-editing-from-preview#a-using-smart-links) to Kontent.ai according to manually specified [HTML data attributes](https://www.w3schools.com/tags/att_data-.asp) on your website. It also lets you connect your website with Web Spotlight.", "main": "./dist/commonjs/index.js", "types": "./dist/types/index.d.ts", "module": "./dist/es/index.js", "jsnext:main": "./dist/es/index.js", "files": [ "dist" ], "scripts": { "build": "npm run build:commonjs && npm run build:umd && npm run build:es", "build:commonjs": "tsc -m commonjs --outDir dist/commonjs", "build:es": "tsc -m es2015 --outDir dist/es", "build:umd": "vite build", "clean": "rimraf dist", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "biome": "biome format --write", "biome:check": "biome check", "biome:lint": "biome lint", "prepare": "npm run clean && npm run build", "test:unit": "vitest", "test:unit:ci": "npm run test:unit -- --run", "test:visual": "playwright test -c ./playwright-ct.config.ts", "test:visual:ui": "playwright test -c ./playwright-ct.config.ts --ui" }, "keywords": [ "Kontent Javascript", "Kontent Preview", "Kontent SDK", "Kontent Typescript", "Kontent", "Kontent.ai Javascript", "Kontent.ai Preview", "Kontent.ai SDK", "Kontent.ai Typescript", "Kontent.ai" ], "license": "MIT", "bugs": { "url": "https://github.com/kontent-ai/smart-link/issues" }, "homepage": "https://github.com/kontent-ai/smart-link#readme", "devDependencies": { "@babel/core": "7.26.10", "@biomejs/biome": "^2.3.4", "@kontent-ai/biome-config": "^0.7.0", "@kontent-ai/delivery-sdk": "^16.0.0", "@kontent-ai/eslint-config": "^2.3.0", "@playwright/experimental-ct-react": "^1.56.1", "@playwright/test": "^1.56.1", "@types/node": "^22.13.10", "@types/react": "^19.2.7", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^4.3.4", "@vitest/browser": "^3.0.8", "eslint": "^9.39.1", "playwright": "^1.56.1", "react": "^19.0.0", "react-dom": "^19.0.0", "rimraf": "6.0.1", "rollup-plugin-visualizer": "^5.14.0", "typescript": "5.8.2", "vite": "^6.4.1", "vitest": "^3.0.8" } }