@loomhq/loom-embed
Advanced tools
Comparing version 1.2.11 to 1.2.12
{ | ||
"name": "@loomhq/loom-embed", | ||
"version": "1.2.11", | ||
"version": "1.2.12", | ||
"description": "SDK for easily embedding videos", | ||
@@ -20,3 +20,3 @@ "main": "dist/cjs/index.js", | ||
"devDependencies": { | ||
"@loomhq/bundler": "1.0.3", | ||
"@loomhq/bundler": "1.0.4", | ||
"@loomhq/tsconfig": "1.0.3", | ||
@@ -38,6 +38,7 @@ "@testing-library/jest-dom": "^5.14.1", | ||
"clean:build": "rm -rf ./dist", | ||
"build": "node build.mjs && pnpm build:types", | ||
"build": "node build.mjs", | ||
"build:types": "tsc", | ||
"test": "jest --maxWorkers=2" | ||
} | ||
}, | ||
"readme": "[![npm version](https://img.shields.io/npm/v/@loomhq/loom-embed)](https://www.npmjs.com/package/@loomhq/loom-embed)\n[![CircleCI](https://img.shields.io/circleci/build/gh/loomhq/platform?token=510d0d800cbfbb8c1757c8e1705472c5d1c81238)](https://app.circleci.com/pipelines/github/loomhq/platform/2351/workflows/54eaa124-7378-48ac-80a7-a83ee3195322)\n[![codecov](https://img.shields.io/badge/CodeCoverage-90%25-green)]()\n\n## Installing\n\n### npm package\n\n```sh\nnpm install @loomhq/loom-embed\n```\n\n### Script tag\n```html\n<script type=\"module\"> import * as loom from \"https://www.unpkg.com/@loomhq/loom-embed@1.2.4/dist/esm/index.js?module\"; </script>\n```\n\nSee [documentation](https://dev.loom.com/docs/embed-sdk/getting-started) for installation and usage.\n\n## Usage\n\n```js\nimport * as loom from '@loomhq/loom-embed';\n````\n\n## Methods\n\n### .linkReplace(selector, [options], target)\n\nReplaces any loom links at the nodes matching the selector with the embedded video. Replacement occurs on the entire document, or on the optional target DOM element.\n\n### .textReplace(textString, [options])\n\nTakes a string and replaces any Loom URLs with the embed html\n\n_-> returns a promise_\n\n### .oembed(videoUrl, [options])\n\noembed metadata from the given video url\n\n_-> returns a promise_\n\n## Options\n\n**The embed code is responsive by default. Only set the width/height values if you require your embed code to be a fixed size**\n\n`width` - [Number] value specifying the max pixel width\n\n`height` - [Number] value specifying the max pixel height\n" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35258