@breadstone-tools/cem-infrastructure 0.0.12-beta.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/Index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export type { Attribute, ClassDeclaration, ClassField, ClassLike, ClassMember, ClassMethod, CssCustomProperty, CssCustomState, CssPart, CustomElement, CustomElementDeclaration, CustomElementExport, CustomElementField, CustomElementMixinDeclaration, Declaration, Demo, Event, Export, FunctionDeclaration, FunctionLike, JavaScriptExport, JavaScriptModule, MixinDeclaration, Module, Package, Parameter, Privacy, PropertyLike, Reference, Slot, SourceReference, Type, TypeReference, VariableDeclaration } from './Manifest.js';
2
+ //# sourceMappingURL=Index.d.ts.map
package/Index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
package/Index.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Index.js.map
package/Index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Index.js","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":""}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Breadstone
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/Manifest.d.ts ADDED
@@ -0,0 +1,646 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ * Code distributed by Google as part of the polymer project is also
8
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ /**
11
+ * The top-level interface of a custom elements manifest file.
12
+ *
13
+ * Because custom elements are JavaScript classes, describing a custom element
14
+ * may require describing arbitrary JavaScript concepts like modules, classes,
15
+ * functions, etc. So custom elements manifests are capable of documenting
16
+ * the elements in a package, as well as those JavaScript concepts.
17
+ *
18
+ * The modules described in a package should be the public entrypoints that
19
+ * other packages may import from. Multiple modules may export the same object
20
+ * via re-exports, but in most cases a package should document the single
21
+ * canonical export that should be used.
22
+ */
23
+ export interface Package {
24
+ /**
25
+ * The version of the schema used in this file.
26
+ */
27
+ schemaVersion: string;
28
+ /**
29
+ * The Markdown to use for the main readme of this package.
30
+ *
31
+ * This can be used to override the readme used by Github or npm if that
32
+ * file contains information irrelevant to custom element catalogs and
33
+ * documentation viewers.
34
+ */
35
+ readme?: string;
36
+ /**
37
+ * An array of the modules this package contains.
38
+ */
39
+ modules: Array<Module>;
40
+ /**
41
+ * Whether the package is deprecated.
42
+ * If the value is a string, it's the reason for the deprecation.
43
+ */
44
+ deprecated?: boolean | string;
45
+ }
46
+ export type Module = JavaScriptModule;
47
+ export interface JavaScriptModule {
48
+ kind: 'javascript-module';
49
+ /**
50
+ * Path to the javascript file needed to be imported.
51
+ * (not the path for example to a typescript file.)
52
+ */
53
+ path: string;
54
+ /**
55
+ * A markdown summary suitable for display in a listing.
56
+ */
57
+ summary?: string;
58
+ /**
59
+ * A markdown description of the module.
60
+ */
61
+ description?: string;
62
+ /**
63
+ * The declarations of a module.
64
+ *
65
+ * For documentation purposes, all declarations that are reachable from
66
+ * exports should be described here. Ie, functions and objects that may be
67
+ * properties of exported objects, or passed as arguments to functions.
68
+ */
69
+ declarations?: Array<Declaration>;
70
+ /**
71
+ * The exports of a module. This includes JavaScript exports and
72
+ * custom element definitions.
73
+ */
74
+ exports?: Array<Export>;
75
+ /**
76
+ * Whether the module is deprecated.
77
+ * If the value is a string, it's the reason for the deprecation.
78
+ */
79
+ deprecated?: boolean | string;
80
+ }
81
+ export type Export = JavaScriptExport | CustomElementExport;
82
+ export interface JavaScriptExport {
83
+ kind: 'js';
84
+ /**
85
+ * The name of the exported symbol.
86
+ *
87
+ * JavaScript has a number of ways to export objects which determine the
88
+ * correct name to use.
89
+ *
90
+ * - Default exports must use the name "default".
91
+ * - Named exports use the name that is exported. If the export is renamed
92
+ * with the "as" clause, use the exported name.
93
+ * - Aggregating exports (`* from`) should use the name `*`
94
+ */
95
+ name: string;
96
+ /**
97
+ * A reference to the exported declaration.
98
+ *
99
+ * In the case of aggregating exports, the reference's `module` field must be
100
+ * defined and the `name` field must be `"*"`.
101
+ */
102
+ declaration: Reference;
103
+ /**
104
+ * Whether the export is deprecated. For example, the name of the export was changed.
105
+ * If the value is a string, it's the reason for the deprecation.
106
+ */
107
+ deprecated?: boolean | string;
108
+ }
109
+ /**
110
+ * A global custom element defintion, ie the result of a
111
+ * `customElements.define()` call.
112
+ *
113
+ * This is represented as an export because a definition makes the element
114
+ * available outside of the module it's defined it.
115
+ */
116
+ export interface CustomElementExport {
117
+ kind: 'custom-element-definition';
118
+ /**
119
+ * The tag name of the custom element.
120
+ */
121
+ name: string;
122
+ /**
123
+ * A reference to the class or other declaration that implements the
124
+ * custom element.
125
+ */
126
+ declaration: Reference;
127
+ /**
128
+ * Whether the custom-element export is deprecated.
129
+ * For example, a future version will not register the custom element in this file.
130
+ * If the value is a string, it's the reason for the deprecation.
131
+ */
132
+ deprecated?: boolean | string;
133
+ }
134
+ export type Declaration = ClassDeclaration | FunctionDeclaration | MixinDeclaration | VariableDeclaration | CustomElementDeclaration | CustomElementMixinDeclaration;
135
+ /**
136
+ * A reference to an export of a module.
137
+ *
138
+ * All references are required to be publically accessible, so the canonical
139
+ * representation of a reference is the export it's available from.
140
+ *
141
+ * `package` should generally refer to an npm package name. If `package` is
142
+ * undefined then the reference is local to this package. If `module` is
143
+ * undefined the reference is local to the containing module.
144
+ *
145
+ * References to global symbols like `Array`, `HTMLElement`, or `Event` should
146
+ * use a `package` name of `"global:"`.
147
+ */
148
+ export interface Reference {
149
+ name: string;
150
+ package?: string;
151
+ module?: string;
152
+ }
153
+ /**
154
+ * A reference to the source of a declaration or member.
155
+ */
156
+ export interface SourceReference {
157
+ /**
158
+ * An absolute URL to the source (ie. a GitHub URL).
159
+ */
160
+ href: string;
161
+ }
162
+ /**
163
+ * A description of a custom element class.
164
+ *
165
+ * Custom elements are JavaScript classes, so this extends from
166
+ * `ClassDeclaration` and adds custom-element-specific features like
167
+ * attributes, events, and slots.
168
+ *
169
+ * Note that `tagName` in this interface is optional. Tag names are not
170
+ * neccessarily part of a custom element class, but belong to the definition
171
+ * (often called the "registration") or the `customElements.define()` call.
172
+ *
173
+ * Because classes and tag names can only be registered once, there's a
174
+ * one-to-one relationship between classes and tag names. For ease of use,
175
+ * we allow the tag name here.
176
+ *
177
+ * Some packages define and register custom elements in separate modules. In
178
+ * these cases one `Module` should contain the `CustomElement` without a
179
+ * tagName, and another `Module` should contain the
180
+ * `CustomElementExport`.
181
+ */
182
+ export interface CustomElementDeclaration extends ClassDeclaration, CustomElement {
183
+ }
184
+ /**
185
+ * The additional fields that a custom element adds to classes and mixins.
186
+ */
187
+ export interface CustomElement extends ClassLike {
188
+ /**
189
+ * An optional tag name that should be specified if this is a
190
+ * self-registering element.
191
+ *
192
+ * Self-registering elements must also include a CustomElementExport
193
+ * in the module's exports.
194
+ */
195
+ tagName?: string;
196
+ /**
197
+ * The attributes that this element is known to understand.
198
+ */
199
+ attributes?: Array<Attribute>;
200
+ /**
201
+ * The events that this element fires.
202
+ */
203
+ events?: Array<Event>;
204
+ /**
205
+ * The shadow dom content slots that this element accepts.
206
+ */
207
+ slots?: Array<Slot>;
208
+ cssParts?: Array<CssPart>;
209
+ cssProperties?: Array<CssCustomProperty>;
210
+ cssStates?: Array<CssCustomState>;
211
+ demos?: Array<Demo>;
212
+ /**
213
+ * Distinguishes a regular JavaScript class from a
214
+ * custom element class
215
+ */
216
+ customElement: true;
217
+ }
218
+ export interface Attribute {
219
+ name: string;
220
+ /**
221
+ * A markdown summary suitable for display in a listing.
222
+ */
223
+ summary?: string;
224
+ /**
225
+ * A markdown description.
226
+ */
227
+ description?: string;
228
+ inheritedFrom?: Reference;
229
+ /**
230
+ * The type that the attribute will be serialized/deserialized as.
231
+ */
232
+ type?: Type;
233
+ /**
234
+ * The default value of the attribute, if any.
235
+ *
236
+ * As attributes are always strings, this is the actual value, not a human
237
+ * readable description.
238
+ */
239
+ default?: string;
240
+ /**
241
+ * The name of the field this attribute is associated with, if any.
242
+ */
243
+ fieldName?: string;
244
+ /**
245
+ * Whether the attribute is deprecated.
246
+ * If the value is a string, it's the reason for the deprecation.
247
+ */
248
+ deprecated?: boolean | string;
249
+ }
250
+ export interface Event {
251
+ name: string;
252
+ /**
253
+ * A markdown summary suitable for display in a listing.
254
+ */
255
+ summary?: string;
256
+ /**
257
+ * A markdown description.
258
+ */
259
+ description?: string;
260
+ /**
261
+ * The type of the event object that's fired.
262
+ */
263
+ type: Type;
264
+ inheritedFrom?: Reference;
265
+ /**
266
+ * Whether the event is deprecated.
267
+ * If the value is a string, it's the reason for the deprecation.
268
+ */
269
+ deprecated?: boolean | string;
270
+ }
271
+ export interface Slot {
272
+ /**
273
+ * The slot name, or the empty string for an unnamed slot.
274
+ */
275
+ name: string;
276
+ /**
277
+ * A markdown summary suitable for display in a listing.
278
+ */
279
+ summary?: string;
280
+ /**
281
+ * A markdown description.
282
+ */
283
+ description?: string;
284
+ /**
285
+ * Whether the slot is deprecated.
286
+ * If the value is a string, it's the reason for the deprecation.
287
+ */
288
+ deprecated?: boolean | string;
289
+ }
290
+ /**
291
+ * The description of a CSS Part
292
+ */
293
+ export interface CssPart {
294
+ name: string;
295
+ /**
296
+ * A markdown summary suitable for display in a listing.
297
+ */
298
+ summary?: string;
299
+ /**
300
+ * A markdown description.
301
+ */
302
+ description?: string;
303
+ /**
304
+ * Whether the CSS shadow part is deprecated.
305
+ * If the value is a string, it's the reason for the deprecation.
306
+ */
307
+ deprecated?: boolean | string;
308
+ }
309
+ /**
310
+ * The description of a CSS Custom State
311
+ * https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
312
+ */
313
+ export interface CssCustomState {
314
+ /**
315
+ * The name of the state. Note: Unlike CSS custom properties, custom states
316
+ * do not have a leading `--`.
317
+ */
318
+ name: string;
319
+ /**
320
+ * A markdown summary suitable for display in a listing.
321
+ */
322
+ summary?: string;
323
+ /**
324
+ * A markdown description.
325
+ */
326
+ description?: string;
327
+ /**
328
+ * Whether the CSS custom state is deprecated.
329
+ * If the value is a string, it's the reason for the deprecation.
330
+ */
331
+ deprecated?: boolean | string;
332
+ }
333
+ export interface CssCustomProperty {
334
+ /**
335
+ * The name of the property, including leading `--`.
336
+ */
337
+ name: string;
338
+ /**
339
+ * The expected syntax of the defined property. Defaults to "*".
340
+ *
341
+ * The syntax must be a valid CSS [syntax string](https://developer.mozilla.org/en-US/docs/Web/CSS/@property/syntax)
342
+ * as defined in the CSS Properties and Values API.
343
+ *
344
+ * Examples:
345
+ *
346
+ * "<color>": accepts a color
347
+ * "<length> | <percentage>": accepts lengths or percentages but not calc expressions with a combination of the two
348
+ * "small | medium | large": accepts one of these values set as custom idents.
349
+ * "*": any valid token
350
+ */
351
+ syntax?: string;
352
+ default?: string;
353
+ /**
354
+ * A markdown summary suitable for display in a listing.
355
+ */
356
+ summary?: string;
357
+ /**
358
+ * A markdown description.
359
+ */
360
+ description?: string;
361
+ /**
362
+ * Whether the CSS custom property is deprecated.
363
+ * If the value is a string, it's the reason for the deprecation.
364
+ */
365
+ deprecated?: boolean | string;
366
+ }
367
+ export interface Type {
368
+ /**
369
+ * The full string representation of the type, in whatever type syntax is
370
+ * used, such as JSDoc, Closure, or TypeScript.
371
+ */
372
+ text: string;
373
+ /**
374
+ * An array of references to the types in the type string.
375
+ *
376
+ * These references have optional indices into the type string so that tools
377
+ * can understand the references in the type string independently of the type
378
+ * system and syntax. For example, a documentation viewer could display the
379
+ * type `Array<FooElement | BarElement>` with cross-references to `FooElement`
380
+ * and `BarElement` without understanding arrays, generics, or union types.
381
+ */
382
+ references?: Array<TypeReference>;
383
+ source?: SourceReference;
384
+ }
385
+ /**
386
+ * A reference that is associated with a type string and optionally a range
387
+ * within the string.
388
+ *
389
+ * Start and end must both be present or not present. If they're present, they
390
+ * are indices into the associated type string. If they are missing, the entire
391
+ * type string is the symbol referenced and the name should match the type
392
+ * string.
393
+ */
394
+ export interface TypeReference extends Reference {
395
+ start?: number;
396
+ end?: number;
397
+ }
398
+ /**
399
+ * The common interface of classes and mixins.
400
+ */
401
+ export interface ClassLike {
402
+ name: string;
403
+ /**
404
+ * A markdown summary suitable for display in a listing.
405
+ */
406
+ summary?: string;
407
+ /**
408
+ * A markdown description of the class.
409
+ */
410
+ description?: string;
411
+ /**
412
+ * The superclass of this class.
413
+ *
414
+ * If this class is defined with mixin applications, the prototype chain
415
+ * includes the mixin applications and the true superclass is computed
416
+ * from them.
417
+ */
418
+ superclass?: Reference;
419
+ /**
420
+ * Any class mixins applied in the extends clause of this class.
421
+ *
422
+ * If mixins are applied in the class definition, then the true superclass
423
+ * of this class is the result of applying mixins in order to the superclass.
424
+ *
425
+ * Mixins must be listed in order of their application to the superclass or
426
+ * previous mixin application. This means that the innermost mixin is listed
427
+ * first. This may read backwards from the common order in JavaScript, but
428
+ * matches the order of language used to describe mixin application, like
429
+ * "S with A, B".
430
+ *
431
+ * @example
432
+ *
433
+ * ```javascript
434
+ * class T extends B(A(S)) {}
435
+ * ```
436
+ *
437
+ * is described by:
438
+ * ```json
439
+ * {
440
+ * "kind": "class",
441
+ * "superclass": {
442
+ * "name": "S"
443
+ * },
444
+ * "mixins": [
445
+ * {
446
+ * "name": "A"
447
+ * },
448
+ * {
449
+ * "name": "B"
450
+ * },
451
+ * ]
452
+ * }
453
+ * ```
454
+ */
455
+ mixins?: Array<Reference>;
456
+ members?: Array<ClassMember>;
457
+ source?: SourceReference;
458
+ /**
459
+ * Whether the class or mixin is deprecated.
460
+ * If the value is a string, it's the reason for the deprecation.
461
+ */
462
+ deprecated?: boolean | string;
463
+ }
464
+ export interface ClassDeclaration extends ClassLike {
465
+ kind: 'class';
466
+ }
467
+ export type ClassMember = ClassField | ClassMethod;
468
+ /**
469
+ * The common interface of variables, class fields, and function
470
+ * parameters.
471
+ */
472
+ export interface PropertyLike {
473
+ name: string;
474
+ /**
475
+ * A markdown summary suitable for display in a listing.
476
+ */
477
+ summary?: string;
478
+ /**
479
+ * A markdown description of the field.
480
+ */
481
+ description?: string;
482
+ type?: Type;
483
+ default?: string;
484
+ /**
485
+ * Whether the property is deprecated.
486
+ * If the value is a string, it's the reason for the deprecation.
487
+ */
488
+ deprecated?: boolean | string;
489
+ /**
490
+ * Whether the property is read-only.
491
+ */
492
+ readonly?: boolean;
493
+ }
494
+ export interface ClassField extends PropertyLike {
495
+ kind: 'field';
496
+ static?: boolean;
497
+ privacy?: Privacy;
498
+ inheritedFrom?: Reference;
499
+ source?: SourceReference;
500
+ }
501
+ /**
502
+ * Additional metadata for fields on custom elements.
503
+ */
504
+ export interface CustomElementField extends ClassField {
505
+ /**
506
+ * The corresponding attribute name if there is one.
507
+ *
508
+ * If this property is defined, the attribute must be listed in the classes'
509
+ * `attributes` array.
510
+ */
511
+ attribute?: string;
512
+ /**
513
+ * If the property reflects to an attribute.
514
+ *
515
+ * If this is true, the `attribute` property must be defined.
516
+ */
517
+ reflects?: boolean;
518
+ }
519
+ export interface ClassMethod extends FunctionLike {
520
+ kind: 'method';
521
+ static?: boolean;
522
+ privacy?: Privacy;
523
+ inheritedFrom?: Reference;
524
+ source?: SourceReference;
525
+ }
526
+ /**
527
+ * A description of a class mixin.
528
+ *
529
+ * Mixins are functions which generate a new subclass of a given superclass.
530
+ * This interfaces describes the class and custom element features that
531
+ * are added by the mixin. As such, it extends the CustomElement interface and
532
+ * ClassLike interface.
533
+ *
534
+ * Since mixins are functions, it also extends the FunctionLike interface. This
535
+ * means a mixin is callable, and has parameters and a return type.
536
+ *
537
+ * The return type is often hard or impossible to accurately describe in type
538
+ * systems like TypeScript. It requires generics and an `extends` operator
539
+ * that TypeScript lacks. Therefore it's recommended that the return type is
540
+ * left empty. The most common form of a mixin function takes a single
541
+ * argument, so consumers of this interface should assume that the return type
542
+ * is the single argument subclassed by this declaration.
543
+ *
544
+ * A mixin should not have a superclass. If a mixins composes other mixins,
545
+ * they should be listed in the `mixins` field.
546
+ *
547
+ * See [this article]{@link https://justinfagnani.com/2015/12/21/real-mixins-with-javascript-classes/}
548
+ * for more information on the classmixin pattern in JavaScript.
549
+ *
550
+ * @example
551
+ *
552
+ * This JavaScript mixin declaration:
553
+ * ```javascript
554
+ * const MyMixin = (base) => class extends base {
555
+ * foo() { ... }
556
+ * }
557
+ * ```
558
+ *
559
+ * Is described by this JSON:
560
+ * ```json
561
+ * {
562
+ * "kind": "mixin",
563
+ * "name": "MyMixin",
564
+ * "parameters": [
565
+ * {
566
+ * "name": "base",
567
+ * }
568
+ * ],
569
+ * "members": [
570
+ * {
571
+ * "kind": "method",
572
+ * "name": "foo",
573
+ * }
574
+ * ]
575
+ * }
576
+ * ```
577
+ */
578
+ export interface MixinDeclaration extends ClassLike, FunctionLike {
579
+ kind: 'mixin';
580
+ }
581
+ /**
582
+ * A class mixin that also adds custom element related properties.
583
+ */
584
+ export interface CustomElementMixinDeclaration extends MixinDeclaration, CustomElement {
585
+ }
586
+ export interface VariableDeclaration extends PropertyLike {
587
+ kind: 'variable';
588
+ source?: SourceReference;
589
+ }
590
+ export interface FunctionDeclaration extends FunctionLike {
591
+ kind: 'function';
592
+ source?: SourceReference;
593
+ }
594
+ export interface Parameter extends PropertyLike {
595
+ /**
596
+ * Whether the parameter is optional. Undefined implies non-optional.
597
+ */
598
+ optional?: boolean;
599
+ /**
600
+ * Whether the parameter is a rest parameter. Only the last parameter may be a rest parameter.
601
+ * Undefined implies single parameter.
602
+ */
603
+ rest?: boolean;
604
+ }
605
+ export interface FunctionLike {
606
+ name: string;
607
+ /**
608
+ * A markdown summary suitable for display in a listing.
609
+ */
610
+ summary?: string;
611
+ /**
612
+ * A markdown description.
613
+ */
614
+ description?: string;
615
+ /**
616
+ * Whether the function is deprecated.
617
+ * If the value is a string, it's the reason for the deprecation.
618
+ */
619
+ deprecated?: boolean | string;
620
+ parameters?: Array<Parameter>;
621
+ return?: {
622
+ type?: Type;
623
+ /**
624
+ * A markdown summary suitable for display in a listing.
625
+ */
626
+ summary?: string;
627
+ /**
628
+ * A markdown description.
629
+ */
630
+ description?: string;
631
+ };
632
+ }
633
+ export type Privacy = 'public' | 'private' | 'protected';
634
+ export interface Demo {
635
+ /**
636
+ * A markdown description of the demo.
637
+ */
638
+ description?: string;
639
+ /**
640
+ * Relative URL of the demo if it's published with the package. Absolute URL
641
+ * if it's hosted.
642
+ */
643
+ url: string;
644
+ source?: SourceReference;
645
+ }
646
+ //# sourceMappingURL=Manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../src/Manifest.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,OAAO;IAEpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACjC;AAID,MAAM,MAAM,MAAM,GAAG,gBAAgB,CAAC;AAEtC,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,mBAAmB,CAAC;IAE1B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAElC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,MAAM,MAAM,GAAG,gBAAgB,G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xB,CAAC;CACL;AAED,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzD,MAAM,WAAW,IAAI;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,CAAC,EAAE,eAAe,CAAC;CAC5B"}
package/Manifest.js ADDED
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
+ * Code distributed by Google as part of the polymer project is also
9
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ //# sourceMappingURL=Manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Manifest.js","sourceRoot":"","sources":["../src/Manifest.ts"],"names":[],"mappings":";AACA;;;;;;;;GAQG"}
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@breadstone-tools/cem-infrastructure",
3
+ "description": "Custom Elements Manifest Infrastructure Library",
4
+ "version": "0.0.12-beta.0",
5
+ "license": "MIT",
6
+ "author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
7
+ "repository": {
8
+ "url": "git+ssh://git@github.com/RueDeRennes/mosaik.git"
9
+ },
10
+ "type": "commonjs",
11
+ "main": "./Index.js",
12
+ "commonjs": "./Index.js",
13
+ "module": "./Index.js",
14
+ "types": "./Index.d.ts",
15
+ "dependencies": {
16
+ "custom-elements-manifest": "^2.1.0"
17
+ }
18
+ }