@uncinc/uncinc-react-kitchen-sink 2.2.6 → 2.2.7

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.
@@ -14,10 +14,11 @@ const NavigationScroll = props => {
14
14
  });
15
15
  useEffect(() => {
16
16
  window.addEventListener('scroll', handleScroll);
17
+ handleScroll();
17
18
  return () => {
18
19
  window.removeEventListener('scroll', handleScroll);
19
20
  };
20
- });
21
+ }, []);
21
22
 
22
23
  const getScrollPos = element => {
23
24
  if (typeof element.pageYOffset !== 'undefined') {
@@ -0,0 +1,25 @@
1
+ import { ApolloServer, gql } from 'apollo-server-micro';
2
+ export const config = {
3
+ api: {
4
+ bodyParser: false
5
+ }
6
+ };
7
+ const typeDefs = [gql`
8
+ type Query {
9
+ root: String
10
+ }
11
+
12
+ type Mutation {
13
+ root: String
14
+ }
15
+ `];
16
+ const server = new ApolloServer({
17
+ typeDefs,
18
+ resolvers: {},
19
+ introspection: true,
20
+ playground: true,
21
+ context: {}
22
+ });
23
+ export default server.createHandler({
24
+ path: '/api/graphql'
25
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",
@@ -1,45 +0,0 @@
1
- @import '../../styles/assets/variables';
2
-
3
- .Button {
4
- &.Button--styled {
5
- display: inline-block;
6
- border-radius: 5px;
7
- text-decoration: none;
8
- text-align: center;
9
- cursor: pointer;
10
-
11
- &--primary {
12
- font-size: 21px;
13
- background-color: black;
14
- color: #ffffff;
15
- font-weight: 600;
16
- line-height: 1.14;
17
- padding: 19px 30px;
18
-
19
- &:hover {
20
- background-color: #434343;
21
- }
22
- &:disabled {
23
- font-family: inherit;
24
- background-color: rgba(0, 0, 0, 0.3);
25
- }
26
- }
27
-
28
- &--inverted {
29
- border: solid 1px #888888;
30
- background-color: #ffffff;
31
- padding: 18px 34.5px;
32
- font-size: 18px;
33
- font-weight: 600;
34
- color: #000000;
35
-
36
- &:hover {
37
- background-color: #f1f1f1;
38
- }
39
- &:disabled {
40
- font-family: inherit;
41
- opacity: .5;
42
- }
43
- }
44
- }
45
- }
@@ -1,3 +0,0 @@
1
- .WysiwygField {
2
- margin-right: 200px;
3
- }
@@ -1,5 +0,0 @@
1
- const makeSafeForCSS = value => {
2
- return encodeURIComponent(value).replace(/\.|%[0-9a-z]{2}/gi, '');
3
- };
4
-
5
- export default makeSafeForCSS;