@oktis-works/cms 0.9.4 → 0.9.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.
@@ -0,0 +1,35 @@
1
+ -- V013__core__field_type_extensions.sql
2
+ -- Tabela para armazenar tipos de campo customizados registrados por plugins
3
+
4
+ CREATE TABLE IF NOT EXISTS field_type_extensions (
5
+ id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
6
+ plugin_name VARCHAR(255) NOT NULL,
7
+ type VARCHAR(100) NOT NULL UNIQUE,
8
+ label VARCHAR(255) NOT NULL,
9
+ category VARCHAR(50) NOT NULL,
10
+ icon VARCHAR(100) NOT NULL,
11
+ supports_conditions BOOLEAN DEFAULT true,
12
+ is_layout BOOLEAN DEFAULT false,
13
+ admin_component_path VARCHAR(500),
14
+ admin_renderer_path VARCHAR(500),
15
+ config_schema JSONB,
16
+ created_at TIMESTAMPTZ DEFAULT NOW(),
17
+ updated_at TIMESTAMPTZ DEFAULT NOW()
18
+ );
19
+
20
+ -- Índice para busca rápida por plugin
21
+ CREATE INDEX IF NOT EXISTS idx_field_type_extensions_plugin ON field_type_extensions(plugin_name);
22
+
23
+ -- Trigger para updated_at
24
+ CREATE OR REPLACE FUNCTION update_updated_at_column()
25
+ RETURNS TRIGGER AS $$
26
+ BEGIN
27
+ NEW.updated_at = NOW();
28
+ RETURN NEW;
29
+ END;
30
+ $$ language 'plpgsql';
31
+
32
+ DROP TRIGGER IF EXISTS update_field_type_extensions_updated_at ON field_type_extensions;
33
+ CREATE TRIGGER update_field_type_extensions_updated_at
34
+ BEFORE UPDATE ON field_type_extensions
35
+ FOR EACH ROW EXECUTE FUNCTION update_updated_at_column();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oktis-works/cms",
3
- "version": "0.9.4",
3
+ "version": "0.9.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,12 +20,12 @@
20
20
  "clean": "rm -rf dist migrations tsconfig.tsbuildinfo"
21
21
  },
22
22
  "dependencies": {
23
- "@oktis-works/auth": "^0.6.0",
24
- "@oktis-works/config": "^0.6.1",
25
- "@oktis-works/core": "^0.5.14",
26
- "@oktis-works/database": "^0.6.0",
23
+ "@oktis-works/auth": "^0.7.1",
24
+ "@oktis-works/config": "^0.6.3",
25
+ "@oktis-works/core": "^0.6.1",
26
+ "@oktis-works/database": "^0.7.1",
27
27
  "@oktis-works/validation": "^0.6.0",
28
- "@oktis-works/theme-runtime": "^0.6.1"
28
+ "@oktis-works/theme-runtime": "^0.6.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "5.7.3"