@starlightcms/next-sdk 3.0.0 → 3.1.0-beta.1

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.
@@ -0,0 +1,197 @@
1
+ @charset "UTF-8";
2
+ .sl-visual-content {
3
+ --sl-max-block-width: 100%;
4
+ }
5
+ .sl-visual-content .sl__color {
6
+ padding: 2px 0;
7
+ border-radius: 4px;
8
+ }
9
+ .sl-visual-content .sl__color__bg--red {
10
+ background-color: rgb(253, 235, 236);
11
+ }
12
+ .sl-visual-content .sl__color__bg--pink {
13
+ background-color: rgb(253, 235, 236);
14
+ }
15
+ .sl-visual-content .sl__color__bg--purple {
16
+ background-color: rgb(244, 240, 247);
17
+ }
18
+ .sl-visual-content .sl__color__bg--blue {
19
+ background-color: rgb(231, 243, 248);
20
+ }
21
+ .sl-visual-content .sl__color__bg--green {
22
+ background-color: rgb(237, 243, 236);
23
+ }
24
+ .sl-visual-content .sl__color__bg--yellow {
25
+ background-color: rgb(251, 243, 219);
26
+ }
27
+ .sl-visual-content .sl__color__bg--orange {
28
+ background-color: rgb(251, 236, 221);
29
+ }
30
+ .sl-visual-content .sl__color__bg--brown {
31
+ background-color: rgb(244, 238, 238);
32
+ }
33
+ .sl-visual-content .sl__color__bg--gray {
34
+ background-color: rgb(241, 241, 239);
35
+ }
36
+ .sl-visual-content .sl__color__text--red {
37
+ color: rgb(212, 76, 71);
38
+ }
39
+ .sl-visual-content .sl__color__text--pink {
40
+ color: rgb(193, 76, 138);
41
+ }
42
+ .sl-visual-content .sl__color__text--purple {
43
+ color: rgb(144, 101, 176);
44
+ }
45
+ .sl-visual-content .sl__color__text--blue {
46
+ color: rgb(51, 126, 169);
47
+ }
48
+ .sl-visual-content .sl__color__text--green {
49
+ color: rgb(68, 131, 97);
50
+ }
51
+ .sl-visual-content .sl__color__text--yellow {
52
+ color: rgb(203, 145, 47);
53
+ }
54
+ .sl-visual-content .sl__color__text--orange {
55
+ color: rgb(217, 115, 13);
56
+ }
57
+ .sl-visual-content .sl__color__text--brown {
58
+ color: rgb(159, 107, 83);
59
+ }
60
+ .sl-visual-content .sl__color__text--gray {
61
+ color: rgb(120, 119, 116);
62
+ }
63
+
64
+ .sl-content-block {
65
+ margin: auto;
66
+ width: 100%;
67
+ max-width: var(--sl-max-block-width);
68
+ }
69
+
70
+ .sl-stretched {
71
+ max-width: 100%;
72
+ }
73
+
74
+ .sl-header.sl-alignment-start, .sl-paragraph.sl-alignment-start {
75
+ text-align: start;
76
+ }
77
+
78
+ .sl-header.sl-alignment-center, .sl-paragraph.sl-alignment-center {
79
+ text-align: center;
80
+ }
81
+
82
+ .sl-header.sl-alignment-end, .sl-paragraph.sl-alignment-end {
83
+ text-align: end;
84
+ }
85
+
86
+ .sl-header.sl-alignment-justify, .sl-paragraph.sl-alignment-justify {
87
+ text-align: justify;
88
+ }
89
+
90
+ .sl-figure figcaption {
91
+ display: flex;
92
+ justify-content: center;
93
+ margin-top: 6px;
94
+ }
95
+
96
+ .sl-html__root > * {
97
+ max-width: 100%;
98
+ }
99
+
100
+ .sl-image > .sl-figure {
101
+ margin: 1rem 0;
102
+ }
103
+ .sl-image > .sl-figure > a {
104
+ width: 100%;
105
+ }
106
+
107
+ .sl-image.sl-alignment-start {
108
+ display: flex;
109
+ justify-content: flex-start;
110
+ }
111
+
112
+ .sl-image.sl-alignment-center {
113
+ display: flex;
114
+ justify-content: center;
115
+ }
116
+
117
+ .sl-image.sl-alignment-end {
118
+ display: flex;
119
+ justify-content: flex-end;
120
+ }
121
+
122
+ .sl-image.sl-alignment-justify {
123
+ display: flex;
124
+ justify-content: stretch;
125
+ }
126
+
127
+ .sl-image__img {
128
+ display: block;
129
+ width: 100%;
130
+ object-fit: cover;
131
+ }
132
+
133
+ .sl-list > ul.sl-list__root {
134
+ list-style: none;
135
+ }
136
+ .sl-list > ul.sl-list__root > li::before {
137
+ content: "•";
138
+ }
139
+
140
+ .sl-list__root {
141
+ padding-left: 1em;
142
+ }
143
+ .sl-list__root > li {
144
+ margin: 0.5em 0;
145
+ }
146
+ .sl-list__root > li::before {
147
+ margin-right: 0.5em;
148
+ }
149
+
150
+ .sl-video {
151
+ display: flex;
152
+ }
153
+ .sl-video > figure.sl-figure {
154
+ margin: 0;
155
+ }
156
+ .sl-video > figure.sl-figure > div > * {
157
+ max-width: 100%;
158
+ }
159
+ .sl-video > figure.sl-figure > div > iframe {
160
+ display: block;
161
+ margin: auto;
162
+ aspect-ratio: 16/9;
163
+ border: none;
164
+ background-color: transparent;
165
+ }
166
+
167
+ .sl-video--width-auto {
168
+ width: initial;
169
+ }
170
+ .sl-video--width-auto iframe {
171
+ width: initial;
172
+ }
173
+
174
+ .sl-video--width-justify, .sl-video--width-max, .sl-video--width-fixed {
175
+ width: 100%;
176
+ }
177
+ .sl-video--width-justify iframe, .sl-video--width-max iframe, .sl-video--width-fixed iframe {
178
+ width: 100%;
179
+ }
180
+
181
+ .sl-video.sl-alignment-start {
182
+ justify-content: flex-start;
183
+ }
184
+
185
+ .sl-video.sl-alignment-center {
186
+ justify-content: center;
187
+ }
188
+
189
+ .sl-video.sl-alignment-end {
190
+ justify-content: flex-end;
191
+ }
192
+
193
+ .sl-video.sl-alignment-justify {
194
+ justify-content: stretch;
195
+ }
196
+
197
+ /*# sourceMappingURL=styles.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../src/VisualContent/styles.scss","../src/VisualContent/blocks/blocks.scss","../src/VisualContent/blocks/HTML/styles.scss","../src/VisualContent/blocks/Image/styles.scss","../src/VisualContent/blocks/List/styles.scss","../src/VisualContent/blocks/Video/styles.scss"],"names":[],"mappings":";AAAA;EACE;;AAEA;EACE;EACA;;AAGE;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAKF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;;AC/DR;EACE;EAEA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAIA;EACE;EACA;EACA;;;AC9BF;EACE;;;ACFJ;EACE;;AAEA;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAIF;EACE;EACA;EACA;;;AC/BA;EACE;;AAGE;EACE;;;AAMR;EACE;;AAEA;EACE;;AAEA;EACE;;;ACnBN;EACE;;AAEA;EACE;;AAGE;EACE;;AAGF;EACE;EACA;EAEA;EAEA;EAEA;;;AAMR;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE","file":"styles.css"}
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@starlightcms/next-sdk",
3
- "version": "3.0.0",
3
+ "version": "3.1.0-beta.1",
4
4
  "description": "The Starlight SDK for Next",
5
5
  "main": "dist/cjs/index.js",
6
6
  "exports": {
7
- "require": "./dist/cjs/index.js",
8
- "import": "./dist/esm/index.js"
7
+ ".": {
8
+ "require": "./dist/cjs/index.js",
9
+ "import": "./dist/esm/index.js"
10
+ },
11
+ "./styles.css": "./dist/styles.css"
9
12
  },
10
13
  "scripts": {
11
- "build": "rimraf dist && npm run build:cjs && npm run build:esm",
14
+ "build": "rimraf dist && npm run build:cjs && npm run build:esm && npm run build:css",
12
15
  "build:esm": "tsc --module esnext --outDir dist/esm",
13
16
  "build:cjs": "tsc --module commonjs --outDir dist/cjs",
17
+ "build:css": "copyfiles -f \"./node_modules/@starlightcms/react-sdk/dist/styles.*\" dist",
14
18
  "dev": "tsc --watch --module esnext --outDir dist/esm",
15
19
  "dev:cjs": "tsc --watch --module commonjs --outDir dist/cjs",
16
20
  "prepare": "husky install",
@@ -39,6 +43,7 @@
39
43
  "@types/react": "^18.3.27",
40
44
  "@typescript-eslint/eslint-plugin": "^8.49.0",
41
45
  "@typescript-eslint/parser": "^8.49.0",
46
+ "copyfiles": "^2.4.1",
42
47
  "eslint": "^9.39.1",
43
48
  "eslint-config-prettier": "^10.1.8",
44
49
  "husky": "^7.0.2",
@@ -54,7 +59,7 @@
54
59
  ]
55
60
  },
56
61
  "dependencies": {
57
- "@starlightcms/react-sdk": "^3.0.0"
62
+ "@starlightcms/react-sdk": "^3.1.0"
58
63
  },
59
64
  "peerDependencies": {
60
65
  "next": ">=13.0.0",