@ethlete/core 0.2.0-next.10 → 0.2.0-next.11
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/esm2020/lib/components/public-api.mjs +2 -0
- package/esm2020/lib/components/structured-data/public-api.mjs +2 -0
- package/esm2020/lib/components/structured-data/structured-data.component.mjs +37 -0
- package/esm2020/lib/public-api.mjs +2 -1
- package/esm2020/lib/utils/public-api.mjs +3 -2
- package/esm2020/lib/utils/reactive-binding.util.mjs +67 -0
- package/fesm2015/ethlete-core.mjs +106 -8
- package/fesm2015/ethlete-core.mjs.map +1 -1
- package/fesm2020/ethlete-core.mjs +106 -8
- package/fesm2020/ethlete-core.mjs.map +1 -1
- package/lib/components/public-api.d.ts +1 -0
- package/lib/components/structured-data/public-api.d.ts +1 -0
- package/lib/components/structured-data/structured-data.component.d.ts +11 -0
- package/lib/public-api.d.ts +1 -0
- package/lib/utils/public-api.d.ts +2 -1
- package/lib/utils/reactive-binding.util.d.ts +14 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './structured-data/public-api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './structured-data.component';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import { JsonLD } from '@ethlete/types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StructuredDataComponent {
|
|
5
|
+
private readonly _sanitizer;
|
|
6
|
+
set data(currentValue: JsonLD.WithContext<JsonLD.Thing> | JsonLD.Graph | null | undefined);
|
|
7
|
+
jsonLD?: SafeHtml;
|
|
8
|
+
getSafeHTML(value: JsonLD.WithContext<JsonLD.Thing> | JsonLD.Graph | null | undefined): SafeHtml;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StructuredDataComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StructuredDataComponent, "et-structured-data", never, { "data": "data"; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
package/lib/public-api.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export type ReactiveAttributes = {
|
|
3
|
+
attribute: string | string[];
|
|
4
|
+
observable: Observable<{
|
|
5
|
+
render: boolean;
|
|
6
|
+
value: boolean | string | number;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
9
|
+
export interface ReactiveBindingResult {
|
|
10
|
+
reset: () => void;
|
|
11
|
+
remove: (...attributes: string[]) => void;
|
|
12
|
+
push: (value: ReactiveAttributes) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const createReactiveBindings: (...values: ReactiveAttributes[]) => ReactiveBindingResult;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/core",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.11",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "2.4.1"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@angular/common": "^14.0.0 || ^15.0.0",
|
|
9
9
|
"@angular/core": "^14.0.0 || ^15.0.0",
|
|
10
|
-
"rxjs": "7.8.0",
|
|
11
|
-
"@angular/cdk": "15.1.0",
|
|
12
10
|
"@angular/platform-browser": "15.1.0",
|
|
13
|
-
"@ethlete/types": "0.2.0-next.
|
|
11
|
+
"@ethlete/types": "0.2.0-next.4",
|
|
12
|
+
"rxjs": "7.8.0",
|
|
13
|
+
"@angular/cdk": "15.1.0"
|
|
14
14
|
},
|
|
15
15
|
"module": "fesm2015/ethlete-core.mjs",
|
|
16
16
|
"es2020": "fesm2020/ethlete-core.mjs",
|