@spectrum-web-components/color-handle 0.3.11-devmode.0 → 0.4.0-devmode.0

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.
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "sp-color-handle.ts",
7
+ "path": "sp-color-handle.js",
8
8
  "declarations": [],
9
9
  "exports": [
10
10
  {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  {
21
21
  "kind": "javascript-module",
22
- "path": "src/ColorHandle.ts",
22
+ "path": "src/ColorHandle.js",
23
23
  "declarations": [
24
24
  {
25
25
  "kind": "variable",
@@ -169,7 +169,7 @@
169
169
  "name": "extractHueAndSaturationRegExp",
170
170
  "declaration": {
171
171
  "name": "extractHueAndSaturationRegExp",
172
- "module": "src/ColorHandle.ts"
172
+ "module": "src/ColorHandle.js"
173
173
  }
174
174
  },
175
175
  {
@@ -177,7 +177,7 @@
177
177
  "name": "replaceHueAndSaturationRegExp",
178
178
  "declaration": {
179
179
  "name": "replaceHueAndSaturationRegExp",
180
- "module": "src/ColorHandle.ts"
180
+ "module": "src/ColorHandle.js"
181
181
  }
182
182
  },
183
183
  {
@@ -185,7 +185,7 @@
185
185
  "name": "replaceHueRegExp",
186
186
  "declaration": {
187
187
  "name": "replaceHueRegExp",
188
- "module": "src/ColorHandle.ts"
188
+ "module": "src/ColorHandle.js"
189
189
  }
190
190
  },
191
191
  {
@@ -193,7 +193,7 @@
193
193
  "name": "ColorHandle",
194
194
  "declaration": {
195
195
  "name": "ColorHandle",
196
- "module": "src/ColorHandle.ts"
196
+ "module": "src/ColorHandle.js"
197
197
  }
198
198
  }
199
199
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/color-handle",
3
- "version": "0.3.11-devmode.0+07474d44f",
3
+ "version": "0.4.0-devmode.0+7b0ea531e",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,8 +57,8 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.5.9-devmode.24+07474d44f",
61
- "@spectrum-web-components/color-loupe": "^0.3.11-devmode.0+07474d44f",
60
+ "@spectrum-web-components/base": "^0.6.0",
61
+ "@spectrum-web-components/color-loupe": "^0.4.0-devmode.0+7b0ea531e",
62
62
  "tslib": "^2.0.0"
63
63
  },
64
64
  "devDependencies": {
@@ -67,7 +67,8 @@
67
67
  "types": "./src/index.d.ts",
68
68
  "customElements": "custom-elements.json",
69
69
  "sideEffects": [
70
- "./sp-*.js"
70
+ "./sp-*.js",
71
+ "./**/*.dev.js"
71
72
  ],
72
- "gitHead": "07474d44f6cee1db241b9ccf3dc812514ffbe7fa"
73
+ "gitHead": "7b0ea531e9c7225c8964c5429bc5fd005618b80e"
73
74
  }
@@ -1,6 +1,10 @@
1
1
  import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
2
2
  import "@spectrum-web-components/color-handle/sp-color-handle.js";
3
+ import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
3
4
  describe("ColorHandle", () => {
5
+ testForLitDevWarnings(async () => await fixture(html`
6
+ <sp-color-handle></sp-color-handle>
7
+ `));
4
8
  it("loads default color-handle accessibly", async () => {
5
9
  const el = await fixture(html`
6
10
  <sp-color-handle></sp-color-handle>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["color-handle.test.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/color-handle/sp-color-handle.js';\nimport { ColorHandle } from '@spectrum-web-components/color-handle';\n\ndescribe('ColorHandle', () => {\n it('loads default color-handle accessibly', async () => {\n const el = await fixture<ColorHandle>(\n html`\n <sp-color-handle></sp-color-handle>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [open] color-handle accessibly', async () => {\n const el = await fixture<ColorHandle>(\n html`\n <sp-color-handle open></sp-color-handle>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('opens/closes on pointerdown/up/cancel', async () => {\n const el = await fixture<ColorHandle>(\n html`\n <sp-color-handle></sp-color-handle>\n `\n );\n\n await elementUpdated(el);\n el.setPointerCapture = () => {\n return;\n };\n el.releasePointerCapture = () => {\n return;\n };\n\n el.dispatchEvent(\n new PointerEvent('pointerdown', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.true;\n\n el.dispatchEvent(\n new PointerEvent('pointerup', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.false;\n\n el.dispatchEvent(\n new PointerEvent('pointerdown', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.true;\n\n el.dispatchEvent(\n new PointerEvent('pointercancel', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.false;\n });\n});\n"],
5
- "mappings": "AAYA;AAEA;AAGA,SAAS,eAAe,MAAM;AAC1B,KAAG,yCAAyC,YAAY;AACpD,UAAM,KAAK,MAAM,QACb;AAAA;AAAA,aAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,wCAAwC,YAAY;AACnD,UAAM,KAAK,MAAM,QACb;AAAA;AAAA,aAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,yCAAyC,YAAY;AACpD,UAAM,KAAK,MAAM,QACb;AAAA;AAAA,aAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,OAAG,oBAAoB,MAAM;AACzB;AAAA,IACJ;AACA,OAAG,wBAAwB,MAAM;AAC7B;AAAA,IACJ;AAEA,OAAG,cACC,IAAI,aAAa,eAAe;AAAA,MAC5B,WAAW;AAAA,MACX,aAAa;AAAA,IACjB,CAAC,CACL;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,IAAI,EAAE,GAAG,GAAG;AAEtB,OAAG,cACC,IAAI,aAAa,aAAa;AAAA,MAC1B,WAAW;AAAA,MACX,aAAa;AAAA,IACjB,CAAC,CACL;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,IAAI,EAAE,GAAG,GAAG;AAEtB,OAAG,cACC,IAAI,aAAa,eAAe;AAAA,MAC5B,WAAW;AAAA,MACX,aAAa;AAAA,IACjB,CAAC,CACL;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,IAAI,EAAE,GAAG,GAAG;AAEtB,OAAG,cACC,IAAI,aAAa,iBAAiB;AAAA,MAC9B,WAAW;AAAA,MACX,aAAa;AAAA,IACjB,CAAC,CACL;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,IAAI,EAAE,GAAG,GAAG;AAAA,EAC1B,CAAC;AACL,CAAC;",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/color-handle/sp-color-handle.js';\nimport { ColorHandle } from '@spectrum-web-components/color-handle';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('ColorHandle', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<ColorHandle>(\n html`\n <sp-color-handle></sp-color-handle>\n `\n )\n );\n it('loads default color-handle accessibly', async () => {\n const el = await fixture<ColorHandle>(\n html`\n <sp-color-handle></sp-color-handle>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [open] color-handle accessibly', async () => {\n const el = await fixture<ColorHandle>(\n html`\n <sp-color-handle open></sp-color-handle>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('opens/closes on pointerdown/up/cancel', async () => {\n const el = await fixture<ColorHandle>(\n html`\n <sp-color-handle></sp-color-handle>\n `\n );\n\n await elementUpdated(el);\n el.setPointerCapture = () => {\n return;\n };\n el.releasePointerCapture = () => {\n return;\n };\n\n el.dispatchEvent(\n new PointerEvent('pointerdown', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.true;\n\n el.dispatchEvent(\n new PointerEvent('pointerup', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.false;\n\n el.dispatchEvent(\n new PointerEvent('pointerdown', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.true;\n\n el.dispatchEvent(\n new PointerEvent('pointercancel', {\n pointerId: 1,\n pointerType: 'touch',\n })\n );\n\n await elementUpdated(el);\n\n expect(el.open).to.be.false;\n });\n});\n"],
5
+ "mappings": "AAYA;AAEA;AAEA;AAEA,SAAS,eAAe,MAAM;AAC1B,wBACI,YACI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