@mediafly/js-ui 50.4.1 → 50.4.3-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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## @mediafly/js-ui changelog
2
2
 
3
+ **50.4.2**
4
+
5
+ * Update decorators to support use in TypeScript 5 (this project is still on TypeScript 4)
6
+
3
7
  **50.4.1**
4
8
 
5
9
  * Fix a bug with the font picker in the rich text editor
@@ -4,6 +4,6 @@ export declare function Component(options: {
4
4
  selector: string;
5
5
  } & ng.IComponentOptions): (target: any) => any;
6
6
  export declare function Injectable(name: string): (target: any) => void;
7
- export declare function Inject(dependency?: string): (target: any, _propertyKey: string, _propertyIndex: number) => void;
7
+ export declare function Inject(dependency?: string): (target: any, _propertyKey: string | undefined, _propertyIndex: number) => void;
8
8
  export declare function Input(binding?: '<' | '=' | '=?' | '@'): (target: any, propertyKey: string) => void;
9
9
  export declare function Output(binding?: '&' | '&?'): (target: any, propertyKey: string) => void;
@@ -31,6 +31,10 @@ function Injectable(name) {
31
31
  };
32
32
  }
33
33
  exports.Injectable = Injectable;
34
+ // In TypeScript 5, we need to account for the constructor param key being undefined.
35
+ // We're on TypeScript 4 in this project, but this still causes a problem.
36
+ // A TS 5 project that consumes code that consumes these decorators will fail regardless.
37
+ // See: https://github.com/microsoft/TypeScript/issues/52435
34
38
  function Inject(dependency) {
35
39
  return function (target, _propertyKey, _propertyIndex) {
36
40
  const injections = Reflect.getMetadata('angular:injections', target) || [];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/decorators/index.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA6B;AAC7B,4BAAyB;AAGzB,SAAgB,SAAS,CAAC,OAAoD;IAE7E,OAAO,UAAS,MAAM;QAErB,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,IAAI,EAAE,CAAA;QAC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ctrl.tabs"
5
8
  ng-class="{ 'is-active': tab.tabId === $ctrl.activeTab, 'is-disabled': tab.isDisabled }"
6
9
  ng-click="$ctrl.startTabChange(tab)"
7
10
  ng-hide="tab.isHidden"
8
11
  ng-style="tab.tabId === $ctrl.activeTab && $ctrl.activeTabStyle"
9
- class="o-tabs__header__tab">
12
+ class="o-tabs__header__tab"
13
+ role="tab"
14
+ >
10
15
  <span ng-if="tab.htmlTitle" mfly-tab-html-title-append="tab.htmlTitle"></span>
11
16
  <span ng-if="!tab.htmlTitle">{{ tab.tabTitle }}</span>
12
17
  </li>
@@ -177,8 +177,8 @@
177
177
  "affectsGlobalScope": true
178
178
  },
179
179
  "../src/components/decorators/index.ts": {
180
- "version": "b63ce6e053b603e8b57ae2310c2726cb33db697535f8b198cb150f11495d30d1",
181
- "signature": "5555a35bf7e2b12eef998099fd9876b5ad8b35d7cf3c8e20a9793fd1f8e94fa0",
180
+ "version": "7a755c8dbcf4bc9abb754b72f310b606fbcf4052c317aad6243360b76471b765",
181
+ "signature": "94a1c04c519802aaa82a8e2dba8e58b7394da84cdd305621c9f03dc2d018f9c1",
182
182
  "affectsGlobalScope": false
183
183
  },
184
184
  "../src/components/actionable-empty-state/actionable-empty-state.ts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediafly/js-ui",
3
- "version": "50.4.1",
3
+ "version": "50.4.3-0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "UI components for Mediafly Angular applications",
6
6
  "repository": {
@@ -40,10 +40,13 @@ export function Injectable(name: string) {
40
40
  }
41
41
  }
42
42
 
43
-
43
+ // In TypeScript 5, we need to account for the constructor param key being undefined.
44
+ // We're on TypeScript 4 in this project, but this still causes a problem.
45
+ // A TS 5 project that consumes code that consumes these decorators will fail regardless.
46
+ // See: https://github.com/microsoft/TypeScript/issues/52435
44
47
  export function Inject(dependency?: string) {
45
48
 
46
- return function(target, _propertyKey: string, _propertyIndex: number) {
49
+ return function(target, _propertyKey: string | undefined, _propertyIndex: number) {
47
50
 
48
51
  const injections: string[] = Reflect.getMetadata('angular:injections', target) || []
49
52
 
@@ -33,6 +33,11 @@ rich-text {
33
33
  }
34
34
  }
35
35
 
36
+ .ql-editor a {
37
+ // allows links to be colored when bold or italic
38
+ color: inherit;
39
+ }
40
+
36
41
  .o-text-validation.c-rich-text__validation {
37
42
  bottom: 8px;
38
43
  right: 10px;
@@ -1,12 +1,17 @@
1
1
  <div class="o-tabs" ng-show="!$ctrl.allTabsHidden">
2
- <ul class="o-tabs__header">
2
+ <ul
3
+ class="o-tabs__header"
4
+ role="tablist"
5
+ >
3
6
  <li id="{{ tab.tabId }}"
4
7
  ng-repeat="tab in $ctrl.tabs"
5
8
  ng-class="{ 'is-active': tab.tabId === $ctrl.activeTab, 'is-disabled': tab.isDisabled }"
6
9
  ng-click="$ctrl.startTabChange(tab)"
7
10
  ng-hide="tab.isHidden"
8
11
  ng-style="tab.tabId === $ctrl.activeTab && $ctrl.activeTabStyle"
9
- class="o-tabs__header__tab">
12
+ class="o-tabs__header__tab"
13
+ role="tab"
14
+ >
10
15
  <span ng-if="tab.htmlTitle" mfly-tab-html-title-append="tab.htmlTitle"></span>
11
16
  <span ng-if="!tab.htmlTitle">{{ tab.tabTitle }}</span>
12
17
  </li>