@microsoft/fast-element 2.0.0-beta.12 → 2.0.0-beta.14
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.json +36 -0
- package/CHANGELOG.md +18 -1
- package/dist/dts/templating/binding.d.ts +7 -13
- package/dist/dts/testing/fakes.d.ts +10 -1
- package/dist/esm/templating/binding.js +41 -47
- package/dist/esm/testing/fakes.js +30 -1
- package/dist/fast-element.api.json +9 -9
- package/dist/fast-element.d.ts +6 -9
- package/dist/fast-element.debug.js +41 -47
- package/dist/fast-element.debug.min.js +1 -1
- package/dist/fast-element.js +41 -47
- package/dist/fast-element.min.js +1 -1
- package/dist/fast-element.untrimmed.d.ts +7 -13
- package/docs/api-report.md +4 -10
- package/package.json +1 -1
- package/yarn-error.log +177 -0
|
@@ -265,12 +265,12 @@ export declare type AttributeMode = typeof reflectMode | typeof booleanMode | "f
|
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* Creates an standard binding.
|
|
268
|
-
* @param
|
|
268
|
+
* @param expression - The binding to refresh when changed.
|
|
269
269
|
* @param isVolatile - Indicates whether the binding is volatile or not.
|
|
270
270
|
* @returns A binding configuration.
|
|
271
271
|
* @public
|
|
272
272
|
*/
|
|
273
|
-
export declare function bind<T = any>(
|
|
273
|
+
export declare function bind<T = any>(expression: Expression<T>, isVolatile?: boolean): Binding<T>;
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Captures a binding expression along with related information and capabilities.
|
|
@@ -1367,13 +1367,7 @@ export declare class HTMLBindingDirective implements HTMLDirective, ViewBehavior
|
|
|
1367
1367
|
*/
|
|
1368
1368
|
createBehavior(): ViewBehavior;
|
|
1369
1369
|
/** @internal */
|
|
1370
|
-
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
bind: (controller: ViewController) => void;
|
|
1373
|
-
/** @internal */
|
|
1374
|
-
bindContent(controller: ViewController): void;
|
|
1375
|
-
/** @internal */
|
|
1376
|
-
bindEvent(controller: ViewController): void;
|
|
1370
|
+
bind(controller: ViewController): void;
|
|
1377
1371
|
/** @internal */
|
|
1378
1372
|
unbind(controller: ViewController): void;
|
|
1379
1373
|
/** @internal */
|
|
@@ -1602,12 +1596,12 @@ export declare function lengthOf<T>(array: readonly T[]): number;
|
|
|
1602
1596
|
|
|
1603
1597
|
/**
|
|
1604
1598
|
* Creates an event listener binding.
|
|
1605
|
-
* @param
|
|
1599
|
+
* @param expression - The binding to invoke when the event is raised.
|
|
1606
1600
|
* @param options - Event listener options.
|
|
1607
1601
|
* @returns A binding configuration.
|
|
1608
1602
|
* @public
|
|
1609
1603
|
*/
|
|
1610
|
-
export declare function listener<T = any>(
|
|
1604
|
+
export declare function listener<T = any>(expression: Expression<T>, options?: AddEventListenerOptions): Binding<T>;
|
|
1611
1605
|
|
|
1612
1606
|
/**
|
|
1613
1607
|
* Common APIs related to markup generation.
|
|
@@ -1864,11 +1858,11 @@ export declare interface ObservationRecord {
|
|
|
1864
1858
|
|
|
1865
1859
|
/**
|
|
1866
1860
|
* Creates a one time binding
|
|
1867
|
-
* @param
|
|
1861
|
+
* @param expression - The binding to refresh when signaled.
|
|
1868
1862
|
* @returns A binding configuration.
|
|
1869
1863
|
* @public
|
|
1870
1864
|
*/
|
|
1871
|
-
export declare function oneTime<T = any>(
|
|
1865
|
+
export declare function oneTime<T = any>(expression: Expression<T>): Binding<T>;
|
|
1872
1866
|
|
|
1873
1867
|
/**
|
|
1874
1868
|
* Common APIs related to content parsing.
|
package/docs/api-report.md
CHANGED
|
@@ -96,7 +96,7 @@ export class AttributeDefinition implements Accessor {
|
|
|
96
96
|
export type AttributeMode = typeof reflectMode | typeof booleanMode | "fromView";
|
|
97
97
|
|
|
98
98
|
// @public
|
|
99
|
-
export function bind<T = any>(
|
|
99
|
+
export function bind<T = any>(expression: Expression<T>, isVolatile?: boolean): Binding<T>;
|
|
100
100
|
|
|
101
101
|
// @public
|
|
102
102
|
export abstract class Binding<TSource = any, TReturn = any, TParent = any> {
|
|
@@ -436,13 +436,7 @@ export class HTMLBindingDirective implements HTMLDirective, ViewBehaviorFactory,
|
|
|
436
436
|
constructor(dataBinding: Binding);
|
|
437
437
|
aspectType: Aspect;
|
|
438
438
|
// @internal (undocumented)
|
|
439
|
-
bind
|
|
440
|
-
// @internal (undocumented)
|
|
441
|
-
bindContent(controller: ViewController): void;
|
|
442
|
-
// @internal (undocumented)
|
|
443
|
-
bindDefault(controller: ViewController): void;
|
|
444
|
-
// @internal (undocumented)
|
|
445
|
-
bindEvent(controller: ViewController): void;
|
|
439
|
+
bind(controller: ViewController): void;
|
|
446
440
|
createBehavior(): ViewBehavior;
|
|
447
441
|
createHTML(add: AddViewBehaviorFactory): string;
|
|
448
442
|
// (undocumented)
|
|
@@ -529,7 +523,7 @@ export interface LengthObserver extends Subscriber {
|
|
|
529
523
|
export function lengthOf<T>(array: readonly T[]): number;
|
|
530
524
|
|
|
531
525
|
// @public
|
|
532
|
-
export function listener<T = any>(
|
|
526
|
+
export function listener<T = any>(expression: Expression<T>, options?: AddEventListenerOptions): Binding<T>;
|
|
533
527
|
|
|
534
528
|
// @public
|
|
535
529
|
export const Markup: Readonly<{
|
|
@@ -600,7 +594,7 @@ export interface ObservationRecord {
|
|
|
600
594
|
}
|
|
601
595
|
|
|
602
596
|
// @public
|
|
603
|
-
export function oneTime<T = any>(
|
|
597
|
+
export function oneTime<T = any>(expression: Expression<T>): Binding<T>;
|
|
604
598
|
|
|
605
599
|
// @public
|
|
606
600
|
export const Parser: Readonly<{
|
package/package.json
CHANGED
package/yarn-error.log
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
/Users/christopherholt/.nvm/versions/node/v16.14.2/bin/node /Users/christopherholt/repos/fast-dna/.yarn/releases/yarn-1.22.11.cjs clean:dist
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
/Users/christopherholt/repos/fast-dna/packages/web-components/fast-element/node_modules/.bin:/Users/christopherholt/repos/fast-dna/packages/web-components/node_modules/.bin:/Users/christopherholt/repos/fast-dna/packages/node_modules/.bin:/Users/christopherholt/repos/fast-dna/node_modules/.bin:/Users/christopherholt/repos/node_modules/.bin:/Users/christopherholt/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/christopherholt/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/christopherholt/.nvm/versions/node/v16.14.2/bin:/usr/local/opt/openssl/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.11
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
16.14.2
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
darwin x64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
SyntaxError: /Users/christopherholt/repos/fast-dna/package.json: Unexpected token / in JSON at position 353
|
|
18
|
+
at JSON.parse (<anonymous>)
|
|
19
|
+
at /Users/christopherholt/repos/fast-dna/.yarn/releases/yarn-1.22.11.cjs:1098:57
|
|
20
|
+
at Generator.next (<anonymous>)
|
|
21
|
+
at step (/Users/christopherholt/repos/fast-dna/.yarn/releases/yarn-1.22.11.cjs:310:30)
|
|
22
|
+
at /Users/christopherholt/repos/fast-dna/.yarn/releases/yarn-1.22.11.cjs:321:13
|
|
23
|
+
|
|
24
|
+
npm manifest:
|
|
25
|
+
{
|
|
26
|
+
"name": "@microsoft/fast-element",
|
|
27
|
+
"description": "A library for constructing Web Components",
|
|
28
|
+
"version": "2.0.0-beta.14",
|
|
29
|
+
"author": {
|
|
30
|
+
"name": "Microsoft",
|
|
31
|
+
"url": "https://discord.gg/FcSNfg4"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://www.fast.design/",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/Microsoft/fast.git",
|
|
38
|
+
"directory": "packages/web-components/fast-element"
|
|
39
|
+
},
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/Microsoft/fast/issues/new/choose"
|
|
42
|
+
},
|
|
43
|
+
"type": "module",
|
|
44
|
+
"main": "dist/esm/index.js",
|
|
45
|
+
"types": "dist/dts/index.d.ts",
|
|
46
|
+
"exports": {
|
|
47
|
+
".": {
|
|
48
|
+
"types": "./dist/dts/index.d.ts",
|
|
49
|
+
"production": "./dist/esm/index.js",
|
|
50
|
+
"development": "./dist/esm/index.debug.js",
|
|
51
|
+
"default": "./dist/esm/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./debug": {
|
|
54
|
+
"types": "./dist/dts/debug.d.ts",
|
|
55
|
+
"default": "./dist/esm/debug.js"
|
|
56
|
+
},
|
|
57
|
+
"./binding/two-way": {
|
|
58
|
+
"types": "./dist/dts/templating/binding-two-way.d.ts",
|
|
59
|
+
"default": "./dist/esm/templating/binding-two-way.js"
|
|
60
|
+
},
|
|
61
|
+
"./binding/signal": {
|
|
62
|
+
"types": "./dist/dts/templating/binding-signal.d.ts",
|
|
63
|
+
"default": "./dist/esm/templating/binding-signal.js"
|
|
64
|
+
},
|
|
65
|
+
"./render": {
|
|
66
|
+
"types": "./dist/dts/templating/render.d.ts",
|
|
67
|
+
"default": "./dist/esm/templating/render.js"
|
|
68
|
+
},
|
|
69
|
+
"./utilities": {
|
|
70
|
+
"types": "./dist/dts/utilities.d.ts",
|
|
71
|
+
"default": "./dist/esm/utilities.js"
|
|
72
|
+
},
|
|
73
|
+
"./state": {
|
|
74
|
+
"types": "./dist/dts/state/exports.d.ts",
|
|
75
|
+
"default": "./dist/esm/state/exports.js"
|
|
76
|
+
},
|
|
77
|
+
"./context": {
|
|
78
|
+
"types": "./dist/dts/context.d.ts",
|
|
79
|
+
"default": "./dist/esm/context.js"
|
|
80
|
+
},
|
|
81
|
+
"./metadata": {
|
|
82
|
+
"types": "./dist/dts/metadata.d.ts",
|
|
83
|
+
"default": "./dist/esm/metadata.js"
|
|
84
|
+
},
|
|
85
|
+
"./testing": {
|
|
86
|
+
"types": "./dist/dts/testing/exports.d.ts",
|
|
87
|
+
"default": "./dist/esm/testing/exports.js"
|
|
88
|
+
},
|
|
89
|
+
"./di": {
|
|
90
|
+
"types": "./dist/dts/di/di.d.ts",
|
|
91
|
+
"default": "./dist/esm/di/di.js"
|
|
92
|
+
},
|
|
93
|
+
"./pending-task": {
|
|
94
|
+
"types": "./dist/dts/pending-task.d.ts",
|
|
95
|
+
"default": "./dist/esm/pending-task.js"
|
|
96
|
+
},
|
|
97
|
+
"./package.json": "./package.json"
|
|
98
|
+
},
|
|
99
|
+
"unpkg": "dist/fast-element.min.js",
|
|
100
|
+
"sideEffects": [
|
|
101
|
+
"./dist/esm/debug.js",
|
|
102
|
+
"./dist/esm/polyfills.js"
|
|
103
|
+
],
|
|
104
|
+
"scripts": {
|
|
105
|
+
"clean:dist": "node ../../../build/clean.js dist",
|
|
106
|
+
"doc": "api-extractor run --local",
|
|
107
|
+
"doc:ci": "api-extractor run",
|
|
108
|
+
"build": "yarn build:tsc && yarn build:rollup && yarn doc",
|
|
109
|
+
"build:rollup": "rollup -c",
|
|
110
|
+
"build:tsc": "tsc -p ./tsconfig.json",
|
|
111
|
+
"dev": "tsc -p ./tsconfig.json -w",
|
|
112
|
+
"tdd": "yarn dev & yarn test-chrome:watch",
|
|
113
|
+
"prepare": "yarn clean:dist && yarn build",
|
|
114
|
+
"prettier": "prettier --config ../../../.prettierrc --write \"**/*.ts\"",
|
|
115
|
+
"prettier:diff": "prettier --config ../../../.prettierrc \"**/*.ts\" --list-different",
|
|
116
|
+
"eslint": "eslint . --ext .ts",
|
|
117
|
+
"eslint:fix": "eslint . --ext .ts --fix",
|
|
118
|
+
"test": "yarn eslint && yarn test-chrome:verbose && yarn doc:ci",
|
|
119
|
+
"test-node": "mocha --reporter min --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
|
|
120
|
+
"test-node:verbose": "mocha --reporter spec --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
|
|
121
|
+
"test-chrome": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --single-run --coverage",
|
|
122
|
+
"test-chrome:verbose": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --single-run --coverage --reporter=mocha",
|
|
123
|
+
"test-chrome:watch": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --coverage --watch-extensions js",
|
|
124
|
+
"test-chrome:debugger": "karma start karma.conf.cjs --browsers=ChromeDebugging",
|
|
125
|
+
"test-chrome:verbose:watch": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --coverage --watch-extensions js --reporter=mocha",
|
|
126
|
+
"test-chrome:verbose:debugger": "karma start karma.conf.cjs --browsers=ChromeDebugging --reporter=mocha",
|
|
127
|
+
"test-firefox": "karma start karma.conf.cjs --browsers=FirefoxHeadless --single-run --coverage",
|
|
128
|
+
"test-firefox:verbose": "karma start karma.conf.cjs --browsers=FirefoxHeadless --single-run --coverage --reporter=mocha"
|
|
129
|
+
},
|
|
130
|
+
"devDependencies": {
|
|
131
|
+
"@microsoft/api-extractor": "7.24.2",
|
|
132
|
+
"@types/chai": "^4.2.11",
|
|
133
|
+
"@types/chai-spies": "^1.0.3",
|
|
134
|
+
"@types/karma": "^6.3.3",
|
|
135
|
+
"@types/mocha": "^7.0.2",
|
|
136
|
+
"@types/webpack-env": "^1.15.2",
|
|
137
|
+
"chai": "^4.2.0",
|
|
138
|
+
"chai-spies": "^1.0.0",
|
|
139
|
+
"esm": "^3.2.25",
|
|
140
|
+
"ignore-loader": "^0.1.2",
|
|
141
|
+
"istanbul": "^0.4.5",
|
|
142
|
+
"istanbul-instrumenter-loader": "^3.0.1",
|
|
143
|
+
"jsdom": "^16.2.2",
|
|
144
|
+
"jsdom-global": "3.0.2",
|
|
145
|
+
"karma": "^6.4.1",
|
|
146
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
147
|
+
"karma-coverage": "^2.0.2",
|
|
148
|
+
"karma-coverage-istanbul-reporter": "^3.0.0",
|
|
149
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
150
|
+
"karma-mocha": "^2.0.1",
|
|
151
|
+
"karma-mocha-reporter": "^2.2.5",
|
|
152
|
+
"karma-source-map-support": "^1.4.0",
|
|
153
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
154
|
+
"karma-webpack": "^5.0.0",
|
|
155
|
+
"mocha": "^7.1.2",
|
|
156
|
+
"prettier": "2.0.2",
|
|
157
|
+
"rollup": "^2.71.1",
|
|
158
|
+
"rollup-plugin-filesize": "^9.1.2",
|
|
159
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
160
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
161
|
+
"source-map": "^0.7.3",
|
|
162
|
+
"source-map-loader": "^0.2.4",
|
|
163
|
+
"ts-loader": "^7.0.2",
|
|
164
|
+
"ts-node": "^8.9.1",
|
|
165
|
+
"tsconfig-paths": "^3.9.0",
|
|
166
|
+
"tslib": "^2.4.0",
|
|
167
|
+
"typescript": "^4.7.0",
|
|
168
|
+
"webpack": "^5.72.0",
|
|
169
|
+
"webpack-cli": "^4.9.2"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
yarn manifest:
|
|
174
|
+
No manifest
|
|
175
|
+
|
|
176
|
+
Lockfile:
|
|
177
|
+
No lockfile
|