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