@caiquecamargo/vite-plugin-netlify-cms 0.0.11 → 0.0.13

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.
@@ -1,10 +1,70 @@
1
1
  backend:
2
2
  name: git-gateway
3
3
  branch: main
4
+ locale: pt-BR
5
+ site_url: https://www.giomurakami.des.br
6
+ display_url: https://www.giomurakami.des.br
7
+ logo_url: https://www.giomurakami.des.br/pendente.svg
4
8
  media_folder: public/images
9
+ public_folder: /images
10
+ media_library:
11
+ name: uploadcare
12
+ config:
13
+ publicKey: f07c3de16a476579b849
14
+ multiple: true
15
+ crop: free
16
+ locale: pt
5
17
  collections:
6
- - name: posts
7
- fields:
8
- - widget: string
9
- name: title
10
- folder: content/posts
18
+ - name: config
19
+ label: Configurações
20
+ files:
21
+ - name: about
22
+ label: Sobre
23
+ file: src/content/config/about.md
24
+ extension: md
25
+ editor:
26
+ preview: false
27
+ fields:
28
+ - widget: string
29
+ label: Título
30
+ name: title
31
+ default: Quem sou eu
32
+ - widget: markdown
33
+ label: Conteúdo
34
+ name: body
35
+ - widget: image
36
+ label: Foto
37
+ name: image
38
+ media_library:
39
+ config:
40
+ multiple: false
41
+ - name: budget
42
+ label: Orçamento
43
+ file: src/content/config/form-entries.json
44
+ extension: json
45
+ editor:
46
+ preview: false
47
+ fields:
48
+ - widget: string
49
+ label: Título
50
+ name: title
51
+ default: Formulário de orçamento
52
+ - name: color
53
+ label: Cores
54
+ file: src/content/config/color.json
55
+ extension: json
56
+ editor:
57
+ preview: false
58
+ fields:
59
+ - widget: color
60
+ label: Padrão
61
+ name: default
62
+ allowInput: true
63
+ - widget: color
64
+ label: Escura
65
+ name: dark
66
+ allowInput: true
67
+ - widget: color
68
+ label: Clara
69
+ name: light
70
+ allowInput: true
package/dist/index.es.js CHANGED
@@ -4749,8 +4749,8 @@ const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4749
4749
  if (!r)
4750
4750
  throw new Error("Config file not found");
4751
4751
  return r;
4752
- } catch {
4753
- throw new Error("Config file not found");
4752
+ } catch (t) {
4753
+ throw console.log(t), new Error("Config file not found");
4754
4754
  }
4755
4755
  }, Dt = async (s, e) => {
4756
4756
  const { configFile: t = "./netlify.config.ts", config: n, saveFolder: i = "./public/admin" } = e ?? {}, r = n ?? await Cs(s, t);