@shoper/phoenix_design_system 0.1.2 → 0.1.3

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.
@@ -17,6 +17,7 @@ class ContextConsumerController {
17
17
  const consumeEvent = new CustomEvent(context_consumer_messages_names.WEB_COMPONENT_CONTEXT_EVENTS.valueRequested, {
18
18
  bubbles: true,
19
19
  cancelable: true,
20
+ composed: true,
20
21
  detail: { key }
21
22
  });
22
23
  tslib_es6.__classPrivateFieldGet(this, _ContextConsumerController_host, "f").dispatchEvent(consumeEvent);
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../../external/tslib/tslib.es6.js');
5
+ var tslib_es6 = require('../../../../external/tslib/tslib.es6.js');
6
6
  var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,sCAA0C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,yCAA6C;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var context_provider_controller = require('./core/context/context_provider_controller.js');
6
6
  var context_consumer_controller = require('./core/context/context_consumer_controller.js');
7
7
  var phoenix_light_lit_element = require('./core/phoenix_light_lit_element.js');
8
- var hello_button = require('./hello_button.js');
8
+ var hello_button = require('./core/hello_button.js');
9
9
 
10
10
 
11
11
 
@@ -1,8 +1,8 @@
1
1
  import { ReactiveController } from 'lit';
2
- import { TContextValueKey, TContextControllerHost } from "./context_controller_types";
2
+ import { TContextValueKey, TWebComponentsContextControllerHost } from "./context_controller_types";
3
3
  export declare class ContextConsumerController<TValue> implements ReactiveController {
4
4
  #private;
5
- constructor(host: TContextControllerHost);
5
+ constructor(host: TWebComponentsContextControllerHost);
6
6
  consume(key: TContextValueKey): TValue;
7
7
  hostConnected(): void;
8
8
  }
@@ -13,6 +13,7 @@ class ContextConsumerController {
13
13
  const consumeEvent = new CustomEvent(WEB_COMPONENT_CONTEXT_EVENTS.valueRequested, {
14
14
  bubbles: true,
15
15
  cancelable: true,
16
+ composed: true,
16
17
  detail: { key }
17
18
  });
18
19
  __classPrivateFieldGet(this, _ContextConsumerController_host, "f").dispatchEvent(consumeEvent);
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,4CAAgD;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,4CAAgD;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,5 +1,5 @@
1
1
  import { ReactiveControllerHost } from 'lit';
2
- export declare type TContextControllerHost = ReactiveControllerHost & Element;
2
+ export declare type TWebComponentsContextControllerHost = ReactiveControllerHost & Element;
3
3
  export declare type TConsumerEventDetails<TValue> = {
4
4
  [key: string]: TValue | TContextValueKey;
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import { ReactiveController } from 'lit';
2
- import { TContextValueKey, TContextControllerHost } from "./context_controller_types";
2
+ import { TContextValueKey, TWebComponentsContextControllerHost } from "./context_controller_types";
3
3
  export declare class ContextProviderController<TValue> implements ReactiveController {
4
4
  #private;
5
- constructor(host: TContextControllerHost);
5
+ constructor(host: TWebComponentsContextControllerHost);
6
6
  provide(key: TContextValueKey, value: TValue): void;
7
7
  hostConnected(): void;
8
8
  hostDisconnected(): void;
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from '../../../external/tslib/tslib.es6.js';
1
+ import { __decorate, __metadata } from '../../../../external/tslib/tslib.es6.js';
2
2
  import { LitElement, html, css } from 'lit';
3
3
  import { state, customElement } from 'lit/decorators';
4
4
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,sCAA0C;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,yCAA6C;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,4 +1,4 @@
1
1
  export { ContextProviderController } from "./core/context/context_provider_controller";
2
2
  export { ContextConsumerController } from "./core/context/context_consumer_controller";
3
3
  export { PhoenixLightLitElement } from "./core/phoenix_light_lit_element";
4
- export { HelloButton } from './hello_button';
4
+ export { HelloButton } from './core/hello_button';
@@ -1,5 +1,5 @@
1
1
  export { ContextProviderController } from './core/context/context_provider_controller.js';
2
2
  export { ContextConsumerController } from './core/context/context_consumer_controller.js';
3
3
  export { PhoenixLightLitElement } from './core/phoenix_light_lit_element.js';
4
- export { HelloButton } from './hello_button.js';
4
+ export { HelloButton } from './core/hello_button.js';
5
5
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "0.1.2",
5
+ "version": "0.1.3",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "storybook": "start-storybook --no-open --port 6007",
23
23
  "build": "rimraf ./build/ && tsc --project tsconfig.build.json && rollup --config rollup.config.js",
24
24
  "watch": "rollup --config rollup.config.js --watch",
25
- "tests:unit": "jest --no-cache --max-workers=50% -c .config/jest/jest.config.js",
25
+ "tests:unit": "jest --max-workers=50% -c .config/jest/jest.config.js",
26
26
  "watch:tests:unit": "jest --watch -c .config/jest/jest.config.js"
27
27
  },
28
28
  "devDependencies": {