@ufjs/webview 0.1.3 → 0.1.4

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @ufjs/webview
2
2
 
3
+ ## 0.1.4
4
+
5
+ - Packaging fix: `files` used to allowlist the whole `flutter/` directory, and
6
+ npm's `files` list overrides `.gitignore` — so the first `flutter test` run
7
+ in this directory leaked `build/`, `.dart_tool/`, `pubspec.lock` and
8
+ `.flutter-plugins*` into the published tarball (45 MB in @ufjs/webview
9
+ 0.1.3). Only `flutter/lib` and `flutter/pubspec.yaml` ship now.
10
+ - `flutter_fjs` constraint bumped to `^0.1.4`.
11
+
3
12
  ## 0.1.3
4
13
 
5
14
  - First release. `<web-view>` is one tag: a platform WebView on the app
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 flutter-js contributors
3
+ Copyright (c) 2025 ufjs contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -13,7 +13,7 @@ environment:
13
13
  dependencies:
14
14
  flutter:
15
15
  sdk: flutter
16
- flutter_fjs: ^0.1.3
16
+ flutter_fjs: ^0.1.4
17
17
  webview_flutter: ^4.10.0
18
18
 
19
19
  dev_dependencies:
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@ufjs/webview",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "web-view for fjs — one <web-view /> tag, a WKWebView/WebView on the app and an iframe on the web",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/snice/flutter-js.git",
8
+ "url": "git+https://github.com/snice/ufjs.git",
9
9
  "directory": "packages/fjs-webview"
10
10
  },
11
- "homepage": "https://github.com/snice/flutter-js#readme",
12
- "bugs": "https://github.com/snice/flutter-js/issues",
11
+ "homepage": "https://github.com/snice/ufjs#readme",
12
+ "bugs": "https://github.com/snice/ufjs/issues",
13
13
  "keywords": [
14
14
  "fjs",
15
15
  "flutter",
@@ -27,7 +27,8 @@
27
27
  "files": [
28
28
  "index.ts",
29
29
  "components",
30
- "flutter",
30
+ "flutter/lib",
31
+ "flutter/pubspec.yaml",
31
32
  "public",
32
33
  "prepare.mjs",
33
34
  "README.md",
@@ -1,132 +0,0 @@
1
- //
2
- // Generated file. Do not edit.
3
- // This file is generated from template in file `flutter_tools/lib/src/flutter_plugins.dart`.
4
- //
5
-
6
- // @dart = 3.5
7
-
8
- import 'dart:io'; // flutter_ignore: dart_io_import.
9
- import 'package:path_provider_android/path_provider_android.dart';
10
- import 'package:sqflite_android/sqflite_android.dart';
11
- import 'package:webview_flutter_android/webview_flutter_android.dart';
12
- import 'package:path_provider_foundation/path_provider_foundation.dart';
13
- import 'package:sqflite_darwin/sqflite_darwin.dart';
14
- import 'package:webview_flutter_wkwebview/webview_flutter_wkwebview.dart';
15
- import 'package:path_provider_linux/path_provider_linux.dart';
16
- import 'package:path_provider_foundation/path_provider_foundation.dart';
17
- import 'package:sqflite_darwin/sqflite_darwin.dart';
18
- import 'package:webview_flutter_wkwebview/webview_flutter_wkwebview.dart';
19
- import 'package:path_provider_windows/path_provider_windows.dart';
20
-
21
- @pragma('vm:entry-point')
22
- class _PluginRegistrant {
23
-
24
- @pragma('vm:entry-point')
25
- static void register() {
26
- if (Platform.isAndroid) {
27
- try {
28
- PathProviderAndroid.registerWith();
29
- } catch (err) {
30
- print(
31
- '`path_provider_android` threw an error: $err. '
32
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
33
- );
34
- }
35
-
36
- try {
37
- SqfliteAndroid.registerWith();
38
- } catch (err) {
39
- print(
40
- '`sqflite_android` threw an error: $err. '
41
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
42
- );
43
- }
44
-
45
- try {
46
- AndroidWebViewPlatform.registerWith();
47
- } catch (err) {
48
- print(
49
- '`webview_flutter_android` threw an error: $err. '
50
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
51
- );
52
- }
53
-
54
- } else if (Platform.isIOS) {
55
- try {
56
- PathProviderFoundation.registerWith();
57
- } catch (err) {
58
- print(
59
- '`path_provider_foundation` threw an error: $err. '
60
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
61
- );
62
- }
63
-
64
- try {
65
- SqfliteDarwin.registerWith();
66
- } catch (err) {
67
- print(
68
- '`sqflite_darwin` threw an error: $err. '
69
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
70
- );
71
- }
72
-
73
- try {
74
- WebKitWebViewPlatform.registerWith();
75
- } catch (err) {
76
- print(
77
- '`webview_flutter_wkwebview` threw an error: $err. '
78
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
79
- );
80
- }
81
-
82
- } else if (Platform.isLinux) {
83
- try {
84
- PathProviderLinux.registerWith();
85
- } catch (err) {
86
- print(
87
- '`path_provider_linux` threw an error: $err. '
88
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
89
- );
90
- }
91
-
92
- } else if (Platform.isMacOS) {
93
- try {
94
- PathProviderFoundation.registerWith();
95
- } catch (err) {
96
- print(
97
- '`path_provider_foundation` threw an error: $err. '
98
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
99
- );
100
- }
101
-
102
- try {
103
- SqfliteDarwin.registerWith();
104
- } catch (err) {
105
- print(
106
- '`sqflite_darwin` threw an error: $err. '
107
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
108
- );
109
- }
110
-
111
- try {
112
- WebKitWebViewPlatform.registerWith();
113
- } catch (err) {
114
- print(
115
- '`webview_flutter_wkwebview` threw an error: $err. '
116
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
117
- );
118
- }
119
-
120
- } else if (Platform.isWindows) {
121
- try {
122
- PathProviderWindows.registerWith();
123
- } catch (err) {
124
- print(
125
- '`path_provider_windows` threw an error: $err. '
126
- 'The app may not function as expected until you remove this plugin from pubspec.yaml'
127
- );
128
- }
129
-
130
- }
131
- }
132
- }
@@ -1,371 +0,0 @@
1
- {
2
- "configVersion": 2,
3
- "packages": [
4
- {
5
- "name": "async",
6
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/async-2.11.0",
7
- "packageUri": "lib/",
8
- "languageVersion": "2.18"
9
- },
10
- {
11
- "name": "boolean_selector",
12
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1",
13
- "packageUri": "lib/",
14
- "languageVersion": "2.17"
15
- },
16
- {
17
- "name": "cached_network_image",
18
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/cached_network_image-3.4.1",
19
- "packageUri": "lib/",
20
- "languageVersion": "3.0"
21
- },
22
- {
23
- "name": "cached_network_image_platform_interface",
24
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/cached_network_image_platform_interface-4.1.1",
25
- "packageUri": "lib/",
26
- "languageVersion": "3.0"
27
- },
28
- {
29
- "name": "cached_network_image_web",
30
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/cached_network_image_web-1.3.1",
31
- "packageUri": "lib/",
32
- "languageVersion": "3.0"
33
- },
34
- {
35
- "name": "characters",
36
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/characters-1.3.0",
37
- "packageUri": "lib/",
38
- "languageVersion": "2.12"
39
- },
40
- {
41
- "name": "clock",
42
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/clock-1.1.1",
43
- "packageUri": "lib/",
44
- "languageVersion": "2.12"
45
- },
46
- {
47
- "name": "collection",
48
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/collection-1.18.0",
49
- "packageUri": "lib/",
50
- "languageVersion": "2.18"
51
- },
52
- {
53
- "name": "crypto",
54
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/crypto-3.0.7",
55
- "packageUri": "lib/",
56
- "languageVersion": "3.4"
57
- },
58
- {
59
- "name": "fake_async",
60
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/fake_async-1.3.1",
61
- "packageUri": "lib/",
62
- "languageVersion": "2.12"
63
- },
64
- {
65
- "name": "ffi",
66
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/ffi-2.1.3",
67
- "packageUri": "lib/",
68
- "languageVersion": "3.3"
69
- },
70
- {
71
- "name": "file",
72
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/file-7.0.1",
73
- "packageUri": "lib/",
74
- "languageVersion": "3.0"
75
- },
76
- {
77
- "name": "fixnum",
78
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/fixnum-1.1.1",
79
- "packageUri": "lib/",
80
- "languageVersion": "3.1"
81
- },
82
- {
83
- "name": "flutter",
84
- "rootUri": "file:///Users/zhe/fvm/versions/3.24.5/packages/flutter",
85
- "packageUri": "lib/",
86
- "languageVersion": "3.3"
87
- },
88
- {
89
- "name": "flutter_cache_manager",
90
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/flutter_cache_manager-3.4.1",
91
- "packageUri": "lib/",
92
- "languageVersion": "3.0"
93
- },
94
- {
95
- "name": "flutter_fjs",
96
- "rootUri": "../../../flutter_fjs",
97
- "packageUri": "lib/",
98
- "languageVersion": "3.3"
99
- },
100
- {
101
- "name": "flutter_test",
102
- "rootUri": "file:///Users/zhe/fvm/versions/3.24.5/packages/flutter_test",
103
- "packageUri": "lib/",
104
- "languageVersion": "3.3"
105
- },
106
- {
107
- "name": "http",
108
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/http-1.6.0",
109
- "packageUri": "lib/",
110
- "languageVersion": "3.4"
111
- },
112
- {
113
- "name": "http_parser",
114
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/http_parser-4.0.2",
115
- "packageUri": "lib/",
116
- "languageVersion": "2.12"
117
- },
118
- {
119
- "name": "leak_tracker",
120
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5",
121
- "packageUri": "lib/",
122
- "languageVersion": "3.2"
123
- },
124
- {
125
- "name": "leak_tracker_flutter_testing",
126
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.5",
127
- "packageUri": "lib/",
128
- "languageVersion": "3.2"
129
- },
130
- {
131
- "name": "leak_tracker_testing",
132
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1",
133
- "packageUri": "lib/",
134
- "languageVersion": "3.2"
135
- },
136
- {
137
- "name": "matcher",
138
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/matcher-0.12.16+1",
139
- "packageUri": "lib/",
140
- "languageVersion": "3.0"
141
- },
142
- {
143
- "name": "material_color_utilities",
144
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1",
145
- "packageUri": "lib/",
146
- "languageVersion": "2.17"
147
- },
148
- {
149
- "name": "meta",
150
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/meta-1.15.0",
151
- "packageUri": "lib/",
152
- "languageVersion": "2.12"
153
- },
154
- {
155
- "name": "octo_image",
156
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/octo_image-2.1.0",
157
- "packageUri": "lib/",
158
- "languageVersion": "3.0"
159
- },
160
- {
161
- "name": "path",
162
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/path-1.9.0",
163
- "packageUri": "lib/",
164
- "languageVersion": "3.0"
165
- },
166
- {
167
- "name": "path_provider",
168
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/path_provider-2.1.5",
169
- "packageUri": "lib/",
170
- "languageVersion": "3.4"
171
- },
172
- {
173
- "name": "path_provider_android",
174
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15",
175
- "packageUri": "lib/",
176
- "languageVersion": "3.5"
177
- },
178
- {
179
- "name": "path_provider_foundation",
180
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1",
181
- "packageUri": "lib/",
182
- "languageVersion": "3.3"
183
- },
184
- {
185
- "name": "path_provider_linux",
186
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1",
187
- "packageUri": "lib/",
188
- "languageVersion": "2.19"
189
- },
190
- {
191
- "name": "path_provider_platform_interface",
192
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2",
193
- "packageUri": "lib/",
194
- "languageVersion": "3.0"
195
- },
196
- {
197
- "name": "path_provider_windows",
198
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0",
199
- "packageUri": "lib/",
200
- "languageVersion": "3.2"
201
- },
202
- {
203
- "name": "platform",
204
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/platform-3.1.6",
205
- "packageUri": "lib/",
206
- "languageVersion": "3.2"
207
- },
208
- {
209
- "name": "plugin_platform_interface",
210
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8",
211
- "packageUri": "lib/",
212
- "languageVersion": "3.0"
213
- },
214
- {
215
- "name": "rxdart",
216
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/rxdart-0.28.0",
217
- "packageUri": "lib/",
218
- "languageVersion": "2.12"
219
- },
220
- {
221
- "name": "sky_engine",
222
- "rootUri": "file:///Users/zhe/fvm/versions/3.24.5/bin/cache/pkg/sky_engine",
223
- "packageUri": "lib/",
224
- "languageVersion": "3.2"
225
- },
226
- {
227
- "name": "source_span",
228
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/source_span-1.10.0",
229
- "packageUri": "lib/",
230
- "languageVersion": "2.18"
231
- },
232
- {
233
- "name": "sqflite",
234
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/sqflite-2.4.1",
235
- "packageUri": "lib/",
236
- "languageVersion": "3.5"
237
- },
238
- {
239
- "name": "sqflite_android",
240
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/sqflite_android-2.4.0",
241
- "packageUri": "lib/",
242
- "languageVersion": "3.5"
243
- },
244
- {
245
- "name": "sqflite_common",
246
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/sqflite_common-2.5.4+6",
247
- "packageUri": "lib/",
248
- "languageVersion": "3.5"
249
- },
250
- {
251
- "name": "sqflite_darwin",
252
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/sqflite_darwin-2.4.1+1",
253
- "packageUri": "lib/",
254
- "languageVersion": "3.5"
255
- },
256
- {
257
- "name": "sqflite_platform_interface",
258
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/sqflite_platform_interface-2.4.0",
259
- "packageUri": "lib/",
260
- "languageVersion": "3.5"
261
- },
262
- {
263
- "name": "stack_trace",
264
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/stack_trace-1.11.1",
265
- "packageUri": "lib/",
266
- "languageVersion": "2.18"
267
- },
268
- {
269
- "name": "stream_channel",
270
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/stream_channel-2.1.2",
271
- "packageUri": "lib/",
272
- "languageVersion": "2.19"
273
- },
274
- {
275
- "name": "string_scanner",
276
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
277
- "packageUri": "lib/",
278
- "languageVersion": "2.18"
279
- },
280
- {
281
- "name": "synchronized",
282
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/synchronized-3.3.0+3",
283
- "packageUri": "lib/",
284
- "languageVersion": "3.5"
285
- },
286
- {
287
- "name": "term_glyph",
288
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/term_glyph-1.2.1",
289
- "packageUri": "lib/",
290
- "languageVersion": "2.12"
291
- },
292
- {
293
- "name": "test_api",
294
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/test_api-0.7.2",
295
- "packageUri": "lib/",
296
- "languageVersion": "3.2"
297
- },
298
- {
299
- "name": "typed_data",
300
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/typed_data-1.4.0",
301
- "packageUri": "lib/",
302
- "languageVersion": "3.5"
303
- },
304
- {
305
- "name": "uuid",
306
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/uuid-4.6.0",
307
- "packageUri": "lib/",
308
- "languageVersion": "3.0"
309
- },
310
- {
311
- "name": "vector_math",
312
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/vector_math-2.1.4",
313
- "packageUri": "lib/",
314
- "languageVersion": "2.14"
315
- },
316
- {
317
- "name": "vm_service",
318
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/vm_service-14.2.5",
319
- "packageUri": "lib/",
320
- "languageVersion": "3.3"
321
- },
322
- {
323
- "name": "web",
324
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/web-1.1.1",
325
- "packageUri": "lib/",
326
- "languageVersion": "3.4"
327
- },
328
- {
329
- "name": "webview_flutter",
330
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/webview_flutter-4.10.0",
331
- "packageUri": "lib/",
332
- "languageVersion": "3.5"
333
- },
334
- {
335
- "name": "webview_flutter_android",
336
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/webview_flutter_android-4.3.2",
337
- "packageUri": "lib/",
338
- "languageVersion": "3.5"
339
- },
340
- {
341
- "name": "webview_flutter_platform_interface",
342
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.13.0",
343
- "packageUri": "lib/",
344
- "languageVersion": "3.4"
345
- },
346
- {
347
- "name": "webview_flutter_wkwebview",
348
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.22.0",
349
- "packageUri": "lib/",
350
- "languageVersion": "3.5"
351
- },
352
- {
353
- "name": "xdg_directories",
354
- "rootUri": "file:///Users/zhe/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0",
355
- "packageUri": "lib/",
356
- "languageVersion": "3.3"
357
- },
358
- {
359
- "name": "fjs_webview",
360
- "rootUri": "../",
361
- "packageUri": "lib/",
362
- "languageVersion": "3.5"
363
- }
364
- ],
365
- "generated": "2026-09-04T12:03:08.809557Z",
366
- "generator": "pub",
367
- "generatorVersion": "3.5.4",
368
- "flutterRoot": "file:///Users/zhe/fvm/versions/3.24.5",
369
- "flutterVersion": "3.24.5",
370
- "pubCache": "file:///Users/zhe/.pub-cache"
371
- }