-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into examples/with-chakra-ui-typescript
- Loading branch information
Showing
44 changed files
with
810 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"AvQcw8": "React Intl Next.js Example, in en-GB", | ||
"N015Sp": "Hello, World, from the UK!", | ||
"ejEGdx": "Home (British version)", | ||
"fnfXnF": "An example app integrating React Intl with Next.js", | ||
"g5pX+a": "About (British version)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"AvQcw8": " React Intl Next.js示例", | ||
"N015Sp": "你好,世界!", | ||
"ejEGdx": "首页", | ||
"fnfXnF": "一个将React Intl与Next.js集成的示例应用程序", | ||
"g5pX+a": "关于" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"AvQcw8": "React Intl Next.js示例", | ||
"N015Sp": "你好,世界!", | ||
"ejEGdx": "首頁", | ||
"fnfXnF": "一個將React Intl與Next.js集成的示例應用程序", | ||
"g5pX+a": "關於" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,5 @@ | |
"registry": "https://registry.npmjs.org/" | ||
} | ||
}, | ||
"version": "9.5.4-canary.15" | ||
"version": "9.5.4-canary.20" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "@next/polyfill-module", | ||
"version": "9.5.4-canary.20", | ||
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)", | ||
"main": "dist/polyfill-module.js", | ||
"license": "MIT", | ||
"repository": { | ||
"url": "vercel/next.js", | ||
"directory": "packages/next-polyfill-module" | ||
}, | ||
"scripts": { | ||
"prepublish": "microbundle src/index.js -f iife --no-sourcemap --external none", | ||
"build": "microbundle watch src/index.js -f iife --no-sourcemap --external none" | ||
}, | ||
"devDependencies": { | ||
"microbundle": "0.11.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/* eslint-disable no-extend-native */ | ||
|
||
// Contains polyfills for methods missing after browser version(s): | ||
// Edge 16, Firefox 60, Chrome 61, Safari 10.1 | ||
|
||
/** | ||
* Available in: | ||
* Edge: never | ||
* Firefox: 61 | ||
* Chrome: 66 | ||
* Safari: 12 | ||
* | ||
* https://caniuse.com/mdn-javascript_builtins_string_trimstart | ||
* https://caniuse.com/mdn-javascript_builtins_string_trimend | ||
*/ | ||
if (!('trimStart' in String.prototype)) { | ||
String.prototype.trimStart = String.prototype.trimLeft | ||
} | ||
if (!('trimEnd' in String.prototype)) { | ||
String.prototype.trimEnd = String.prototype.trimRight | ||
} | ||
|
||
/** | ||
* Available in: | ||
* Edge: never | ||
* Firefox: 63 | ||
* Chrome: 70 | ||
* Safari: 12.1 | ||
* | ||
* https://caniuse.com/mdn-javascript_builtins_symbol_description | ||
*/ | ||
if (!('description' in Symbol.prototype)) { | ||
Object.defineProperty(Symbol.prototype, 'description', { | ||
get: function get() { | ||
return /\((.+)\)/.exec(this)[1] | ||
}, | ||
}) | ||
} | ||
|
||
/** | ||
* Available in: | ||
* Edge: never | ||
* Firefox: 62 | ||
* Chrome: 69 | ||
* Safari: 12 | ||
* | ||
* https://caniuse.com/array-flat | ||
*/ | ||
// Copied from https://gist.github.com/developit/50364079cf0390a73e745e513fa912d9 | ||
// Licensed Apache-2.0 | ||
if (!Array.prototype.flat) { | ||
Array.prototype.flat = function flat(d, c) { | ||
return ( | ||
(c = this.concat.apply([], this)), | ||
d > 1 && c.some(Array.isArray) ? c.flat(d - 1) : c | ||
) | ||
} | ||
Array.prototype.flatMap = function (c, a) { | ||
return this.map(c, a).flat() | ||
} | ||
} | ||
|
||
/** | ||
* Available in: | ||
* Edge: 18 | ||
* Firefox: 58 | ||
* Chrome: 63 | ||
* Safari: 11.1 | ||
* | ||
* https://caniuse.com/promise-finally | ||
*/ | ||
// Modified from https://gist.github.com/developit/e96097d9b657f2a2f3e588ffde433437 | ||
// Licensed Apache-2.0 | ||
if (!Promise.prototype.finally) { | ||
Promise.prototype.finally = function (callback) { | ||
if (typeof callback !== 'function') { | ||
return this.then(callback, callback) | ||
} | ||
|
||
var P = this.constructor || Promise | ||
return this.then( | ||
function (value) { | ||
return P.resolve(callback()).then(function () { | ||
return value | ||
}) | ||
}, | ||
function (err) { | ||
return P.resolve(callback()).then(function () { | ||
throw err | ||
}) | ||
} | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.