@knapsack/renderer-web-components 4.69.0--canary.4627.19723b8.0 → 4.69.0--canary.4627.955e589.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v4.68.12 (Thu Aug 29 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Merge branch 'latest' into KSP-5360-infer-mui-component-types ([@brittanysmart](https://github.com/brittanysmart))
6
+
7
+ #### 🏠 Internal
8
+
9
+ - add MUI infer spec test [#4510](https://github.com/knapsack-labs/app-monorepo/pull/4510) ([@brittanysmart](https://github.com/brittanysmart))
10
+
11
+ #### Authors: 1
12
+
13
+ - Brittany Smart ([@brittanysmart](https://github.com/brittanysmart))
14
+
15
+ ---
16
+
1
17
  # v4.68.11 (Tue Aug 27 2024)
2
18
 
3
19
  #### 🐛 Bug Fix
@@ -1 +1 @@
1
- {"version":3,"file":"infer-spec.d.ts","sourceRoot":"","sources":["../src/infer-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,SAAS,CAAC,EACxB,2BAA2B,EAC3B,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B,EAAE,qBAAqB,CAAC;CACpD,GAAG,cAAc,GAAG,KAAK,CAoGzB"}
1
+ {"version":3,"file":"infer-spec.d.ts","sourceRoot":"","sources":["../src/infer-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,SAAS,CAAC,EACxB,2BAA2B,EAC3B,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B,EAAE,qBAAqB,CAAC;CACpD,GAAG,cAAc,GAAG,KAAK,CA8HzB"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.inferSpec = inferSpec;
4
4
  const utils_1 = require("@knapsack/utils");
5
5
  function inferSpec({ customElementManifestSchema, tagName, }) {
6
- var _a, _b, _c;
6
+ var _a, _b, _c, _d, _e;
7
7
  if (!customElementManifestSchema)
8
8
  return false;
9
9
  const tag = customElementManifestSchema.tags.find(({ name }) => name === tagName);
@@ -28,12 +28,21 @@ function inferSpec({ customElementManifestSchema, tagName, }) {
28
28
  Name: name,
29
29
  }))) || [],
30
30
  };
31
- (_c = tag.attributes) === null || _c === void 0 ? void 0 : _c.forEach(({ name, type, description, default: defaultValue }) => {
31
+ const cssPropsDocs = {
32
+ id: 'css-properties',
33
+ title: 'CSS Properties',
34
+ description: 'CSS Properties for the custom element',
35
+ tableRows: ((_c = tag.cssProperties) === null || _c === void 0 ? void 0 : _c.map(({ name, description = '' }) => ({
36
+ Name: name,
37
+ Description: description,
38
+ }))) || [],
39
+ };
40
+ (_d = tag.attributes) === null || _d === void 0 ? void 0 : _d.forEach(({ name, type, description = '', default: defaultValue }) => {
32
41
  if (!type)
33
42
  return;
34
43
  attrDocs.tableRows.push({
35
44
  Name: name,
36
- Type: type,
45
+ Type: `\`${type}\``,
37
46
  Description: description,
38
47
  Default: defaultValue,
39
48
  });
@@ -42,7 +51,7 @@ function inferSpec({ customElementManifestSchema, tagName, }) {
42
51
  props.properties[name] = {
43
52
  type: 'string',
44
53
  description,
45
- default: defaultValue,
54
+ default: (0, utils_1.removeWrappingDoubleQuotes)(defaultValue),
46
55
  };
47
56
  break;
48
57
  }
@@ -50,7 +59,9 @@ function inferSpec({ customElementManifestSchema, tagName, }) {
50
59
  props.properties[name] = {
51
60
  type: 'number',
52
61
  description,
53
- default: typeof defaultValue === 'number' ? defaultValue : undefined,
62
+ default: typeof defaultValue === 'number'
63
+ ? defaultValue
64
+ : parseInt((0, utils_1.removeWrappingDoubleQuotes)(defaultValue), 10),
54
65
  };
55
66
  break;
56
67
  }
@@ -58,7 +69,9 @@ function inferSpec({ customElementManifestSchema, tagName, }) {
58
69
  props.properties[name] = {
59
70
  type: 'boolean',
60
71
  description,
61
- default: typeof defaultValue === 'boolean' ? defaultValue : undefined,
72
+ default: typeof defaultValue === 'boolean'
73
+ ? defaultValue
74
+ : (0, utils_1.removeWrappingDoubleQuotes)(defaultValue) === 'true',
62
75
  };
63
76
  break;
64
77
  }
@@ -75,6 +88,7 @@ function inferSpec({ customElementManifestSchema, tagName, }) {
75
88
  type: 'string',
76
89
  // ensuring list is unique
77
90
  enum: [...new Set(options)],
91
+ default: (0, utils_1.removeWrappingDoubleQuotes)(defaultValue),
78
92
  };
79
93
  }
80
94
  }
@@ -88,10 +102,20 @@ function inferSpec({ customElementManifestSchema, tagName, }) {
88
102
  if (eventDocs.tableRows.length) {
89
103
  extraDocs.push(eventDocs);
90
104
  }
105
+ if (cssPropsDocs.tableRows.length) {
106
+ extraDocs.push(cssPropsDocs);
107
+ }
108
+ const slots = {};
109
+ (_e = tag.slots) === null || _e === void 0 ? void 0 : _e.forEach(({ name, description }) => {
110
+ slots[name] = {
111
+ title: name,
112
+ description,
113
+ };
114
+ });
91
115
  return {
92
116
  isInferred: true,
93
117
  props,
94
- slots: {},
118
+ slots,
95
119
  extraDocs,
96
120
  hidePropsTable: true,
97
121
  };
@@ -1 +1 @@
1
- {"version":3,"file":"infer-spec.js","sourceRoot":"","sources":["../src/infer-spec.ts"],"names":[],"mappings":";;AAIA,8BA0GC;AA7GD,2CAA6D;AAG7D,SAAgB,SAAS,CAAC,EACxB,2BAA2B,EAC3B,OAAO,GAIR;;IACC,IAAI,CAAC,2BAA2B;QAAE,OAAO,KAAK,CAAC;IAC/C,MAAM,GAAG,GAAG,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAC/C,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAC/B,CAAC;IACF,IAAI,CAAC,GAAG,IAAI,CAAC,CAAA,MAAA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S,CAAC,MAAM,EAAE,CAAC;QAClC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM,KAAK,GAA4B,EAAE,CAAC;IAC1C,MAAA,GAAG,CAAC,KAAK,0CAAE,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QAC3C,KAAK,CAAC,IAAI,CAAC,GAAG;YACZ,KAAK,EAAE,IAAI;YACX,WAAW;SACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,KAAK;QACL,KAAK;QACL,SAAS;QACT,cAAc,EAAE,IAAI;KACrB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=infer-spec.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infer-spec.test.d.ts","sourceRoot":"","sources":["../src/infer-spec.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const infer_spec_1 = require("./infer-spec");
8
+ const custom_element_1 = require("./test-fixtures/custom-element");
9
+ (0, ava_1.default)('inferSpec', (t) => {
10
+ const spec = (0, infer_spec_1.inferSpec)({
11
+ customElementManifestSchema: custom_element_1.customElementManifestSchema,
12
+ tagName: 'ks-alert',
13
+ });
14
+ t.deepEqual(spec, {
15
+ extraDocs: [
16
+ {
17
+ description: 'Attributes for the custom element',
18
+ id: 'attributes',
19
+ tableRows: [
20
+ {
21
+ Default: '"2"',
22
+ Description: '',
23
+ Name: 'priority',
24
+ Type: '`"1" | "2" | "3" | "4"`',
25
+ },
26
+ {
27
+ Default: '"info"',
28
+ Description: '',
29
+ Name: 'statusType',
30
+ Type: '`"info" | "warning" | "error" | "success"`',
31
+ },
32
+ {
33
+ Default: '"large"',
34
+ Description: '',
35
+ Name: 'size',
36
+ Type: '`"small" | "large"`',
37
+ },
38
+ {
39
+ Default: 'false',
40
+ Description: 'This is important context for screen readers.',
41
+ Name: 'isInteractive',
42
+ Type: '`boolean`',
43
+ },
44
+ {
45
+ Default: 'true',
46
+ Description: '',
47
+ Name: 'shouldShowIcon',
48
+ Type: '`boolean`',
49
+ },
50
+ ],
51
+ title: 'Attributes',
52
+ },
53
+ {
54
+ description: 'CSS Properties for the custom element',
55
+ id: 'css-properties',
56
+ tableRows: [
57
+ {
58
+ Description: 'The background color for the info alert.',
59
+ Name: '--ks-alert-info-background',
60
+ },
61
+ {
62
+ Description: 'The text color for the info alert.',
63
+ Name: '--ks-alert-info-text',
64
+ },
65
+ {
66
+ Description: 'The border color for the info alert.',
67
+ Name: '--ks-alert-info-border',
68
+ },
69
+ {
70
+ Description: 'The background color for the success alert.',
71
+ Name: '--ks-alert-success-background',
72
+ },
73
+ {
74
+ Description: 'The text color for the success alert.',
75
+ Name: '--ks-alert-success-text',
76
+ },
77
+ {
78
+ Description: 'The border color for the success alert.',
79
+ Name: '--ks-alert-success-border',
80
+ },
81
+ {
82
+ Description: 'The background color for the warning alert.',
83
+ Name: '--ks-alert-warning-background',
84
+ },
85
+ {
86
+ Description: 'The text color for the warning alert.',
87
+ Name: '--ks-alert-warning-text',
88
+ },
89
+ {
90
+ Description: 'The border color for the warning alert.',
91
+ Name: '--ks-alert-warning-border',
92
+ },
93
+ {
94
+ Description: 'The background color for the error alert.',
95
+ Name: '--ks-alert-error-background',
96
+ },
97
+ {
98
+ Description: 'The text color for the error alert.',
99
+ Name: '--ks-alert-error-text',
100
+ },
101
+ {
102
+ Description: 'The border color for the error alert.',
103
+ Name: '--ks-alert-error-border',
104
+ },
105
+ ],
106
+ title: 'CSS Properties',
107
+ },
108
+ ],
109
+ hidePropsTable: true,
110
+ isInferred: true,
111
+ props: {
112
+ type: 'object',
113
+ required: [],
114
+ properties: {
115
+ isInteractive: {
116
+ default: false,
117
+ description: 'This is important context for screen readers.',
118
+ type: 'boolean',
119
+ },
120
+ priority: {
121
+ default: '2',
122
+ enum: ['1', '2', '3', '4'],
123
+ type: 'string',
124
+ },
125
+ shouldShowIcon: {
126
+ default: true,
127
+ description: '',
128
+ type: 'boolean',
129
+ },
130
+ size: {
131
+ default: 'large',
132
+ enum: ['small', 'large'],
133
+ type: 'string',
134
+ },
135
+ statusType: {
136
+ default: 'info',
137
+ enum: ['info', 'warning', 'error', 'success'],
138
+ type: 'string',
139
+ },
140
+ },
141
+ },
142
+ slots: {
143
+ default: {
144
+ title: 'default',
145
+ description: 'The alert contents.',
146
+ },
147
+ header: {
148
+ title: 'header',
149
+ description: 'The header in the alert.',
150
+ },
151
+ },
152
+ });
153
+ });
154
+ //# sourceMappingURL=infer-spec.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infer-spec.test.js","sourceRoot":"","sources":["../src/infer-spec.test.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,6CAAyC;AACzC,mEAA6E;AAE7E,IAAA,aAAI,EAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;IACtB,MAAM,IAAI,GAAG,IAAA,sBAAS,EAAC;QACrB,2BAA2B,EAA3B,4CAA2B;QAC3B,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;IACH,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE;QAChB,SAAS,EAAE;YACT;gBACE,WAAW,EAAE,mCAAmC;gBAChD,EAAE,EAAE,YAAY;gBAChB,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,KAAK;wBACd,WAAW,EAAE,EAAE;wBACf,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,yBAAyB;qBAChC;oBACD;wBACE,OAAO,EAAE,QAAQ;wBACjB,WAAW,EAAE,EAAE;wBACf,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,4CAA4C;qBACnD;oBACD;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;wBACpD,IAAI,EAAE,yBAAyB;qBAChC;iBACF;gBACD,KAAK,EAAE,gBAAgB;aACxB;SACF;QACD,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,IAAI;QAChB,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE;gBACV,aAAa,EAAE;oBACb,OAAO,EAAE,KAAK;oBACd,WAAW,EAAE,+CAA+C;oBAC5D,IAAI,EAAE,SAAS;iBAChB;gBACD,QAAQ,EAAE;oBACR,OAAO,EAAE,GAAG;oBACZ,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;oBAC1B,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE;oBACd,OAAO,EAAE,IAAI;oBACb,WAAW,EAAE,EAAE;oBACf,IAAI,EAAE,SAAS;iBAChB;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;oBAChB,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;oBACxB,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,OAAO,EAAE,MAAM;oBACf,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC;oBAC7C,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,qBAAqB;aACnC;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;aACxC;SACF;KACoB,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderer-web-components.d.ts","sourceRoot":"","sources":["../src/renderer-web-components.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAO,MAAM,eAAe,CAAC;AAC1E,OAAO,KAAK,EACV,oBAA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ACxB,OAAO,CAAC,+BAA+B,CAAC;IAYrC,QAAQ,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;IAoKpD,SAAS,CAAC,EACd,QAAQ,GACT,EAAE,UAAU,CAAC,4BAA4B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAQrD,sBAAsB,CAAC,EAC3B,OAAO,GACR,EAAE,UAAU,CACX,4BAA4B,CAAC,wBAAwB,CAAC,CACvD,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,4BAA4B,CAAC,wBAAwB,CAAC,CAAC;IAanE,KAAK;IAcX,OAAO,EAAE,wBAAwB,CAAC,SAAS,CAAC,CA2BzC;IAEH,eAAe,EAAE,4BAA4B,CAAC,iBAAiB,CAAC,CAyE9D;IAEF,sBAAsB,EAAE,4BAA4B,CAAC,wBAAwB,CAAC,CAuB1E;CACL"}
@@ -158,20 +158,15 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
158
158
  return newFiles;
159
159
  };
160
160
  if (customElementManifestSchemaPath) {
161
- try {
162
- const { absolutePath, exists } = (0, file_utils_1.resolvePathSync)({
163
- path: customElementManifestSchemaPath,
164
- resolveFromDir: this.userConfigDir,
165
- });
166
- if (!exists) {
167
- throw new Error(`Cannot find custom element manifest schema at ${customElementManifestSchemaPath}`);
168
- }
169
- __classPrivateFieldSet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, absolutePath, "f");
170
- __classPrivateFieldGet(this, _KnapsackWebComponentRenderer_instances, "m", _KnapsackWebComponentRenderer_setCustomElementManifestSchema).call(this);
171
- }
172
- catch (error) {
173
- throw new Error(`Cannot read custom element manifest schema from ${customElementManifestSchemaPath}`);
161
+ const { absolutePath, exists } = (0, file_utils_1.resolvePathSync)({
162
+ path: customElementManifestSchemaPath,
163
+ resolveFromDir: this.userConfigDir,
164
+ });
165
+ if (!exists) {
166
+ throw new Error(`Cannot find custom element manifest schema at ${customElementManifestSchemaPath}`);
174
167
  }
168
+ __classPrivateFieldSet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, absolutePath, "f");
169
+ __classPrivateFieldGet(this, _KnapsackWebComponentRenderer_instances, "m", _KnapsackWebComponentRenderer_setCustomElementManifestSchema).call(this);
175
170
  }
176
171
  }
177
172
  async render(opt) {
@@ -337,7 +332,12 @@ _KnapsackWebComponentRenderer_customElementManifestSchemaPath = new WeakMap(), _
337
332
  if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
338
333
  return;
339
334
  const customElementManifestSchema = (0, file_utils_1.readJSONSync)(__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"));
340
- const data = utils_1.CustomElementsSchema.parse(customElementManifestSchema);
341
- __classPrivateFieldSet(this, _KnapsackWebComponentRenderer_customElementManifestSchema, data, "f");
335
+ try {
336
+ const data = utils_1.CustomElementsSchema.parse(customElementManifestSchema);
337
+ __classPrivateFieldSet(this, _KnapsackWebComponentRenderer_customElementManifestSchema, data, "f");
338
+ }
339
+ catch (e) {
340
+ throw new Error(`Validation errors in custom element manifest schema from ${__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f")}.\n${e.message}`);
341
+ }
342
342
  };
343
343
  //# sourceMappingURL=renderer-web-components.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderer-web-components.js","sourceRoot":"","sources":["../src/renderer-web-components.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wDAAgC;AAChC,uCAA0E;AAO1E,uCAAkD;AAClD,2CAKyB;AAKzB,+BAA4B;AAC5B,qDAI8B;AAC9B,qCAA8C;AAC9C,mCAAgF;AAChF,6CAAyC;AAEzC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CACpB,IAAA,uBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAC1D,CAAC;AACF,SAAG,CAAC,mB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AAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IACnD,CAAC;CAkIF;AAjZD,oEAiZC;;IA3WG,IAAI,CAAC,uBAAA,IAAI,qEAAiC;QAAE,OAAO;IACnD,MAAM,2BAA2B,GAAG,IAAA,yBAAY,EAC9C,uBAAA,IAAI,qEAAiC,CACtC,CAAC;IACF,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,4BAAoB,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;QACrE,uBAAA,IAAI,6DAAgC,IAAI,MAAA,CAAC;IAC3C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,4DACE,uBAAA,IAAI,qEACN,MAAM,CAAC,CAAC,OAAO,EAAE,CAClB,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CustomElementManifest } from '../utils';
2
+ export declare const customElementManifestSchema: CustomElementManifest;
3
+ //# sourceMappingURL=custom-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-element.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/custom-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,2BAA2B,EAAE,qBAgIzC,CAAC"}
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customElementManifestSchema = void 0;
4
+ exports.customElementManifestSchema = {
5
+ version: 'experimental',
6
+ tags: [
7
+ {
8
+ name: 'ks-alert',
9
+ path: './components/base/ks-alert/ks-alert.ts',
10
+ attributes: [
11
+ {
12
+ name: 'priority',
13
+ type: '"1" | "2" | "3" | "4"',
14
+ default: '"2"',
15
+ },
16
+ {
17
+ name: 'statusType',
18
+ type: '"info" | "warning" | "error" | "success"',
19
+ default: '"info"',
20
+ },
21
+ {
22
+ name: 'size',
23
+ type: '"small" | "large"',
24
+ default: '"large"',
25
+ },
26
+ {
27
+ name: 'isInteractive',
28
+ description: 'This is important context for screen readers.',
29
+ type: 'boolean',
30
+ default: 'false',
31
+ },
32
+ {
33
+ name: 'shouldShowIcon',
34
+ type: 'boolean',
35
+ default: 'true',
36
+ },
37
+ ],
38
+ properties: [
39
+ {
40
+ name: 'statusType',
41
+ attribute: 'statusType',
42
+ type: '"info" | "warning" | "error" | "success"',
43
+ default: '"info"',
44
+ },
45
+ {
46
+ name: 'size',
47
+ attribute: 'size',
48
+ type: '"small" | "large"',
49
+ default: '"large"',
50
+ },
51
+ {
52
+ name: 'isInteractive',
53
+ attribute: 'isInteractive',
54
+ description: 'This is important context for screen readers.',
55
+ type: 'boolean',
56
+ default: 'false',
57
+ },
58
+ {
59
+ name: 'shouldShowIcon',
60
+ attribute: 'shouldShowIcon',
61
+ type: 'boolean',
62
+ default: 'true',
63
+ },
64
+ {
65
+ name: 'styles',
66
+ type: 'CSSResultGroup',
67
+ default: '["componentVars","componentStyles"]',
68
+ },
69
+ ],
70
+ slots: [
71
+ {
72
+ name: 'default',
73
+ description: 'The alert contents.',
74
+ },
75
+ {
76
+ name: 'header',
77
+ description: 'The header in the alert.',
78
+ },
79
+ ],
80
+ cssProperties: [
81
+ {
82
+ name: '--ks-alert-info-background',
83
+ description: 'The background color for the info alert.',
84
+ },
85
+ {
86
+ name: '--ks-alert-info-text',
87
+ description: 'The text color for the info alert.',
88
+ },
89
+ {
90
+ name: '--ks-alert-info-border',
91
+ description: 'The border color for the info alert.',
92
+ },
93
+ {
94
+ name: '--ks-alert-success-background',
95
+ description: 'The background color for the success alert.',
96
+ },
97
+ {
98
+ name: '--ks-alert-success-text',
99
+ description: 'The text color for the success alert.',
100
+ },
101
+ {
102
+ name: '--ks-alert-success-border',
103
+ description: 'The border color for the success alert.',
104
+ },
105
+ {
106
+ name: '--ks-alert-warning-background',
107
+ description: 'The background color for the warning alert.',
108
+ },
109
+ {
110
+ name: '--ks-alert-warning-text',
111
+ description: 'The text color for the warning alert.',
112
+ },
113
+ {
114
+ name: '--ks-alert-warning-border',
115
+ description: 'The border color for the warning alert.',
116
+ },
117
+ {
118
+ name: '--ks-alert-error-background',
119
+ description: 'The background color for the error alert.',
120
+ },
121
+ {
122
+ name: '--ks-alert-error-text',
123
+ description: 'The text color for the error alert.',
124
+ },
125
+ {
126
+ name: '--ks-alert-error-border',
127
+ description: 'The border color for the error alert.',
128
+ },
129
+ ],
130
+ },
131
+ ],
132
+ };
133
+ //# sourceMappingURL=custom-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-element.js","sourceRoot":"","sources":["../../src/test-fixtures/custom-element.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAA0B;IAChE,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,wCAAwC;YAC9C,UAAU,EAAE;gBACV;oBACE,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,uBAAuB;oBAC7B,OAAO,EAAE,KAAK;iBACf;gBACD;oBACE,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,0CAA0C;oBAChD,OAAO,EAAE,QAAQ;iBAClB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,mBAAmB;oBACzB,OAAO,EAAE,SAAS;iBACnB;gBACD;oBACE,IAAI,EAAE,eAAe;oBACrB,WAAW,EAAE,+CAA+C;oBAC5D,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,OAAO;iBACjB;gBACD;oBACE,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,MAAM;iBAChB;aACF;YACD,UAAU,EAAE;gBACV;oBACE,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,YAAY;oBACvB,IAAI,EAAE,0CAA0C;oBAChD,OAAO,EAAE,QAAQ;iBAClB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,SAAS,EA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,6BAA6B;oBACnC,WAAW,EAAE,2CAA2C;iBACzD;gBACD;oBACE,IAAI,EAAE,uBAAuB;oBAC7B,WAAW,EAAE,qCAAqC;iBACnD;gBACD;oBACE,IAAI,EAAE,yBAAyB;oBAC/B,WAAW,EAAE,uCAAuC;iBACrD;aACF;SACF;KACF;CACF,CAAC"}
package/dist/utils.d.ts CHANGED
@@ -4,7 +4,7 @@ declare const CustomElementsSchema: z.ZodObject<{
4
4
  tags: z.ZodArray<z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  path: z.ZodString;
7
- attributes: z.ZodArray<z.ZodObject<{
7
+ attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
8
  name: z.ZodString;
9
9
  type: z.ZodString;
10
10
  default: z.ZodString;
@@ -19,8 +19,8 @@ declare const CustomElementsSchema: z.ZodObject<{
19
19
  type?: string;
20
20
  default?: string;
21
21
  description?: string;
22
- }>, "many">;
23
- properties: z.ZodArray<z.ZodObject<{
22
+ }>, "many">>;
23
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
24
  name: z.ZodString;
25
25
  type: z.ZodString;
26
26
  default: z.ZodString;
@@ -38,14 +38,34 @@ declare const CustomElementsSchema: z.ZodObject<{
38
38
  default?: string;
39
39
  description?: string;
40
40
  attribute?: string;
41
- }>, "many">;
42
- events: z.ZodArray<z.ZodObject<{
41
+ }>, "many">>;
42
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
43
  name: z.ZodString;
44
44
  }, "strip", z.ZodTypeAny, {
45
45
  name?: string;
46
46
  }, {
47
47
  name?: string;
48
- }>, "many">;
48
+ }>, "many">>;
49
+ slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ name: z.ZodString;
51
+ description: z.ZodOptional<z.ZodString>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ name?: string;
54
+ description?: string;
55
+ }, {
56
+ name?: string;
57
+ description?: string;
58
+ }>, "many">>;
59
+ cssProperties: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ name: z.ZodString;
61
+ description: z.ZodOptional<z.ZodString>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ name?: string;
64
+ description?: string;
65
+ }, {
66
+ name?: string;
67
+ description?: string;
68
+ }>, "many">>;
49
69
  }, "strip", z.ZodTypeAny, {
50
70
  name?: string;
51
71
  path?: string;
@@ -65,6 +85,14 @@ declare const CustomElementsSchema: z.ZodObject<{
65
85
  events?: {
66
86
  name?: string;
67
87
  }[];
88
+ slots?: {
89
+ name?: string;
90
+ description?: string;
91
+ }[];
92
+ cssProperties?: {
93
+ name?: string;
94
+ description?: string;
95
+ }[];
68
96
  }, {
69
97
  name?: string;
70
98
  path?: string;
@@ -84,6 +112,14 @@ declare const CustomElementsSchema: z.ZodObject<{
84
112
  events?: {
85
113
  name?: string;
86
114
  }[];
115
+ slots?: {
116
+ name?: string;
117
+ description?: string;
118
+ }[];
119
+ cssProperties?: {
120
+ name?: string;
121
+ description?: string;
122
+ }[];
87
123
  }>, "many">;
88
124
  }, "strip", z.ZodTypeAny, {
89
125
  version?: string;
@@ -106,6 +142,14 @@ declare const CustomElementsSchema: z.ZodObject<{
106
142
  events?: {
107
143
  name?: string;
108
144
  }[];
145
+ slots?: {
146
+ name?: string;
147
+ description?: string;
148
+ }[];
149
+ cssProperties?: {
150
+ name?: string;
151
+ description?: string;
152
+ }[];
109
153
  }[];
110
154
  }, {
111
155
  version?: string;
@@ -128,6 +172,14 @@ declare const CustomElementsSchema: z.ZodObject<{
128
172
  events?: {
129
173
  name?: string;
130
174
  }[];
175
+ slots?: {
176
+ name?: string;
177
+ description?: string;
178
+ }[];
179
+ cssProperties?: {
180
+ name?: string;
181
+ description?: string;
182
+ }[];
131
183
  }[];
132
184
  }>;
133
185
  declare const validateCustomElements: (data: unknown) => {
@@ -151,6 +203,14 @@ declare const validateCustomElements: (data: unknown) => {
151
203
  events?: {
152
204
  name?: string;
153
205
  }[];
206
+ slots?: {
207
+ name?: string;
208
+ description?: string;
209
+ }[];
210
+ cssProperties?: {
211
+ name?: string;
212
+ description?: string;
213
+ }[];
154
214
  }[];
155
215
  };
156
216
  export { CustomElementsSchema, validateCustomElements };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,SAAU,OAAO;;;;;;;;;;;;;;;;;;;;;;CACX,CAAC;AAEnC,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC;AACxD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAmCzE,wBAAsB,QAAQ,CAAC,IAAI,EAAE;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqClB"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyCxB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,SAAU,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACX,CAAC;AAEnC,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC;AACxD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAmCzE,wBAAsB,QAAQ,CAAC,IAAI,EAAE;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqClB"}
package/dist/utils.js CHANGED
@@ -22,12 +22,22 @@ const PropertySchema = zod_1.z.object({
22
22
  const EventSchema = zod_1.z.object({
23
23
  name: zod_1.z.string(),
24
24
  });
25
+ const SlotSchema = zod_1.z.object({
26
+ name: zod_1.z.string(),
27
+ description: zod_1.z.string().optional(),
28
+ });
29
+ const CssPropertiesSchema = zod_1.z.object({
30
+ name: zod_1.z.string(),
31
+ description: zod_1.z.string().optional(),
32
+ });
25
33
  const TagSchema = zod_1.z.object({
26
34
  name: zod_1.z.string(),
27
35
  path: zod_1.z.string(),
28
- attributes: zod_1.z.array(AttributeSchema),
29
- properties: zod_1.z.array(PropertySchema),
30
- events: zod_1.z.array(EventSchema),
36
+ attributes: zod_1.z.array(AttributeSchema).optional(),
37
+ properties: zod_1.z.array(PropertySchema).optional(),
38
+ events: zod_1.z.array(EventSchema).optional(),
39
+ slots: zod_1.z.array(SlotSchema).optional(),
40
+ cssProperties: zod_1.z.array(CssPropertiesSchema).optional(),
31
41
  });
32
42
  const CustomElementsSchema = zod_1.z.object({
33
43
  version: zod_1.z.string(),
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AA6EA,4BA2CC;AAxHD,6BAA8B;AAC9B,+BAA4B;AAC5B,2BAAkC;AAClC,6BAAwB;AAExB,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,OAAC,CAAC,MAAM,CAAC;IACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACpC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IACnC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,WAAW,CAAC;CAC7B,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,OAAC,C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AAC,GAAG,EAAE,GAAG,CAAC,CAAC;oBAC7C,CAAC,CAAC,KAAK,CAAC;gBACV,OAAO,GAAG,GAAG,KAAK,cAAc,GAAG,CAAC;YACtC,CAAC;YACD,KAAK,SAAS;gBACZ,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/B;gBACE,OAAO,GAAG,GAAG,KAAK,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAChE,CAAC;IACH,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvD,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC;QACvC,YAAY;QACZ,UAAU;QACV,KAAK;QACL,QAAQ;QACR,MAAM;QACN,KAAK;KACN,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC"}
@@ -22,7 +22,7 @@ const format = (code) => (0, file_utils_1.formatCode)({ contents: code, path: 'x
22
22
  </my-button>`;
23
23
  t.is(await format(actual), await format(expected));
24
24
  });
25
- ava_1.default.failing('renderer-web-components new test', async (t) => {
25
+ (0, ava_1.default)('renderer-web-components new test', async (t) => {
26
26
  const actual = await (0, utils_1.getUsage)({
27
27
  templateName: 'my-button',
28
28
  props: {
@@ -35,6 +35,6 @@ ava_1.default.failing('renderer-web-components new test', async (t) => {
35
35
  <my-button url="#" is-light>
36
36
  <p slot="content">This is the content of my component.</p>
37
37
  </my-button>`;
38
- t.is(format(actual), format(expected));
38
+ t.is(await format(actual), await format(expected));
39
39
  });
40
40
  //# sourceMappingURL=utils.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../src/utils.test.ts"],"names":[],"mappings":";;;;;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AU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AAEhF,IAAA,aAAI,EAAC,0CAA0C,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC3D,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAQ,EAAC;QAC5B,YAAY,EAAE,WAAW;QACzB,KAAK,EAAE;YACL,GAAG,EAAE,GAAG;YACR,SAAS,EAAE,IAAI;SAChB;QACD,QAAQ,EAAE,UAAU;KACrB,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG;;;aAGN,CAAC;IAEZ,CAAC,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,kCAAkC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAQ,EAAC;QAC5B,YAAY,EAAE,WAAW;QACzB,KAAK,EAAE;YACL,GAAG,EAAE,GAAG;YACR,UAAU,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE,4DAA4D;KACvE,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG;;;aAGN,CAAC;IAEZ,CAAC,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/renderer-web-components",
3
3
  "description": "Render Web Components",
4
- "version": "4.69.0--canary.4627.19723b8.0",
4
+ "version": "4.69.0--canary.4627.955e589.0",
5
5
  "main": "dist/renderer-web-components.js",
6
6
  "types": "dist/renderer-web-components.d.ts",
7
7
  "sideEffects": false,
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "author": "Knapsack (https://www.knapsack.cloud)",
17
17
  "dependencies": {
18
- "@knapsack/app": "4.69.0--canary.4627.19723b8.0",
19
- "@knapsack/file-utils": "4.69.0--canary.4627.19723b8.0",
20
- "@knapsack/types": "4.69.0--canary.4627.19723b8.0",
21
- "@knapsack/utils": "4.69.0--canary.4627.19723b8.0",
18
+ "@knapsack/app": "4.69.0--canary.4627.955e589.0",
19
+ "@knapsack/file-utils": "4.69.0--canary.4627.955e589.0",
20
+ "@knapsack/types": "4.69.0--canary.4627.955e589.0",
21
+ "@knapsack/utils": "4.69.0--canary.4627.955e589.0",
22
22
  "cheerio": "^1.0.0",
23
23
  "chokidar": "^3.6.0",
24
24
  "ejs": "^3.1.10",
@@ -26,9 +26,9 @@
26
26
  "zod": "^3.23.8"
27
27
  },
28
28
  "devDependencies": {
29
- "@knapsack/eslint-config-starter": "4.69.0--canary.4627.19723b8.0",
30
- "@knapsack/test-ava": "4.69.0--canary.4627.19723b8.0",
31
- "@knapsack/typescript-config-starter": "4.69.0--canary.4627.19723b8.0",
29
+ "@knapsack/eslint-config-starter": "4.69.0--canary.4627.955e589.0",
30
+ "@knapsack/test-ava": "4.69.0--canary.4627.955e589.0",
31
+ "@knapsack/typescript-config-starter": "4.69.0--canary.4627.955e589.0",
32
32
  "@types/fs-extra": "^11.0.4",
33
33
  "@types/node": "^20.16.1",
34
34
  "ava": "^6.1.3",
@@ -44,5 +44,5 @@
44
44
  "directory": "apps/client/renderers/renderer-web-components",
45
45
  "type": "git"
46
46
  },
47
- "gitHead": "19723b823c446aa7c35c2e936fe1d1ea999ea5bc"
47
+ "gitHead": "955e589c6780d78c44112c9a2896c283084befbe"
48
48
  }