Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9b11608
Chore: prune obsolete hooks (#1074)
scottrippey Nov 17, 2021
12566d6
v9: Typescript Conversion (#1075)
carloskelly13 Feb 14, 2022
65c7f4f
Typescript: no implicit any (#1076)
scottrippey Nov 22, 2021
6f185c0
Changes for version 9.0.0-beta.1
carloskelly13 Feb 14, 2022
9ab35ff
9.0.0-beta.1
carloskelly13 Feb 14, 2022
4f4214e
Add support for JSX transform
carloskelly13 Feb 8, 2022
f765b79
Webpack 5 upgrade
carloskelly13 Feb 9, 2022
6bf7c76
Fix tests for new babel set up
carloskelly13 Feb 11, 2022
dd1783c
Fix version number
carloskelly13 Feb 11, 2022
04e5676
Lint fix
carloskelly13 Feb 11, 2022
a29aa72
9.0.0-beta.2
carloskelly13 Feb 11, 2022
3ecc9e1
Changes for version 9.0.0-beta.3
carloskelly13 Feb 11, 2022
2ac96da
Ported over styled system changes from #1079.
carloskelly13 Feb 14, 2022
a7d6395
Remove .d.ts file and update contributing.
carloskelly13 Feb 14, 2022
b3273d4
Fixed demo project, refreshed lockfile.
carloskelly13 Feb 14, 2022
0e00c7e
Add the JS-based example
carloskelly13 Feb 14, 2022
c961c7d
Added built typescript example npm script.
carloskelly13 Feb 14, 2022
4b497f1
9.0.0-beta.3
carloskelly13 Feb 14, 2022
c7294f2
Changes for v9.0.0-beta.3
carloskelly13 Feb 14, 2022
8dae85d
Changes for version 9.0.0-beta.4
carloskelly13 Feb 15, 2022
74cd949
9.0.0-beta.4
carloskelly13 Feb 15, 2022
1d0f3e2
Changes for version 9.0.0-beta.5
carloskelly13 Feb 15, 2022
508889c
9.0.0-beta.5
carloskelly13 Feb 15, 2022
e172f06
Changes for version 9.0.0-beta.6
carloskelly13 Feb 15, 2022
ae403ae
9.0.0-beta.6
carloskelly13 Feb 15, 2022
5d840b5
Changes for version 9.0.0-beta.7
carloskelly13 Feb 16, 2022
f7b5db4
9.0.0-beta.7
carloskelly13 Feb 16, 2022
4688dfd
Add maintanance status.
carloskelly13 Feb 17, 2022
80ffe58
Changes for version 9.0.0-rc.0
carloskelly13 Feb 21, 2022
b37bdc7
9.0.0-rc.0
carloskelly13 Feb 21, 2022
72cb87b
Update README.md
carloskelly13 Feb 22, 2022
1cd1046
Fix formatting for README.md
carloskelly13 Feb 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"presets": [
"@babel/preset-typescript",
["@babel/preset-env", { "modules": false }],
"@babel/preset-react"
["@babel/preset-react", { "runtime": "automatic" }]
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
Expand Down
18 changes: 14 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"prettier/react"
"prettier"
],
"plugins": [
"prettier",
Expand Down Expand Up @@ -44,6 +44,16 @@
{
"allowTemplateLiterals": true
}
]
}
}
],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"react/prop-types": "off"
}
}
]
}
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Please describe the tests that you ran to verify your changes. Provide instructi
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have updated type definitions in `index.d.ts` for any breaking API changes
- [ ] My code follows the style guidelines of this project (I have run `yarn format`)
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes (I have run `yarn test`)
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
pull_request:
branches:
- main
# TODO(v9): Remove when targeting branch at `main` for real release.
- v9
paths:
- '**'
- '!docs/**'
Expand All @@ -23,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
yarn.lock
package.json
tsconfig.json
node_modules
es
lib
dist
docs
.nova
.vscode
.vscode
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 9.0.0-beta.7

- Ensured types for styled-system based components are included with Spectacle core

## 9.0.0-beta.6

- Fixed path for emitting type declarations

## 9.0.0-beta.5

- Removed dependency on Node assert

## 9.0.0-beta.3

- Added TypeScript development example

## 9.0.0-beta.2

- webpack 5 upgrade (@carlos-kelly)

## 9.0.0-beta.1

- Finished initial pass of TypeScript conversion (@scottrippey)

## 8.5.0

- Add styled-system position and layout functions to CodePane, Progress, Markdown components [#1079](https://github.com/FormidableLabs/spectacle/pull/1079)
Expand Down
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ ahead and submit a PR, make sure that you have done the following:
- Run all checks using `yarn check-ci`.
- Run `yarn build-one-page` and check + commit changes to `examples/one-page.html`
- Check that both the core library and _all_ examples build: `yarn build && yarn build-examples`.
- Update the [type definitions](./index.d.ts) for anything that modifies the Spectacle API,
like breaking changes or new features.
- Everything else included in our [pull request checklist](.github/PULL_REQUEST_TEMPLATE.md).

### Releasing a new version to NPM
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ Spectacle's documentation lives on our [docs site](https://www.formidable.com/op
Notice something inaccurate or confusing? Feel free to [open an issue](https://github.com/FormidableLabs/spectacle/issues)
or [make a pull request](https://github.com/FormidableLabs/spectacle/pulls) to help improve the documentation for everyone!
The source for our docs site lives in this repo in the [`docs`](https://github.com/FormidableLabs/spectacle/blob/main/docs/README.md) folder.

### Maintenance Status

**Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.
2 changes: 1 addition & 1 deletion docs/content/basic-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ npm install --save spectacle

## Getting Started with Development

The `src` directory contains all the source for the Spectacle library. All components designed to be part of the Spectacle API must be exported in `src/index.js`.
The `src` directory contains all the source for the Spectacle library. All components designed to be part of the Spectacle API must be exported in `src/index.tsx`.

#### JavaScript-based Decks

Expand Down
2 changes: 1 addition & 1 deletion docs/content/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ For more info about the query parameters Spectacle supports, please check out ou

## Can I write my presentation in TypeScript?

Yes - Spectacle types are shipped with the package, so you can safely use Spectacle in any `.ts` or `.js` presentation without a separate type definition import. Check out [the exported types](https://github.com/FormidableLabs/spectacle/blob/main/index.d.ts) for a complete list.
Yes - Spectacle types are shipped with the package, so you can safely use Spectacle in any `.ts` or `.js` presentation without a separate type definition import.
2 changes: 1 addition & 1 deletion docs/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ npm install --save spectacle

## Getting Started with Development

The `src` directory contains all the source for the Spectacle library. All components designed to be part of the Spectacle API must be exported in `src/index.js`.
The `src` directory contains all the source for the Spectacle library. All components designed to be part of the Spectacle API must be exported in `src/index.tsx`.

#### JavaScript-based Decks

Expand Down
5 changes: 0 additions & 5 deletions examples/js/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';

import {
FlexBox,
Heading,
Expand All @@ -12,7 +11,6 @@ import {
FullScreen,
Progress,
Appear,
Stepper,
Slide,
Deck,
Text,
Expand Down Expand Up @@ -174,8 +172,6 @@ const Presentation = () => (
<Grid
gridTemplateColumns="1fr 1fr 1fr"
gridTemplateRows="1fr 1fr 1fr"
alignItems="center"
justifyContent="center"
gridRowGap={1}
>
{Array(9)
Expand Down Expand Up @@ -235,7 +231,6 @@ const Presentation = () => (
</MarkdownSlide>
<Slide>
<Grid
flex={1}
gridTemplateColumns="50% 50%"
gridTemplateRows="50% 50%"
height="100%"
Expand Down
5 changes: 3 additions & 2 deletions examples/js/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

const base = require('../../webpack.config');

module.exports = {
Expand All @@ -14,12 +13,14 @@ module.exports = {
},
externals: {},
plugins: [
...base.plugins,
new HtmlWebpackPlugin({
title: 'Spectacle JS Development Example',
title: 'Spectacle JavaScript Demo',
template: `./index.html`
})
],
resolve: {
...base.resolve,
alias: {
spectacle: path.resolve(__dirname, '../../src')
}
Expand Down
2 changes: 2 additions & 0 deletions examples/md/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ module.exports = {
])
},
plugins: [
...base.plugins,
new HtmlWebpackPlugin({
title: 'Spectacle MD Development Example',
template: `./index.html`
})
],
resolve: {
...base.resolve,
alias: {
spectacle: path.resolve(__dirname, '../../src')
}
Expand Down
11 changes: 11 additions & 0 deletions examples/typescript/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="root"></div>
</body>
</html>
Loading