sygnal 2.9.3 → 3.0.0
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.
- package/README.md +685 -220
- package/dist/index.cjs.js +301 -308
- package/dist/index.esm.js +301 -308
- package/dist/jsx.cjs.js +4 -4
- package/dist/jsx.esm.js +4 -4
- package/dist/sygnal.min.js +1 -1
- package/package.json +1 -1
package/dist/jsx.cjs.js
CHANGED
|
@@ -156,15 +156,15 @@ const createElementWithModules = (modules) => {
|
|
|
156
156
|
}
|
|
157
157
|
data ||= {};
|
|
158
158
|
if (!sel.isSygnalComponent) {
|
|
159
|
-
const name =
|
|
159
|
+
const name = sel.componentName || sel.label || sel.name || 'FUNCTION_COMPONENT';
|
|
160
160
|
const view = sel;
|
|
161
|
-
const { model, intent, context,
|
|
162
|
-
const options = { name, view, model, intent, context,
|
|
161
|
+
const { model, intent, context, peers, components, initialState, calculated, storeCalculatedInState, DOMSourceName, stateSourceName, debug } = sel;
|
|
162
|
+
const options = { name, view, model, intent, context, peers, components, initialState, calculated, storeCalculatedInState, DOMSourceName, stateSourceName, debug };
|
|
163
163
|
data.sygnalOptions = options;
|
|
164
164
|
sel = name;
|
|
165
165
|
} else {
|
|
166
166
|
const factory = sel;
|
|
167
|
-
sel = sel.
|
|
167
|
+
sel = sel.componentName || sel.label || sel.name || 'sygnal-factory';
|
|
168
168
|
data.sygnalFactory = factory;
|
|
169
169
|
}
|
|
170
170
|
}
|
package/dist/jsx.esm.js
CHANGED
|
@@ -154,15 +154,15 @@ const createElementWithModules = (modules) => {
|
|
|
154
154
|
}
|
|
155
155
|
data ||= {};
|
|
156
156
|
if (!sel.isSygnalComponent) {
|
|
157
|
-
const name =
|
|
157
|
+
const name = sel.componentName || sel.label || sel.name || 'FUNCTION_COMPONENT';
|
|
158
158
|
const view = sel;
|
|
159
|
-
const { model, intent, context,
|
|
160
|
-
const options = { name, view, model, intent, context,
|
|
159
|
+
const { model, intent, context, peers, components, initialState, calculated, storeCalculatedInState, DOMSourceName, stateSourceName, debug } = sel;
|
|
160
|
+
const options = { name, view, model, intent, context, peers, components, initialState, calculated, storeCalculatedInState, DOMSourceName, stateSourceName, debug };
|
|
161
161
|
data.sygnalOptions = options;
|
|
162
162
|
sel = name;
|
|
163
163
|
} else {
|
|
164
164
|
const factory = sel;
|
|
165
|
-
sel = sel.
|
|
165
|
+
sel = sel.componentName || sel.label || sel.name || 'sygnal-factory';
|
|
166
166
|
data.sygnalFactory = factory;
|
|
167
167
|
}
|
|
168
168
|
}
|