@evlop/commons 1.0.260 → 1.0.262
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/dist/cjs/bin/generate-icons-cache.js +4 -3
- package/dist/cjs/bin/generate-icons-cache.js.map +1 -1
- package/dist/cjs/src/edl/ExpressionHelper.d.ts +8 -0
- package/dist/cjs/src/edl/ExpressionHelper.d.ts.map +1 -0
- package/dist/cjs/src/edl/ExpressionHelper.js +52 -0
- package/dist/cjs/src/edl/ExpressionHelper.js.map +1 -0
- package/dist/cjs/src/edl/index.d.ts +2 -1
- package/dist/cjs/src/edl/index.d.ts.map +1 -1
- package/dist/cjs/src/edl/index.js +1 -1
- package/dist/cjs/src/edl/index.js.map +1 -1
- package/dist/cjs/src/edl/parser.d.ts +1 -1
- package/dist/cjs/src/edl/parser.d.ts.map +1 -1
- package/dist/cjs/src/edl/parser.js +103 -64
- package/dist/cjs/src/edl/parser.js.map +1 -1
- package/dist/cjs/src/edl/parser.test.js +280 -206
- package/dist/cjs/src/edl/parser.test.js.map +1 -1
- package/dist/esm/bin/generate-icons-cache.js +4 -3
- package/dist/esm/bin/generate-icons-cache.js.map +1 -1
- package/dist/esm/src/edl/ExpressionHelper.d.ts +8 -0
- package/dist/esm/src/edl/ExpressionHelper.d.ts.map +1 -0
- package/dist/esm/src/edl/ExpressionHelper.js +50 -0
- package/dist/esm/src/edl/ExpressionHelper.js.map +1 -0
- package/dist/esm/src/edl/index.d.ts +2 -1
- package/dist/esm/src/edl/index.d.ts.map +1 -1
- package/dist/esm/src/edl/index.js +1 -1
- package/dist/esm/src/edl/index.js.map +1 -1
- package/dist/esm/src/edl/parser.d.ts +1 -1
- package/dist/esm/src/edl/parser.d.ts.map +1 -1
- package/dist/esm/src/edl/parser.js +100 -64
- package/dist/esm/src/edl/parser.js.map +1 -1
- package/dist/esm/src/edl/parser.test.js +280 -206
- package/dist/esm/src/edl/parser.test.js.map +1 -1
- package/dist/types/src/edl/ExpressionHelper.d.ts +8 -0
- package/dist/types/src/edl/ExpressionHelper.d.ts.map +1 -0
- package/dist/types/src/edl/index.d.ts +2 -1
- package/dist/types/src/edl/index.d.ts.map +1 -1
- package/dist/types/src/edl/parser.d.ts +1 -1
- package/dist/types/src/edl/parser.d.ts.map +1 -1
- package/package.json +2 -2
@@ -6,217 +6,291 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const parser_1 = __importDefault(require("./parser"));
|
7
7
|
const chai_1 = require("chai");
|
8
8
|
describe('parseEDL', () => {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
});
|
37
|
-
it('should parse an EDL string with nested tags', () => {
|
38
|
-
const edlString = '<div><span>Hello World</span></div>';
|
39
|
-
const result = parser_1.default(edlString, new Set());
|
40
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
41
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
42
|
-
chai_1.expect(result[0].children).to.be.an('array').with.lengthOf(1);
|
43
|
-
chai_1.expect(result[0].children[0].tag).to.equal('span');
|
44
|
-
chai_1.expect(result[0].children[0].children).to.deep.equal(['Hello World']);
|
45
|
-
});
|
46
|
-
it('should parse an EDL string with dynamic props', () => {
|
47
|
-
const edlString = '<input type="text" value={state.value} />';
|
48
|
-
const additionalVariables = new Set(['state']);
|
49
|
-
const result = parser_1.default(edlString, additionalVariables);
|
50
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
51
|
-
chai_1.expect(result[0].tag).to.equal('input');
|
52
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({ type: 'text' });
|
53
|
-
chai_1.expect(result[0].variableProps).to.have.property('value');
|
54
|
-
chai_1.expect(result[0].variableProps.value).to.be.a('function');
|
55
|
-
});
|
56
|
-
it('should parse an EDL string with a script tag and extract variables', () => {
|
57
|
-
const edlString = `<Script>
|
58
|
-
const $var1 = 42;
|
59
|
-
let $var2 = "";
|
60
|
-
</Script>`;
|
61
|
-
const result = parser_1.default(edlString, new Set());
|
62
|
-
console.log(result);
|
63
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
64
|
-
chai_1.expect(result[0].tag).to.equal('Script');
|
65
|
-
chai_1.expect(result[0].variableProps).to.have.property(':function');
|
66
|
-
chai_1.expect(result[0].variableProps[':function']).to.be.a('function');
|
67
|
-
});
|
68
|
-
it('should handle self-closing tags', () => {
|
69
|
-
const edlString = '<img src="image.png" />';
|
70
|
-
const result = parser_1.default(edlString, new Set());
|
71
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
72
|
-
chai_1.expect(result[0].tag).to.equal('img');
|
73
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({ src: 'image.png' });
|
74
|
-
});
|
75
|
-
it('should parse an EDL string with both static and dynamic props', () => {
|
76
|
-
const edlString = '<button class="btn" onClick={handleClick}>Click Me</button>';
|
77
|
-
const additionalVariables = new Set(['handleClick']);
|
78
|
-
const result = parser_1.default(edlString, additionalVariables);
|
79
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
80
|
-
chai_1.expect(result[0].tag).to.equal('button');
|
81
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({ className: 'btn' });
|
82
|
-
chai_1.expect(result[0].variableProps).to.have.property('onClick');
|
83
|
-
chai_1.expect(result[0].variableProps.onClick).to.be.a('function');
|
84
|
-
chai_1.expect(result[0].children).to.deep.equal(['Click Me']);
|
85
|
-
});
|
86
|
-
it('should parse an EDL string with mixed content (text and elements)', () => {
|
87
|
-
const edlString = '<div>Text before <span>inline text</span> and after</div>';
|
88
|
-
const result = parser_1.default(edlString, new Set());
|
89
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
90
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
91
|
-
chai_1.expect(result[0].children).to.be.an('array').with.lengthOf(3);
|
92
|
-
chai_1.expect(result[0].children[0]).to.equal('Text before ');
|
93
|
-
chai_1.expect(result[0].children[1].tag).to.equal('span');
|
94
|
-
chai_1.expect(result[0].children[1].children).to.deep.equal(['inline text']);
|
95
|
-
chai_1.expect(result[0].children[2]).to.equal(' and after');
|
96
|
-
});
|
97
|
-
it('should identify shared props when they modify different object properties', () => {
|
98
|
-
const edlString = '<div style.color="red" style.width={width}></div>';
|
99
|
-
const result = parser_1.default(edlString, new Set(['width']));
|
100
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
101
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
102
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({
|
103
|
-
style: { color: 'red' }
|
104
|
-
});
|
105
|
-
chai_1.expect(result[0].variableProps).to.have.property('style.width');
|
106
|
-
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['style']);
|
107
|
-
});
|
108
|
-
it('should handle multiple shared object properties', () => {
|
109
|
-
const edlString = '<div style.color="red" style.width={width} style.height="100px" style.margin={margin}></div>';
|
110
|
-
const result = parser_1.default(edlString, new Set(['width', 'margin']));
|
111
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
112
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
113
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({
|
114
|
-
style: {
|
115
|
-
color: 'red',
|
116
|
-
height: '100px'
|
117
|
-
}
|
118
|
-
});
|
119
|
-
chai_1.expect(result[0].variableProps).to.have.keys('style.width', 'style.margin');
|
120
|
-
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['style']);
|
121
|
-
});
|
122
|
-
it('should handle mixed shared object properties and regular props', () => {
|
123
|
-
const edlString = '<div class="container" style.color="red" style.width={width} onClick={handleClick}></div>';
|
124
|
-
const result = parser_1.default(edlString, new Set(['width', 'handleClick']));
|
125
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
126
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
127
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({
|
128
|
-
className: 'container',
|
129
|
-
style: { color: 'red' }
|
130
|
-
});
|
131
|
-
chai_1.expect(result[0].variableProps).to.have.keys('style.width', 'onClick');
|
132
|
-
console.log(result[0].sharedPropNames);
|
133
|
-
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['style']);
|
134
|
-
});
|
135
|
-
it('should not mark props as shared when only static object properties exist', () => {
|
136
|
-
const edlString = '<div style.color="red" style.width="100px"></div>';
|
137
|
-
const result = parser_1.default(edlString, new Set());
|
138
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
139
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
140
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({
|
141
|
-
style: {
|
142
|
-
color: 'red',
|
143
|
-
width: '100px'
|
144
|
-
}
|
145
|
-
});
|
146
|
-
chai_1.expect(result[0].variableProps).to.deep.equal({});
|
147
|
-
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
148
|
-
});
|
149
|
-
it('should not mark props as shared when only dynamic object properties exist', () => {
|
150
|
-
const edlString = '<div style.color={color} style.width={width}></div>';
|
151
|
-
const result = parser_1.default(edlString, new Set(['color', 'width']));
|
152
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
153
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
154
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({});
|
155
|
-
chai_1.expect(result[0].variableProps).to.have.keys('style.color', 'style.width');
|
156
|
-
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
157
|
-
});
|
158
|
-
it('should parse an EDL string with static props only', () => {
|
159
|
-
const edlString = '<div class="container" id="main"></div>';
|
160
|
-
const result = parser_1.default(edlString, new Set());
|
161
|
-
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
162
|
-
chai_1.expect(result[0].tag).to.equal('div');
|
163
|
-
chai_1.expect(result[0].staticProps).to.deep.equal({ className: 'container', id: 'main' });
|
164
|
-
chai_1.expect(result[0].variableProps).to.deep.equal({});
|
165
|
-
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
9
|
+
// Basic Parsing
|
10
|
+
describe('basic parsing', () => {
|
11
|
+
it('should parse an EDL string with a single tag and no props', () => {
|
12
|
+
const edlString = '<div></div>';
|
13
|
+
const result = parser_1.default(edlString, new Set());
|
14
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
15
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
16
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({});
|
17
|
+
chai_1.expect(result[0].variableProps).to.deep.equal({});
|
18
|
+
chai_1.expect(result[0].children).to.deep.equal([]);
|
19
|
+
});
|
20
|
+
it('should parse an EDL string with a single tag and static props', () => {
|
21
|
+
const edlString = '<div class="container" id="main"></div>';
|
22
|
+
const result = parser_1.default(edlString, new Set());
|
23
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
24
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
25
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ className: 'container', id: 'main' });
|
26
|
+
chai_1.expect(result[0].variableProps).to.deep.equal({});
|
27
|
+
chai_1.expect(result[0].children).to.deep.equal([]);
|
28
|
+
});
|
29
|
+
it('should handle self-closing tags', () => {
|
30
|
+
const edlString = '<img src="image.png" />';
|
31
|
+
const result = parser_1.default(edlString, new Set());
|
32
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
33
|
+
chai_1.expect(result[0].tag).to.equal('img');
|
34
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ src: 'image.png' });
|
35
|
+
});
|
166
36
|
});
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
37
|
+
// Children and Nested Elements
|
38
|
+
describe('children and nested elements', () => {
|
39
|
+
it('should parse an EDL string with inline expression interpolation', () => {
|
40
|
+
const edlString = '<Text>Hello {user.name}!</Text>';
|
41
|
+
const result = parser_1.default(edlString, new Set(['user']));
|
42
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
43
|
+
chai_1.expect(result[0].tag).to.equal('Text');
|
44
|
+
chai_1.expect(result[0].children).to.be.an('array').with.lengthOf(3);
|
45
|
+
chai_1.expect(result[0].children[0]).to.equal('Hello ');
|
46
|
+
chai_1.expect(result[0].children[1]).to.be.a('function'); // The interpolated expression
|
47
|
+
chai_1.expect(result[0].children[2]).to.equal('!');
|
48
|
+
});
|
49
|
+
it('should parse an EDL string with nested tags', () => {
|
50
|
+
const edlString = '<div><span>Hello World</span></div>';
|
51
|
+
const result = parser_1.default(edlString, new Set());
|
52
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
53
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
54
|
+
chai_1.expect(result[0].children).to.be.an('array').with.lengthOf(1);
|
55
|
+
chai_1.expect(result[0].children[0].tag).to.equal('span');
|
56
|
+
chai_1.expect(result[0].children[0].children).to.deep.equal(['Hello World']);
|
57
|
+
});
|
58
|
+
it('should parse an EDL string with mixed content (text and elements)', () => {
|
59
|
+
const edlString = '<div>Text before <span>inline text</span> and after</div>';
|
60
|
+
const result = parser_1.default(edlString, new Set());
|
61
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
62
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
63
|
+
chai_1.expect(result[0].children).to.be.an('array').with.lengthOf(3);
|
64
|
+
chai_1.expect(result[0].children[0]).to.equal('Text before ');
|
65
|
+
chai_1.expect(result[0].children[1].tag).to.equal('span');
|
66
|
+
chai_1.expect(result[0].children[1].children).to.deep.equal(['inline text']);
|
67
|
+
chai_1.expect(result[0].children[2]).to.equal(' and after');
|
68
|
+
});
|
176
69
|
});
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
70
|
+
// Props Handling
|
71
|
+
describe('props handling', () => {
|
72
|
+
describe('static props', () => {
|
73
|
+
it('should parse an EDL string with static props only', () => {
|
74
|
+
const edlString = '<div class="container" id="main"></div>';
|
75
|
+
const result = parser_1.default(edlString, new Set());
|
76
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
77
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
78
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ className: 'container', id: 'main' });
|
79
|
+
chai_1.expect(result[0].variableProps).to.deep.equal({});
|
80
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
81
|
+
});
|
82
|
+
it('should parse static expressions in dynamic syntax as static values', () => {
|
83
|
+
const edlString = '<div value={123} text={"static"} bool={true}></div>';
|
84
|
+
const result = parser_1.default(edlString, new Set());
|
85
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
86
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
87
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({
|
88
|
+
value: 123,
|
89
|
+
text: 'static',
|
90
|
+
bool: true
|
91
|
+
});
|
92
|
+
chai_1.expect(result[0].variableProps).to.deep.equal({});
|
93
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
94
|
+
});
|
95
|
+
});
|
96
|
+
describe('dynamic props', () => {
|
97
|
+
it('should parse an EDL string with dynamic props', () => {
|
98
|
+
const edlString = '<input type="text" value={state.value} />';
|
99
|
+
const additionalVariables = new Set(['state']);
|
100
|
+
const result = parser_1.default(edlString, additionalVariables);
|
101
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
102
|
+
chai_1.expect(result[0].tag).to.equal('input');
|
103
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ type: 'text' });
|
104
|
+
chai_1.expect(result[0].variableProps).to.have.property('value');
|
105
|
+
chai_1.expect(result[0].variableProps.value).to.be.a('function');
|
106
|
+
});
|
107
|
+
it('should parse an EDL string with dynamic props only', () => {
|
108
|
+
const edlString = '<input value={state.value} onChange={handleChange} />';
|
109
|
+
const additionalVariables = new Set(['state', 'handleChange']);
|
110
|
+
const result = parser_1.default(edlString, additionalVariables);
|
111
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
112
|
+
chai_1.expect(result[0].tag).to.equal('input');
|
113
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({});
|
114
|
+
chai_1.expect(result[0].variableProps).to.have.all.keys('value', 'onChange');
|
115
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
116
|
+
});
|
117
|
+
});
|
118
|
+
describe('mixed props', () => {
|
119
|
+
it('should parse an EDL string with both static and dynamic props', () => {
|
120
|
+
const edlString = '<button class="btn" onClick={handleClick}>Click Me</button>';
|
121
|
+
const additionalVariables = new Set(['handleClick']);
|
122
|
+
const result = parser_1.default(edlString, additionalVariables);
|
123
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
124
|
+
chai_1.expect(result[0].tag).to.equal('button');
|
125
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ className: 'btn' });
|
126
|
+
chai_1.expect(result[0].variableProps).to.have.property('onClick');
|
127
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
128
|
+
chai_1.expect(result[0].children).to.deep.equal(['Click Me']);
|
129
|
+
});
|
130
|
+
it('should parse an EDL string with both static and dynamic props (not shared)', () => {
|
131
|
+
const edlString = '<button class="btn" onClick={handleClick}>Click Me</button>';
|
132
|
+
const additionalVariables = new Set(['handleClick']);
|
133
|
+
const result = parser_1.default(edlString, additionalVariables);
|
134
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
135
|
+
chai_1.expect(result[0].tag).to.equal('button');
|
136
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ className: 'btn' });
|
137
|
+
chai_1.expect(result[0].variableProps).to.have.property('onClick');
|
138
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
139
|
+
chai_1.expect(result[0].children).to.deep.equal(['Click Me']);
|
140
|
+
});
|
141
|
+
});
|
187
142
|
});
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
143
|
+
// Shared Props
|
144
|
+
describe('shared props', () => {
|
145
|
+
describe('basic shared props', () => {
|
146
|
+
it('should identify single shared prop correctly', () => {
|
147
|
+
const edlString = '<div class="static-class" class={dynamicClass}></div>';
|
148
|
+
const result = parser_1.default(edlString, new Set(['dynamicClass']));
|
149
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
150
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
151
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ className: 'static-class' });
|
152
|
+
chai_1.expect(result[0].variableProps).to.have.property('className');
|
153
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['className']);
|
154
|
+
});
|
155
|
+
it('should handle multiple shared props correctly', () => {
|
156
|
+
const edlString = '<div id="static-id" class="static-class" id={dynamicId} class={dynamicClass}></div>';
|
157
|
+
const result = parser_1.default(edlString, new Set(['dynamicId', 'dynamicClass']));
|
158
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
159
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
160
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({
|
161
|
+
id: 'static-id',
|
162
|
+
className: 'static-class'
|
163
|
+
});
|
164
|
+
chai_1.expect(result[0].variableProps).to.have.keys('id', 'className');
|
165
|
+
chai_1.expect(result[0].sharedPropNames).to.have.members(['id', 'className']);
|
166
|
+
});
|
167
|
+
it('should handle mixed shared and non-shared props', () => {
|
168
|
+
const edlString = '<div id="static-id" class="static-class" id={dynamicId} onClick={ () => console.log({ a: 123 }) }></div>';
|
169
|
+
const result = parser_1.default(edlString, new Set(['dynamicId', 'handleClick']));
|
170
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
171
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
172
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({
|
173
|
+
id: 'static-id',
|
174
|
+
className: 'static-class'
|
175
|
+
});
|
176
|
+
chai_1.expect(result[0].variableProps).to.have.keys('id', 'onClick');
|
177
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['id']);
|
178
|
+
});
|
179
|
+
});
|
180
|
+
describe('object properties', () => {
|
181
|
+
it('should identify shared props when they modify different object properties', () => {
|
182
|
+
const edlString = '<div style.color="red" style.width={width}></div>';
|
183
|
+
const result = parser_1.default(edlString, new Set(['width']));
|
184
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
185
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
186
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({
|
187
|
+
style: { color: 'red' }
|
188
|
+
});
|
189
|
+
chai_1.expect(result[0].variableProps).to.have.property('style.width');
|
190
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['style']);
|
191
|
+
});
|
192
|
+
it('should handle multiple shared object properties', () => {
|
193
|
+
const edlString = '<div style.color="red" style.width={width} style.height="100px" style.margin={margin}></div>';
|
194
|
+
const result = parser_1.default(edlString, new Set(['width', 'margin']));
|
195
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
196
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
197
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({
|
198
|
+
style: {
|
199
|
+
color: 'red',
|
200
|
+
height: '100px'
|
201
|
+
}
|
202
|
+
});
|
203
|
+
chai_1.expect(result[0].variableProps).to.have.keys('style.width', 'style.margin');
|
204
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['style']);
|
205
|
+
});
|
206
|
+
it('should handle mixed shared object properties and regular props', () => {
|
207
|
+
const edlString = '<div class="container" style.color="red" style.width={width} onClick={handleClick}></div>';
|
208
|
+
const result = parser_1.default(edlString, new Set(['width', 'handleClick']));
|
209
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
210
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
211
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({
|
212
|
+
className: 'container',
|
213
|
+
style: { color: 'red' }
|
214
|
+
});
|
215
|
+
chai_1.expect(result[0].variableProps).to.have.keys('style.width', 'onClick');
|
216
|
+
console.log(result[0].sharedPropNames);
|
217
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal(['style']);
|
218
|
+
});
|
219
|
+
it('should not mark props as shared when only static object properties exist', () => {
|
220
|
+
const edlString = '<div style.color="red" style.width="100px"></div>';
|
221
|
+
const result = parser_1.default(edlString, new Set());
|
222
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
223
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
224
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({
|
225
|
+
style: {
|
226
|
+
color: 'red',
|
227
|
+
width: '100px'
|
228
|
+
}
|
229
|
+
});
|
230
|
+
chai_1.expect(result[0].variableProps).to.deep.equal({});
|
231
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
232
|
+
});
|
233
|
+
it('should not mark props as shared when only dynamic object properties exist', () => {
|
234
|
+
const edlString = '<div style.color={color} style.width={width}></div>';
|
235
|
+
const result = parser_1.default(edlString, new Set(['color', 'width']));
|
236
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
237
|
+
chai_1.expect(result[0].tag).to.equal('div');
|
238
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({});
|
239
|
+
chai_1.expect(result[0].variableProps).to.have.keys('style.color', 'style.width');
|
240
|
+
chai_1.expect(result[0].sharedPropNames).to.deep.equal([]);
|
241
|
+
});
|
242
|
+
});
|
196
243
|
});
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
244
|
+
// Script Tags
|
245
|
+
describe('script tags', () => {
|
246
|
+
it('should parse an EDL string with a script tag and extract variables', () => {
|
247
|
+
const edlString = `<Script>
|
248
|
+
const $var1 = 42;
|
249
|
+
let $var2 = "";
|
250
|
+
</Script>`;
|
251
|
+
const result = parser_1.default(edlString, new Set());
|
252
|
+
console.log(result);
|
253
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
254
|
+
chai_1.expect(result[0].tag).to.equal('Script');
|
255
|
+
chai_1.expect(result[0].variableProps).to.have.property(':function');
|
256
|
+
chai_1.expect(result[0].variableProps[':function']).to.be.a('function');
|
257
|
+
});
|
208
258
|
});
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
259
|
+
// Expression Parsing
|
260
|
+
describe('expression parsing', () => {
|
261
|
+
it('should handle expressions containing string literals with braces', () => {
|
262
|
+
const edlString = '<div prop={`string with { braces }`}></div>';
|
263
|
+
const result = parser_1.default(edlString, new Set());
|
264
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
265
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ prop: 'string with { braces }' });
|
266
|
+
});
|
267
|
+
it('should handle nested expressions correctly', () => {
|
268
|
+
const edlString = '<div prop={{ nested: { value: 123 } }}></div>';
|
269
|
+
const result = parser_1.default(edlString, new Set());
|
270
|
+
console.log(result);
|
271
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
272
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ prop: { nested: { value: 123 } } });
|
273
|
+
});
|
274
|
+
it('should handle expressions with escaped quotes', () => {
|
275
|
+
const edlString = '<div prop={`string with \\`backticks\\` inside`}></div>';
|
276
|
+
const result = parser_1.default(edlString, new Set());
|
277
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
278
|
+
chai_1.expect(result[0].staticProps).to.deep.equal({ prop: 'string with `backticks` inside' });
|
279
|
+
});
|
280
|
+
it('should handle complex nested expressions with strings', () => {
|
281
|
+
const edlString = '<div prop={{ text: `Hello ${data.name}`, obj: { key: "{not an expression}" } }}></div>';
|
282
|
+
const result = parser_1.default(edlString, new Set(['data']));
|
283
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
284
|
+
chai_1.expect(result[0].variableProps).to.have.property('prop');
|
285
|
+
chai_1.expect(result[0].variableProps.prop).to.be.a('function');
|
286
|
+
});
|
287
|
+
it('should handle expressions with function calls containing objects', () => {
|
288
|
+
const edlString = '<div onClick={() => handleClick({ id: 123 })}></div>';
|
289
|
+
const result = parser_1.default(edlString, new Set(['handleClick']));
|
290
|
+
chai_1.expect(result).to.be.an('array').with.lengthOf(1);
|
291
|
+
chai_1.expect(result[0].variableProps).to.have.property('onClick');
|
292
|
+
chai_1.expect(result[0].variableProps.onClick).to.be.a('function');
|
293
|
+
});
|
220
294
|
});
|
221
295
|
});
|
222
296
|
//# sourceMappingURL=parser.test.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parser.test.js","sourceRoot":"","sources":["../../../../src/edl/parser.test.ts"],"names":[],"mappings":";;;;;AAAA,sDAAgC;AAChC,+BAA8B;AAG9B,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACnE,MAAM,SAAS,GAAG,aAAa,CAAC;QAChC,MAAM,MAAM,GAAG,gBAAQ,CAAC,SAAS,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;QAE9C,aAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAClD,aAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,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CAAC;YACzD,aAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;YAC1E,MAAM,SAAS,GAAG,sDAAsD,CAAC;YACzE,MAAM,MAAM,GAAG,gBAAQ,CAAC,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAE7D,aAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAClD,aAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;YAC5D,aAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { pascalCase } from "change-case";
|
2
2
|
import { at, filter, groupBy, join, map, mapValues, reduce } from "lodash";
|
3
3
|
import reactNativeVectorIcons from "../src/constants/iconInfo/reactNativeVectorIcons";
|
4
|
+
import { writeFileSync } from "fs";
|
4
5
|
const iconByTypes = groupBy(reactNativeVectorIcons, icon => filter(at(icon, 'type', 'variant')).join(':'));
|
5
6
|
const iconTypeToIconNames = mapValues(iconByTypes, icons => map(icons, 'name'));
|
6
7
|
const icons = reduce(iconTypeToIconNames, ({ typeNames, typeDefinations }, iconNames, iconType) => {
|
@@ -27,9 +28,9 @@ const reactNativeVectorIconsLookup = reduce(reactNativeVectorIcons, (acc, icon,
|
|
27
28
|
current[idPath[idPath.length - 1]] = icon.character;
|
28
29
|
return acc;
|
29
30
|
}, {});
|
30
|
-
|
31
|
-
|
32
|
-
|
31
|
+
writeFileSync('./src/constants/iconInfo/reactNativeVectorIcons.lookup.json', JSON.stringify(reactNativeVectorIconsLookup, null, 2));
|
32
|
+
writeFileSync('./src/constants/iconInfo/reactNativeVectorIcons.lookup.min.json', JSON.stringify(reactNativeVectorIconsLookup));
|
33
|
+
writeFileSync('./src/constants/iconInfo/types.ts', [
|
33
34
|
...icons.typeDefinations,
|
34
35
|
`export type ReactNativeVectorIconIdentifier = ${join(icons.typeNames, ' | ')};`,
|
35
36
|
'',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generate-icons-cache.js","sourceRoot":"","sources":["../../../bin/generate-icons-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAO,MAAM,QAAQ,CAAC;AAChF,OAAQ,sBAAsB,MAAM,kDAAkD,CAAC;
|
1
|
+
{"version":3,"file":"generate-icons-cache.js","sourceRoot":"","sources":["../../../bin/generate-icons-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAO,MAAM,QAAQ,CAAC;AAChF,OAAQ,sBAAsB,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC,MAAM,WAAW,GAAG,OAAO,CAAC,sBAAsB,EAAE,IAAI,CAAA,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,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