@yoobic/yobi 8.3.0-43 → 8.3.0-46
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/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/{entities-helpers-e77cfd61.js → entities-helpers-99fc4a8a.js} +29 -1
- package/dist/cjs/{filters-helpers-536b7b88.js → filters-helpers-63712f8d.js} +6 -13
- package/dist/cjs/{form-choice-helpers-b2ec494b.js → form-choice-helpers-e28efa04.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-detail-bar.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity.cjs.entry.js +47 -70
- package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +4 -3
- package/dist/cjs/yoo-form-choice-button.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-card.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-chat.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-image.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-radio.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-connect.cjs.entry.js +2 -1
- package/dist/cjs/yoo-form-creator-workflow-step.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -0
- package/dist/cjs/yoo-form-missionfield.cjs.entry.js +7 -1
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +64 -46
- package/dist/cjs/yoo-form-todo-task-list.cjs.entry.js +1 -2
- package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
- package/dist/cjs/yoo-input-bar.cjs.entry.js +12948 -12743
- package/dist/cjs/yoo-login.cjs.entry.js +1 -1
- package/dist/cjs/yoo-scratch-card-creator.cjs.entry.js +1 -3
- package/dist/cjs/yoo-section-list.cjs.entry.js +3 -3
- package/dist/cjs/yoo-slides-media.cjs.entry.js +1 -1
- package/dist/cjs/yoo-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +3 -3
- package/dist/collection/components/entities/entity/entity.js +47 -70
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +27 -5
- package/dist/collection/components/form/form-choice/form-choice-helpers.js +1 -1
- package/dist/collection/components/form/form-connect/form-connect.js +2 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +1 -0
- package/dist/collection/components/form/form-missionfield/form-missionfield.js +7 -1
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.css +1 -1
- package/dist/collection/components/form/form-todo-task-list/form-todo-task-list.js +1 -2
- package/dist/collection/components/form-creator/scratch-card-creator/scratch-card-creator.js +1 -3
- package/dist/collection/feature-learn/learning/section-list/section-list.js +3 -3
- package/dist/collection/feature-platform/login/login/login.css +1 -2
- package/dist/collection/utils/helpers/entities-helpers.js +29 -2
- package/dist/collection/utils/helpers/filters-helpers.js +6 -13
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/entities-helpers-9ea378f0.js → design-system/entities-helpers-67ff3fa4.js} +30 -3
- package/dist/{esm/filters-helpers-41224cde.js → design-system/filters-helpers-ded9ed03.js} +6 -13
- package/dist/design-system/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
- package/dist/design-system/yoo-detail-bar.entry.js +1 -1
- package/dist/design-system/yoo-entity-query-builder.entry.js +1 -1
- package/dist/design-system/yoo-entity-search-filters.entry.js +1 -1
- package/dist/design-system/yoo-entity.entry.js +47 -70
- package/dist/design-system/yoo-form-autocomplete.entry.js +4 -3
- package/dist/design-system/yoo-form-choice-button.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-card.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-chat.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-image.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-radio.entry.js +1 -1
- package/dist/design-system/yoo-form-connect.entry.js +2 -1
- package/dist/design-system/yoo-form-creator-workflow-step.entry.js +1 -1
- package/dist/design-system/yoo-form-dynamic.entry.js +1 -0
- package/dist/design-system/yoo-form-missionfield.entry.js +7 -1
- package/dist/design-system/yoo-form-swipe-cards.entry.js +1 -1
- package/dist/design-system/yoo-form-text-editor.entry.js +64 -46
- package/dist/design-system/yoo-form-todo-task-list.entry.js +1 -2
- package/dist/design-system/yoo-grid.entry.js +1 -1
- package/dist/design-system/yoo-input-bar.entry.js +12948 -12743
- package/dist/design-system/yoo-login.entry.js +1 -1
- package/dist/design-system/yoo-scratch-card-creator.entry.js +1 -3
- package/dist/design-system/yoo-section-list.entry.js +4 -4
- package/dist/design-system/yoo-slides-media.entry.js +1 -1
- package/dist/design-system/yoo-user-profile.entry.js +1 -1
- package/dist/design-system/yoo-videoplayer-videojs.entry.js +3 -3
- package/dist/esm/design-system.js +1 -1
- package/dist/{design-system/entities-helpers-9ea378f0.js → esm/entities-helpers-67ff3fa4.js} +30 -3
- package/dist/{design-system/filters-helpers-41224cde.js → esm/filters-helpers-ded9ed03.js} +6 -13
- package/dist/esm/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-detail-bar.entry.js +1 -1
- package/dist/esm/yoo-entity-query-builder.entry.js +1 -1
- package/dist/esm/yoo-entity-search-filters.entry.js +1 -1
- package/dist/esm/yoo-entity.entry.js +47 -70
- package/dist/esm/yoo-form-autocomplete.entry.js +4 -3
- package/dist/esm/yoo-form-choice-button.entry.js +1 -1
- package/dist/esm/yoo-form-choice-card.entry.js +1 -1
- package/dist/esm/yoo-form-choice-chat.entry.js +1 -1
- package/dist/esm/yoo-form-choice-image.entry.js +1 -1
- package/dist/esm/yoo-form-choice-radio.entry.js +1 -1
- package/dist/esm/yoo-form-connect.entry.js +2 -1
- package/dist/esm/yoo-form-creator-workflow-step.entry.js +1 -1
- package/dist/esm/yoo-form-dynamic.entry.js +1 -0
- package/dist/esm/yoo-form-missionfield.entry.js +7 -1
- package/dist/esm/yoo-form-swipe-cards.entry.js +1 -1
- package/dist/esm/yoo-form-text-editor.entry.js +64 -46
- package/dist/esm/yoo-form-todo-task-list.entry.js +1 -2
- package/dist/esm/yoo-grid.entry.js +1 -1
- package/dist/esm/yoo-input-bar.entry.js +12948 -12743
- package/dist/esm/yoo-login.entry.js +1 -1
- package/dist/esm/yoo-scratch-card-creator.entry.js +1 -3
- package/dist/esm/yoo-section-list.entry.js +4 -4
- package/dist/esm/yoo-slides-media.entry.js +1 -1
- package/dist/esm/yoo-user-profile.entry.js +1 -1
- package/dist/esm/yoo-videoplayer-videojs.entry.js +3 -3
- package/dist/types/components/form/form-autocomplete/form-autocomplete.d.ts +1 -1
- package/dist/types/components.d.ts +2 -0
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/custom-app/custom-app.interface.d.ts +10 -3
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/form-field/form-field.interface.d.ts +1 -0
- package/dist/types/utils/helpers/entities-helpers.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ const lodash = require('./lodash-72d493b9.js');
|
|
|
9
9
|
const overlays = require('./overlays-046b4f60.js');
|
|
10
10
|
const bufferEs6 = require('./buffer-es6-f8668f31.js');
|
|
11
11
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
12
|
-
const entitiesHelpers = require('./entities-helpers-
|
|
12
|
+
const entitiesHelpers = require('./entities-helpers-99fc4a8a.js');
|
|
13
13
|
const formInputHelpers = require('./form-input-helpers-651487c0.js');
|
|
14
14
|
const formTextAreaHelpers = require('./form-text-area-helpers-4efd344d.js');
|
|
15
15
|
const shadowDomHelper = require('./shadow-dom-helper-292b05ce.js');
|
|
@@ -20372,7 +20372,7 @@ NoWorkResult.default = NoWorkResult;
|
|
|
20372
20372
|
|
|
20373
20373
|
class Processor {
|
|
20374
20374
|
constructor(plugins = []) {
|
|
20375
|
-
this.version = '8.4.
|
|
20375
|
+
this.version = '8.4.14';
|
|
20376
20376
|
this.plugins = this.normalize(plugins);
|
|
20377
20377
|
}
|
|
20378
20378
|
|
|
@@ -20515,25 +20515,27 @@ function postcss(...plugins) {
|
|
|
20515
20515
|
}
|
|
20516
20516
|
|
|
20517
20517
|
postcss.plugin = function plugin(name, initializer) {
|
|
20518
|
-
|
|
20519
|
-
|
|
20518
|
+
let warningPrinted = false;
|
|
20519
|
+
function creator(...args) {
|
|
20520
20520
|
// eslint-disable-next-line no-console
|
|
20521
|
-
console.warn
|
|
20522
|
-
|
|
20523
|
-
': postcss.plugin was deprecated. Migration guide:\n' +
|
|
20524
|
-
'https://evilmartians.com/chronicles/postcss-8-plugin-migration'
|
|
20525
|
-
);
|
|
20526
|
-
if (overlays.process_1.env.LANG && overlays.process_1.env.LANG.startsWith('cn')) {
|
|
20527
|
-
/* c8 ignore next 7 */
|
|
20521
|
+
if (console && console.warn && !warningPrinted) {
|
|
20522
|
+
warningPrinted = true;
|
|
20528
20523
|
// eslint-disable-next-line no-console
|
|
20529
20524
|
console.warn(
|
|
20530
20525
|
name +
|
|
20531
|
-
':
|
|
20532
|
-
'https://
|
|
20526
|
+
': postcss.plugin was deprecated. Migration guide:\n' +
|
|
20527
|
+
'https://evilmartians.com/chronicles/postcss-8-plugin-migration'
|
|
20533
20528
|
);
|
|
20529
|
+
if (overlays.process_1.env.LANG && overlays.process_1.env.LANG.startsWith('cn')) {
|
|
20530
|
+
/* c8 ignore next 7 */
|
|
20531
|
+
// eslint-disable-next-line no-console
|
|
20532
|
+
console.warn(
|
|
20533
|
+
name +
|
|
20534
|
+
': 里面 postcss.plugin 被弃用. 迁移指南:\n' +
|
|
20535
|
+
'https://www.w3ctech.com/topic/2226'
|
|
20536
|
+
);
|
|
20537
|
+
}
|
|
20534
20538
|
}
|
|
20535
|
-
}
|
|
20536
|
-
function creator(...args) {
|
|
20537
20539
|
let transformer = initializer(...args);
|
|
20538
20540
|
transformer.postcssPlugin = name;
|
|
20539
20541
|
transformer.postcssVersion = new processor().version;
|
|
@@ -20875,7 +20877,6 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
20875
20877
|
delete frame.attribs[a];
|
|
20876
20878
|
return;
|
|
20877
20879
|
}
|
|
20878
|
-
let parsed;
|
|
20879
20880
|
// check allowedAttributesMap for the element and attribute and modify the value
|
|
20880
20881
|
// as necessary if there are specific values defined.
|
|
20881
20882
|
let passedAllowedAttributesMapCheck = false;
|
|
@@ -20923,14 +20924,14 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
20923
20924
|
let allowed = true;
|
|
20924
20925
|
|
|
20925
20926
|
try {
|
|
20926
|
-
const parsed =
|
|
20927
|
+
const parsed = parseUrl(value);
|
|
20927
20928
|
|
|
20928
20929
|
if (options.allowedScriptHostnames || options.allowedScriptDomains) {
|
|
20929
20930
|
const allowedHostname = (options.allowedScriptHostnames || []).find(function (hostname) {
|
|
20930
|
-
return hostname === parsed.hostname;
|
|
20931
|
+
return hostname === parsed.url.hostname;
|
|
20931
20932
|
});
|
|
20932
20933
|
const allowedDomain = (options.allowedScriptDomains || []).find(function(domain) {
|
|
20933
|
-
return parsed.hostname === domain || parsed.hostname.endsWith(`.${domain}`);
|
|
20934
|
+
return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);
|
|
20934
20935
|
});
|
|
20935
20936
|
allowed = allowedHostname || allowedDomain;
|
|
20936
20937
|
}
|
|
@@ -20947,29 +20948,9 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
20947
20948
|
if (name === 'iframe' && a === 'src') {
|
|
20948
20949
|
let allowed = true;
|
|
20949
20950
|
try {
|
|
20950
|
-
|
|
20951
|
-
|
|
20952
|
-
|
|
20953
|
-
value = value.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, '$1//');
|
|
20954
|
-
if (value.startsWith('relative:')) {
|
|
20955
|
-
// An attempt to exploit our workaround for base URLs being
|
|
20956
|
-
// mandatory for relative URL validation in the WHATWG
|
|
20957
|
-
// URL parser, reject it
|
|
20958
|
-
throw new Error('relative: exploit attempt');
|
|
20959
|
-
}
|
|
20960
|
-
// naughtyHref is in charge of whether protocol relative URLs
|
|
20961
|
-
// are cool. Here we are concerned just with allowed hostnames and
|
|
20962
|
-
// whether to allow relative URLs.
|
|
20963
|
-
//
|
|
20964
|
-
// Build a placeholder "base URL" against which any reasonable
|
|
20965
|
-
// relative URL may be parsed successfully
|
|
20966
|
-
let base = 'relative://relative-site';
|
|
20967
|
-
for (let i = 0; (i < 100); i++) {
|
|
20968
|
-
base += `/${i}`;
|
|
20969
|
-
}
|
|
20970
|
-
const parsed = new URL(value, base);
|
|
20971
|
-
const isRelativeUrl = parsed && parsed.hostname === 'relative-site' && parsed.protocol === 'relative:';
|
|
20972
|
-
if (isRelativeUrl) {
|
|
20951
|
+
const parsed = parseUrl(value);
|
|
20952
|
+
|
|
20953
|
+
if (parsed.isRelativeUrl) {
|
|
20973
20954
|
// default value of allowIframeRelativeUrls is true
|
|
20974
20955
|
// unless allowedIframeHostnames or allowedIframeDomains specified
|
|
20975
20956
|
allowed = has(options, 'allowIframeRelativeUrls')
|
|
@@ -20977,10 +20958,10 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
20977
20958
|
: (!options.allowedIframeHostnames && !options.allowedIframeDomains);
|
|
20978
20959
|
} else if (options.allowedIframeHostnames || options.allowedIframeDomains) {
|
|
20979
20960
|
const allowedHostname = (options.allowedIframeHostnames || []).find(function (hostname) {
|
|
20980
|
-
return hostname === parsed.hostname;
|
|
20961
|
+
return hostname === parsed.url.hostname;
|
|
20981
20962
|
});
|
|
20982
20963
|
const allowedDomain = (options.allowedIframeDomains || []).find(function(domain) {
|
|
20983
|
-
return parsed.hostname === domain || parsed.hostname.endsWith(`.${domain}`);
|
|
20964
|
+
return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);
|
|
20984
20965
|
});
|
|
20985
20966
|
allowed = allowedHostname || allowedDomain;
|
|
20986
20967
|
}
|
|
@@ -20995,7 +20976,7 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
20995
20976
|
}
|
|
20996
20977
|
if (a === 'srcset') {
|
|
20997
20978
|
try {
|
|
20998
|
-
parsed = parseSrcset(value);
|
|
20979
|
+
let parsed = parseSrcset(value);
|
|
20999
20980
|
parsed.forEach(function(value) {
|
|
21000
20981
|
if (naughtyHref('srcset', value.url)) {
|
|
21001
20982
|
value.evil = true;
|
|
@@ -21221,7 +21202,17 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
21221
21202
|
// Clobber any comments in URLs, which the browser might
|
|
21222
21203
|
// interpret inside an XML data island, allowing
|
|
21223
21204
|
// a javascript: URL to be snuck through
|
|
21224
|
-
|
|
21205
|
+
while (true) {
|
|
21206
|
+
const firstIndex = href.indexOf('<!--');
|
|
21207
|
+
if (firstIndex === -1) {
|
|
21208
|
+
break;
|
|
21209
|
+
}
|
|
21210
|
+
const lastIndex = href.indexOf('-->', firstIndex + 4);
|
|
21211
|
+
if (lastIndex === -1) {
|
|
21212
|
+
break;
|
|
21213
|
+
}
|
|
21214
|
+
href = href.substring(0, firstIndex) + href.substring(lastIndex + 3);
|
|
21215
|
+
}
|
|
21225
21216
|
// Case insensitive so we don't get faked out by JAVASCRIPT #1
|
|
21226
21217
|
// Allow more characters after the first so we don't get faked
|
|
21227
21218
|
// out by certain schemes browsers accept
|
|
@@ -21244,6 +21235,33 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
21244
21235
|
return !options.allowedSchemes || options.allowedSchemes.indexOf(scheme) === -1;
|
|
21245
21236
|
}
|
|
21246
21237
|
|
|
21238
|
+
function parseUrl(value) {
|
|
21239
|
+
value = value.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, '$1//');
|
|
21240
|
+
if (value.startsWith('relative:')) {
|
|
21241
|
+
// An attempt to exploit our workaround for base URLs being
|
|
21242
|
+
// mandatory for relative URL validation in the WHATWG
|
|
21243
|
+
// URL parser, reject it
|
|
21244
|
+
throw new Error('relative: exploit attempt');
|
|
21245
|
+
}
|
|
21246
|
+
// naughtyHref is in charge of whether protocol relative URLs
|
|
21247
|
+
// are cool. Here we are concerned just with allowed hostnames and
|
|
21248
|
+
// whether to allow relative URLs.
|
|
21249
|
+
//
|
|
21250
|
+
// Build a placeholder "base URL" against which any reasonable
|
|
21251
|
+
// relative URL may be parsed successfully
|
|
21252
|
+
let base = 'relative://relative-site';
|
|
21253
|
+
for (let i = 0; (i < 100); i++) {
|
|
21254
|
+
base += `/${i}`;
|
|
21255
|
+
}
|
|
21256
|
+
|
|
21257
|
+
const parsed = new URL(value, base);
|
|
21258
|
+
|
|
21259
|
+
const isRelativeUrl = parsed && parsed.hostname === 'relative-site' && parsed.protocol === 'relative:';
|
|
21260
|
+
return {
|
|
21261
|
+
isRelativeUrl,
|
|
21262
|
+
url: parsed
|
|
21263
|
+
};
|
|
21264
|
+
}
|
|
21247
21265
|
/**
|
|
21248
21266
|
* Filters user input css properties by allowlisted regex attributes.
|
|
21249
21267
|
* Modifies the abstractSyntaxTree object.
|
|
@@ -111,9 +111,8 @@ const YooFormTodoTaskListComponent = class {
|
|
|
111
111
|
return updated;
|
|
112
112
|
}
|
|
113
113
|
async deleteTask(index, withConfirmation = true) {
|
|
114
|
-
var _a, _b;
|
|
115
114
|
const result = withConfirmation
|
|
116
|
-
? await overlays.showAlert(overlays.translate('DELETETASK'), [overlays.translate('CANCEL'), { cssClass: 'danger', text: overlays.translate('DELETE') }], overlays.translate('CONFIRMDELETETASK'
|
|
115
|
+
? await overlays.showAlert(overlays.translate('DELETETASK'), [overlays.translate('CANCEL'), { cssClass: 'danger', text: overlays.translate('DELETE') }], overlays.translate('CONFIRMDELETETASK'))
|
|
117
116
|
: true;
|
|
118
117
|
if (result) {
|
|
119
118
|
this.updateValue({ ...this.value, values: [...this.value.values.slice(0, index), ...this.value.values.slice(index + 1)] });
|
|
@@ -11,7 +11,7 @@ require('./index-c1dbcd32.js');
|
|
|
11
11
|
const button_factory = require('./button.factory-7f25fe7e.js');
|
|
12
12
|
const index$2 = require('./index-8d435773.js');
|
|
13
13
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
14
|
-
const filtersHelpers = require('./filters-helpers-
|
|
14
|
+
const filtersHelpers = require('./filters-helpers-63712f8d.js');
|
|
15
15
|
const formInputHelpers = require('./form-input-helpers-651487c0.js');
|
|
16
16
|
const gridRenderers = require('./grid-renderers-94c5b27d.js');
|
|
17
17
|
const overlays = require('./overlays-046b4f60.js');
|