Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Monorepo] rename react-native-gutenberg-bridge to react-native-bridge #18515

Closed
wants to merge 4,948 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4948 commits
Select commit Hold shift + click to select a range
7009c25
Update Gutenberg
koke Oct 9, 2019
370ea44
Merge branch 'develop' into media-text-stacking
koke Oct 9, 2019
8b40aa7
Update Gutenberg
koke Oct 9, 2019
4c435bc
Update to iOS11 and Swift 5.
SergioEstevao Oct 9, 2019
f0012fe
Remove check for iOS 11
SergioEstevao Oct 9, 2019
164281c
Fix SafeArea (#1425)
lukewalczak Oct 9, 2019
e0496dc
Update Gutenberg
koke Oct 10, 2019
6acee9d
Merge branch 'develop' into media-text-stacking
koke Oct 10, 2019
a461fc8
Merge pull request #1400 from wordpress-mobile/media-text-stacking
koke Oct 10, 2019
6523e9d
Merge pull request #1426 from wordpress-mobile/issue/update_to_iOS11_…
SergioEstevao Oct 10, 2019
db7e303
Update Gutenberg
koke Oct 10, 2019
16d03ab
Merge branch 'develop' into feature/media-text-improvements
koke Oct 10, 2019
70b4f7c
Update gutenberg submodule
koke Oct 10, 2019
e9de861
Update gutenberg submodule
koke Oct 10, 2019
c7e573a
Updated bundles
koke Oct 10, 2019
de6141a
Merge pull request #1378 from wordpress-mobile/feature/media-text-imp…
koke Oct 10, 2019
1ec600a
Merge branch 'develop' into try/fix-media-text-device-picker-android
mkevins Oct 10, 2019
2fb8c33
Update gutenberg reference
mkevins Oct 10, 2019
3bfb7aa
Call media library method for media mediatype
mkevins Oct 10, 2019
be4a276
Update deployment target for RNTAztecView to iOS 11
koke Oct 10, 2019
b2a5295
Fix header search path for libmxl2
koke Oct 10, 2019
377f4bb
Bump swift_version to 5.0 on RNTAztecView podspec
etoledom Oct 11, 2019
9c1cfb8
Merge pull request #1434 from wordpress-mobile/rntaztec-ios11
koke Oct 11, 2019
ad425a3
Import new location for base styles
koke Oct 11, 2019
652b2ab
Update GB reference.
SergioEstevao Oct 11, 2019
8590f2d
Update GB reference.
SergioEstevao Oct 11, 2019
65d8efa
Update gutenberg
koke Oct 11, 2019
5d854d8
Update gutenberg
koke Oct 11, 2019
045af30
Update bundles
koke Oct 11, 2019
2c16ab5
Update release notes
koke Oct 11, 2019
24b7f64
Don't display UngroupingButton for Media&Text block (#1420)
lukewalczak Oct 11, 2019
e228e17
Update gutenberg
koke Oct 11, 2019
d64e959
Update GB reference.
SergioEstevao Oct 11, 2019
1cbdf92
Update gutenberg
koke Oct 11, 2019
93ed1d5
Merge branch 'develop' into issue/resync_rich_text
SergioEstevao Oct 11, 2019
8587620
Update gutenberg
koke Oct 11, 2019
6354239
Merge branch 'develop' into issue/fix-scrollViewRef-crash
koke Oct 11, 2019
f5a2739
Merge pull request #1438 from wordpress-mobile/issue/fix-scrollViewRe…
koke Oct 11, 2019
fe20493
Merge branch 'develop' into try/fix-media-text-device-picker-android
mkevins Oct 14, 2019
50ed338
Merge pull request #1412 from wordpress-mobile/try/fix-media-text-dev…
mkevins Oct 14, 2019
9db0e46
Merge pull request #1435 from wordpress-mobile/add/package-base-styles
hypest Oct 14, 2019
6de84cb
Update Gutenberg
koke Oct 14, 2019
1c8c2d8
Merge branch 'develop' into fix/button-active
koke Oct 14, 2019
18876f1
Merge pull request #1440 from wordpress-mobile/fix/button-active
koke Oct 14, 2019
d7cf6f9
Update Gutenberg
koke Oct 14, 2019
8b07ba8
Merge branch 'develop' into enable-media-text
koke Oct 14, 2019
658eeba
Updated bundles
koke Oct 14, 2019
57c630f
Merge pull request #1439 from wordpress-mobile/enable-media-text
koke Oct 14, 2019
df0f112
Update Gutenberg
koke Oct 14, 2019
0ef429f
Add Media & Text block to initial HTML
koke Oct 14, 2019
895edaa
Update Gutenberg
koke Oct 14, 2019
3e9536a
Merge pull request #1443 from wordpress-mobile/issue/1411-media-text-…
koke Oct 14, 2019
87baa75
Bump version to 1.15.0
etoledom Oct 14, 2019
69ca678
Update bundles
etoledom Oct 14, 2019
b20d4bb
Update Aztec-iOS ref
etoledom Oct 14, 2019
cefeda0
Update Aztec-Android ref to v1.3.32
etoledom Oct 15, 2019
0bf06a8
Update Aztec-iOS ref to 1.11.0
etoledom Oct 15, 2019
e396206
revert missing toggle editor mode call (#1444)
marecar3 Oct 15, 2019
d6e1628
Update bundles
hypest Oct 16, 2019
a142ebe
Update Aztec-Android ref to v1.3.33
hypest Oct 16, 2019
e094abe
Expose WordPressUtils for consumption by gutenberg-bridge
mchowning Oct 15, 2019
eca36ca
Update RELEASE notes with iOS11 and Swift 5 update
hypest Oct 17, 2019
faf9460
Merge pull request #1445 from wordpress-mobile/release/1.15.0
mchowning Oct 17, 2019
cffce62
Fix native test of image block (#1456)
lukewalczak Oct 17, 2019
8063720
Introduce grouping in the block settings inspector (#1397)
lukewalczak Oct 18, 2019
35d25d3
Merge pull request #1459 from wordpress-mobile/master
cameronvoell Oct 18, 2019
4169c17
Feat: cover cross platform RangeControl (#1342)
jbinda Oct 20, 2019
f31c6b2
Update Aztec to the new tagged version v1.3.34
daniloercoli Oct 22, 2019
243b4bc
Update bundles
daniloercoli Oct 22, 2019
e1743e4
Bump version to 1.15.1
daniloercoli Oct 22, 2019
65b6c34
Merge pull request #1477 from wordpress-mobile/issue/hotfix-for-wp-an…
daniloercoli Oct 22, 2019
80ffe35
Merge pull request #1479 from wordpress-mobile/hotfix/v1.15.1
daniloercoli Oct 22, 2019
9f4afd6
Merge pull request #1481 from wordpress-mobile/master
mchowning Oct 22, 2019
bfd2fd0
Update GB reference.
SergioEstevao Oct 24, 2019
4833257
Merge branch 'develop' into issue/resync_rich_text
SergioEstevao Oct 24, 2019
de01823
Update GB reference.
SergioEstevao Oct 24, 2019
bff822b
Update GB reference.
SergioEstevao Oct 24, 2019
67d2796
Fix request import to send the correct information.
SergioEstevao Oct 24, 2019
b8f574b
Make MediaInfo properties public
SergioEstevao Oct 24, 2019
7a5f155
Update gutenberg ref
etoledom Oct 25, 2019
65964a8
Update release notes.
SergioEstevao Oct 25, 2019
bb8d92a
Update RELEASE-NOTES.txt
etoledom Oct 25, 2019
6dfba3d
Update gutenberg ref
etoledom Oct 25, 2019
5fd6667
Update GB reference.
SergioEstevao Oct 25, 2019
2abde85
Merge pull request #1495 from wordpress-mobile/issue/fix-block-picker…
etoledom Oct 25, 2019
37b45e5
Inner Blocks - Breadcrumbs (#1369)
dratwas Oct 25, 2019
dc14e13
Update release notes
mchowning Oct 15, 2019
7e70de5
Update GB reference.
SergioEstevao Oct 25, 2019
8aa6251
Update GB reference.
SergioEstevao Oct 25, 2019
d65c7f9
Add left right borders to inner blocks (#1496)
pinarol Oct 25, 2019
f190247
Remove alignment options from Media & Text until they are fixed (#1500)
pinarol Oct 25, 2019
9624986
Add extension to encode MediaInfo to JS.
SergioEstevao Oct 25, 2019
a4bab40
Merge branch 'release/1.15.2' into issue/fix_request_import_on_bridge
SergioEstevao Oct 25, 2019
150fc67
Update GB reference.
SergioEstevao Oct 25, 2019
1e330a5
Update GB reference.
SergioEstevao Oct 26, 2019
e243459
Merge pull request #1494 from wordpress-mobile/issue/fix_request_impo…
etoledom Oct 28, 2019
59022ee
Update JS Bundles
etoledom Oct 28, 2019
73c2873
Bump version to 1.15.2
etoledom Oct 28, 2019
1811d84
[FIX] Scroll position android (#1478)
dratwas Oct 28, 2019
c1f86ea
Update gutenberg ref
etoledom Oct 28, 2019
b19630d
Update i18n makepot scripts
mchowning Aug 13, 2019
b3b70c8
Update GB reference.
SergioEstevao Oct 28, 2019
41b40dc
Update GB reference.
SergioEstevao Oct 28, 2019
be74409
Update gutenberg ref
mchowning Oct 17, 2019
c6c5a01
Merge pull request #1505 from wordpress-mobile/issue/fix_gb_master
SergioEstevao Oct 28, 2019
b16724b
Update GB hash
daniloercoli Oct 28, 2019
efde2da
Merge pull request #1460 from wordpress-mobile/issue/198-image_alignment
mchowning Oct 28, 2019
f42bc54
Fix: Media & Text Loses upload status if post is closed/reopened duri…
pinarol Oct 29, 2019
d502c46
Update JS Bundles
etoledom Oct 29, 2019
4f7be60
Update GB reference.
SergioEstevao Oct 29, 2019
ca7c3e9
Merge branch 'develop' into issue/resync_rich_text
SergioEstevao Oct 29, 2019
30a9efb
Update GB reference.
SergioEstevao Oct 29, 2019
649a22a
Update gutenberg ref
etoledom Oct 29, 2019
ce69bd0
Merge pull request #1437 from wordpress-mobile/issue/resync_rich_text
SergioEstevao Oct 29, 2019
6e4b4f2
Update bundles
mchowning Oct 29, 2019
6865978
Merge pull request #1503 from wordpress-mobile/release/1.15.2
mchowning Oct 29, 2019
7411092
720-Add support for giphy and pexel images (#1469)
marecar3 Oct 29, 2019
4ed5523
Merge remote-tracking branch 'origin/develop' into master_develop_1.1…
mchowning Oct 29, 2019
0f0bde6
Update gutenberg ref
etoledom Oct 30, 2019
928d285
Merge pull request #1515 from wordpress-mobile/master_develop_1.15.2_…
etoledom Oct 30, 2019
cf01968
Force translation update when generating new bundles
koke Oct 30, 2019
6c7d191
Updated bundles
koke Oct 30, 2019
e776a6c
Merge pull request #1516 from wordpress-mobile/force-i18n-cache-on-bu…
koke Oct 30, 2019
3740c7f
Send backspace event to JS in more scenarios
SergioEstevao Oct 30, 2019
05ce8c7
Generate a translation file for Android and iOS
Tug Oct 30, 2019
2b1edc2
Update version to 1.6.0
SergioEstevao Oct 30, 2019
58cc2e3
Update bundles.
SergioEstevao Oct 30, 2019
dac461b
[Aztec iOS] Cleanup white spaces.
etoledom Oct 31, 2019
d5bd76f
[Aztec iOS]: `shouldInteractWith` will return always true to avoid cr…
etoledom Oct 31, 2019
9b38f5d
Add property for android tools to ignore unused resources
Tug Oct 31, 2019
99a4f83
Rename android output
Tug Oct 31, 2019
018a11b
Update android strings file
Tug Oct 31, 2019
d64e11d
Update GB reference.
SergioEstevao Nov 1, 2019
919c9c4
Update app bundles
SergioEstevao Nov 1, 2019
24ce91b
Update GB ref
hypest Nov 1, 2019
0d65969
Update JS bundles
hypest Nov 1, 2019
fd9c1df
Update RELEASE-NOTES.txt
hypest Nov 1, 2019
bac83b8
Update GB ref to point to official 1.16.0 tag
SergioEstevao Nov 1, 2019
12743a7
Merge pull request #1521 from wordpress-mobile/release/1.16.0
SergioEstevao Nov 1, 2019
9ed35c8
Update issue templates
SergioEstevao Nov 3, 2019
5c1d5a2
Merge pull request #1528 from wordpress-mobile/master
etoledom Nov 4, 2019
87bfbab
Merge pull request #1523 from wordpress-mobile/issue/interact-with-ur…
etoledom Nov 4, 2019
552e914
Update gutenberg ref
etoledom Nov 4, 2019
17706b5
Update gutenberg ref
etoledom Nov 4, 2019
67184d1
Merge pull request #1529 from wordpress-mobile/update-gutenberg-ref
etoledom Nov 4, 2019
2403382
Implement `getOtherMediaOptions` on iOS Gutenberg brdige
etoledom Nov 4, 2019
4ef8d9a
Update Gutenberg hash
hypest Nov 4, 2019
1377814
Update Release-notes.txt
hypest Nov 4, 2019
eaf7d83
Update GB reference to support copy of url in clipboard.
SergioEstevao Nov 4, 2019
9a4f381
Merge remote-tracking branch 'origin/develop' into fix/i18n-gen-ios-a…
Tug Nov 4, 2019
3bb0fb3
Update Gutenberg hash
hypest Nov 4, 2019
bc03ea8
Signals the need to relayout view after HTML change.
SergioEstevao Nov 3, 2019
7cfa60d
Update issue templates
SergioEstevao Nov 4, 2019
7aed583
Update app bundle and version number to 1.15.3
SergioEstevao Nov 4, 2019
d169062
Update release notes.
SergioEstevao Nov 4, 2019
ed17f05
Implement `requestOtherMediaPickFrom` bridge event
etoledom Nov 5, 2019
1fbdd65
Update Gutenberg hash
hypest Nov 5, 2019
2379ac0
Update GB reference
SergioEstevao Nov 5, 2019
8e0973b
Update Gutenberg hash
hypest Nov 5, 2019
d0d449f
Update release notes.
SergioEstevao Nov 5, 2019
e1b500c
Merge branch 'develop' into issue/fix_full_content_deletion
SergioEstevao Nov 5, 2019
2e614a5
Fix typo in comment
SergioEstevao Nov 5, 2019
245a642
Merge branch 'develop' of https://github.com/wordpress-mobile/gutenbe…
daniloercoli Nov 5, 2019
958f9ca
Update Gutenberg hash
hypest Nov 5, 2019
bea5aeb
Fix comment
SergioEstevao Nov 5, 2019
50e087e
Merge pull request #1535 from wordpress-mobile/issue/fix_layout_bug_i…
SergioEstevao Nov 5, 2019
5a3b39c
Update Gutenberg
koke Nov 5, 2019
1d57115
Remove media-text custom template from initial content
koke Nov 5, 2019
44ef6db
Merge pull request #1517 from wordpress-mobile/issue/fix_full_content…
SergioEstevao Nov 5, 2019
feb7aa3
[iOS Bridge] Implement filters for Client-defined media sources
etoledom Nov 5, 2019
b987dec
[iOS Bridge] Small refactor
etoledom Nov 5, 2019
320eb67
Update GB hash
daniloercoli Nov 5, 2019
2bf210e
Update GB reference.
SergioEstevao Nov 5, 2019
5ed8fc8
Merge branch 'develop' into issue/680_link_prefill_url_from_clipboard
SergioEstevao Nov 5, 2019
38cabc1
[iOS] Update demo app with changes on Bridge
etoledom Nov 5, 2019
5078bfa
Update Gutenberg hash
hypest Nov 5, 2019
4a21c47
Avoid buggy shouldInteractWith delegate method and disable link tap r…
koke Nov 5, 2019
e2056bb
Adds documentation
koke Nov 5, 2019
8c86a8d
Update GB reference.
SergioEstevao Nov 5, 2019
56e412b
Update release notes
hypest Nov 5, 2019
dbdb12d
Update Gutenberg ref
hypest Nov 5, 2019
0eb7264
Update release notes
hypest Nov 5, 2019
d2e7e81
Update Gutenberg hash
hypest Nov 5, 2019
ceb190d
Merge pull request #1541 from wordpress-mobile/issue/fix_layout_bug_i…
SergioEstevao Nov 5, 2019
3274755
Update GB reference to master after merge in GB
SergioEstevao Nov 5, 2019
0edc462
Upgrade GB hash
daniloercoli Nov 5, 2019
d8685f9
Merge pull request #1507 from wordpress-mobile/issue/AztecAndroid-Ind…
daniloercoli Nov 5, 2019
b6d1204
Merge branch 'release/1.15.3'
SergioEstevao Nov 5, 2019
8d2bf23
Merge branch 'release/1.15.3' into develop
SergioEstevao Nov 5, 2019
ec420fc
Merge branch 'develop' into issue/680_link_prefill_url_from_clipboard
SergioEstevao Nov 5, 2019
9c141d7
Update GB reference.
SergioEstevao Nov 5, 2019
0f0fa1c
Merge pull request #1540 from wordpress-mobile/fix/ios13-link-tap-bug
koke Nov 6, 2019
5eedd29
Update Gutenberg hash
hypest Nov 6, 2019
5746d79
Merge branch 'develop' into issue/632-add-new-block-indicator-in-appe…
hypest Nov 6, 2019
de605de
Update Gutenberg hash
hypest Nov 6, 2019
b967543
Update gutenberg ref
hypest Nov 6, 2019
443cb05
Merge branch 'develop' into issue/479-block-title-in-unsupported-block
hypest Nov 6, 2019
e49f509
Merge pull request #1537 from wordpress-mobile/issue/680_link_prefill…
hypest Nov 6, 2019
3855ffc
Update to latest version of GB master.
SergioEstevao Nov 6, 2019
158ec72
Merge pull request #1548 from wordpress-mobile/issue/update_to_latest…
hypest Nov 6, 2019
ab61350
Refactor: BottomSheet.RangeCell markup (#1471)
jbinda Nov 6, 2019
e704ae7
Update debug configuration for VSCode
koke Nov 6, 2019
b88b97a
Merge pull request #1550 from wordpress-mobile/fix/vscode-debug
koke Nov 6, 2019
0145eef
Update Gutenberg ref
hypest Nov 6, 2019
81846b8
Merge branch 'develop' into issue/632-add-new-block-indicator-in-appe…
hypest Nov 6, 2019
deaae63
Prevents selection after ZWSP character
koke Nov 6, 2019
ea4bb47
Update gutenberg ref
hypest Nov 6, 2019
8238c4d
Merge branch 'develop' into issue/479-block-title-in-unsupported-block
hypest Nov 6, 2019
7483a11
Update gutenberg ref
hypest Nov 6, 2019
f6a1488
Add item to release notes
koke Nov 6, 2019
4d45389
Update to the merged GB hash
hypest Nov 6, 2019
7085502
Merge pull request #1542 from wordpress-mobile/issue/632-add-new-bloc…
hypest Nov 6, 2019
21adb08
Update bundle to version 1.6.1
SergioEstevao Nov 6, 2019
0d1aec9
Update gutenberg ref
hypest Nov 7, 2019
e2a7c03
Merge branch 'develop' into issue/479-block-title-in-unsupported-block
hypest Nov 7, 2019
d304792
Update Gutenberg
koke Nov 7, 2019
288629a
Merge branch 'develop' into fix-media-text-placeholder
koke Nov 7, 2019
71400e9
Merge pull request #1538 from wordpress-mobile/fix-media-text-placeho…
koke Nov 7, 2019
5bdf4e2
Update gutenberg ref
hypest Nov 7, 2019
dddd005
Merge branch 'develop' into issue/479-block-title-in-unsupported-block
hypest Nov 7, 2019
5ccaf48
Use spaces for indent
Tug Nov 7, 2019
48cf12e
Update translation files
Tug Nov 7, 2019
1ce63dc
Merge branch 'master' into release/1.16.1
SergioEstevao Nov 7, 2019
a760eda
Update gutenberg ref
hypest Nov 7, 2019
69914b4
Fix indents for plurals
Tug Nov 7, 2019
ed4af83
Remove obsolete file
Tug Nov 7, 2019
3c92760
Fix eslint errors
Tug Nov 7, 2019
bdbe882
Merge pull request #1539 from wordpress-mobile/issue/free-medial-libr…
etoledom Nov 7, 2019
6b152a6
Update Gutenberg ref
hypest Nov 7, 2019
2e273de
Update Gutenberg ref
hypest Nov 7, 2019
f4d396e
Fix variable naming
Tug Nov 8, 2019
282cc85
Clean node_modules in gutenberg repo
Tug Nov 8, 2019
382d3af
Update Gutenberg to the merged hash
hypest Nov 8, 2019
05cef95
Merge pull request #1533 from wordpress-mobile/issue/479-block-title-…
hypest Nov 8, 2019
1995c3a
Add mobile Spacer component (#1436)
lukewalczak Nov 8, 2019
06c2e9f
Update release notes.
SergioEstevao Nov 8, 2019
bb3deca
Exclude plural strings for ios
Tug Nov 8, 2019
24a5406
Update GutenbergNativeTranslations.swift
Tug Nov 8, 2019
a660543
Merge pull request #1553 from wordpress-mobile/release/1.16.1
SergioEstevao Nov 8, 2019
5dd9708
Merge pull request #1520 from wordpress-mobile/fix/i18n-gen-ios-and-a…
Tug Nov 8, 2019
56ca1fe
Merge branch 'master' into issue/merge_master_1.6.1_to_develop
SergioEstevao Nov 8, 2019
cc4303d
Use characterToReplaceLastEmptyLine instead of harcoding to ZWSP
koke Nov 8, 2019
f44565c
Merge pull request #1558 from wordpress-mobile/issue/merge_master_1.6…
hypest Nov 8, 2019
6aba2a2
Merge branch 'develop' into fix/1530-lowercase-keyboard
koke Nov 8, 2019
63c882d
Media & Text alignment options (#1546)
lukewalczak Nov 8, 2019
3bd133a
Merge pull request #1552 from wordpress-mobile/fix/1530-lowercase-key…
koke Nov 8, 2019
4f3dba7
Add 'packages/react-native-editor/' from commit '3bd133a4115af23b2947…
dratwas Nov 14, 2019
bb77fc3
split to 3 packages bridge, editor, aztec
dratwas Nov 14, 2019
7412c47
rename gutenberg bridge to bridge and add @wordpress namespace
dratwas Nov 14, 2019
2b8ec68
rename react-native-gutenberg-bridge to react-native-bridge
dratwas Nov 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
*/
import React from 'react';
import { View } from 'react-native';
import {
subscribeMediaUpload,
} from 'react-native-gutenberg-bridge';

/**
* WordPress dependencies
Expand All @@ -14,6 +11,9 @@ import {
Spinner,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import {
subscribeMediaUpload,
} from '@wordpress/react-native-bridge';

/**
* Internal dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
* External dependencies
*/
import { shallow } from 'enzyme';

/**
* WordPress dependencies
*/
import {
sendMediaUpload,
} from 'react-native-gutenberg-bridge';
} from '@wordpress/react-native-bridge';

/**
* Internal dependencies
Expand All @@ -17,7 +21,7 @@ import {
MEDIA_UPLOAD_STATE_RESET,
} from '../';

jest.mock( 'react-native-gutenberg-bridge', () => {
jest.mock( '@wordpress/react-native-bridge', () => {
const callUploadCallback = ( payload ) => {
this.uploadCallBack( payload );
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
* External dependencies
*/
import React from 'react';
import {
requestMediaPickFromMediaLibrary,
requestMediaPickFromDeviceLibrary,
requestMediaPickFromDeviceCamera,
getOtherMediaOptions,
requestOtherMediaPickFrom,
} from 'react-native-gutenberg-bridge';

/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { Picker } from '@wordpress/components';
import {
requestMediaPickFromMediaLibrary,
requestMediaPickFromDeviceLibrary,
requestMediaPickFromDeviceCamera,
getOtherMediaOptions,
requestOtherMediaPickFrom,
} from '@wordpress/react-native-bridge';

export const MEDIA_TYPE_IMAGE = 'image';
export const MEDIA_TYPE_VIDEO = 'video';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
*/
import { shallow } from 'enzyme';
import { TouchableWithoutFeedback } from 'react-native';
/**
* WordPress dependencies
*/
import {
requestMediaPickFromMediaLibrary,
requestMediaPickFromDeviceLibrary,
requestMediaPickFromDeviceCamera,
} from 'react-native-gutenberg-bridge';
} from '@wordpress/react-native-bridge';

/**
* Internal dependencies
Expand Down
13 changes: 7 additions & 6 deletions packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
*/
import React from 'react';
import { View, ImageBackground, Text, TouchableWithoutFeedback, Dimensions } from 'react-native';
import {
requestMediaImport,
mediaUploadSync,
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
} from 'react-native-gutenberg-bridge';
import { isEmpty, map } from 'lodash';

/**
Expand All @@ -25,6 +19,13 @@ import {
PanelActions,
} from '@wordpress/components';

import {
requestMediaImport,
mediaUploadSync,
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
} from '@wordpress/react-native-bridge';

import {
Caption,
MediaPlaceholder,
Expand Down
10 changes: 5 additions & 5 deletions packages/block-library/src/media-text/media-container.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
* External dependencies
*/
import { View, ImageBackground, Text, TouchableWithoutFeedback } from 'react-native';
import {
mediaUploadSync,
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
} from 'react-native-gutenberg-bridge';

/**
* WordPress dependencies
Expand All @@ -17,6 +12,11 @@ import {
Toolbar,
withNotices,
} from '@wordpress/components';
import {
mediaUploadSync,
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
} from '@wordpress/react-native-bridge';
import {
BlockControls,
MEDIA_TYPE_IMAGE,
Expand Down
13 changes: 5 additions & 8 deletions packages/block-library/src/video/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
*/
import React from 'react';
import { View, TouchableWithoutFeedback, Text } from 'react-native';
/**
* Internal dependencies
*/
import {
mediaUploadSync,
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
} from 'react-native-gutenberg-bridge';

/**
* WordPress dependencies
Expand All @@ -20,6 +12,11 @@ import {
Toolbar,
ToolbarButton,
} from '@wordpress/components';
import {
mediaUploadSync,
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
} from '@wordpress/react-native-bridge';
import { withPreferredColorScheme } from '@wordpress/compose';
import {
Caption,
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/layout/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import { Platform, SafeAreaView, View } from 'react-native';
import SafeArea from 'react-native-safe-area';
import { sendNativeEditorDidLayout } from 'react-native-gutenberg-bridge';

/**
* WordPress dependencies
Expand All @@ -14,6 +13,7 @@ import { BottomSheetSettings } from '@wordpress/block-editor';
import { compose, withPreferredColorScheme } from '@wordpress/compose';
import { HTMLTextInput, KeyboardAvoidingView, ReadableContentView } from '@wordpress/components';
import { AutosaveMonitor } from '@wordpress/editor';
import { sendNativeEditorDidLayout } from '@wordpress/react-native-bridge';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-post/src/editor.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import memize from 'memize';
import { size, map, without } from 'lodash';
import { subscribeSetFocusOnTitle } from 'react-native-gutenberg-bridge';

/**
* WordPress dependencies
Expand All @@ -14,6 +13,7 @@ import { parse, serialize } from '@wordpress/blocks';
import { withDispatch, withSelect } from '@wordpress/data';
import { compose } from '@wordpress/compose';
import { SlotFillProvider } from '@wordpress/components';
import { subscribeSetFocusOnTitle } from '@wordpress/react-native-bridge';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-post/src/test/editor.native.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* External dependencies
*/
import RNReactNativeGutenbergBridge from 'react-native-gutenberg-bridge';
import { mount } from 'enzyme';
import { act } from 'react-dom/test-utils';

/**
* WordPress dependencies
*/
import RNReactNativeGutenbergBridge from '@wordpress/react-native-bridge';
import { registerCoreBlocks } from '@wordpress/block-library';
// Force register 'core/editor' store.
import { store } from '@wordpress/editor'; // eslint-disable-line no-unused-vars
Expand Down
16 changes: 6 additions & 10 deletions packages/editor/src/components/provider/index.native.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
/**
* External dependencies
* WordPress dependencies
*/
import { Component } from '@wordpress/element';
import { parse, serialize, getUnregisteredTypeHandlerName, createBlock } from '@wordpress/blocks';
import { withDispatch, withSelect } from '@wordpress/data';
import { compose } from '@wordpress/compose';
import RNReactNativeGutenbergBridge, {
subscribeParentGetHtml,
subscribeParentToggleHTMLMode,
subscribeUpdateHtml,
subscribeSetTitle,
subscribeMediaAppend,
} from 'react-native-gutenberg-bridge';

/**
* WordPress dependencies
*/
import { Component } from '@wordpress/element';
import { parse, serialize, getUnregisteredTypeHandlerName, createBlock } from '@wordpress/blocks';
import { withDispatch, withSelect } from '@wordpress/data';
import { compose } from '@wordpress/compose';
} from '@wordpress/react-native-bridge';

const postTypeEntities = [
{ name: 'post', baseURL: '/wp/v2/posts' },
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/store/actions.native.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
* WordPress dependencies
*/
import RNReactNativeGutenbergBridge from 'react-native-gutenberg-bridge';
import RNReactNativeGutenbergBridge from '@wordpress/react-native-bridge';

export * from './actions.js';

Expand Down
11 changes: 11 additions & 0 deletions packages/react-native-aztec/.flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
118 changes: 118 additions & 0 deletions packages/react-native-aztec/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# OS X generated file
.DS_Store

# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/
build/

# Local configuration file (sdk path, etc)
local.properties

# Eclipse project files
.settings/
.classpath
.project

# Intellij project files
*.iml
*.ipr
*.iws
.idea/

# Gradle
.gradle/

# Generated by gradle
crashlytics.properties

# npm
node_modules/

# yarn
yarn-error.log

###
### Starting at this point, the Swift .gitignore rules from https://github.com/github/gitignore/blob/master/Swift.gitignore
###

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.

ios/Carthage
Carthage/Checkouts
Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

Loading