@piwikpro/react-piwik-pro
Advanced tools
Comparing version 2.1.0 to 2.1.1
export { default } from '@piwikpro/tracking-base-library'; | ||
export * from '@piwikpro/tracking-base-library'; |
@@ -1,17 +0,6 @@ | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var trackingBaseLibrary = require('@piwikpro/tracking-base-library'); | ||
var trackingBaseLibrary__default = _interopDefault(trackingBaseLibrary); | ||
Object.keys(trackingBaseLibrary).forEach(function (k) { | ||
if (k !== 'default') Object.defineProperty(exports, k, { | ||
enumerable: true, | ||
get: function () { | ||
return trackingBaseLibrary[k]; | ||
} | ||
}); | ||
}); | ||
exports.default = trackingBaseLibrary__default; | ||
export * from "@piwikpro/tracking-base-library"; | ||
import { default as default2 } from "@piwikpro/tracking-base-library"; | ||
export { | ||
default2 as default | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@piwikpro/react-piwik-pro", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Piwik PRO tracking library for ReactJS", | ||
@@ -9,5 +9,12 @@ "author": "Piwik Pro Integration Team <integrations@piwik.pro>", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"module": "dist/index.modern.js", | ||
"source": "src/index.tsx", | ||
"main": "dist/index.umd.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.umd.cjs" | ||
} | ||
}, | ||
"source": "src/index.ts", | ||
"engines": { | ||
@@ -17,20 +24,16 @@ "node": ">=18" | ||
"scripts": { | ||
"build": "microbundle-crl --no-compress --format modern,cjs", | ||
"dev": "vite build --watch", | ||
"build": "tsc && vite build", | ||
"build:docs": "typedoc && concat-md --decrease-title-levels --start-title-level-at=2 docs_raw > README.md && node scripts/postProcessDocs.js", | ||
"start": "microbundle-crl watch --no-compress --format modern,cjs", | ||
"prepare": "run-s build", | ||
"test": "run-s test:unit test:build", | ||
"test:build": "run-s build", | ||
"test:lint": "eslint .", | ||
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom", | ||
"test:watch": "react-scripts test --env=jsdom", | ||
"predeploy": "cd example && yarn install && yarn run build", | ||
"deploy": "gh-pages -d example/build", | ||
"format": "prettier src/**/*.ts --list-different", | ||
"preview": "vite preview", | ||
"lint": "eslint . --max-warnings 0 --report-unused-disable-directives", | ||
"lint:fix": "npm run lint -- --fix", | ||
"format": "prettier 'src/**/*.ts' --list-different", | ||
"format:fix": "npm run format -- --write", | ||
"test": "jest", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0" | ||
}, | ||
@@ -49,14 +52,14 @@ "devDependencies": { | ||
"babel-eslint": "^10.1.0", | ||
"concat-md": "^0.5.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.56.0", | ||
"gh-pages": "^6.1.1", | ||
"microbundle-crl": "^0.13.11", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.1.1", | ||
"react": "^18.2.0", | ||
"react-scripts": "^5.0.1", | ||
"typescript": "^5.2.2", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"concat-md": "^0.5.1", | ||
"tslib": "^2.6.3", | ||
"typedoc": "^0.25.13", | ||
"typedoc-plugin-markdown": "^3.17.1", | ||
"typescript": "^5.3.3" | ||
"vite": "^5.3.1" | ||
}, | ||
@@ -63,0 +66,0 @@ "files": [ |
@@ -42,3 +42,3 @@ | ||
PiwikPro.initialize('container-id', 'container-url', 'nonce-string'); | ||
PiwikPro.initialize('container-id', 'container-url', { nonce: 'nonce-string' }); | ||
@@ -48,2 +48,12 @@ ReactDOM.render(<App />, document.getElementById('root')) | ||
#### Custom Data Layer name | ||
```ts | ||
import PiwikPro from '@piwikpro/react-piwik-pro'; | ||
PiwikPro.initialize('container-id', 'container-url', { dataLayerName: 'my-data-layer' }); | ||
ReactDOM.render(<App />, document.getElementById('root')) | ||
``` | ||
### Piwik PRO Services | ||
@@ -50,0 +60,0 @@ |
Sorry, the diff of this file is not supported yet
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
30437
23
1441