@looker/code-editor 0.1.30 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +112 -148
- package/README.md +13 -13
- package/lib/CodeCopy/CodeCopy.d.ts +2 -2
- package/lib/CodeCopy/CodeCopy.js.map +1 -1
- package/lib/CodeCopy/index.js.map +1 -1
- package/lib/CodeDisplay/CodeDisplay.js +5 -5
- package/lib/CodeDisplay/CodeDisplay.js.map +1 -1
- package/lib/CodeDisplay/CodeWrapper.js.map +1 -1
- package/lib/CodeDisplay/LineItem.js.map +1 -1
- package/lib/CodeDisplay/index.js.map +1 -1
- package/lib/CodeDisplay/types.d.ts +1 -1
- package/lib/CodeDisplay/types.js.map +1 -1
- package/lib/CodeEditor/CodeEditor.js.map +1 -1
- package/lib/CodeEditor/index.js.map +1 -1
- package/lib/Markdown/Markdown.d.ts +2 -1
- package/lib/Markdown/Markdown.js +1 -1
- package/lib/Markdown/Markdown.js.map +1 -1
- package/lib/Markdown/TableCell.js.map +1 -1
- package/lib/Markdown/common.js +10 -14
- package/lib/Markdown/common.js.map +1 -1
- package/lib/Markdown/index.js.map +1 -1
- package/lib/Markdown/utils.js.map +1 -1
- package/lib/esm/CodeCopy/CodeCopy.js +7 -15
- package/lib/esm/CodeCopy/CodeCopy.js.map +1 -1
- package/lib/esm/CodeCopy/index.js +1 -16
- package/lib/esm/CodeCopy/index.js.map +1 -1
- package/lib/esm/CodeDisplay/CodeDisplay.js +22 -32
- package/lib/esm/CodeDisplay/CodeDisplay.js.map +1 -1
- package/lib/esm/CodeDisplay/CodeWrapper.js +6 -14
- package/lib/esm/CodeDisplay/CodeWrapper.js.map +1 -1
- package/lib/esm/CodeDisplay/LineItem.js +3 -11
- package/lib/esm/CodeDisplay/LineItem.js.map +1 -1
- package/lib/esm/CodeDisplay/index.js +1 -12
- package/lib/esm/CodeDisplay/index.js.map +1 -1
- package/lib/esm/CodeDisplay/types.js.map +1 -1
- package/lib/esm/CodeEditor/CodeEditor.js +6 -14
- package/lib/esm/CodeEditor/CodeEditor.js.map +1 -1
- package/lib/esm/CodeEditor/index.js +1 -12
- package/lib/esm/CodeEditor/index.js.map +1 -1
- package/lib/esm/Markdown/Markdown.js +32 -40
- package/lib/esm/Markdown/Markdown.js.map +1 -1
- package/lib/esm/Markdown/TableCell.js +4 -12
- package/lib/esm/Markdown/TableCell.js.map +1 -1
- package/lib/esm/Markdown/common.js +17 -29
- package/lib/esm/Markdown/common.js.map +1 -1
- package/lib/esm/Markdown/index.js +1 -16
- package/lib/esm/Markdown/index.js.map +1 -1
- package/lib/esm/Markdown/utils.js +10 -24
- package/lib/esm/Markdown/utils.js.map +1 -1
- package/lib/esm/index.js +4 -49
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/test-data/codeBlob.js +1 -8
- package/lib/esm/test-data/codeBlob.js.map +1 -1
- package/lib/esm/test-data/index.js +1 -12
- package/lib/esm/test-data/index.js.map +1 -1
- package/lib/esm/utils/index.js +1 -24
- package/lib/esm/utils/index.js.map +1 -1
- package/lib/esm/utils/utils.js +19 -29
- package/lib/esm/utils/utils.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/test-data/codeBlob.js +1 -2
- package/lib/test-data/codeBlob.js.map +1 -1
- package/lib/test-data/index.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/utils.js.map +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -2,341 +2,305 @@
|
|
|
2
2
|
|
|
3
3
|
### Dependencies
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
- The following workspace dependencies were updated
|
|
6
|
+
- devDependencies
|
|
7
|
+
- @looker/sdk-codegen bumped from ^21.8.0 to ^21.8.1
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- The following workspace dependencies were updated
|
|
12
|
+
- devDependencies
|
|
13
|
+
- @looker/sdk-codegen bumped from ^21.8.1 to ^21.8.2
|
|
8
14
|
|
|
9
15
|
### Dependencies
|
|
10
16
|
|
|
11
17
|
* The following workspace dependencies were updated
|
|
12
18
|
* devDependencies
|
|
13
|
-
* @looker/sdk-codegen bumped from
|
|
19
|
+
* @looker/sdk-codegen bumped from 21.8.2 to 21.9.0
|
|
14
20
|
|
|
15
21
|
## [0.1.28](https://github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.27...code-editor-v0.1.28) (2023-02-22)
|
|
16
22
|
|
|
17
|
-
|
|
18
23
|
### Features
|
|
19
24
|
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
- keep all body parameters toggle in API Explorer requests ([#1245](https://github.com/looker-open-source/sdk-codegen/issues/1245)) ([043ed3f](https://github.com/looker-open-source/sdk-codegen/commit/043ed3ff12cba4f821604b5b668d7301ed4aa6d1))
|
|
22
26
|
|
|
23
27
|
### Dependencies
|
|
24
28
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
- The following workspace dependencies were updated
|
|
30
|
+
- devDependencies
|
|
31
|
+
- @looker/sdk-codegen bumped from ^21.7.4 to ^21.8.0
|
|
28
32
|
|
|
29
33
|
### [0.1.27](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.26...code-editor-v0.1.27) (2022-12-09)
|
|
30
34
|
|
|
31
|
-
|
|
32
35
|
### Dependencies
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
- The following workspace dependencies were updated
|
|
38
|
+
- devDependencies
|
|
39
|
+
- @looker/sdk-codegen bumped from ^21.7.3 to ^21.7.4
|
|
37
40
|
|
|
38
41
|
### [0.1.26](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.25...code-editor-v0.1.26) (2022-11-10)
|
|
39
42
|
|
|
40
|
-
|
|
41
43
|
### Dependencies
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
- The following workspace dependencies were updated
|
|
46
|
+
- devDependencies
|
|
47
|
+
- @looker/sdk-codegen bumped from ^21.7.2 to ^21.7.3
|
|
46
48
|
|
|
47
49
|
### [0.1.25](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.24...code-editor-v0.1.25) (2022-10-17)
|
|
48
50
|
|
|
49
|
-
|
|
50
51
|
### Dependencies
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
- The following workspace dependencies were updated
|
|
54
|
+
- devDependencies
|
|
55
|
+
- @looker/sdk-codegen bumped from ^21.7.1 to ^21.7.2
|
|
55
56
|
|
|
56
57
|
### [0.1.24](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.23...code-editor-v0.1.24) (2022-09-21)
|
|
57
58
|
|
|
58
|
-
|
|
59
59
|
### Features
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
- error document retrieval in API Explorer ([#1161](https://www.github.com/looker-open-source/sdk-codegen/issues/1161)) ([89a94e1](https://www.github.com/looker-open-source/sdk-codegen/commit/89a94e167b8a3e1aa662c0b5de7c585b3eac2f13))
|
|
62
|
+
- error documentation redirect and support for detailed error content ([#1167](https://www.github.com/looker-open-source/sdk-codegen/issues/1167)) ([5b4fc5b](https://www.github.com/looker-open-source/sdk-codegen/commit/5b4fc5b91e05ed4ccd9090724e4ac3f506b541fd))
|
|
64
63
|
|
|
65
64
|
### Dependencies
|
|
66
65
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
- The following workspace dependencies were updated
|
|
67
|
+
- devDependencies
|
|
68
|
+
- @looker/sdk-codegen bumped from ^21.7.0 to ^21.7.1
|
|
70
69
|
|
|
71
70
|
### [0.1.23](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.22...code-editor-v0.1.23) (2022-07-29)
|
|
72
71
|
|
|
73
|
-
|
|
74
72
|
### Dependencies
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
- The following workspace dependencies were updated
|
|
75
|
+
- devDependencies
|
|
76
|
+
- @looker/sdk-codegen bumped from ^21.6.0 to ^21.7.0
|
|
79
77
|
|
|
80
78
|
### [0.1.22](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.21...code-editor-v0.1.22) (2022-07-07)
|
|
81
79
|
|
|
82
|
-
|
|
83
80
|
### Dependencies
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
- The following workspace dependencies were updated
|
|
83
|
+
- devDependencies
|
|
84
|
+
- @looker/sdk-codegen bumped from ^21.5.2 to ^21.6.0
|
|
88
85
|
|
|
89
86
|
### [0.1.21](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.20...code-editor-v0.1.21) (2022-04-07)
|
|
90
87
|
|
|
91
|
-
|
|
92
88
|
### Dependencies
|
|
93
89
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
- The following workspace dependencies were updated
|
|
91
|
+
- devDependencies
|
|
92
|
+
- @looker/sdk-codegen bumped from ^21.5.1 to ^21.5.2
|
|
97
93
|
|
|
98
94
|
### [0.1.20](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.19...code-editor-v0.1.20) (2022-04-07)
|
|
99
95
|
|
|
100
|
-
|
|
101
96
|
### Dependencies
|
|
102
97
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
- The following workspace dependencies were updated
|
|
99
|
+
- devDependencies
|
|
100
|
+
- @looker/sdk-codegen bumped from ^21.5.0 to ^21.5.1
|
|
106
101
|
|
|
107
102
|
### [0.1.19](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.18...code-editor-v0.1.19) (2022-03-04)
|
|
108
103
|
|
|
109
|
-
|
|
110
104
|
### Dependencies
|
|
111
105
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
106
|
+
- The following workspace dependencies were updated
|
|
107
|
+
- devDependencies
|
|
108
|
+
- @looker/sdk-codegen bumped from ^21.4.0 to ^21.5.0
|
|
115
109
|
|
|
116
110
|
### [0.1.18](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.17...code-editor-v0.1.18) (2022-02-14)
|
|
117
111
|
|
|
118
|
-
|
|
119
112
|
### Dependencies
|
|
120
113
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
- The following workspace dependencies were updated
|
|
115
|
+
- devDependencies
|
|
116
|
+
- @looker/sdk-codegen bumped from ^21.3.2 to ^21.4.0
|
|
124
117
|
|
|
125
118
|
### [0.1.17](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.16...code-editor-v0.1.17) (2021-12-20)
|
|
126
119
|
|
|
127
|
-
|
|
128
120
|
### Dependencies
|
|
129
121
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
- The following workspace dependencies were updated
|
|
123
|
+
- devDependencies
|
|
124
|
+
- @looker/sdk-codegen bumped from ^21.3.0 to ^21.3.1
|
|
133
125
|
|
|
134
126
|
### [0.1.16](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.15...code-editor-v0.1.16) (2021-12-16)
|
|
135
127
|
|
|
136
|
-
|
|
137
128
|
### Dependencies
|
|
138
129
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
130
|
+
- The following workspace dependencies were updated
|
|
131
|
+
- devDependencies
|
|
132
|
+
- @looker/sdk-codegen bumped from ^21.2.1 to ^21.3.0
|
|
142
133
|
|
|
143
134
|
### [0.1.15](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.14...code-editor-v0.1.15) (2021-12-06)
|
|
144
135
|
|
|
145
|
-
|
|
146
136
|
### Dependencies
|
|
147
137
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
138
|
+
- The following workspace dependencies were updated
|
|
139
|
+
- devDependencies
|
|
140
|
+
- @looker/sdk-codegen bumped from ^21.2.0 to ^21.2.1
|
|
151
141
|
|
|
152
142
|
### [0.1.14](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.13...code-editor-v0.1.14) (2021-11-10)
|
|
153
143
|
|
|
154
|
-
|
|
155
144
|
### Features
|
|
156
145
|
|
|
157
|
-
|
|
158
|
-
|
|
146
|
+
- create @looker/extension-utils ([#886](https://www.github.com/looker-open-source/sdk-codegen/issues/886)) ([9d1720d](https://www.github.com/looker-open-source/sdk-codegen/commit/9d1720d9a4cec00c45195dd9c716d9a2a929264f))
|
|
159
147
|
|
|
160
148
|
### Dependencies
|
|
161
149
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
150
|
+
- The following workspace dependencies were updated
|
|
151
|
+
- devDependencies
|
|
152
|
+
- @looker/sdk-codegen bumped from ^21.1.1 to ^21.2.0
|
|
165
153
|
|
|
166
154
|
### [0.1.13](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.12...code-editor-v0.1.13) (2021-10-27)
|
|
167
155
|
|
|
168
|
-
|
|
169
156
|
### Dependencies
|
|
170
157
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
158
|
+
- The following workspace dependencies were updated
|
|
159
|
+
- devDependencies
|
|
160
|
+
- @looker/sdk-codegen bumped from ^21.1.0 to ^21.1.1
|
|
174
161
|
|
|
175
162
|
### [0.1.12](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.11...code-editor-v0.1.12) (2021-10-24)
|
|
176
163
|
|
|
177
|
-
|
|
178
164
|
### Features
|
|
179
165
|
|
|
180
|
-
|
|
166
|
+
- personalized Hackathon agenda ([#853](https://www.github.com/looker-open-source/sdk-codegen/issues/853)) ([a143225](https://www.github.com/looker-open-source/sdk-codegen/commit/a1432250bad0bd35d5d9c5044aced81cf2cc1346))
|
|
181
167
|
|
|
182
168
|
### [0.1.11](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.10...code-editor-v0.1.11) (2021-10-19)
|
|
183
169
|
|
|
184
|
-
|
|
185
170
|
### Features
|
|
186
171
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
172
|
+
- lots of RunIt form cleanup ([#814](https://www.github.com/looker-open-source/sdk-codegen/issues/814)) ([e92eae8](https://www.github.com/looker-open-source/sdk-codegen/commit/e92eae8fc127a0aa99545ca9c577152c08d59000))
|
|
173
|
+
- Use agenda data for the Hackathon home page ([#842](https://www.github.com/looker-open-source/sdk-codegen/issues/842)) ([0da2523](https://www.github.com/looker-open-source/sdk-codegen/commit/0da25239c3f108cb684309818c33c91c2a7c3278))
|
|
190
174
|
|
|
191
175
|
### Bug Fixes
|
|
192
176
|
|
|
193
|
-
|
|
194
|
-
|
|
177
|
+
- Extension Api Explorer markdown link clicks ([#830](https://www.github.com/looker-open-source/sdk-codegen/issues/830)) ([dd8a3f0](https://www.github.com/looker-open-source/sdk-codegen/commit/dd8a3f03b8ea03858271bf55307c7d359631455a))
|
|
195
178
|
|
|
196
179
|
### Dependencies
|
|
197
180
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
181
|
+
- The following workspace dependencies were updated
|
|
182
|
+
- devDependencies
|
|
183
|
+
- @looker/sdk-codegen bumped from ^21.0.25 to ^21.1.0
|
|
201
184
|
|
|
202
185
|
### [0.1.10](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.9...code-editor-v0.1.10) (2021-09-01)
|
|
203
186
|
|
|
204
|
-
|
|
205
187
|
### Features
|
|
206
188
|
|
|
207
|
-
|
|
208
|
-
|
|
189
|
+
- new configuration UI for API Explorer ([#803](https://www.github.com/looker-open-source/sdk-codegen/issues/803)) ([e6c67d1](https://www.github.com/looker-open-source/sdk-codegen/commit/e6c67d1211b412d4ce83127c9f7a8f091e3cf27f))
|
|
209
190
|
|
|
210
191
|
### Dependencies
|
|
211
192
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
193
|
+
- The following workspace dependencies were updated
|
|
194
|
+
- devDependencies
|
|
195
|
+
- @looker/sdk-codegen bumped from ^21.0.24 to ^21.0.25
|
|
215
196
|
|
|
216
197
|
### [0.1.9](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.8...code-editor-v0.1.9) (2021-08-11)
|
|
217
198
|
|
|
218
|
-
|
|
219
199
|
### Dependencies
|
|
220
200
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
201
|
+
- The following workspace dependencies were updated
|
|
202
|
+
- devDependencies
|
|
203
|
+
- @looker/sdk-codegen bumped from ^21.0.23 to ^21.0.24
|
|
224
204
|
|
|
225
205
|
### [0.1.8](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.7...code-editor-v0.1.8) (2021-07-30)
|
|
226
206
|
|
|
227
|
-
|
|
228
207
|
### Dependencies
|
|
229
208
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
209
|
+
- The following workspace dependencies were updated
|
|
210
|
+
- devDependencies
|
|
211
|
+
- @looker/sdk-codegen bumped from ^21.0.22 to ^21.0.23
|
|
233
212
|
|
|
234
213
|
### [0.1.7](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.6...code-editor-v0.1.7) (2021-07-09)
|
|
235
214
|
|
|
236
|
-
|
|
237
215
|
### Dependencies
|
|
238
216
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
217
|
+
- The following workspace dependencies were updated
|
|
218
|
+
- devDependencies
|
|
219
|
+
- @looker/sdk-codegen bumped from ^21.0.21 to ^21.0.22
|
|
242
220
|
|
|
243
221
|
### [0.1.6](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.5...code-editor-v0.1.6) (2021-07-08)
|
|
244
222
|
|
|
245
|
-
|
|
246
223
|
### Dependencies
|
|
247
224
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
225
|
+
- The following workspace dependencies were updated
|
|
226
|
+
- devDependencies
|
|
227
|
+
- @looker/sdk-codegen bumped from ^21.0.20 to ^21.0.21
|
|
251
228
|
|
|
252
229
|
### [0.1.5](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.4...code-editor-v0.1.5) (2021-07-02)
|
|
253
230
|
|
|
254
|
-
|
|
255
231
|
### Dependencies
|
|
256
232
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
233
|
+
- The following workspace dependencies were updated
|
|
234
|
+
- devDependencies
|
|
235
|
+
- @looker/sdk-codegen bumped from ^21.0.19 to ^21.0.20
|
|
260
236
|
|
|
261
237
|
### [0.1.4](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.3...code-editor-v0.1.4) (2021-07-01)
|
|
262
238
|
|
|
263
|
-
|
|
264
239
|
### Dependencies
|
|
265
240
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
241
|
+
- The following workspace dependencies were updated
|
|
242
|
+
- devDependencies
|
|
243
|
+
- @looker/sdk-codegen bumped from ^21.0.18 to ^21.0.19
|
|
269
244
|
|
|
270
245
|
### [0.1.3](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.2...code-editor-v0.1.3) (2021-06-30)
|
|
271
246
|
|
|
272
|
-
|
|
273
247
|
### Features
|
|
274
248
|
|
|
275
|
-
|
|
276
|
-
|
|
249
|
+
- refactor Markdown out to @looker/code-editor ([#699](https://www.github.com/looker-open-source/sdk-codegen/issues/699)) ([f3c16e2](https://www.github.com/looker-open-source/sdk-codegen/commit/f3c16e2a162266545ba3086a0a1dddd0cb79195f))
|
|
277
250
|
|
|
278
251
|
### Dependencies
|
|
279
252
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
253
|
+
- The following workspace dependencies were updated
|
|
254
|
+
- devDependencies
|
|
255
|
+
- @looker/sdk-codegen bumped from ^21.0.17 to ^21.0.18
|
|
283
256
|
|
|
284
257
|
### [0.1.2](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.1...code-editor-v0.1.2) (2021-06-16)
|
|
285
258
|
|
|
286
|
-
|
|
287
259
|
### Features
|
|
288
260
|
|
|
289
|
-
|
|
290
|
-
|
|
261
|
+
- reduce size of apix bundle ([#676](https://www.github.com/looker-open-source/sdk-codegen/issues/676)) ([0d74f6a](https://www.github.com/looker-open-source/sdk-codegen/commit/0d74f6a7814b509416a9d2558c16439a4859b543))
|
|
291
262
|
|
|
292
263
|
### Bug Fixes
|
|
293
264
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
265
|
+
- sync design-tokens/icons dependency constraint ([eb1a427](https://www.github.com/looker-open-source/sdk-codegen/commit/eb1a427d3c90bec44b2aac542783c3cda4810c0e))
|
|
266
|
+
- sync design-tokens/icons dependency constraint ([eb1a427](https://www.github.com/looker-open-source/sdk-codegen/commit/eb1a427d3c90bec44b2aac542783c3cda4810c0e))
|
|
297
267
|
|
|
298
268
|
### Dependencies
|
|
299
269
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
270
|
+
- The following workspace dependencies were updated
|
|
271
|
+
- devDependencies
|
|
272
|
+
- @looker/sdk-codegen bumped from ^21.0.16 to ^21.0.17
|
|
303
273
|
|
|
304
274
|
### [0.1.1](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.0...code-editor-v0.1.1) (2021-05-05)
|
|
305
275
|
|
|
306
|
-
|
|
307
276
|
### Dependencies
|
|
308
277
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
278
|
+
- The following workspace dependencies were updated
|
|
279
|
+
- dependencies
|
|
280
|
+
- @looker/sdk-codegen bumped from ^21.0.15 to ^21.0.16
|
|
312
281
|
|
|
313
282
|
## [0.1.0](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.0.2...code-editor-v0.1.0) (2021-04-27)
|
|
314
283
|
|
|
315
|
-
|
|
316
284
|
### Features
|
|
317
285
|
|
|
318
|
-
|
|
286
|
+
- APIX now uses google font appropriately ([#636](https://www.github.com/looker-open-source/sdk-codegen/issues/636)) ([ed932d6](https://www.github.com/looker-open-source/sdk-codegen/commit/ed932d6744fd3c102bfff7417643667bb57aee00))
|
|
319
287
|
|
|
320
288
|
### [0.0.2](https://www.github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.0.1...code-editor-v0.0.2) (2021-04-27)
|
|
321
289
|
|
|
322
|
-
|
|
323
290
|
### Dependencies
|
|
324
291
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
292
|
+
- The following workspace dependencies were updated
|
|
293
|
+
- dependencies
|
|
294
|
+
- @looker/sdk-codegen bumped from ^21.0.14 to ^21.0.15
|
|
328
295
|
|
|
329
296
|
### 0.0.1 (2021-04-26)
|
|
330
297
|
|
|
331
|
-
|
|
332
298
|
### Features
|
|
333
299
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
300
|
+
- adds editor functionality to CodeDisplay ([#615](https://www.github.com/looker-open-source/sdk-codegen/issues/615)) ([b256d14](https://www.github.com/looker-open-source/sdk-codegen/commit/b256d14c279e47f531c8291d11146d07a7b5ad94))
|
|
337
301
|
|
|
338
302
|
### Dependencies
|
|
339
303
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
304
|
+
- The following workspace dependencies were updated
|
|
305
|
+
- dependencies
|
|
306
|
+
- @looker/sdk-codegen bumped from ^21.0.12 to ^21.0.14
|
package/README.md
CHANGED
|
@@ -33,18 +33,18 @@ This component is a specialized `<code />` or `<pre />` that has various search,
|
|
|
33
33
|
|
|
34
34
|
This component wraps the `<CodeDisplay />` component and adds a "copy to Clipboard" button
|
|
35
35
|
|
|
36
|
-
| Prop
|
|
37
|
-
|
|
|
38
|
-
| ...
|
|
36
|
+
| Prop | Description | Default |
|
|
37
|
+
| ------- | ----------------------------------------------------- | ---------- |
|
|
38
|
+
| ... | All `<CodeDisplay />` props are accepted | |
|
|
39
39
|
| caption | An override for the Copy button text, which is "Copy" | _optional_ |
|
|
40
40
|
|
|
41
41
|
### `<CodeEditor />`
|
|
42
42
|
|
|
43
43
|
This component wraps the `<CodeDisplay />` component and adds a hidden `<textarea />` that allows for code editing.
|
|
44
44
|
|
|
45
|
-
| Prop
|
|
46
|
-
|
|
|
47
|
-
| ...
|
|
45
|
+
| Prop | Description | Default |
|
|
46
|
+
| -------- | ------------------------------------------ | ---------- |
|
|
47
|
+
| ... | All `<CodeDisplay />` props are accepted | |
|
|
48
48
|
| onChange | An event handler for capturing user input. | _required_ |
|
|
49
49
|
|
|
50
50
|
#### Example
|
|
@@ -84,13 +84,13 @@ def all_lookml_models(
|
|
|
84
84
|
|
|
85
85
|
This component is a wrapper around a `<ReactMarkdown />` component. It uses `@looker/component` renderers for text and `<CodeDisplay />` for inline and block code. It has options for link handling and renderer overrides.
|
|
86
86
|
|
|
87
|
-
| Prop
|
|
88
|
-
|
|
|
89
|
-
| source
|
|
90
|
-
| pattern
|
|
91
|
-
| transformLinkUri
|
|
92
|
-
| linkClickHandler
|
|
93
|
-
| paragraphOverride | An override for the default Paragraph renderer.
|
|
87
|
+
| Prop | Description | Default |
|
|
88
|
+
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------- | ---------- |
|
|
89
|
+
| source | The Markdown string to be rendered | _required_ |
|
|
90
|
+
| pattern | The search pattern to be highlighted in the source | `''` |
|
|
91
|
+
| transformLinkUri | A function for pre-processing the link before it is navigated to, used for removing `<mark />` tags or modifying the destination. | _optional_ |
|
|
92
|
+
| linkClickHandler | An override for link click behavior. | _optional_ |
|
|
93
|
+
| paragraphOverride | An override for the default Paragraph renderer. | _optional_ |
|
|
94
94
|
|
|
95
95
|
#### Using `<CodeDisplay />` inside Markdown
|
|
96
96
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { CodeDisplayProps } from '..';
|
|
3
3
|
interface CodeCopyProps extends CodeDisplayProps {
|
|
4
4
|
caption?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const CodeCopy: ({ language, code, caption, pattern, transparent, inline, lineNumbers, }: CodeCopyProps) => JSX.Element;
|
|
6
|
+
export declare const CodeCopy: ({ language, code, caption, pattern, transparent, inline, lineNumbers, }: CodeCopyProps) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCopy.js","names":["_react","_interopRequireDefault","require","_components","_","obj","__esModule","default","CodeCopy","_ref","language","code","caption","pattern","transparent","inline","lineNumbers","createElement","Space","between","align","pt","CodeDisplay","CopyToClipboard","content","exports"],"sources":["../../src/CodeCopy/CodeCopy.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport React from 'react'
|
|
1
|
+
{"version":3,"file":"CodeCopy.js","names":["_react","_interopRequireDefault","require","_components","_","obj","__esModule","default","CodeCopy","_ref","language","code","caption","pattern","transparent","inline","lineNumbers","createElement","Space","between","align","pt","CodeDisplay","CopyToClipboard","content","exports"],"sources":["../../src/CodeCopy/CodeCopy.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport React from 'react';\nimport { CopyToClipboard, Space } from '@looker/components';\nimport type { CodeDisplayProps } from '..';\nimport { CodeDisplay } from '..';\n\ninterface CodeCopyProps extends CodeDisplayProps {\n caption?: string;\n}\n/**\n * Shows code with clipboard copying support\n */\nexport const CodeCopy = ({\n language = 'json',\n code,\n caption = 'Copy',\n pattern = '',\n transparent = false,\n inline = false,\n lineNumbers = true,\n}: CodeCopyProps) => {\n return (\n <Space between align=\"start\" pt=\"xsmall\">\n <CodeDisplay\n code={code}\n language={language}\n pattern={pattern}\n transparent={transparent}\n inline={inline}\n lineNumbers={lineNumbers}\n />\n {/* TODO why is caption || 'Copy' required here? */}\n <CopyToClipboard content={code}>{caption || 'Copy'}</CopyToClipboard>\n </Space>\n );\n};\n"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,CAAA,GAAAF,OAAA;AAAiC,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAQ1B,IAAMG,QAAQ,GAAGC,IAAA,IAQH;EAAA,IARI;IACvBC,QAAQ,GAAG,MAAM;IACjBC,IAAI;IACJC,OAAO,GAAG,MAAM;IAChBC,OAAO,GAAG,EAAE;IACZC,WAAW,GAAG,KAAK;IACnBC,MAAM,GAAG,KAAK;IACdC,WAAW,GAAG;EACD,CAAC,GAAAP,IAAA;EACd,OACET,MAAA,CAAAO,OAAA,CAAAU,aAAA,CAACd,WAAA,CAAAe,KAAK;IAACC,OAAO;IAACC,KAAK,EAAC,OAAO;IAACC,EAAE,EAAC;EAAQ,GACtCrB,MAAA,CAAAO,OAAA,CAAAU,aAAA,CAACb,CAAA,CAAAkB,WAAW;IACVX,IAAI,EAAEA,IAAK;IACXD,QAAQ,EAAEA,QAAS;IACnBG,OAAO,EAAEA,OAAQ;IACjBC,WAAW,EAAEA,WAAY;IACzBC,MAAM,EAAEA,MAAO;IACfC,WAAW,EAAEA;EAAY,CAC1B,CAAC,EAEFhB,MAAA,CAAAO,OAAA,CAAAU,aAAA,CAACd,WAAA,CAAAoB,eAAe;IAACC,OAAO,EAAEb;EAAK,GAAEC,OAAO,IAAI,MAAwB,CAC/D,CAAC;AAEZ,CAAC;AAACa,OAAA,CAAAjB,QAAA,GAAAA,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_CodeCopy","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../src/CodeCopy/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './CodeCopy'
|
|
1
|
+
{"version":3,"file":"index.js","names":["_CodeCopy","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../src/CodeCopy/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './CodeCopy';\n"],"mappings":";;;;;AAyBA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,SAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -11,8 +11,8 @@ var _prismReactRenderer = _interopRequireWildcard(require("prism-react-renderer"
|
|
|
11
11
|
var _utils = require("../utils");
|
|
12
12
|
var _CodeWrapper = require("./CodeWrapper");
|
|
13
13
|
var _LineItem = require("./LineItem");
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
18
|
(typeof global !== 'undefined' ? global : window).Prism = _prismReactRenderer.Prism;
|
|
@@ -23,15 +23,15 @@ require('prismjs/components/prism-ruby');
|
|
|
23
23
|
require('prismjs/components/prism-markdown');
|
|
24
24
|
var Line = (0, _styledComponents.default)(_components.Span).withConfig({
|
|
25
25
|
displayName: "CodeDisplay__Line",
|
|
26
|
-
componentId: "
|
|
26
|
+
componentId: "iaw0ts-0"
|
|
27
27
|
})(["display:table-row;"]);
|
|
28
28
|
var LineNo = (0, _styledComponents.default)(_components.Span).withConfig({
|
|
29
29
|
displayName: "CodeDisplay__LineNo",
|
|
30
|
-
componentId: "
|
|
30
|
+
componentId: "iaw0ts-1"
|
|
31
31
|
})(["display:table-cell;text-align:right;padding-right:1em;user-select:none;opacity:0.5;"]);
|
|
32
32
|
var LineContent = (0, _styledComponents.default)(_components.Span).withConfig({
|
|
33
33
|
displayName: "CodeDisplay__LineContent",
|
|
34
|
-
componentId: "
|
|
34
|
+
componentId: "iaw0ts-2"
|
|
35
35
|
})(["display:table-cell;font-family:monospace;"]);
|
|
36
36
|
var CodeDisplay = _ref => {
|
|
37
37
|
var {
|