playbook_ui 14.14.0.pre.alpha.play1868dependencyremovallodash6413 → 14.14.0.pre.alpha.play1872verticaltimelineresponsiveissue6409

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.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.14.0"
5
- VERSION = "14.14.0.pre.alpha.play1868dependencyremovallodash6413"
5
+ VERSION = "14.14.0.pre.alpha.play1872verticaltimelineresponsiveissue6409"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.14.0.pre.alpha.play1868dependencyremovallodash6413
4
+ version: 14.14.0.pre.alpha.play1872verticaltimelineresponsiveissue6409
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -3348,7 +3348,6 @@ files:
3348
3348
  - app/pb_kits/playbook/utilities/icons/envelope.svg
3349
3349
  - app/pb_kits/playbook/utilities/icons/spinner.svg
3350
3350
  - app/pb_kits/playbook/utilities/icons/times.svg
3351
- - app/pb_kits/playbook/utilities/object.test.js
3352
3351
  - app/pb_kits/playbook/utilities/object.ts
3353
3352
  - app/pb_kits/playbook/utilities/props.ts
3354
3353
  - app/pb_kits/playbook/utilities/test-utils.js
@@ -3368,11 +3367,11 @@ files:
3368
3367
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3369
3368
  - app/pb_kits/playbook/utilities/text.ts
3370
3369
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3371
- - dist/chunks/_typeahead-Dd8gkRY2.js
3372
- - dist/chunks/_weekday_stacked-bhqmtN2l.js
3370
+ - dist/chunks/_typeahead-BGTMEmj7.js
3371
+ - dist/chunks/_weekday_stacked-De2TduOp.js
3373
3372
  - dist/chunks/lazysizes-B7xYodB-.js
3374
- - dist/chunks/lib-Dzh-65PP.js
3375
- - dist/chunks/pb_form_validation-1T09rwCG.js
3373
+ - dist/chunks/lib-Fr78pbpF.js
3374
+ - dist/chunks/pb_form_validation-CN51bfsD.js
3376
3375
  - dist/chunks/vendor.js
3377
3376
  - dist/menu.yml
3378
3377
  - dist/playbook-doc.js
@@ -1,99 +0,0 @@
1
- import { isEmpty, get, isString, uniqueId, omitBy } from './object';
2
-
3
- describe('Lodash functions', () => {
4
- describe('isEmpty', () => {
5
- test('returns true for empty objects', () => {
6
- expect(isEmpty({})).toBe(true);
7
- });
8
- test('returns true for empty arrays', () => {
9
- expect(isEmpty([])).toBe(true);
10
- });
11
- test('returns false for non-empty objects', () => {
12
- expect(isEmpty({ a: 1 })).toBe(false);
13
- });
14
- test('returns false for non-empty arrays', () => {
15
- expect(isEmpty([1])).toBe(false);
16
- });
17
- test('returns true for null and undefined', () => {
18
- expect(isEmpty(null)).toBe(true);
19
- expect(isEmpty(undefined)).toBe(true);
20
- });
21
- test('returns false for non-object, non-array values', () => {
22
- expect(isEmpty("hello")).toBe(false);
23
- expect(isEmpty(123)).toBe(false);
24
- });
25
- });
26
-
27
- describe('get', () => {
28
- const obj = { a: { b: { c: 42 } }, arr: [{ x: 1 }, { y: 2 }] };
29
-
30
- test('retrieves nested properties by dot path', () => {
31
- expect(get(obj, 'a.b.c')).toBe(42);
32
- });
33
- test('returns default value if path does not exist', () => {
34
- expect(get(obj, 'a.b.d', 'default')).toBe('default');
35
- });
36
- test('retrieves array values using bracket notation', () => {
37
- expect(get(obj, 'arr[1].y')).toBe(2);
38
- });
39
- test('returns default for non-existent paths', () => {
40
- expect(get(obj, 'non.existent.path', null)).toBe(null);
41
- });
42
- });
43
-
44
- describe('isString', () => {
45
- test('returns true for string literal', () => {
46
- expect(isString('test')).toBe(true);
47
- });
48
- test('returns true for String object', () => {
49
- expect(isString(new String('test'))).toBe(true);
50
- });
51
- test('returns false for non-string values', () => {
52
- expect(isString(123)).toBe(false);
53
- expect(isString(null)).toBe(false);
54
- expect(isString({ a: 1 })).toBe(false);
55
- expect(isString([ 'a','b','c' ])).toBe(false);
56
- });
57
- });
58
-
59
- describe('uniqueId', () => {
60
- test('generates unique ids without prefix', () => {
61
- const id1 = uniqueId();
62
- const id2 = uniqueId();
63
- expect(id1).not.toBe(id2);
64
- expect(Number(id1)).toBeLessThan(Number(id2));
65
- });
66
- test('generates unique ids with prefix', () => {
67
- const id1 = uniqueId('id_');
68
- const id2 = uniqueId('id_');
69
- const id3 = uniqueId('id_');
70
- expect(id1).not.toBe(id2);
71
- expect(id1).not.toBe(id3);
72
- expect(id2).not.toBe(id3);
73
- expect(id1.startsWith('id_')).toBe(true);
74
- expect(id2.startsWith('id_')).toBe(true);
75
- expect(id3.startsWith('id_')).toBe(true);
76
- });
77
- });
78
-
79
- describe('omitBy', () => {
80
- test('omits keys for which predicate returns true', () => {
81
- const obj = { a: 1, b: 2, c: 3 };
82
- const isEven = value => value % 2 === 0;
83
- const noEvenValues = omitBy(obj, isEven);
84
- expect(noEvenValues).toEqual({ a: 1, c: 3 });
85
- });
86
- test('returns empty object for null input', () => {
87
- expect(omitBy(null, () => true)).toEqual({});
88
- });
89
- test('returns empty object for non-object input', () => {
90
- expect(omitBy("string", () => true)).toEqual({});
91
- });
92
- test('returns original object if predicate returns false for all keys', () => {
93
- const obj = { a: 1, b: 2 };
94
- const isBiggerThanFive = value => value >= 4;
95
- const objWithSmallValues = omitBy(obj, isBiggerThanFive);
96
- expect(objWithSmallValues).toEqual(obj);
97
- });
98
- });
99
- });