Fixes + bump to 3.0.8
This commit is contained in:
parent
03f44b9acc
commit
2deb913f43
8 changed files with 17 additions and 15 deletions
|
|
@ -43,13 +43,12 @@ Ici pour l'instant seulement un exemple pour **Laravel**.
|
|||
- **TS/JS**
|
||||
|
||||
// Dans fo.ts
|
||||
@import "@ldc-web/cookie-notice"
|
||||
import CookieNotice from "@ldc-web/cookie-notice";
|
||||
window.WebCookieNotice = CookieNotice;
|
||||
import type CookieNotice from "@ldc-web/cookie-notice";
|
||||
window.CookieNotice = CookieNotice;
|
||||
|
||||
// Dans index.d.ts
|
||||
...
|
||||
import type CookieNotice from "@ldc-web/cookie-notice";
|
||||
import CookieNotice from "@ldc-web/cookie-notice";
|
||||
|
||||
declare global {
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
## 3.0.8
|
||||
- Fix examples
|
||||
- Fixed package json export files
|
||||
|
||||
## 3.0.7
|
||||
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ SCRIPT;
|
|||
|
||||
@push('scripts')
|
||||
<script nonce="{{ $nonce ?? '' }}">
|
||||
document.addEventListner('DOMContentLoaded', function () {
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
window.WebCookieNotice = {};
|
||||
@foreach($cookies as $index_name => $cookie)
|
||||
window.WebCookieNotice['{{ $index_name }}'] = {};
|
||||
|
|
@ -199,7 +199,7 @@ document.addEventListner('DOMContentLoaded', function () {
|
|||
window.WebCookieNotice['{{ $index_name }}'].conf.fallback = window.WebCookieNotice['{{ $index_name }}'].tmp.fallback;
|
||||
window.WebCookieNotice['{{ $index_name }}'] = window.WebCookieNotice['{{ $index_name }}'].conf;
|
||||
@endforeach
|
||||
window.WebCookieNotice = new WebCookieNotice(window.WebCookieNotice);
|
||||
window.WebCookieNotice = new window.CookieNotice(window.WebCookieNotice);
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// * Version 3.0.7
|
||||
// * Version 3.0.8
|
||||
// phpcs:disable
|
||||
return [
|
||||
'button_customize_cookies' => 'Cookie-Einstellungen',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// * Version 3.0.7
|
||||
// * Version 3.0.8
|
||||
// phpcs:disable
|
||||
return [
|
||||
'button_customize_cookies' => 'Customize cookies',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// * Version 3.0.7
|
||||
// * Version 3.0.8
|
||||
// phpcs:disable
|
||||
return [
|
||||
'button_customize_cookies' => 'Personnaliser les cookies',
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@ldc-web/cookie-notice",
|
||||
"version": "3.0.7",
|
||||
"version": "3.0.8",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@ldc-web/cookie-notice",
|
||||
"version": "3.0.7",
|
||||
"version": "3.0.8",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.21.4",
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@ldc-web/cookie-notice",
|
||||
"version": "3.0.7",
|
||||
"version": "3.0.8",
|
||||
"description": "Web cookie notice for websites usage",
|
||||
"main": "./dist/umd/main.js",
|
||||
"module": "./dist/esm/index.js",
|
||||
"types": "./dist/ts/typings/index.d.ts",
|
||||
"module": "./dist/esm/ts/index.js",
|
||||
"types": "./dist/typings/ts/index.d.ts",
|
||||
"sass": "./src/scss/themes/standard.scss",
|
||||
"style": "./dist/css/cookie-notice-standard.css",
|
||||
"style": "./dist/umd/css/standard.css",
|
||||
"browserslist": "last 3 version, not dead, >0.3%",
|
||||
"directories": {
|
||||
"example": "examples"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue