@looker/code-editor 0.1.29 → 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 +115 -145
- 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,335 +2,305 @@
|
|
|
2
2
|
|
|
3
3
|
### Dependencies
|
|
4
4
|
|
|
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
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
5
17
|
* The following workspace dependencies were updated
|
|
6
18
|
* devDependencies
|
|
7
|
-
* @looker/sdk-codegen bumped from
|
|
19
|
+
* @looker/sdk-codegen bumped from 21.8.2 to 21.9.0
|
|
8
20
|
|
|
9
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)
|
|
10
22
|
|
|
11
|
-
|
|
12
23
|
### Features
|
|
13
24
|
|
|
14
|
-
|
|
15
|
-
|
|
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))
|
|
16
26
|
|
|
17
27
|
### Dependencies
|
|
18
28
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
- The following workspace dependencies were updated
|
|
30
|
+
- devDependencies
|
|
31
|
+
- @looker/sdk-codegen bumped from ^21.7.4 to ^21.8.0
|
|
22
32
|
|
|
23
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)
|
|
24
34
|
|
|
25
|
-
|
|
26
35
|
### Dependencies
|
|
27
36
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
- The following workspace dependencies were updated
|
|
38
|
+
- devDependencies
|
|
39
|
+
- @looker/sdk-codegen bumped from ^21.7.3 to ^21.7.4
|
|
31
40
|
|
|
32
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)
|
|
33
42
|
|
|
34
|
-
|
|
35
43
|
### Dependencies
|
|
36
44
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
45
|
+
- The following workspace dependencies were updated
|
|
46
|
+
- devDependencies
|
|
47
|
+
- @looker/sdk-codegen bumped from ^21.7.2 to ^21.7.3
|
|
40
48
|
|
|
41
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)
|
|
42
50
|
|
|
43
|
-
|
|
44
51
|
### Dependencies
|
|
45
52
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
- The following workspace dependencies were updated
|
|
54
|
+
- devDependencies
|
|
55
|
+
- @looker/sdk-codegen bumped from ^21.7.1 to ^21.7.2
|
|
49
56
|
|
|
50
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)
|
|
51
58
|
|
|
52
|
-
|
|
53
59
|
### Features
|
|
54
60
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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))
|
|
58
63
|
|
|
59
64
|
### Dependencies
|
|
60
65
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
- The following workspace dependencies were updated
|
|
67
|
+
- devDependencies
|
|
68
|
+
- @looker/sdk-codegen bumped from ^21.7.0 to ^21.7.1
|
|
64
69
|
|
|
65
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)
|
|
66
71
|
|
|
67
|
-
|
|
68
72
|
### Dependencies
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
- The following workspace dependencies were updated
|
|
75
|
+
- devDependencies
|
|
76
|
+
- @looker/sdk-codegen bumped from ^21.6.0 to ^21.7.0
|
|
73
77
|
|
|
74
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)
|
|
75
79
|
|
|
76
|
-
|
|
77
80
|
### Dependencies
|
|
78
81
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
- The following workspace dependencies were updated
|
|
83
|
+
- devDependencies
|
|
84
|
+
- @looker/sdk-codegen bumped from ^21.5.2 to ^21.6.0
|
|
82
85
|
|
|
83
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)
|
|
84
87
|
|
|
85
|
-
|
|
86
88
|
### Dependencies
|
|
87
89
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
- The following workspace dependencies were updated
|
|
91
|
+
- devDependencies
|
|
92
|
+
- @looker/sdk-codegen bumped from ^21.5.1 to ^21.5.2
|
|
91
93
|
|
|
92
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)
|
|
93
95
|
|
|
94
|
-
|
|
95
96
|
### Dependencies
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
- The following workspace dependencies were updated
|
|
99
|
+
- devDependencies
|
|
100
|
+
- @looker/sdk-codegen bumped from ^21.5.0 to ^21.5.1
|
|
100
101
|
|
|
101
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)
|
|
102
103
|
|
|
103
|
-
|
|
104
104
|
### Dependencies
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
- The following workspace dependencies were updated
|
|
107
|
+
- devDependencies
|
|
108
|
+
- @looker/sdk-codegen bumped from ^21.4.0 to ^21.5.0
|
|
109
109
|
|
|
110
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)
|
|
111
111
|
|
|
112
|
-
|
|
113
112
|
### Dependencies
|
|
114
113
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
- The following workspace dependencies were updated
|
|
115
|
+
- devDependencies
|
|
116
|
+
- @looker/sdk-codegen bumped from ^21.3.2 to ^21.4.0
|
|
118
117
|
|
|
119
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)
|
|
120
119
|
|
|
121
|
-
|
|
122
120
|
### Dependencies
|
|
123
121
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
- The following workspace dependencies were updated
|
|
123
|
+
- devDependencies
|
|
124
|
+
- @looker/sdk-codegen bumped from ^21.3.0 to ^21.3.1
|
|
127
125
|
|
|
128
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)
|
|
129
127
|
|
|
130
|
-
|
|
131
128
|
### Dependencies
|
|
132
129
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
- The following workspace dependencies were updated
|
|
131
|
+
- devDependencies
|
|
132
|
+
- @looker/sdk-codegen bumped from ^21.2.1 to ^21.3.0
|
|
136
133
|
|
|
137
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)
|
|
138
135
|
|
|
139
|
-
|
|
140
136
|
### Dependencies
|
|
141
137
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
- The following workspace dependencies were updated
|
|
139
|
+
- devDependencies
|
|
140
|
+
- @looker/sdk-codegen bumped from ^21.2.0 to ^21.2.1
|
|
145
141
|
|
|
146
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)
|
|
147
143
|
|
|
148
|
-
|
|
149
144
|
### Features
|
|
150
145
|
|
|
151
|
-
|
|
152
|
-
|
|
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))
|
|
153
147
|
|
|
154
148
|
### Dependencies
|
|
155
149
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
150
|
+
- The following workspace dependencies were updated
|
|
151
|
+
- devDependencies
|
|
152
|
+
- @looker/sdk-codegen bumped from ^21.1.1 to ^21.2.0
|
|
159
153
|
|
|
160
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)
|
|
161
155
|
|
|
162
|
-
|
|
163
156
|
### Dependencies
|
|
164
157
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
158
|
+
- The following workspace dependencies were updated
|
|
159
|
+
- devDependencies
|
|
160
|
+
- @looker/sdk-codegen bumped from ^21.1.0 to ^21.1.1
|
|
168
161
|
|
|
169
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)
|
|
170
163
|
|
|
171
|
-
|
|
172
164
|
### Features
|
|
173
165
|
|
|
174
|
-
|
|
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))
|
|
175
167
|
|
|
176
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)
|
|
177
169
|
|
|
178
|
-
|
|
179
170
|
### Features
|
|
180
171
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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))
|
|
184
174
|
|
|
185
175
|
### Bug Fixes
|
|
186
176
|
|
|
187
|
-
|
|
188
|
-
|
|
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))
|
|
189
178
|
|
|
190
179
|
### Dependencies
|
|
191
180
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
181
|
+
- The following workspace dependencies were updated
|
|
182
|
+
- devDependencies
|
|
183
|
+
- @looker/sdk-codegen bumped from ^21.0.25 to ^21.1.0
|
|
195
184
|
|
|
196
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)
|
|
197
186
|
|
|
198
|
-
|
|
199
187
|
### Features
|
|
200
188
|
|
|
201
|
-
|
|
202
|
-
|
|
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))
|
|
203
190
|
|
|
204
191
|
### Dependencies
|
|
205
192
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
193
|
+
- The following workspace dependencies were updated
|
|
194
|
+
- devDependencies
|
|
195
|
+
- @looker/sdk-codegen bumped from ^21.0.24 to ^21.0.25
|
|
209
196
|
|
|
210
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)
|
|
211
198
|
|
|
212
|
-
|
|
213
199
|
### Dependencies
|
|
214
200
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
201
|
+
- The following workspace dependencies were updated
|
|
202
|
+
- devDependencies
|
|
203
|
+
- @looker/sdk-codegen bumped from ^21.0.23 to ^21.0.24
|
|
218
204
|
|
|
219
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)
|
|
220
206
|
|
|
221
|
-
|
|
222
207
|
### Dependencies
|
|
223
208
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
209
|
+
- The following workspace dependencies were updated
|
|
210
|
+
- devDependencies
|
|
211
|
+
- @looker/sdk-codegen bumped from ^21.0.22 to ^21.0.23
|
|
227
212
|
|
|
228
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)
|
|
229
214
|
|
|
230
|
-
|
|
231
215
|
### Dependencies
|
|
232
216
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
217
|
+
- The following workspace dependencies were updated
|
|
218
|
+
- devDependencies
|
|
219
|
+
- @looker/sdk-codegen bumped from ^21.0.21 to ^21.0.22
|
|
236
220
|
|
|
237
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)
|
|
238
222
|
|
|
239
|
-
|
|
240
223
|
### Dependencies
|
|
241
224
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
225
|
+
- The following workspace dependencies were updated
|
|
226
|
+
- devDependencies
|
|
227
|
+
- @looker/sdk-codegen bumped from ^21.0.20 to ^21.0.21
|
|
245
228
|
|
|
246
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)
|
|
247
230
|
|
|
248
|
-
|
|
249
231
|
### Dependencies
|
|
250
232
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
233
|
+
- The following workspace dependencies were updated
|
|
234
|
+
- devDependencies
|
|
235
|
+
- @looker/sdk-codegen bumped from ^21.0.19 to ^21.0.20
|
|
254
236
|
|
|
255
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)
|
|
256
238
|
|
|
257
|
-
|
|
258
239
|
### Dependencies
|
|
259
240
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
241
|
+
- The following workspace dependencies were updated
|
|
242
|
+
- devDependencies
|
|
243
|
+
- @looker/sdk-codegen bumped from ^21.0.18 to ^21.0.19
|
|
263
244
|
|
|
264
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)
|
|
265
246
|
|
|
266
|
-
|
|
267
247
|
### Features
|
|
268
248
|
|
|
269
|
-
|
|
270
|
-
|
|
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))
|
|
271
250
|
|
|
272
251
|
### Dependencies
|
|
273
252
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
253
|
+
- The following workspace dependencies were updated
|
|
254
|
+
- devDependencies
|
|
255
|
+
- @looker/sdk-codegen bumped from ^21.0.17 to ^21.0.18
|
|
277
256
|
|
|
278
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)
|
|
279
258
|
|
|
280
|
-
|
|
281
259
|
### Features
|
|
282
260
|
|
|
283
|
-
|
|
284
|
-
|
|
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))
|
|
285
262
|
|
|
286
263
|
### Bug Fixes
|
|
287
264
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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))
|
|
291
267
|
|
|
292
268
|
### Dependencies
|
|
293
269
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
270
|
+
- The following workspace dependencies were updated
|
|
271
|
+
- devDependencies
|
|
272
|
+
- @looker/sdk-codegen bumped from ^21.0.16 to ^21.0.17
|
|
297
273
|
|
|
298
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)
|
|
299
275
|
|
|
300
|
-
|
|
301
276
|
### Dependencies
|
|
302
277
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
278
|
+
- The following workspace dependencies were updated
|
|
279
|
+
- dependencies
|
|
280
|
+
- @looker/sdk-codegen bumped from ^21.0.15 to ^21.0.16
|
|
306
281
|
|
|
307
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)
|
|
308
283
|
|
|
309
|
-
|
|
310
284
|
### Features
|
|
311
285
|
|
|
312
|
-
|
|
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))
|
|
313
287
|
|
|
314
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)
|
|
315
289
|
|
|
316
|
-
|
|
317
290
|
### Dependencies
|
|
318
291
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
292
|
+
- The following workspace dependencies were updated
|
|
293
|
+
- dependencies
|
|
294
|
+
- @looker/sdk-codegen bumped from ^21.0.14 to ^21.0.15
|
|
322
295
|
|
|
323
296
|
### 0.0.1 (2021-04-26)
|
|
324
297
|
|
|
325
|
-
|
|
326
298
|
### Features
|
|
327
299
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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))
|
|
331
301
|
|
|
332
302
|
### Dependencies
|
|
333
303
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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 {
|