Skip to content

Commit ca01c55

Browse files
authored
Merge pull request #503 from framer/feature/35469-cms-import-csv
[CSV Plugin] select and create collections from plugin
2 parents c40ecf0 + 018b5d7 commit ca01c55

File tree

12 files changed

+461
-271
lines changed

12 files changed

+461
-271
lines changed

.vscode/settings.json

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,7 @@
3030
"**/dist": true,
3131
"**/yarn.lock": true
3232
},
33-
"editor.codeActionsOnSave": {
34-
"source": "never",
35-
"source.addMissingImports.ts": "never",
36-
"source.fixAll.eslint": "explicit",
37-
"source.fixAll.ts": "never",
38-
"source.fixAll.tsslint": "never",
39-
"source.organizeImports": "never",
40-
"source.fixAll": "never",
41-
"source.removeUnused.ts": "never",
42-
"source.removeUnusedImports": "never",
43-
"source.sortImports": "never",
44-
"quickfix": "never",
45-
46-
"source.fixAll.biome": "explicit",
47-
"source.organizeImports.biome": "explicit"
48-
},
33+
"editor.formatOnSave": true,
4934
"workbench.editorAssociations": {
5035
"*.svg": "default"
5136
}
Binary file not shown.

plugins/csv-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"dependencies": {
1616
"csv-parse": "^6.1.0",
17-
"framer-plugin": "^3.8.0",
17+
"framer-plugin": "3.9.0-beta.1",
1818
"react": "^18.3.1",
1919
"react-dom": "^18.3.1",
2020
"valibot": "^1.2.0"

plugins/csv-import/src/App.css

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
align-items: center;
1313
}
1414

15+
.import-form {
16+
display: flex;
17+
flex-direction: column;
18+
align-items: center;
19+
flex: 1;
20+
width: 100%;
21+
position: relative;
22+
}
23+
1524
.manage-conflicts {
1625
gap: 10px;
1726
}
@@ -100,9 +109,74 @@
100109
color: var(--framer-color-text-tertiary);
101110
}
102111

112+
.collection-selector {
113+
display: flex;
114+
gap: 8px;
115+
width: 100%;
116+
padding-top: 15px;
117+
}
118+
103119
.collection-select {
120+
flex: 1;
121+
min-width: 0;
122+
}
123+
124+
.create-collection-button {
125+
display: flex;
126+
align-items: center;
127+
justify-content: center;
128+
width: 28px;
129+
height: 28px;
130+
padding: 0;
131+
flex-shrink: 0;
132+
}
133+
134+
.create-collection-icon {
135+
display: flex;
136+
align-items: center;
137+
justify-content: center;
138+
transition: transform 0.2s ease;
139+
}
140+
141+
.create-collection-icon.active {
142+
transform: rotate(45deg);
143+
}
144+
145+
.create-collection-section {
104146
width: 100%;
105-
margin-bottom: 10px;
147+
max-height: 0;
148+
overflow: hidden;
149+
transition:
150+
max-height 0.3s ease,
151+
opacity 0.3s ease;
152+
opacity: 0;
153+
}
154+
155+
.create-collection-section.expanded {
156+
max-height: 100px;
157+
opacity: 1;
158+
}
159+
160+
.create-collection-form {
161+
display: flex;
162+
gap: 8px;
163+
padding-top: 8px;
164+
width: 100%;
165+
}
166+
167+
.create-collection-input {
168+
flex: 1;
169+
min-width: 0;
170+
}
171+
172+
.create-collection-submit-button {
173+
display: flex;
174+
align-items: center;
175+
justify-content: center;
176+
width: 28px;
177+
height: 28px;
178+
padding: 0;
179+
flex-shrink: 0;
106180
}
107181

108182
/* Manage conflicts screen */

0 commit comments

Comments
 (0)