@dreamworld/dw-ripple 2.2.3-development.1 → 2.2.3-kerika.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,48 +1,11 @@
1
- version: 2
1
+ version: 2.1
2
2
  jobs:
3
- merge-to-development:
4
- machine: true
5
- steps:
6
- - run:
7
- name: Clone Repository
8
- working_directory: ~/workdir
9
- command: |
10
- echo "PR IS::"
11
- echo $CIRCLE_PULL_REQUEST
12
- if [[ -n ${CIRCLE_PULL_REQUEST} ]]
13
- then
14
- git clone https://${GH_TOKEN}@github.com/DreamworldSolutions/$CIRCLE_PROJECT_REPONAME.git my-repo
15
- else
16
- echo "No PR Attached, so not doing anything"
17
- fi
18
- - run:
19
- name: Merge PR branch to development
20
- working_directory: ~/workdir/my-repo
21
- command: |
22
- if [[ -n ${CIRCLE_PULL_REQUEST} ]]
23
- then
24
- # circleci has 2.14.x as of now!
25
- git --version
26
- git config credential.helper 'cache --timeout=120'
27
- git config user.email "dw-devops@dreamworld.solutions"
28
- git config user.name "DW Devops"
29
- git remote set-url --push origin https://${GH_TOKEN}@github.com/DreamworldSolutions/$CIRCLE_PROJECT_REPONAME.git
30
- (git checkout -b feature/development origin/master || true)
31
- (git pull origin feature/development || true)
32
- git merge origin/$CIRCLE_BRANCH --no-ff --no-edit
33
- git push origin feature/development
34
- # Push quietly to prevent showing the token in log
35
- git push -q origin feature/development
36
- else
37
- echo "No PR Attached, so not doing anything."
38
- fi
39
-
40
3
  release-snapshot:
41
4
  docker:
42
- - image: circleci/node:14
5
+ - image: cimg/node:lts
43
6
  steps:
44
7
  - checkout
45
- - run: yarn install --frozen-lockfile --non-interactive
8
+ - run: yarn install --frozen-lockfile --non-ineractive
46
9
  - run:
47
10
  name: Deploy
48
11
  command: |
@@ -51,27 +14,16 @@ jobs:
51
14
  npx semantic-release
52
15
  release:
53
16
  docker:
54
- - image: circleci/node:14
17
+ - image: cimg/node:lts
55
18
  steps:
56
19
  - checkout
57
- - run: yarn install --frozen-lockfile --non-interactive
20
+ - run: yarn install --frozen-lockfile --non-ineractive
58
21
  - run: echo "Running release job"
59
22
  - run:
60
23
  name: Deploy
61
24
  command: npx semantic-release
62
25
 
63
-
64
26
  workflows:
65
- version: 2
66
- merge-to-development:
67
- jobs:
68
- - merge-to-development:
69
- context: Dreamworld
70
- filters:
71
- branches:
72
- ignore:
73
- - master
74
- - feature/development
75
27
  release:
76
28
  jobs:
77
29
  - release-snapshot:
@@ -79,10 +31,10 @@ workflows:
79
31
  filters:
80
32
  branches:
81
33
  only:
82
- - feature/development
34
+ - /^feature\/.+$/
83
35
  - release:
84
36
  context: Dreamworld
85
37
  filters:
86
- branches:
87
- only:
88
- - master
38
+ branches:
39
+ only:
40
+ - master
package/README.md CHANGED
@@ -47,4 +47,4 @@ By default ripple is shown in `--mdc-theme-on-surface`. That should be ok for mo
47
47
  special place, set said CSS property to any other color.
48
48
 
49
49
 
50
- it's opacity can't be configured as of now. If needed please raise a feature request.
50
+ it's opacity can't be configured as of now. If needed please raise a feature request.
@@ -57,8 +57,8 @@ export class DwRippleDemo extends LitElement {
57
57
  return html`
58
58
  <section class="main">
59
59
  <mwc-formfield label="Enable dark theme">
60
- <mwc-switch @click="${(e) => {
61
- if (e.target.selected) {
60
+ <mwc-switch @change="${(e) => {
61
+ if (e.target.checked) {
62
62
  this.setAttribute('dark-theme', e.detail);
63
63
  return;
64
64
  }
package/dw-ripple.js CHANGED
@@ -1,4 +1,4 @@
1
- import { css } from 'lit-element';
1
+ import { css } from 'lit';
2
2
 
3
3
  // These are the mwc element needed by this element.
4
4
  import { Ripple } from '@material/mwc-ripple';
@@ -72,7 +72,7 @@ export class DwRipple extends Ripple {
72
72
  parent.addEventListener('mouseenter', this._rippleHander.startHover);
73
73
  parent.addEventListener('mouseleave', this._rippleHander.endHover);
74
74
  parent.addEventListener('mousedown', this.__onMouseDown);
75
- parent.addEventListener('touchstart', this.__onTouchStart);
75
+ parent.addEventListener('touchstart', this.__onTouchStart, { passive: true });
76
76
  parent.addEventListener('focus', this._rippleHander.startFocus);
77
77
  parent.addEventListener('blur', this._rippleHander.endFocus);
78
78
  }
package/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <head>
3
3
  <meta http-equiv="refresh" content="0;url=/demo/" />
4
4
  </head>
5
- <body>
5
+ <body>
6
6
 
7
7
  </body>
8
8
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamworld/dw-ripple",
3
- "version": "2.2.3-development.1",
3
+ "version": "2.2.3-kerika.1",
4
4
  "description": "Ripple element created as child-class of [`mwc-ripple`] (https://github.com/material-components/material-components-web-components/tree/master/packages/ripple)",
5
5
  "main": "dw-ripple.js",
6
6
  "scripts": {
@@ -18,16 +18,16 @@
18
18
  },
19
19
  "homepage": "https://github.com/DreamworldSolutions/dw-ripple#readme",
20
20
  "dependencies": {
21
- "@material/mwc-ripple": "^0.26.1",
22
- "lit-element": "^2.2.0"
21
+ "@material/mwc-ripple": "0.27.0",
22
+ "lit": "^3.3.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@dreamworld/material-styles": "^1.1.0",
26
26
  "@dreamworld/pwa-helpers": "^1.10.0",
27
- "@material/mwc-formfield": "^0.26.1",
28
- "@material/mwc-switch": "^0.26.1",
27
+ "@material/mwc-formfield": "0.20.0",
28
+ "@material/mwc-switch": "0.20.0",
29
29
  "@webcomponents/webcomponentsjs": "^2.2.10",
30
- "semantic-release": "17.4.2"
30
+ "semantic-release": "17.0.8"
31
31
  },
32
32
  "resolutions": {
33
33
  "tslib": "2.1.0"