@quenk/wml 2.13.7 → 2.13.9
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/lib/compile/codegen.d.ts +2 -2
- package/lib/compile/index.d.ts +1 -1
- package/lib/dom.js +1 -4
- package/lib/dom.js.map +1 -1
- package/lib/dom.ts +2 -6
- package/lib/index.d.ts +6 -6
- package/lib/parse/ast.d.ts +16 -16
- package/lib/tsconfig.json +1 -1
- package/package.json +1 -1
package/lib/compile/codegen.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ export declare const THIS = "__this";
|
|
|
12
12
|
/**
|
|
13
13
|
* TypeScript code.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type TypeScript = string;
|
|
16
16
|
/**
|
|
17
17
|
* TypeOrMap
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type TypeOrMap = TypeScript | ExpandedTypeMap;
|
|
20
20
|
/**
|
|
21
21
|
* TypeMap contains a recursive map of dotted paths to Type nodes.
|
|
22
22
|
*/
|
package/lib/compile/index.d.ts
CHANGED
package/lib/dom.js
CHANGED
|
@@ -11,9 +11,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
exports.createElement = exports.unsafe = exports.text = exports.createUnsafeNode = exports.createTextNode = exports.escapeHTML = exports.escapeAttrValue = exports.isBrowser = exports.WMLDOMElement = exports.WMLDOMText = exports.WMLDOMNode = exports.WMLNodeList = void 0;
|
|
12
12
|
const record_1 = require("@quenk/noni/lib/data/record");
|
|
13
13
|
const type_1 = require("@quenk/noni/lib/data/type");
|
|
14
|
-
// Declared so isBrowser works on node.js.
|
|
15
|
-
let window = global;
|
|
16
|
-
let document = global.document;
|
|
17
14
|
const DOCTYPE = '<!DOCTYPE html>';
|
|
18
15
|
const ATTR_ESC_MAP = {
|
|
19
16
|
'&': '\\u0026',
|
|
@@ -226,7 +223,7 @@ exports.WMLDOMElement = WMLDOMElement;
|
|
|
226
223
|
/**
|
|
227
224
|
* isBrowser is set to true if we detect a window and document global variable.
|
|
228
225
|
*/
|
|
229
|
-
exports.isBrowser =
|
|
226
|
+
exports.isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
230
227
|
/**
|
|
231
228
|
* escapeAttrValue for safe browser display.
|
|
232
229
|
*/
|
package/lib/dom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.js","sourceRoot":"","sources":["dom.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,wDAAqE;AACrE,oDAAuE;AAEvE,
|
|
1
|
+
{"version":3,"file":"dom.js","sourceRoot":"","sources":["dom.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,wDAAqE;AACrE,oDAAuE;AAEvE,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC,MAAM,YAAY,GAA8B;IAE5C,GAAG,EAAE,SAAS;IAEd,GAAG,EAAE,SAAS;IAEd,GAAG,EAAE,SAAS;IAEd,GAAG,EAAE,SAAS;IAEd,GAAG,EAAE,SAAS;IAEd,QAAQ,EAAE,SAAS;IAEnB,QAAQ,EAAE,SAAS;IAEnB,QAAQ,EAAE,SAAS;CAEtB,CAAA;AAED,MAAM,aAAa,GAAG,IAAI,MAAM,CAAC,IAAI,IAAA,cAAK,EAAC,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE/E,MAAM,YAAY,GAA8B;IAE5C,GAAG,EAAE,QAAQ;IAEb,GAAG,EAAE,OAAO;IAEZ,IAAI,EAAE,QAAQ;IAEd,GAAG,EAAE,MAAM;IAEX,GAAG,EAAE,MAAM;CAEd,CAAA;AAED,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,IAAI,IAAA,cAAK,EAAC,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG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aAEpC;QAEL,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAEjB,QAAQ,OAAO,CAAC,EAAE;gBAEd,KAAK,QAAQ,CAAC;gBACd,KAAK,QAAQ,CAAC;gBACd,KAAK,SAAS;oBACV,CAAC,CAAC,WAAW,CAAO,QAAQ,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;gBACzD,KAAK,QAAQ;oBACT,CAAC,CAAC,WAAW,CAAO,CAAC,CAAC,CAAC;oBACvB,MAAM;gBACV;oBACI,MAAM,IAAI,SAAS,CACf,uBAAuB,CAAC,YAAY,OAAO,CAAC,EAAE,CACjD,CAAC;aAET;QAEL,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,CAAC;KAEZ;AAEL,CAAC,CAAA;AAlEY,QAAA,aAAa,iBAkEzB"}
|
package/lib/dom.ts
CHANGED
|
@@ -10,10 +10,6 @@
|
|
|
10
10
|
import { Record, mapTo, forEach } from '@quenk/noni/lib/data/record';
|
|
11
11
|
import { Type, isFunction, isObject } from '@quenk/noni/lib/data/type';
|
|
12
12
|
|
|
13
|
-
// Declared so isBrowser works on node.js.
|
|
14
|
-
let window: Type = global;
|
|
15
|
-
let document: Type = global.document;
|
|
16
|
-
|
|
17
13
|
const DOCTYPE = '<!DOCTYPE html>';
|
|
18
14
|
|
|
19
15
|
const ATTR_ESC_MAP: { [key: string]: string } = {
|
|
@@ -367,7 +363,7 @@ export class WMLDOMElement extends WMLDOMNode {
|
|
|
367
363
|
/**
|
|
368
364
|
* isBrowser is set to true if we detect a window and document global variable.
|
|
369
365
|
*/
|
|
370
|
-
export const isBrowser =
|
|
366
|
+
export const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
371
367
|
|
|
372
368
|
/**
|
|
373
369
|
* escapeAttrValue for safe browser display.
|
|
@@ -446,7 +442,7 @@ export const createElement = (
|
|
|
446
442
|
|
|
447
443
|
} else if (!isBrowser && value instanceof WMLDOMText) {
|
|
448
444
|
|
|
449
|
-
e.setAttribute(key, value);
|
|
445
|
+
e.setAttribute(key, <Type>value);
|
|
450
446
|
|
|
451
447
|
}
|
|
452
448
|
|
package/lib/index.d.ts
CHANGED
|
@@ -3,29 +3,29 @@ export { Maybe };
|
|
|
3
3
|
/**
|
|
4
4
|
* WidgetConstructor
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type WidgetConstructor<A extends Attrs> = new (attributes: A, children: Content[]) => Widget;
|
|
7
7
|
/**
|
|
8
8
|
* WMLElement can be DOM content or a user defined widget.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type WMLElement = Content | Widget;
|
|
11
11
|
/**
|
|
12
12
|
* Content is what is actually intended to be rendered on a web page.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type Content = Node | Element | HTMLElement;
|
|
15
15
|
/**
|
|
16
16
|
* HTMLAttributeValue
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type HTMLAttributeValue = string | number | boolean | null | undefined | Function;
|
|
19
19
|
/**
|
|
20
20
|
* Template is a function that given a View (Registry)
|
|
21
21
|
* will provide DOM content as well as performing
|
|
22
22
|
* the side-effects of adding ids etc.
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export type Template = (r: Registry) => Content;
|
|
25
25
|
/**
|
|
26
26
|
* Fun corresponds to the compiled signature of fun statements.
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export type Fun = (r: Registry) => Content[];
|
|
29
29
|
/**
|
|
30
30
|
* Registry keeps track of the WMLElements in a view.
|
|
31
31
|
*/
|
package/lib/parse/ast.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class ImportStatement {
|
|
|
45
45
|
/**
|
|
46
46
|
* ImportMember
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type ImportMember = AggregateMember | AliasedMember | CompositeMember;
|
|
49
49
|
/**
|
|
50
50
|
* AliasedMember
|
|
51
51
|
* @property {Identifier} alias - The identifier introduced to scope.
|
|
@@ -77,8 +77,8 @@ export declare class CompositeMember {
|
|
|
77
77
|
type: string;
|
|
78
78
|
constructor(members: (Member | AliasedMember)[], location: Location);
|
|
79
79
|
}
|
|
80
|
-
export
|
|
81
|
-
export
|
|
80
|
+
export type Member = UnqualifiedIdentifier | UnqualifiedConstructor;
|
|
81
|
+
export type Export = AliasStatement | ContextStatement | LetStatement | FunStatement | ViewStatement | Tag;
|
|
82
82
|
/**
|
|
83
83
|
* AliasStatement
|
|
84
84
|
*/
|
|
@@ -90,7 +90,7 @@ export declare class AliasStatement {
|
|
|
90
90
|
type: string;
|
|
91
91
|
constructor(id: UnqualifiedConstructor, typeParameters: TypeParameter[], members: Type[], location: Location);
|
|
92
92
|
}
|
|
93
|
-
export
|
|
93
|
+
export type ContextStatementMember = ConstructorType | MemberDeclaration;
|
|
94
94
|
/**
|
|
95
95
|
* ContextStatement
|
|
96
96
|
*/
|
|
@@ -124,7 +124,7 @@ export declare class LetStatement {
|
|
|
124
124
|
type: string;
|
|
125
125
|
constructor(id: UnqualifiedIdentifier, cons: ConstructorType, expression: Expression, location: Location);
|
|
126
126
|
}
|
|
127
|
-
export
|
|
127
|
+
export type ContextTypeIndicator = ConstructorType | ContextFromStatement;
|
|
128
128
|
/**
|
|
129
129
|
* ContextFromStatement
|
|
130
130
|
*/
|
|
@@ -170,7 +170,7 @@ export declare class TypeParameter {
|
|
|
170
170
|
/**
|
|
171
171
|
* Type
|
|
172
172
|
*/
|
|
173
|
-
export
|
|
173
|
+
export type Type = ConstructorType | FunctionType | RecordType | ListType;
|
|
174
174
|
/**
|
|
175
175
|
* ConstructorType
|
|
176
176
|
*/
|
|
@@ -221,7 +221,7 @@ export declare class TupleType {
|
|
|
221
221
|
/**
|
|
222
222
|
* Parameter
|
|
223
223
|
*/
|
|
224
|
-
export
|
|
224
|
+
export type Parameter = TypedParameter | UntypedParameter;
|
|
225
225
|
/**
|
|
226
226
|
* TypeParameter
|
|
227
227
|
*/
|
|
@@ -238,8 +238,8 @@ export declare class UntypedParameter {
|
|
|
238
238
|
type: string;
|
|
239
239
|
constructor(id: UnqualifiedIdentifier, location: Location);
|
|
240
240
|
}
|
|
241
|
-
export
|
|
242
|
-
export
|
|
241
|
+
export type Child = Tag | Interpolation | Control | Characters | Identifier;
|
|
242
|
+
export type Tag = Node | Widget;
|
|
243
243
|
export declare class Node {
|
|
244
244
|
open: Identifier;
|
|
245
245
|
attributes: Attribute[];
|
|
@@ -265,7 +265,7 @@ export declare class Attribute {
|
|
|
265
265
|
type: string;
|
|
266
266
|
constructor(namespace: UnqualifiedIdentifier, name: UnqualifiedIdentifier, value: AttributeValue, location: Location);
|
|
267
267
|
}
|
|
268
|
-
export
|
|
268
|
+
export type AttributeValue = Interpolation | Literal;
|
|
269
269
|
export declare class Interpolation {
|
|
270
270
|
expression: Expression;
|
|
271
271
|
filters: Expression[];
|
|
@@ -273,8 +273,8 @@ export declare class Interpolation {
|
|
|
273
273
|
type: string;
|
|
274
274
|
constructor(expression: Expression, filters: Expression[], location: Location);
|
|
275
275
|
}
|
|
276
|
-
export
|
|
277
|
-
export
|
|
276
|
+
export type Control = ForStatement | IfStatement;
|
|
277
|
+
export type ForStatement = ForInStatement | ForOfStatement | ForFromStatement;
|
|
278
278
|
export declare class ForInStatement {
|
|
279
279
|
variables: Parameter[];
|
|
280
280
|
expression: Expression;
|
|
@@ -331,7 +331,7 @@ export declare class Characters {
|
|
|
331
331
|
type: string;
|
|
332
332
|
constructor(value: string, location: Location);
|
|
333
333
|
}
|
|
334
|
-
export
|
|
334
|
+
export type Expression = IfThenExpression | BinaryExpression | UnaryExpression | ViewConstruction | FunApplication | ConstructExpression | CallExpression | MemberExpression | ReadExpression | FunctionExpression | Literal | ContextProperty | Constructor | Identifier | ContextVariable;
|
|
335
335
|
export declare class IfThenExpression {
|
|
336
336
|
condition: Expression;
|
|
337
337
|
iftrue: Expression;
|
|
@@ -409,7 +409,7 @@ export declare class FunctionExpression {
|
|
|
409
409
|
type: string;
|
|
410
410
|
constructor(parameters: Parameter[], body: Expression, location: Location);
|
|
411
411
|
}
|
|
412
|
-
export
|
|
412
|
+
export type Literal = Record | List | StringLiteral | NumberLiteral | BooleanLiteral;
|
|
413
413
|
export declare class List {
|
|
414
414
|
members: Expression[];
|
|
415
415
|
location: Location;
|
|
@@ -458,7 +458,7 @@ export declare class ContextVariable {
|
|
|
458
458
|
type: string;
|
|
459
459
|
constructor(location: Location);
|
|
460
460
|
}
|
|
461
|
-
export
|
|
461
|
+
export type Constructor = UnqualifiedConstructor | QualifiedConstructor;
|
|
462
462
|
export declare class UnqualifiedConstructor {
|
|
463
463
|
value: string;
|
|
464
464
|
location: Location;
|
|
@@ -475,7 +475,7 @@ export declare class QualifiedConstructor {
|
|
|
475
475
|
/**
|
|
476
476
|
* Identifier
|
|
477
477
|
*/
|
|
478
|
-
export
|
|
478
|
+
export type Identifier = UnqualifiedIdentifier | QualifiedIdentifier;
|
|
479
479
|
export declare class UnqualifiedIdentifier {
|
|
480
480
|
value: string;
|
|
481
481
|
location: Location;
|
package/lib/tsconfig.json
CHANGED